@dialecte/core 0.6.4 → 0.8.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 (699) hide show
  1. package/dist/assets/hub.worker-B1HcVDhn.js +2 -0
  2. package/dist/diagnostics/diagnostics.d.ts +30 -0
  3. package/dist/diagnostics/diagnostics.d.ts.map +1 -0
  4. package/dist/diagnostics/index.d.ts +3 -0
  5. package/dist/diagnostics/index.d.ts.map +1 -0
  6. package/dist/diagnostics/types.d.ts +77 -0
  7. package/dist/diagnostics/types.d.ts.map +1 -0
  8. package/dist/dialecte/create-dialecte-project.d.ts +11 -0
  9. package/dist/dialecte/create-dialecte-project.d.ts.map +1 -0
  10. package/dist/dialecte/create-project-factory.d.ts +14 -0
  11. package/dist/dialecte/create-project-factory.d.ts.map +1 -0
  12. package/dist/dialecte/define-dialecte.d.ts +12 -0
  13. package/dist/dialecte/define-dialecte.d.ts.map +1 -0
  14. package/dist/dialecte/dialecte.constants.d.ts +4 -0
  15. package/dist/dialecte/dialecte.constants.d.ts.map +1 -0
  16. package/dist/dialecte/dialecte.types.d.ts +75 -0
  17. package/dist/dialecte/dialecte.types.d.ts.map +1 -0
  18. package/dist/dialecte/index.d.ts +4 -0
  19. package/dist/dialecte/index.d.ts.map +1 -0
  20. package/dist/{project-DGQAe9G9.js → dialecte-gIPrRzni.js} +7225 -7511
  21. package/dist/document/bind-extensions.d.ts +4 -1
  22. package/dist/document/bind-extensions.d.ts.map +1 -1
  23. package/dist/document/document.d.ts +58 -5
  24. package/dist/document/document.d.ts.map +1 -1
  25. package/dist/document/progress/progress.types.d.ts +21 -4
  26. package/dist/document/progress/progress.types.d.ts.map +1 -1
  27. package/dist/document/query/find/ancestor/find-ancestor.d.ts +2 -0
  28. package/dist/document/query/find/ancestor/find-ancestor.d.ts.map +1 -1
  29. package/dist/document/query/find/by-attribute/find-by-attributes.d.ts +4 -0
  30. package/dist/document/query/find/by-attribute/find-by-attributes.d.ts.map +1 -1
  31. package/dist/document/query/find/descendant/find-descendant.d.ts +2 -0
  32. package/dist/document/query/find/descendant/find-descendant.d.ts.map +1 -1
  33. package/dist/document/query/get/attribute/get-attribute.d.ts +4 -0
  34. package/dist/document/query/get/attribute/get-attribute.d.ts.map +1 -1
  35. package/dist/document/query/get/attribute/get-attributes.d.ts +4 -0
  36. package/dist/document/query/get/attribute/get-attributes.d.ts.map +1 -1
  37. package/dist/document/query/get/definition/get-definition.d.ts +2 -0
  38. package/dist/document/query/get/definition/get-definition.d.ts.map +1 -1
  39. package/dist/document/query/get/record/get-child.d.ts +2 -0
  40. package/dist/document/query/get/record/get-child.d.ts.map +1 -1
  41. package/dist/document/query/get/record/get-children.d.ts +2 -0
  42. package/dist/document/query/get/record/get-children.d.ts.map +1 -1
  43. package/dist/document/query/get/record/get-record.d.ts +2 -0
  44. package/dist/document/query/get/record/get-record.d.ts.map +1 -1
  45. package/dist/document/query/get/record/get-records-by-tagname.d.ts +2 -0
  46. package/dist/document/query/get/record/get-records-by-tagname.d.ts.map +1 -1
  47. package/dist/document/query/get/record/get-records.d.ts +2 -0
  48. package/dist/document/query/get/record/get-records.d.ts.map +1 -1
  49. package/dist/document/query/get/record/load-live-records.d.ts +2 -0
  50. package/dist/document/query/get/record/load-live-records.d.ts.map +1 -1
  51. package/dist/document/query/get/record/resolve-record.d.ts +2 -0
  52. package/dist/document/query/get/record/resolve-record.d.ts.map +1 -1
  53. package/dist/document/query/get/record/staged-lookup.d.ts +4 -0
  54. package/dist/document/query/get/record/staged-lookup.d.ts.map +1 -1
  55. package/dist/document/query/get/tree/get-tree.d.ts +6 -0
  56. package/dist/document/query/get/tree/get-tree.d.ts.map +1 -1
  57. package/dist/document/query/main.d.ts +50 -15
  58. package/dist/document/query/main.d.ts.map +1 -1
  59. package/dist/document/query/snapshot/collect-snapshot.d.ts +2 -0
  60. package/dist/document/query/snapshot/collect-snapshot.d.ts.map +1 -1
  61. package/dist/document/query/snapshot/get-snapshot.d.ts +2 -0
  62. package/dist/document/query/snapshot/get-snapshot.d.ts.map +1 -1
  63. package/dist/document/query/snapshot/records-to-tree.d.ts +2 -0
  64. package/dist/document/query/snapshot/records-to-tree.d.ts.map +1 -1
  65. package/dist/document/query/tree-filter/omit.d.ts +8 -0
  66. package/dist/document/query/tree-filter/omit.d.ts.map +1 -1
  67. package/dist/document/query/tree-filter/order.d.ts +5 -2
  68. package/dist/document/query/tree-filter/order.d.ts.map +1 -1
  69. package/dist/document/query/tree-filter/unwrap.d.ts +2 -0
  70. package/dist/document/query/tree-filter/unwrap.d.ts.map +1 -1
  71. package/dist/document/staged-operations.d.ts +5 -1
  72. package/dist/document/staged-operations.d.ts.map +1 -1
  73. package/dist/document/transaction/clone/clone.d.ts +2 -0
  74. package/dist/document/transaction/clone/clone.d.ts.map +1 -1
  75. package/dist/document/transaction/commit/commit.d.ts.map +1 -1
  76. package/dist/document/transaction/commit/merge-operations.d.ts +1 -1
  77. package/dist/document/transaction/commit/merge-operations.d.ts.map +1 -1
  78. package/dist/document/transaction/commit/summarize-operations.d.ts +16 -0
  79. package/dist/document/transaction/commit/summarize-operations.d.ts.map +1 -0
  80. package/dist/document/transaction/commit/summarize-operations.types.d.ts +17 -0
  81. package/dist/document/transaction/commit/summarize-operations.types.d.ts.map +1 -0
  82. package/dist/document/transaction/create/create.d.ts +2 -0
  83. package/dist/document/transaction/create/create.d.ts.map +1 -1
  84. package/dist/document/transaction/guard.d.ts +5 -0
  85. package/dist/document/transaction/guard.d.ts.map +1 -1
  86. package/dist/document/transaction/index.d.ts +2 -0
  87. package/dist/document/transaction/index.d.ts.map +1 -1
  88. package/dist/document/transaction/main.d.ts +46 -16
  89. package/dist/document/transaction/main.d.ts.map +1 -1
  90. package/dist/document/transaction/stage-operations.d.ts.map +1 -1
  91. package/dist/document/transaction/update/update.d.ts +2 -0
  92. package/dist/document/transaction/update/update.d.ts.map +1 -1
  93. package/dist/document/types.d.ts +3 -5
  94. package/dist/document/types.d.ts.map +1 -1
  95. package/dist/engine-store-CIEqgPUb.js +348 -0
  96. package/dist/engine.constants-DBMjMmV9.js +98 -0
  97. package/dist/engine.d.ts +9 -0
  98. package/dist/engine.d.ts.map +1 -0
  99. package/dist/engine.js +15805 -0
  100. package/dist/errors/codes.d.ts +455 -0
  101. package/dist/errors/codes.d.ts.map +1 -1
  102. package/dist/errors/errors.constants.d.ts +3 -0
  103. package/dist/errors/errors.constants.d.ts.map +1 -0
  104. package/dist/errors/errors.d.ts +10 -0
  105. package/dist/errors/errors.d.ts.map +1 -1
  106. package/dist/errors/types.d.ts +14 -0
  107. package/dist/errors/types.d.ts.map +1 -1
  108. package/dist/helpers/assert-fixed.d.ts +3 -1
  109. package/dist/helpers/assert-fixed.d.ts.map +1 -1
  110. package/dist/helpers/assert-xml-characters.d.ts +35 -0
  111. package/dist/helpers/assert-xml-characters.d.ts.map +1 -0
  112. package/dist/helpers/assert-xml-characters.types.d.ts +26 -0
  113. package/dist/helpers/assert-xml-characters.types.d.ts.map +1 -0
  114. package/dist/helpers/assert-xsi-type.d.ts +4 -0
  115. package/dist/helpers/assert-xsi-type.d.ts.map +1 -1
  116. package/dist/helpers/converter.d.ts +21 -6
  117. package/dist/helpers/converter.d.ts.map +1 -1
  118. package/dist/helpers/evaluate-expectations.d.ts +21 -0
  119. package/dist/helpers/evaluate-expectations.d.ts.map +1 -0
  120. package/dist/helpers/evaluate-expectations.types.d.ts +31 -0
  121. package/dist/helpers/evaluate-expectations.types.d.ts.map +1 -0
  122. package/dist/helpers/guard.d.ts +24 -4
  123. package/dist/helpers/guard.d.ts.map +1 -1
  124. package/dist/helpers/index.d.ts +2 -0
  125. package/dist/helpers/index.d.ts.map +1 -1
  126. package/dist/helpers/merge-extensions.d.ts +2 -0
  127. package/dist/helpers/merge-extensions.d.ts.map +1 -1
  128. package/dist/helpers/read-attributes.d.ts +4 -0
  129. package/dist/helpers/read-attributes.d.ts.map +1 -1
  130. package/dist/helpers/standardizing.d.ts +10 -0
  131. package/dist/helpers/standardizing.d.ts.map +1 -1
  132. package/dist/helpers/strip-attributes.d.ts +2 -0
  133. package/dist/helpers/strip-attributes.d.ts.map +1 -1
  134. package/dist/helpers-DVShv41E.js +489 -0
  135. package/dist/helpers.js +3 -439
  136. package/dist/in-process-link-DBeAOZRp.js +2791 -0
  137. package/dist/index.d.ts +2 -0
  138. package/dist/index.d.ts.map +1 -1
  139. package/dist/index.js +23 -3
  140. package/dist/perf/create-perf.d.ts +8 -1
  141. package/dist/perf/create-perf.d.ts.map +1 -1
  142. package/dist/perf/index.d.ts +1 -1
  143. package/dist/perf/index.d.ts.map +1 -1
  144. package/dist/perf/noop-perf.d.ts.map +1 -1
  145. package/dist/perf/perf.types.d.ts +65 -6
  146. package/dist/perf/perf.types.d.ts.map +1 -1
  147. package/dist/project/index.d.ts +7 -4
  148. package/dist/project/index.d.ts.map +1 -1
  149. package/dist/project/io/export-blob.d.ts +5 -2
  150. package/dist/project/io/export-blob.d.ts.map +1 -1
  151. package/dist/project/io/export-document.d.ts +5 -4
  152. package/dist/project/io/export-document.d.ts.map +1 -1
  153. package/dist/project/io/index.d.ts +1 -1
  154. package/dist/project/io/index.d.ts.map +1 -1
  155. package/dist/project/io/init-empty-document.d.ts +2 -0
  156. package/dist/project/io/init-empty-document.d.ts.map +1 -1
  157. package/dist/project/io/resolve-config.d.ts +4 -0
  158. package/dist/project/io/resolve-config.d.ts.map +1 -0
  159. package/dist/project/io/run-export.d.ts +19 -0
  160. package/dist/project/io/run-export.d.ts.map +1 -0
  161. package/dist/project/io/run-export.types.d.ts +45 -0
  162. package/dist/project/io/run-export.types.d.ts.map +1 -0
  163. package/dist/project/io/run-import.d.ts +15 -0
  164. package/dist/project/io/run-import.d.ts.map +1 -0
  165. package/dist/project/io/run-import.types.d.ts +19 -0
  166. package/dist/project/io/run-import.types.d.ts.map +1 -0
  167. package/dist/project/io/store-runtime.constants.d.ts +6 -0
  168. package/dist/project/io/store-runtime.constants.d.ts.map +1 -0
  169. package/dist/project/io/store-runtime.d.ts +12 -0
  170. package/dist/project/io/store-runtime.d.ts.map +1 -0
  171. package/dist/project/io/store-runtime.types.d.ts +18 -0
  172. package/dist/project/io/store-runtime.types.d.ts.map +1 -0
  173. package/dist/project/project-channel.d.ts +11 -0
  174. package/dist/project/project-channel.d.ts.map +1 -0
  175. package/dist/project/project.constants.d.ts +12 -0
  176. package/dist/project/project.constants.d.ts.map +1 -0
  177. package/dist/project/project.d.ts +339 -25
  178. package/dist/project/project.d.ts.map +1 -1
  179. package/dist/project/state/document-lifecycle.d.ts +6 -0
  180. package/dist/project/state/document-lifecycle.d.ts.map +1 -0
  181. package/dist/project/state/document-state.d.ts +4 -0
  182. package/dist/project/state/document-state.d.ts.map +1 -1
  183. package/dist/project/types.d.ts +158 -48
  184. package/dist/project/types.d.ts.map +1 -1
  185. package/dist/project-key-Ch34EtFa.js +1435 -0
  186. package/dist/rolldown-runtime-CYdcPHCu.js +12 -0
  187. package/dist/running-operations-vnijBvn7.js +76 -0
  188. package/dist/same-json-value-C6kUaoyt.js +1603 -0
  189. package/dist/sqlite.d.ts +5 -0
  190. package/dist/sqlite.d.ts.map +1 -0
  191. package/dist/sqlite.js +2671 -0
  192. package/dist/sqlite3.wasm +0 -0
  193. package/dist/store/apply-record-patch.d.ts +13 -0
  194. package/dist/store/apply-record-patch.d.ts.map +1 -0
  195. package/dist/store/closing-connections.d.ts +7 -0
  196. package/dist/store/closing-connections.d.ts.map +1 -0
  197. package/dist/store/closing-connections.types.d.ts +13 -0
  198. package/dist/store/closing-connections.types.d.ts.map +1 -0
  199. package/dist/store/commit-progress.d.ts +10 -0
  200. package/dist/store/commit-progress.d.ts.map +1 -0
  201. package/dist/store/compare-by-id.d.ts +10 -0
  202. package/dist/store/compare-by-id.d.ts.map +1 -0
  203. package/dist/store/document-path.constants.d.ts +20 -0
  204. package/dist/store/document-path.constants.d.ts.map +1 -0
  205. package/dist/store/document-path.d.ts +75 -0
  206. package/dist/store/document-path.d.ts.map +1 -0
  207. package/dist/store/document-path.types.d.ts +11 -0
  208. package/dist/store/document-path.types.d.ts.map +1 -0
  209. package/dist/store/engine/client/check-engine-wire.d.ts +8 -0
  210. package/dist/store/engine/client/check-engine-wire.d.ts.map +1 -0
  211. package/dist/store/engine/client/client.constants.d.ts +30 -0
  212. package/dist/store/engine/client/client.constants.d.ts.map +1 -0
  213. package/dist/store/engine/client/client.types.d.ts +200 -0
  214. package/dist/store/engine/client/client.types.d.ts.map +1 -0
  215. package/dist/store/engine/client/engine-client.d.ts +15 -0
  216. package/dist/store/engine/client/engine-client.d.ts.map +1 -0
  217. package/dist/store/engine/client/engine-control.d.ts +16 -0
  218. package/dist/store/engine/client/engine-control.d.ts.map +1 -0
  219. package/dist/store/engine/client/heartbeat-watch.d.ts +17 -0
  220. package/dist/store/engine/client/heartbeat-watch.d.ts.map +1 -0
  221. package/dist/store/engine/client/hub-connector.d.ts +11 -0
  222. package/dist/store/engine/client/hub-connector.d.ts.map +1 -0
  223. package/dist/store/engine/client/hub-connector.types.d.ts +25 -0
  224. package/dist/store/engine/client/hub-connector.types.d.ts.map +1 -0
  225. package/dist/store/engine/client/worker-connector.d.ts +32 -0
  226. package/dist/store/engine/client/worker-connector.d.ts.map +1 -0
  227. package/dist/store/engine/creation-refusal.d.ts +10 -0
  228. package/dist/store/engine/creation-refusal.d.ts.map +1 -0
  229. package/dist/store/engine/dialecte-refusal.d.ts +18 -0
  230. package/dist/store/engine/dialecte-refusal.d.ts.map +1 -0
  231. package/dist/store/engine/engine-store.d.ts +163 -0
  232. package/dist/store/engine/engine-store.d.ts.map +1 -0
  233. package/dist/store/engine/engine-store.types.d.ts +53 -0
  234. package/dist/store/engine/engine-store.types.d.ts.map +1 -0
  235. package/dist/store/engine/engine.constants.d.ts +14 -0
  236. package/dist/store/engine/engine.constants.d.ts.map +1 -0
  237. package/dist/store/engine/engine.types.d.ts +165 -0
  238. package/dist/store/engine/engine.types.d.ts.map +1 -0
  239. package/dist/store/engine/host/engine-wire.d.ts +19 -0
  240. package/dist/store/engine/host/engine-wire.d.ts.map +1 -0
  241. package/dist/store/engine/host/heartbeat.d.ts +33 -0
  242. package/dist/store/engine/host/heartbeat.d.ts.map +1 -0
  243. package/dist/store/engine/host/host.constants.d.ts +13 -0
  244. package/dist/store/engine/host/host.constants.d.ts.map +1 -0
  245. package/dist/store/engine/host/host.types.d.ts +65 -0
  246. package/dist/store/engine/host/host.types.d.ts.map +1 -0
  247. package/dist/store/engine/host/store-events.d.ts +14 -0
  248. package/dist/store/engine/host/store-events.d.ts.map +1 -0
  249. package/dist/store/engine/hub/hub-client.constants.d.ts +27 -0
  250. package/dist/store/engine/hub/hub-client.constants.d.ts.map +1 -0
  251. package/dist/store/engine/hub/hub-client.d.ts +46 -0
  252. package/dist/store/engine/hub/hub-client.d.ts.map +1 -0
  253. package/dist/store/engine/hub/hub-client.types.d.ts +208 -0
  254. package/dist/store/engine/hub/hub-client.types.d.ts.map +1 -0
  255. package/dist/store/engine/hub/hub-protocol.types.d.ts +193 -0
  256. package/dist/store/engine/hub/hub-protocol.types.d.ts.map +1 -0
  257. package/dist/store/engine/hub/hub-router.d.ts +9 -0
  258. package/dist/store/engine/hub/hub-router.d.ts.map +1 -0
  259. package/dist/store/engine/hub/hub-shell.d.ts +13 -0
  260. package/dist/store/engine/hub/hub-shell.d.ts.map +1 -0
  261. package/dist/store/engine/hub/hub-shell.types.d.ts +64 -0
  262. package/dist/store/engine/hub/hub-shell.types.d.ts.map +1 -0
  263. package/dist/store/engine/hub/hub.constants.d.ts +33 -0
  264. package/dist/store/engine/hub/hub.constants.d.ts.map +1 -0
  265. package/dist/store/engine/hub/hub.types.d.ts +305 -0
  266. package/dist/store/engine/hub/hub.types.d.ts.map +1 -0
  267. package/dist/store/engine/hub/hub.worker.d.ts +2 -0
  268. package/dist/store/engine/hub/hub.worker.d.ts.map +1 -0
  269. package/dist/store/engine/hub/realm-host.d.ts +10 -0
  270. package/dist/store/engine/hub/realm-host.d.ts.map +1 -0
  271. package/dist/store/engine/hub/realm-host.types.d.ts +78 -0
  272. package/dist/store/engine/hub/realm-host.types.d.ts.map +1 -0
  273. package/dist/store/engine/project-key.d.ts +15 -0
  274. package/dist/store/engine/project-key.d.ts.map +1 -0
  275. package/dist/store/engine/wire/error-envelope.d.ts +25 -0
  276. package/dist/store/engine/wire/error-envelope.d.ts.map +1 -0
  277. package/dist/store/engine/wire/wire-values.d.ts +33 -0
  278. package/dist/store/engine/wire/wire-values.d.ts.map +1 -0
  279. package/dist/store/engine/wire/wire.constants.d.ts +116 -0
  280. package/dist/store/engine/wire/wire.constants.d.ts.map +1 -0
  281. package/dist/store/engine/wire/wire.types.d.ts +119 -0
  282. package/dist/store/engine/wire/wire.types.d.ts.map +1 -0
  283. package/dist/store/hub-public.d.ts +33 -0
  284. package/dist/store/hub-public.d.ts.map +1 -0
  285. package/dist/store/ignore-destroy-outcome.d.ts +6 -0
  286. package/dist/store/ignore-destroy-outcome.d.ts.map +1 -0
  287. package/dist/store/in-memory/in-memory-state.d.ts +46 -0
  288. package/dist/store/in-memory/in-memory-state.d.ts.map +1 -0
  289. package/dist/store/in-memory/in-memory-store.constants.d.ts +7 -0
  290. package/dist/store/in-memory/in-memory-store.constants.d.ts.map +1 -0
  291. package/dist/store/in-memory/in-memory-store.d.ts +105 -17
  292. package/dist/store/in-memory/in-memory-store.d.ts.map +1 -1
  293. package/dist/store/in-memory/types.d.ts +55 -1
  294. package/dist/store/in-memory/types.d.ts.map +1 -1
  295. package/dist/store/index.d.ts +8 -2
  296. package/dist/store/index.d.ts.map +1 -1
  297. package/dist/store/json-values.constants.d.ts +18 -0
  298. package/dist/store/json-values.constants.d.ts.map +1 -0
  299. package/dist/store/json-values.d.ts +40 -0
  300. package/dist/store/json-values.d.ts.map +1 -0
  301. package/dist/store/json-values.types.d.ts +18 -0
  302. package/dist/store/json-values.types.d.ts.map +1 -0
  303. package/dist/store/local/dexie-store.constants.d.ts +20 -0
  304. package/dist/store/local/dexie-store.constants.d.ts.map +1 -0
  305. package/dist/store/local/dexie-store.d.ts +134 -5
  306. package/dist/store/local/dexie-store.d.ts.map +1 -1
  307. package/dist/store/local/types.d.ts +9 -0
  308. package/dist/store/local/types.d.ts.map +1 -1
  309. package/dist/store/lost-write.d.ts +32 -0
  310. package/dist/store/lost-write.d.ts.map +1 -0
  311. package/dist/store/lost-write.types.d.ts +4 -0
  312. package/dist/store/lost-write.types.d.ts.map +1 -0
  313. package/dist/store/open-connections.d.ts +4 -0
  314. package/dist/store/open-connections.d.ts.map +1 -0
  315. package/dist/store/open-connections.types.d.ts +17 -0
  316. package/dist/store/open-connections.types.d.ts.map +1 -0
  317. package/dist/store/own-import.d.ts +10 -0
  318. package/dist/store/own-import.d.ts.map +1 -0
  319. package/dist/store/project-name.d.ts +10 -0
  320. package/dist/store/project-name.d.ts.map +1 -0
  321. package/dist/store/resolve-store.d.ts +28 -4
  322. package/dist/store/resolve-store.d.ts.map +1 -1
  323. package/dist/store/running-operations.d.ts +7 -0
  324. package/dist/store/running-operations.d.ts.map +1 -0
  325. package/dist/store/running-operations.types.d.ts +10 -0
  326. package/dist/store/running-operations.types.d.ts.map +1 -0
  327. package/dist/store/same-json-value.d.ts +9 -0
  328. package/dist/store/same-json-value.d.ts.map +1 -0
  329. package/dist/store/sqlite/adapter/in-process-link.d.ts +20 -0
  330. package/dist/store/sqlite/adapter/in-process-link.d.ts.map +1 -0
  331. package/dist/store/sqlite/adapter/in-process-link.types.d.ts +21 -0
  332. package/dist/store/sqlite/adapter/in-process-link.types.d.ts.map +1 -0
  333. package/dist/store/sqlite/adapter/realm-storage.d.ts +10 -0
  334. package/dist/store/sqlite/adapter/realm-storage.d.ts.map +1 -0
  335. package/dist/store/sqlite/adapter/sqlite-connector.d.ts +14 -0
  336. package/dist/store/sqlite/adapter/sqlite-connector.d.ts.map +1 -0
  337. package/dist/store/sqlite/adapter/sqlite-engine-settings.d.ts +4 -0
  338. package/dist/store/sqlite/adapter/sqlite-engine-settings.d.ts.map +1 -0
  339. package/dist/store/sqlite/adapter/sqlite-hub-spawner.d.ts +8 -0
  340. package/dist/store/sqlite/adapter/sqlite-hub-spawner.d.ts.map +1 -0
  341. package/dist/store/sqlite/adapter/sqlite-hub-spawner.types.d.ts +5 -0
  342. package/dist/store/sqlite/adapter/sqlite-hub-spawner.types.d.ts.map +1 -0
  343. package/dist/store/sqlite/adapter/sqlite-worker-connector.d.ts +8 -0
  344. package/dist/store/sqlite/adapter/sqlite-worker-connector.d.ts.map +1 -0
  345. package/dist/store/sqlite/adapter/sqlite-worker-connector.types.d.ts +5 -0
  346. package/dist/store/sqlite/adapter/sqlite-worker-connector.types.d.ts.map +1 -0
  347. package/dist/store/sqlite/engine/blobs.d.ts +55 -0
  348. package/dist/store/sqlite/engine/blobs.d.ts.map +1 -0
  349. package/dist/store/sqlite/engine/bulk-insert.d.ts +31 -0
  350. package/dist/store/sqlite/engine/bulk-insert.d.ts.map +1 -0
  351. package/dist/store/sqlite/engine/commit.d.ts +20 -0
  352. package/dist/store/sqlite/engine/commit.d.ts.map +1 -0
  353. package/dist/store/sqlite/engine/device-cache.d.ts +13 -0
  354. package/dist/store/sqlite/engine/device-cache.d.ts.map +1 -0
  355. package/dist/store/sqlite/engine/engine-errors.d.ts +26 -0
  356. package/dist/store/sqlite/engine/engine-errors.d.ts.map +1 -0
  357. package/dist/store/sqlite/engine/engine.constants.d.ts +144 -0
  358. package/dist/store/sqlite/engine/engine.constants.d.ts.map +1 -0
  359. package/dist/store/sqlite/engine/engine.types.d.ts +361 -0
  360. package/dist/store/sqlite/engine/engine.types.d.ts.map +1 -0
  361. package/dist/store/sqlite/engine/history.d.ts +114 -0
  362. package/dist/store/sqlite/engine/history.d.ts.map +1 -0
  363. package/dist/store/sqlite/engine/import-queue.d.ts +7 -0
  364. package/dist/store/sqlite/engine/import-queue.d.ts.map +1 -0
  365. package/dist/store/sqlite/engine/import-target.d.ts +23 -0
  366. package/dist/store/sqlite/engine/import-target.d.ts.map +1 -0
  367. package/dist/store/sqlite/engine/import-window.d.ts +23 -0
  368. package/dist/store/sqlite/engine/import-window.d.ts.map +1 -0
  369. package/dist/store/sqlite/engine/reclaim.d.ts +13 -0
  370. package/dist/store/sqlite/engine/reclaim.d.ts.map +1 -0
  371. package/dist/store/sqlite/engine/records.d.ts +117 -0
  372. package/dist/store/sqlite/engine/records.d.ts.map +1 -0
  373. package/dist/store/sqlite/engine/registry.d.ts +76 -0
  374. package/dist/store/sqlite/engine/registry.d.ts.map +1 -0
  375. package/dist/store/sqlite/engine/schema.d.ts +57 -0
  376. package/dist/store/sqlite/engine/schema.d.ts.map +1 -0
  377. package/dist/store/sqlite/engine/sqlite-engine.d.ts +14 -0
  378. package/dist/store/sqlite/engine/sqlite-engine.d.ts.map +1 -0
  379. package/dist/store/sqlite/engine/transaction.d.ts +12 -0
  380. package/dist/store/sqlite/engine/transaction.d.ts.map +1 -0
  381. package/dist/store/sqlite/list-projects.constants.d.ts +12 -0
  382. package/dist/store/sqlite/list-projects.constants.d.ts.map +1 -0
  383. package/dist/store/sqlite/list-projects.d.ts +22 -0
  384. package/dist/store/sqlite/list-projects.d.ts.map +1 -0
  385. package/dist/store/sqlite/list-projects.types.d.ts +28 -0
  386. package/dist/store/sqlite/list-projects.types.d.ts.map +1 -0
  387. package/dist/store/sqlite/load-sqlite.d.ts +11 -0
  388. package/dist/store/sqlite/load-sqlite.d.ts.map +1 -0
  389. package/dist/store/sqlite/runtime/close-engine.d.ts +18 -0
  390. package/dist/store/sqlite/runtime/close-engine.d.ts.map +1 -0
  391. package/dist/store/sqlite/runtime/install-pool.d.ts +94 -0
  392. package/dist/store/sqlite/runtime/install-pool.d.ts.map +1 -0
  393. package/dist/store/sqlite/runtime/pool-header.d.ts +13 -0
  394. package/dist/store/sqlite/runtime/pool-header.d.ts.map +1 -0
  395. package/dist/store/sqlite/runtime/progress-beat.d.ts +13 -0
  396. package/dist/store/sqlite/runtime/progress-beat.d.ts.map +1 -0
  397. package/dist/store/sqlite/runtime/runtime.constants.d.ts +57 -0
  398. package/dist/store/sqlite/runtime/runtime.constants.d.ts.map +1 -0
  399. package/dist/store/sqlite/runtime/runtime.types.d.ts +56 -0
  400. package/dist/store/sqlite/runtime/runtime.types.d.ts.map +1 -0
  401. package/dist/store/sqlite/runtime/serve-dialecte-engine.d.ts +16 -0
  402. package/dist/store/sqlite/runtime/serve-dialecte-engine.d.ts.map +1 -0
  403. package/dist/store/sqlite/sqlite-store-of.d.ts +7 -0
  404. package/dist/store/sqlite/sqlite-store-of.d.ts.map +1 -0
  405. package/dist/store/sqlite/sqlite-text.d.ts +20 -0
  406. package/dist/store/sqlite/sqlite-text.d.ts.map +1 -0
  407. package/dist/store/sqlite/sqlite-wasm-url.d.ts +9 -0
  408. package/dist/store/sqlite/sqlite-wasm-url.d.ts.map +1 -0
  409. package/dist/store/sqlite/sqlite.constants.d.ts +15 -0
  410. package/dist/store/sqlite/sqlite.constants.d.ts.map +1 -0
  411. package/dist/store/sqlite/sqlite.types.d.ts +36 -0
  412. package/dist/store/sqlite/sqlite.types.d.ts.map +1 -0
  413. package/dist/store/sqlite-storage.constants.d.ts +14 -0
  414. package/dist/store/sqlite-storage.constants.d.ts.map +1 -0
  415. package/dist/store/sqlite-storage.d.ts +22 -0
  416. package/dist/store/sqlite-storage.d.ts.map +1 -0
  417. package/dist/store/sqlite-storage.types.d.ts +24 -0
  418. package/dist/store/sqlite-storage.types.d.ts.map +1 -0
  419. package/dist/store/store-errors.d.ts +51 -0
  420. package/dist/store/store-errors.d.ts.map +1 -0
  421. package/dist/store/store.constants.d.ts +15 -3
  422. package/dist/store/store.constants.d.ts.map +1 -1
  423. package/dist/store/store.types.d.ts +280 -16
  424. package/dist/store/store.types.d.ts.map +1 -1
  425. package/dist/store/stored-record.d.ts +16 -0
  426. package/dist/store/stored-record.d.ts.map +1 -0
  427. package/dist/store/unfinished-imports.d.ts +15 -0
  428. package/dist/store/unfinished-imports.d.ts.map +1 -0
  429. package/dist/store/write-outcome.d.ts +34 -0
  430. package/dist/store/write-outcome.d.ts.map +1 -0
  431. package/dist/test/assert-valid-xml/assert-valid-xml.constants.d.ts +7 -0
  432. package/dist/test/assert-valid-xml/assert-valid-xml.constants.d.ts.map +1 -0
  433. package/dist/test/assert-valid-xml/assert-valid-xml.d.ts +19 -18
  434. package/dist/test/assert-valid-xml/assert-valid-xml.d.ts.map +1 -1
  435. package/dist/test/assert-valid-xml/assert-valid-xml.types.d.ts +8 -4
  436. package/dist/test/assert-valid-xml/assert-valid-xml.types.d.ts.map +1 -1
  437. package/dist/test/assert-xml/assert-xml.constants.d.ts +25 -0
  438. package/dist/test/assert-xml/assert-xml.constants.d.ts.map +1 -0
  439. package/dist/test/assert-xml/assert-xml.d.ts +23 -34
  440. package/dist/test/assert-xml/assert-xml.d.ts.map +1 -1
  441. package/dist/test/assert-xml/assert-xml.types.d.ts +48 -0
  442. package/dist/test/assert-xml/assert-xml.types.d.ts.map +1 -0
  443. package/dist/test/assert-xml/describe-nearby.d.ts +16 -0
  444. package/dist/test/assert-xml/describe-nearby.d.ts.map +1 -0
  445. package/dist/test/assert-xml/describe-node-place.d.ts +15 -0
  446. package/dist/test/assert-xml/describe-node-place.d.ts.map +1 -0
  447. package/dist/test/assert-xml/index.d.ts +1 -1
  448. package/dist/test/assert-xml/index.d.ts.map +1 -1
  449. package/dist/test/assert-xml/query-failure-message.d.ts +24 -0
  450. package/dist/test/assert-xml/query-failure-message.d.ts.map +1 -0
  451. package/dist/test/assert-xml/read-xpath-step.d.ts +8 -0
  452. package/dist/test/assert-xml/read-xpath-step.d.ts.map +1 -0
  453. package/dist/test/assert-xml/xpath-parser.d.ts +2 -1
  454. package/dist/test/assert-xml/xpath-parser.d.ts.map +1 -1
  455. package/dist/test/config.d.ts +5 -0
  456. package/dist/test/config.d.ts.map +1 -1
  457. package/dist/test/constant.d.ts +2 -0
  458. package/dist/test/constant.d.ts.map +1 -1
  459. package/dist/test/create-test-dialecte.d.ts +32 -37
  460. package/dist/test/create-test-dialecte.d.ts.map +1 -1
  461. package/dist/test/create-test-dialecte.types.d.ts +99 -0
  462. package/dist/test/create-test-dialecte.types.d.ts.map +1 -0
  463. package/dist/test/create-test-helpers-internal.types.d.ts +19 -0
  464. package/dist/test/create-test-helpers-internal.types.d.ts.map +1 -0
  465. package/dist/test/create-test-helpers.d.ts +13 -0
  466. package/dist/test/create-test-helpers.d.ts.map +1 -0
  467. package/dist/test/create-test-helpers.types.d.ts +50 -0
  468. package/dist/test/create-test-helpers.types.d.ts.map +1 -0
  469. package/dist/test/fixtures/test-entry-scan-constraint.d.ts +3 -0
  470. package/dist/test/fixtures/test-entry-scan-constraint.d.ts.map +1 -0
  471. package/dist/test/fixtures/test-entry-scan-edges.types.d.ts +10 -0
  472. package/dist/test/fixtures/test-entry-scan-edges.types.d.ts.map +1 -0
  473. package/dist/test/fixtures/test-entry-scan-recursive.d.ts +4 -0
  474. package/dist/test/fixtures/test-entry-scan-recursive.d.ts.map +1 -0
  475. package/dist/test/fixtures/test-entry-scan-recursive.types.d.ts +15 -0
  476. package/dist/test/fixtures/test-entry-scan-recursive.types.d.ts.map +1 -0
  477. package/dist/test/fixtures/test-entry-scan-shapes.d.ts +14 -0
  478. package/dist/test/fixtures/test-entry-scan-shapes.d.ts.map +1 -0
  479. package/dist/test/fixtures/test-entry-scan-shapes.types.d.ts +14 -0
  480. package/dist/test/fixtures/test-entry-scan-shapes.types.d.ts.map +1 -0
  481. package/dist/test/fixtures/test-entry-scan-tree.d.ts +3 -0
  482. package/dist/test/fixtures/test-entry-scan-tree.d.ts.map +1 -0
  483. package/dist/test/fixtures/test-entry-scan.d.ts +5 -0
  484. package/dist/test/fixtures/test-entry-scan.d.ts.map +1 -0
  485. package/dist/test/fixtures/test-entry-scan.types.d.ts +5 -0
  486. package/dist/test/fixtures/test-entry-scan.types.d.ts.map +1 -0
  487. package/dist/test/generated/definition.generated.d.ts +5 -0
  488. package/dist/test/generated/definition.generated.d.ts.map +1 -1
  489. package/dist/test/in-memory-storage.setup.d.ts +2 -0
  490. package/dist/test/in-memory-storage.setup.d.ts.map +1 -0
  491. package/dist/test/index.d.ts +6 -0
  492. package/dist/test/index.d.ts.map +1 -1
  493. package/dist/test/normalize-uuids.constants.d.ts +3 -0
  494. package/dist/test/normalize-uuids.constants.d.ts.map +1 -0
  495. package/dist/test/normalize-uuids.d.ts +12 -0
  496. package/dist/test/normalize-uuids.d.ts.map +1 -1
  497. package/dist/test/run-test-cases.d.ts +30 -11
  498. package/dist/test/run-test-cases.d.ts.map +1 -1
  499. package/dist/test/run-test-cases.type.d.ts +16 -0
  500. package/dist/test/run-test-cases.type.d.ts.map +1 -1
  501. package/dist/test/sqlite-storage.setup.d.ts +1 -0
  502. package/dist/test/sqlite-storage.setup.d.ts.map +1 -0
  503. package/dist/test/test-dialecte-setup.d.ts +31 -0
  504. package/dist/test/test-dialecte-setup.d.ts.map +1 -0
  505. package/dist/test/test-dialecte-setup.types.d.ts +29 -0
  506. package/dist/test/test-dialecte-setup.types.d.ts.map +1 -0
  507. package/dist/test/test-dialecte.d.ts +2722 -0
  508. package/dist/test/test-dialecte.d.ts.map +1 -0
  509. package/dist/test/test-dialecte.types.d.ts +3 -0
  510. package/dist/test/test-dialecte.types.d.ts.map +1 -0
  511. package/dist/test/test-dialecte.worker.d.ts +2 -0
  512. package/dist/test/test-dialecte.worker.d.ts.map +1 -0
  513. package/dist/test/test-entry-environment.constants.d.ts +27 -0
  514. package/dist/test/test-entry-environment.constants.d.ts.map +1 -0
  515. package/dist/test/test-record.d.ts +49 -1
  516. package/dist/test/test-record.d.ts.map +1 -1
  517. package/dist/test/test-storage/index.d.ts +5 -0
  518. package/dist/test/test-storage/index.d.ts.map +1 -0
  519. package/dist/test/test-storage/read-test-storage.d.ts +4 -0
  520. package/dist/test/test-storage/read-test-storage.d.ts.map +1 -0
  521. package/dist/test/test-storage/resolve-test-storage.d.ts +9 -0
  522. package/dist/test/test-storage/resolve-test-storage.d.ts.map +1 -0
  523. package/dist/test/test-storage/test-storage.constants.d.ts +9 -0
  524. package/dist/test/test-storage/test-storage.constants.d.ts.map +1 -0
  525. package/dist/test/test-storage/test-storage.types.d.ts +15 -0
  526. package/dist/test/test-storage/test-storage.types.d.ts.map +1 -0
  527. package/dist/test/test-storage/test-store-for.d.ts +19 -0
  528. package/dist/test/test-storage/test-store-for.d.ts.map +1 -0
  529. package/dist/test/test-storage/use-test-storage.d.ts +14 -0
  530. package/dist/test/test-storage/use-test-storage.d.ts.map +1 -0
  531. package/dist/test/test-timing.constants.d.ts +15 -0
  532. package/dist/test/test-timing.constants.d.ts.map +1 -0
  533. package/dist/test/xml/engine-console.d.ts +6 -0
  534. package/dist/test/xml/engine-console.d.ts.map +1 -0
  535. package/dist/test/xml/engine.d.ts +3 -0
  536. package/dist/test/xml/engine.d.ts.map +1 -0
  537. package/dist/test/xml/index.d.ts +8 -0
  538. package/dist/test/xml/index.d.ts.map +1 -0
  539. package/dist/test/xml/malformed-xml-error.d.ts +5 -0
  540. package/dist/test/xml/malformed-xml-error.d.ts.map +1 -0
  541. package/dist/test/xml/print-node.d.ts +7 -0
  542. package/dist/test/xml/print-node.d.ts.map +1 -0
  543. package/dist/test/xml/select-nodes.d.ts +14 -0
  544. package/dist/test/xml/select-nodes.d.ts.map +1 -0
  545. package/dist/test/xml/with-xml-document.constants.d.ts +7 -0
  546. package/dist/test/xml/with-xml-document.constants.d.ts.map +1 -0
  547. package/dist/test/xml/with-xml-document.d.ts +14 -0
  548. package/dist/test/xml/with-xml-document.d.ts.map +1 -0
  549. package/dist/test/xml/xml-query-refused-error.d.ts +13 -0
  550. package/dist/test/xml/xml-query-refused-error.d.ts.map +1 -0
  551. package/dist/test/xml/xml.constants.d.ts +16 -0
  552. package/dist/test/xml/xml.constants.d.ts.map +1 -0
  553. package/dist/test/xml/xml.types.d.ts +31 -0
  554. package/dist/test/xml/xml.types.d.ts.map +1 -0
  555. package/dist/test/xsd/test-ext.xsd +226 -0
  556. package/dist/test/xsd/test.xsd +528 -0
  557. package/dist/test.js +3427 -406
  558. package/dist/types/dialecte-config.d.ts +6 -0
  559. package/dist/types/dialecte-config.d.ts.map +1 -1
  560. package/dist/types/io.d.ts +33 -25
  561. package/dist/types/io.d.ts.map +1 -1
  562. package/dist/utils/attribute-rules.d.ts +16 -1
  563. package/dist/utils/attribute-rules.d.ts.map +1 -1
  564. package/dist/utils/child-occurrences.constants.d.ts +4 -0
  565. package/dist/utils/child-occurrences.constants.d.ts.map +1 -0
  566. package/dist/utils/child-occurrences.d.ts +17 -0
  567. package/dist/utils/child-occurrences.d.ts.map +1 -0
  568. package/dist/utils/child-occurrences.types.d.ts +6 -0
  569. package/dist/utils/child-occurrences.types.d.ts.map +1 -0
  570. package/dist/utils/datatype.d.ts +4 -0
  571. package/dist/utils/datatype.d.ts.map +1 -1
  572. package/dist/utils/format-xml.d.ts +4 -0
  573. package/dist/utils/format-xml.d.ts.map +1 -1
  574. package/dist/utils/index.d.ts +5 -1
  575. package/dist/utils/index.d.ts.map +1 -1
  576. package/dist/utils/invariant.d.ts +2 -0
  577. package/dist/utils/invariant.d.ts.map +1 -1
  578. package/dist/utils/namespaces.d.ts +15 -1
  579. package/dist/utils/namespaces.d.ts.map +1 -1
  580. package/dist/utils/order-children.d.ts +14 -3
  581. package/dist/utils/order-children.d.ts.map +1 -1
  582. package/dist/utils/order-children.types.d.ts +10 -0
  583. package/dist/utils/order-children.types.d.ts.map +1 -0
  584. package/dist/utils/particle-occurrences.d.ts +4 -0
  585. package/dist/utils/particle-occurrences.d.ts.map +1 -0
  586. package/dist/utils/required-choices.d.ts +17 -0
  587. package/dist/utils/required-choices.d.ts.map +1 -0
  588. package/dist/utils/required-choices.types.d.ts +15 -0
  589. package/dist/utils/required-choices.types.d.ts.map +1 -0
  590. package/dist/utils/resolve-definition.d.ts +4 -0
  591. package/dist/utils/resolve-definition.d.ts.map +1 -1
  592. package/dist/utils/save-to-disk.constants.d.ts +3 -0
  593. package/dist/utils/save-to-disk.constants.d.ts.map +1 -0
  594. package/dist/utils/save-to-disk.d.ts +17 -5
  595. package/dist/utils/save-to-disk.d.ts.map +1 -1
  596. package/dist/utils/save-to-disk.types.d.ts +17 -0
  597. package/dist/utils/save-to-disk.types.d.ts.map +1 -0
  598. package/dist/utils/seeded-uuid.constants.d.ts +5 -0
  599. package/dist/utils/seeded-uuid.constants.d.ts.map +1 -0
  600. package/dist/utils/seeded-uuid.d.ts +15 -0
  601. package/dist/utils/seeded-uuid.d.ts.map +1 -0
  602. package/dist/utils/seeded-uuid.types.d.ts +8 -0
  603. package/dist/utils/seeded-uuid.types.d.ts.map +1 -0
  604. package/dist/utils/tell-listener.constants.d.ts +9 -0
  605. package/dist/utils/tell-listener.constants.d.ts.map +1 -0
  606. package/dist/utils/tell-listener.d.ts +24 -0
  607. package/dist/utils/tell-listener.d.ts.map +1 -0
  608. package/dist/utils/xml-characters.constants.d.ts +9 -0
  609. package/dist/utils/xml-characters.constants.d.ts.map +1 -0
  610. package/dist/utils/xml-characters.d.ts +8 -0
  611. package/dist/utils/xml-characters.d.ts.map +1 -0
  612. package/dist/utils/xml-whitespace.constants.d.ts +8 -0
  613. package/dist/utils/xml-whitespace.constants.d.ts.map +1 -0
  614. package/dist/utils/xml-whitespace.d.ts +19 -0
  615. package/dist/utils/xml-whitespace.d.ts.map +1 -0
  616. package/dist/utils/xsi-type.d.ts +4 -0
  617. package/dist/utils/xsi-type.d.ts.map +1 -1
  618. package/dist/utils/yield-to-queue.d.ts +6 -0
  619. package/dist/utils/yield-to-queue.d.ts.map +1 -0
  620. package/dist/utils-USNkj4sT.js +1275 -0
  621. package/dist/utils.js +1 -2
  622. package/dist/xml/build/document-root.d.ts +7 -0
  623. package/dist/xml/build/document-root.d.ts.map +1 -0
  624. package/dist/xml/build/index.d.ts +0 -5
  625. package/dist/xml/build/index.d.ts.map +1 -1
  626. package/dist/xml/build/record-element.d.ts +15 -0
  627. package/dist/xml/build/record-element.d.ts.map +1 -0
  628. package/dist/xml/build/record-element.types.d.ts +12 -0
  629. package/dist/xml/build/record-element.types.d.ts.map +1 -0
  630. package/dist/xml/build/write-xml-records.d.ts +7 -0
  631. package/dist/xml/build/write-xml-records.d.ts.map +1 -0
  632. package/dist/xml/build/write-xml-records.types.d.ts +11 -0
  633. package/dist/xml/build/write-xml-records.types.d.ts.map +1 -0
  634. package/dist/xml/build/xml-element.d.ts +79 -0
  635. package/dist/xml/build/xml-element.d.ts.map +1 -0
  636. package/dist/xml/build/xml-element.types.d.ts +34 -0
  637. package/dist/xml/build/xml-element.types.d.ts.map +1 -0
  638. package/dist/xml/build/xml-writer.constants.d.ts +24 -0
  639. package/dist/xml/build/xml-writer.constants.d.ts.map +1 -0
  640. package/dist/xml/build/xml-writer.d.ts +40 -0
  641. package/dist/xml/build/xml-writer.d.ts.map +1 -0
  642. package/dist/xml/build/xml-writer.types.d.ts +34 -0
  643. package/dist/xml/build/xml-writer.types.d.ts.map +1 -0
  644. package/dist/xml/dom/index.d.ts +3 -0
  645. package/dist/xml/dom/index.d.ts.map +1 -0
  646. package/dist/xml/dom/xml-document-from-file.d.ts +10 -0
  647. package/dist/xml/dom/xml-document-from-file.d.ts.map +1 -0
  648. package/dist/xml/dom/xml-document-from-file.types.d.ts +5 -0
  649. package/dist/xml/dom/xml-document-from-file.types.d.ts.map +1 -0
  650. package/dist/xml/index.d.ts +1 -0
  651. package/dist/xml/index.d.ts.map +1 -1
  652. package/dist/xml/inspect-xml.d.ts +2 -0
  653. package/dist/xml/inspect-xml.d.ts.map +1 -1
  654. package/dist/xml/parse/index.d.ts +1 -1
  655. package/dist/xml/parse/index.d.ts.map +1 -1
  656. package/dist/xml/parse/parse-xml-document.constants.d.ts +5 -0
  657. package/dist/xml/parse/parse-xml-document.constants.d.ts.map +1 -0
  658. package/dist/xml/parse/parse-xml-document.d.ts +13 -2
  659. package/dist/xml/parse/parse-xml-document.d.ts.map +1 -1
  660. package/dist/xml/parse/parse-xml-document.types.d.ts +12 -2
  661. package/dist/xml/parse/parse-xml-document.types.d.ts.map +1 -1
  662. package/dist/xml/parse/parser.constants.d.ts +7 -0
  663. package/dist/xml/parse/parser.constants.d.ts.map +1 -0
  664. package/dist/xml/parse/parser.d.ts +4 -2
  665. package/dist/xml/parse/parser.d.ts.map +1 -1
  666. package/dist/xml/parse/types.d.ts +2 -0
  667. package/dist/xml/parse/types.d.ts.map +1 -1
  668. package/package.json +88 -8
  669. package/skills/dialecte/SKILL.md +276 -0
  670. package/skills/dialecte/references/api.json +1830 -0
  671. package/skills/dialecte/references/api.md +557 -0
  672. package/skills/dialecte/references/core-api.md +204 -0
  673. package/skills/dialecte/references/testing.md +116 -0
  674. package/skills/dialecte-contributing/SKILL.md +328 -0
  675. package/skills/dialecte-contributing/references/code-rules.md +108 -0
  676. package/skills/dialecte-contributing/references/landing-changes.md +83 -0
  677. package/skills/dialecte-contributing/references/perf.md +39 -0
  678. package/skills/dialecte-contributing/references/traps.md +89 -0
  679. package/skills/dialecte-lot/SKILL.md +471 -0
  680. package/skills/dialecte-lot/references/briefs.md +152 -0
  681. package/skills/dialecte-lot/references/model-tiers.md +52 -0
  682. package/skills/dialecte-lot/references/retro.md +51 -0
  683. package/dist/project/io/import-document.d.ts +0 -7
  684. package/dist/project/io/import-document.d.ts.map +0 -1
  685. package/dist/test/assert-xml/types.d.ts +0 -2
  686. package/dist/test/assert-xml/types.d.ts.map +0 -1
  687. package/dist/utils-CTBHUFs9.js +0 -620
  688. package/dist/xml/build/build-xml-document.d.ts +0 -10
  689. package/dist/xml/build/build-xml-document.d.ts.map +0 -1
  690. package/dist/xml/build/build-xml-document.types.d.ts +0 -22
  691. package/dist/xml/build/build-xml-document.types.d.ts.map +0 -1
  692. package/dist/xml/build/download-file.d.ts +0 -7
  693. package/dist/xml/build/download-file.d.ts.map +0 -1
  694. package/dist/xml/build/formatter.d.ts +0 -2
  695. package/dist/xml/build/formatter.d.ts.map +0 -1
  696. package/dist/xml/build/serialize.d.ts +0 -11
  697. package/dist/xml/build/serialize.d.ts.map +0 -1
  698. package/dist/xml/build/serialize.types.d.ts +0 -12
  699. package/dist/xml/build/serialize.types.d.ts.map +0 -1
package/dist/utils.js CHANGED
@@ -1,2 +1 @@
1
- import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, y as b } from "./utils-CTBHUFs9.js";
2
- export { y as admittedXsiTypes, r as canonicalXsiType, h as compareQualifiedAttributes, o as enumeratedValues, d as extractLocalName, v as formatEmbeddedXml, a as formatXml, c as getAttributeRules, u as invariant, l as isNamespaceAllowedByWildcard, s as isSchemaDefaultValue, n as orderAttributesBySequence, f as orderByConfigSequence, b as resolveDefinition, p as resolveNamespaceByPrefix, g as resolveNamespaceByScope, i as resolvePrefixByNamespaceScope, t as resolveSchemaAttributeValue, e as resolveXsiType, _ as saveToDisk, m as valuePatterns };
1
+ export { C as admittedXsiTypes, T as canonicalXsiType, v as childOccurrences, o as compareQualifiedAttributes, t as createSeededRandomUuid, g as enumeratedValues, y as extractLocalName, p as formatEmbeddedXml, m as formatXml, b as getAttributeRules, f as invariant, s as isNamespaceAllowedByWildcard, x as isSchemaDefaultValue, c as orderAttributesBySequence, a as orderByConfigSequence, i as requiredChoices, w as resolveDefinition, l as resolveNamespaceByPrefix, u as resolveNamespaceByScope, d as resolvePrefixByNamespaceScope, S as resolveSchemaAttributeValue, D as resolveXsiType, r as saveToDisk, _ as valuePatterns } from "./utils-USNkj4sT.js";
@@ -0,0 +1,7 @@
1
+ import { AnyDialecteConfig, AnyRawRecord } from '../../types';
2
+ /** Whether the record is its document's root element: the dialecte's root tag, with no parent. */
3
+ export declare function isDocumentRoot(params: {
4
+ record: AnyRawRecord;
5
+ config: AnyDialecteConfig;
6
+ }): boolean;
7
+ //# sourceMappingURL=document-root.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-root.d.ts","sourceRoot":"","sources":["../../../src/xml/build/document-root.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE9D,kGAAkG;AAClG,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACtC,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,iBAAiB,CAAA;CACzB,GAAG,OAAO,CAGV"}
@@ -1,7 +1,2 @@
1
- export * from './formatter';
2
1
  export * from './constant';
3
- export { downloadFile } from './download-file';
4
- export { xmlDocumentToString } from './serialize';
5
- export { buildXmlDocument } from './build-xml-document';
6
- export type { BuildXmlDocumentParams } from './build-xml-document.types';
7
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/xml/build/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/xml/build/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { RecordElementContext } from './record-element.types';
2
+ import { XmlElement } from './xml-element.types';
3
+ import { AnyRawRecord } from '../../types';
4
+ /**
5
+ * The element a record is written as, with what the document holds on it: its attributes, the required and fixed
6
+ * attributes the schema asks for and the record does not hold, its xsi:type prefix bound, the namespaces it needs
7
+ * declared on the written root (where it is the root: the root attributes those namespaces bring), and its database
8
+ * id when asked. Its text and children are the writer's.
9
+ */
10
+ export declare function createRecordElement(params: {
11
+ context: RecordElementContext;
12
+ record: AnyRawRecord;
13
+ parent: XmlElement | undefined;
14
+ }): XmlElement;
15
+ //# sourceMappingURL=record-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-element.d.ts","sourceRoot":"","sources":["../../../src/xml/build/record-element.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAIX,YAAY,EAEZ,MAAM,SAAS,CAAA;AAEhB;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAC3C,OAAO,EAAE,oBAAoB,CAAA;IAC7B,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,UAAU,GAAG,SAAS,CAAA;CAC9B,GAAG,UAAU,CAKb"}
@@ -0,0 +1,12 @@
1
+ import { XmlElement } from './xml-element.types';
2
+ import { AnyDialecteConfig, AnyRawRecord } from '../../types';
3
+ /** What every element of one written document is made with; `rootElement` is the written root once created. */
4
+ export type RecordElementContext = {
5
+ config: AnyDialecteConfig;
6
+ declareNamespaces: boolean;
7
+ withDatabaseIds: boolean;
8
+ /** The document's root record; `undefined` for a fragment, which gets no root attributes. */
9
+ documentRoot: AnyRawRecord | undefined;
10
+ rootElement: XmlElement | undefined;
11
+ };
12
+ //# sourceMappingURL=record-element.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-element.types.d.ts","sourceRoot":"","sources":["../../../src/xml/build/record-element.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE9D,+GAA+G;AAC/G,MAAM,MAAM,oBAAoB,GAAG;IAClC,MAAM,EAAE,iBAAiB,CAAA;IACzB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,eAAe,EAAE,OAAO,CAAA;IACxB,6FAA6F;IAC7F,YAAY,EAAE,YAAY,GAAG,SAAS,CAAA;IACtC,WAAW,EAAE,UAAU,GAAG,SAAS,CAAA;CACnC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { WriteXmlRecordsParams } from './write-xml-records.types';
2
+ /**
3
+ * Write a document (or the fragment rooted at `rootId`) held as a list of records: the bytes the store's export
4
+ * writes for the same records. Children follow the dialecte's sequence.
5
+ */
6
+ export declare function writeXmlRecords(params: WriteXmlRecordsParams): string;
7
+ //# sourceMappingURL=write-xml-records.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"write-xml-records.d.ts","sourceRoot":"","sources":["../../../src/xml/build/write-xml-records.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AAGtE;;;GAGG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,qBAAqB,GAAG,MAAM,CAgCrE"}
@@ -0,0 +1,11 @@
1
+ import { AnyDialecteConfig, AnyRawRecord } from '../../types';
2
+ export type WriteXmlRecordsParams = {
3
+ records: AnyRawRecord[];
4
+ config: AnyDialecteConfig;
5
+ rootId?: string;
6
+ declareNamespaces?: boolean;
7
+ includeXmlDeclaration?: boolean;
8
+ withDatabaseIds?: boolean;
9
+ indent?: boolean;
10
+ };
11
+ //# sourceMappingURL=write-xml-records.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"write-xml-records.types.d.ts","sourceRoot":"","sources":["../../../src/xml/build/write-xml-records.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE9D,MAAM,MAAM,qBAAqB,GAAG;IACnC,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,MAAM,EAAE,iBAAiB,CAAA;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,MAAM,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA"}
@@ -0,0 +1,79 @@
1
+ import { GeneratedPrefixes, NamespaceScope, XmlElement } from './xml-element.types';
2
+ /** An element named as `createElementNS` (with a namespace) or `createElement` (without) names it. */
3
+ export declare function createXmlElement(params: {
4
+ namespaceURI: string | null;
5
+ qualifiedName: string;
6
+ parent: XmlElement | undefined;
7
+ }): XmlElement;
8
+ /** `setAttribute`: the attribute of that qualified name takes the value, or a new one in no namespace is added last. */
9
+ export declare function setAttribute(params: {
10
+ element: XmlElement;
11
+ qualifiedName: string;
12
+ value: string;
13
+ }): void;
14
+ /**
15
+ * `setAttributeNS`: the attribute of that namespace and local name takes the value (keeping its prefix), or a new one
16
+ * is added last.
17
+ */
18
+ export declare function setAttributeNS(params: {
19
+ element: XmlElement;
20
+ namespaceURI: string;
21
+ qualifiedName: string;
22
+ value: string;
23
+ }): void;
24
+ /** `hasAttribute`: an attribute of that qualified name, whatever its namespace. */
25
+ export declare function hasAttribute(params: {
26
+ element: XmlElement;
27
+ qualifiedName: string;
28
+ }): boolean;
29
+ /** `getAttributeNS`: the value of the attribute of that namespace and local name, `null` when absent. */
30
+ export declare function getAttributeNS(params: {
31
+ element: XmlElement;
32
+ namespaceURI: string;
33
+ localName: string;
34
+ }): string | null;
35
+ /** `hasAttributeNS`: an attribute of that namespace and local name. */
36
+ export declare function hasAttributeNS(params: {
37
+ element: XmlElement;
38
+ namespaceURI: string;
39
+ localName: string;
40
+ }): boolean;
41
+ /** The namespace a prefix (`null` = the default) names where the element stands: its own name, its declarations, its ancestors'. */
42
+ export declare function lookupNamespaceURI(params: {
43
+ element: XmlElement;
44
+ prefix: string | null;
45
+ }): string | null;
46
+ /** A prefix bound to the namespace where the element stands: its own name's, its declarations', its ancestors'. */
47
+ export declare function lookupPrefix(params: {
48
+ element: XmlElement;
49
+ namespaceURI: string;
50
+ }): string | null;
51
+ /**
52
+ * The start tag `XMLSerializer` writes for the element where `scope` is in force, without its closing `>` or `/>`,
53
+ * and the scope its children stand in. The element's own declarations count before anything is written; a namespace
54
+ * its name or an attribute needs and that is not bound there is declared where it is needed: right after the name for
55
+ * the element's, right before the attribute for an attribute's.
56
+ */
57
+ export declare function serializeStartTag(params: {
58
+ element: XmlElement;
59
+ scope: NamespaceScope;
60
+ prefixes: GeneratedPrefixes;
61
+ }): {
62
+ text: string;
63
+ scope: NamespaceScope;
64
+ /** The prefixes declared here for an attribute only (not by the element's own declarations or name) */
65
+ generated: ReadonlySet<string>;
66
+ };
67
+ /**
68
+ * A text value of the compact layout: as `XMLSerializer` writes it, and a carriage return as `&#13;`, so a reader
69
+ * of the file gets the value back (XML reads a raw carriage return as a line feed).
70
+ */
71
+ export declare function escapeCompactTextValue(value: string): string;
72
+ /** A text value as `XMLSerializer` writes it. */
73
+ export declare function escapeTextValue(value: string): string;
74
+ /** The name as written: `prefix:localName`, or the local name alone. */
75
+ export declare function qualifiedNameOf(node: {
76
+ prefix: string | null;
77
+ localName: string;
78
+ }): string;
79
+ //# sourceMappingURL=xml-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xml-element.d.ts","sourceRoot":"","sources":["../../../src/xml/build/xml-element.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACX,iBAAiB,EACjB,cAAc,EAEd,UAAU,EACV,MAAM,qBAAqB,CAAA;AAI5B,sGAAsG;AACtG,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IACxC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,aAAa,EAAE,MAAM,CAAA;IACrB,MAAM,EAAE,UAAU,GAAG,SAAS,CAAA;CAC9B,GAAG,UAAU,CAOb;AAED,wHAAwH;AACxH,wBAAgB,YAAY,CAAC,MAAM,EAAE;IACpC,OAAO,EAAE,UAAU,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;CACb,GAAG,IAAI,CAUP;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACtC,OAAO,EAAE,UAAU,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;CACb,GAAG,IAAI,CASP;AAED,mFAAmF;AACnF,wBAAgB,YAAY,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,UAAU,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAG5F;AAED,yGAAyG;AACzG,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACtC,OAAO,EAAE,UAAU,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;CACjB,GAAG,MAAM,GAAG,IAAI,CAEhB;AAED,uEAAuE;AACvE,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACtC,OAAO,EAAE,UAAU,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;CACjB,GAAG,OAAO,CAEV;AAID,oIAAoI;AACpI,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IAC1C,OAAO,EAAE,UAAU,CAAA;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB,GAAG,MAAM,GAAG,IAAI,CAUhB;AAED,mHAAmH;AACnH,wBAAgB,YAAY,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE,UAAU,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,GAAG,IAAI,CAcjG;AAID;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IACzC,OAAO,EAAE,UAAU,CAAA;IACnB,KAAK,EAAE,cAAc,CAAA;IACrB,QAAQ,EAAE,iBAAiB,CAAA;CAC3B,GAAG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,cAAc,CAAA;IACrB,uGAAuG;IACvG,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CAC9B,CAsDA;AA8DD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAG5D;AAED,iDAAiD;AACjD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGrD;AAcD,wEAAwE;AACxE,wBAAgB,eAAe,CAAC,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAE1F"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * An attribute as a DOM element holds it: its namespace, the prefix it was set with, its local name (the whole name
3
+ * for an attribute set without a namespace) and its value.
4
+ */
5
+ export type XmlAttribute = {
6
+ namespaceURI: string | null;
7
+ prefix: string | null;
8
+ localName: string;
9
+ value: string;
10
+ };
11
+ /**
12
+ * An element as the writer models it: what the DOM builder set on it, in the order it set it, and its parent. The
13
+ * namespace lookups and the serializer read it the way a DOM element is read; no DOM is needed.
14
+ */
15
+ export type XmlElement = {
16
+ namespaceURI: string | null;
17
+ prefix: string | null;
18
+ localName: string;
19
+ attributes: XmlAttribute[];
20
+ parent: XmlElement | undefined;
21
+ };
22
+ /**
23
+ * The prefixes bound where an element stands (`''` = the default namespace): the bindings an element added, then its
24
+ * ancestors' scope. An element that binds nothing shares its parent's scope.
25
+ */
26
+ export type NamespaceScope = {
27
+ readonly bindings: ReadonlyMap<string, string>;
28
+ readonly parent: NamespaceScope | undefined;
29
+ };
30
+ /** The number of the next prefix the serializer generates (`ns<k>`) for an attribute whose prefix is taken. */
31
+ export type GeneratedPrefixes = {
32
+ next: number;
33
+ };
34
+ //# sourceMappingURL=xml-element.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xml-element.types.d.ts","sourceRoot":"","sources":["../../../src/xml/build/xml-element.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IAC1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,YAAY,EAAE,CAAA;IAC1B,MAAM,EAAE,UAAU,GAAG,SAAS,CAAA;CAC9B,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC5B,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9C,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,SAAS,CAAA;CAC3C,CAAA;AAED,+GAA+G;AAC/G,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { NamespaceScope } from './xml-element.types';
2
+ /** The XML declaration every written document starts with, unless asked without one. */
3
+ export declare const XML_DECLARATION = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
4
+ /** The namespace of the `xml:` prefix, bound everywhere without a declaration. */
5
+ export declare const XML_NAMESPACE_URI = "http://www.w3.org/XML/1998/namespace";
6
+ /** The line break of the formatted layout. */
7
+ export declare const LINE_SEPARATOR = "\r\n";
8
+ /** One level of indentation of the formatted layout. */
9
+ export declare const INDENTATION = " ";
10
+ /** The characters `XMLSerializer` escapes in an attribute value, and in a text value. */
11
+ export declare const ATTRIBUTE_ESCAPED: RegExp;
12
+ export declare const ATTRIBUTE_ESCAPED_ALL: RegExp;
13
+ export declare const TEXT_ESCAPED: RegExp;
14
+ export declare const TEXT_ESCAPED_ALL: RegExp;
15
+ /** In the compact layout a text value's carriage return is escaped too. */
16
+ export declare const COMPACT_TEXT_ESCAPED: RegExp;
17
+ export declare const COMPACT_TEXT_ESCAPED_ALL: RegExp;
18
+ /** The reference each escaped character is written as. */
19
+ export declare const ESCAPES: Record<string, string>;
20
+ /** Where the written root stands: nothing bound. */
21
+ export declare const EMPTY_SCOPE: NamespaceScope;
22
+ /** No prefix: what an element that generates none answers, shared. */
23
+ export declare const NO_PREFIXES: ReadonlySet<string>;
24
+ //# sourceMappingURL=xml-writer.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xml-writer.constants.d.ts","sourceRoot":"","sources":["../../../src/xml/build/xml-writer.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEzD,wFAAwF;AACxF,eAAO,MAAM,eAAe,+CAA2C,CAAA;AAEvE,kFAAkF;AAClF,eAAO,MAAM,iBAAiB,yCAAyC,CAAA;AAEvE,8CAA8C;AAC9C,eAAO,MAAM,cAAc,SAAS,CAAA;AAEpC,wDAAwD;AACxD,eAAO,MAAM,WAAW,SAAS,CAAA;AAEjC,yFAAyF;AACzF,eAAO,MAAM,iBAAiB,QAAiB,CAAA;AAC/C,eAAO,MAAM,qBAAqB,QAAkB,CAAA;AACpD,eAAO,MAAM,YAAY,QAAU,CAAA;AACnC,eAAO,MAAM,gBAAgB,QAAW,CAAA;AACxC,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,QAAY,CAAA;AAC7C,eAAO,MAAM,wBAAwB,QAAa,CAAA;AAElD,0DAA0D;AAC1D,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQ1C,CAAA;AAED,oDAAoD;AACpD,eAAO,MAAM,WAAW,EAAE,cAA2D,CAAA;AAErF,sEAAsE;AACtE,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,MAAM,CAAa,CAAA"}
@@ -0,0 +1,40 @@
1
+ import { XmlWriterParams } from './xml-writer.types';
2
+ import { AnyRawRecord } from '../../types';
3
+ /**
4
+ * Write records as XML text, element by element in document order, with no DOM, as `XMLSerializer` writes the same
5
+ * elements: formatted (4 spaces, CRLF, a text value on its element's line) or compact. The root start tag is only
6
+ * complete once every element is written (the namespaces the document needs are declared on it as they are met), so
7
+ * the writer hands the body as it goes (`take`) and the head (declaration and root start tag) at the end (`head`).
8
+ */
9
+ export declare class XmlWriter {
10
+ private readonly context;
11
+ private readonly indent;
12
+ private readonly includeXmlDeclaration;
13
+ private readonly openElements;
14
+ private body;
15
+ private root;
16
+ /** The root's bindings as they stand: its declarations grow while its descendants are written. */
17
+ private readonly rootBindings;
18
+ private readonly rootScope;
19
+ private rootAttributeCount;
20
+ /** The prefixes generated for the elements below the root, numbered across the document */
21
+ private readonly prefixes;
22
+ /** A line break and the indentation of each level, made once */
23
+ private readonly newLines;
24
+ constructor(params: XmlWriterParams);
25
+ /** Open the element of the next record in document order (the first is the written root). */
26
+ openElement(params: {
27
+ record: AnyRawRecord;
28
+ }): void;
29
+ /** Close the element opened last. */
30
+ closeElement(): void;
31
+ /** The body written since the last call: what follows the root start tag. */
32
+ take(): string;
33
+ /** The XML declaration and the root start tag, complete once the root is closed. */
34
+ head(): string;
35
+ /** Bring the root's bindings up to date: the root gains declarations while its descendants are written. */
36
+ private refreshRootScope;
37
+ private writeText;
38
+ private newLine;
39
+ }
40
+ //# sourceMappingURL=xml-writer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xml-writer.d.ts","sourceRoot":"","sources":["../../../src/xml/build/xml-writer.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAe,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C;;;;;GAKG;AACH,qBAAa,SAAS;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsB;IAC9C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAS;IAC/C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAoB;IACjD,OAAO,CAAC,IAAI,CAAe;IAC3B,OAAO,CAAC,IAAI,CAAyB;IACrC,kGAAkG;IAClG,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA4B;IACzD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAqE;IAC/F,OAAO,CAAC,kBAAkB,CAAK;IAC/B,2FAA2F;IAC3F,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAiC;IAC1D,gEAAgE;IAChE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAe;gBAE5B,MAAM,EAAE,eAAe;IAanC,6FAA6F;IAC7F,WAAW,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,YAAY,CAAA;KAAE,GAAG,IAAI;IAsCnD,qCAAqC;IACrC,YAAY,IAAI,IAAI;IAOpB,6EAA6E;IAC7E,IAAI,IAAI,MAAM;IAMd,oFAAoF;IACpF,IAAI,IAAI,MAAM;IAcd,2GAA2G;IAC3G,OAAO,CAAC,gBAAgB;IAmBxB,OAAO,CAAC,SAAS;IAYjB,OAAO,CAAC,OAAO;CAMf"}
@@ -0,0 +1,34 @@
1
+ import { NamespaceScope, XmlElement } from './xml-element.types';
2
+ import { AnyDialecteConfig, AnyRawRecord } from '../../types';
3
+ export type XmlWriterParams = {
4
+ config: AnyDialecteConfig;
5
+ /**
6
+ * The document's root record, when the record written first is the document root; absent for a fragment, which
7
+ * gets no root attributes.
8
+ */
9
+ documentRoot?: AnyRawRecord;
10
+ /** Formatted (4 spaces, CRLF, a text value on its element's line); `false` = compact. Default `true`. */
11
+ indent?: boolean;
12
+ /** Declare namespaces (`xmlns`, `xmlns:*`); `false` writes prefixed names literally, a bare fragment. Default `true`. */
13
+ declareNamespaces?: boolean;
14
+ /** Start with the XML declaration. Default `true`. */
15
+ includeXmlDeclaration?: boolean;
16
+ /** The record id as `_temp-idb-id` on every element. Default `false`. */
17
+ withDatabaseIds?: boolean;
18
+ };
19
+ /** An element the writer has opened and not yet closed. */
20
+ export type OpenElement = {
21
+ element: XmlElement;
22
+ qualifiedName: string;
23
+ /** Its depth: the root is at 0. */
24
+ level: number;
25
+ /** The scope its children stand in. */
26
+ scope: NamespaceScope;
27
+ /** Written with neither text nor children: `/>`. */
28
+ empty: boolean;
29
+ /** Its content is written inline, as the formatter keeps it: no line breaks or indentation below it. */
30
+ inline: boolean;
31
+ /** It stands inside an inline element. */
32
+ insideInline: boolean;
33
+ };
34
+ //# sourceMappingURL=xml-writer.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xml-writer.types.d.ts","sourceRoot":"","sources":["../../../src/xml/build/xml-writer.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE9D,MAAM,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,iBAAiB,CAAA;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,yGAAyG;IACzG,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,yHAAyH;IACzH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,sDAAsD;IACtD,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,yEAAyE;IACzE,eAAe,CAAC,EAAE,OAAO,CAAA;CACzB,CAAA;AAED,2DAA2D;AAC3D,MAAM,MAAM,WAAW,GAAG;IACzB,OAAO,EAAE,UAAU,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,uCAAuC;IACvC,KAAK,EAAE,cAAc,CAAA;IACrB,oDAAoD;IACpD,KAAK,EAAE,OAAO,CAAA;IACd,wGAAwG;IACxG,MAAM,EAAE,OAAO,CAAA;IACf,0CAA0C;IAC1C,YAAY,EAAE,OAAO,CAAA;CACrB,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { parseXmlDocument } from './xml-document-from-file';
2
+ export type { ParseXmlDocumentParams } from './xml-document-from-file.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/xml/dom/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAC3D,YAAY,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { ParseXmlDocumentParams } from './xml-document-from-file.types';
2
+ /**
3
+ * The DOM of an XML file, in the page (a worker or Node has no `DOMParser`). Parse the compact export
4
+ * (`indent: false`) to get the document the stored records make, with no whitespace-only text node.
5
+ * A file that is not well-formed throws `PARSE_ERROR`, with what the parser said.
6
+ *
7
+ * @intent get the DOM of an exported XML file, read an export as an XMLDocument in the page, query an export with XPath
8
+ */
9
+ export declare function parseXmlDocument(params: ParseXmlDocumentParams): Promise<XMLDocument>;
10
+ //# sourceMappingURL=xml-document-from-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xml-document-from-file.d.ts","sourceRoot":"","sources":["../../../src/xml/dom/xml-document-from-file.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAA;AAE5E;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,WAAW,CAAC,CAW3F"}
@@ -0,0 +1,5 @@
1
+ export type ParseXmlDocumentParams = {
2
+ /** An XML file: the compact export (`indent: false`) gives the DOM the stored records make */
3
+ file: Blob;
4
+ };
5
+ //# sourceMappingURL=xml-document-from-file.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xml-document-from-file.types.d.ts","sourceRoot":"","sources":["../../../src/xml/dom/xml-document-from-file.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACpC,8FAA8F;IAC9F,IAAI,EAAE,IAAI,CAAA;CACV,CAAA"}
@@ -1,4 +1,5 @@
1
1
  export * from './build';
2
+ export * from './dom';
2
3
  export * from './inspect-xml';
3
4
  export * from './parse';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/xml/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/xml/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA;AACrB,cAAc,eAAe,CAAA;AAC7B,cAAc,SAAS,CAAA"}
@@ -31,6 +31,8 @@ export type InspectionReport<GenericConfig extends AnyDialecteConfig, T extends
31
31
  *
32
32
  * Streams the input via SAX and stops as soon as all elements are found.
33
33
  * Case-sensitive: `'project'` and `'Project'` are distinct entries.
34
+ *
35
+ * @intent peek at an XML file before importing it, read the root element or a version attribute without a full parse, detect which config a file needs
34
36
  */
35
37
  export declare function inspectXml<const GenericConfig extends AnyDialecteConfig = AnyDialecteConfig, const GenericElements extends readonly ElementsOf<GenericConfig>[] = readonly ElementsOf<GenericConfig>[]>(xml: string, params: {
36
38
  config?: GenericConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"inspect-xml.d.ts","sourceRoot":"","sources":["../../src/xml/inspect-xml.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEjG;;;;;;;;;;;;;GAaG;AAEH,MAAM,MAAM,gBAAgB,CAC3B,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,IAC7C;IACH,sFAAsF;IACtF,SAAS,EAAE,MAAM,CAAA;IACjB,oEAAoE;IACpE,UAAU,EAAE,OAAO,CAAC,uBAAuB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAA;IAC3E,iEAAiE;IACjE,QAAQ,EAAE,UAAU,CAAC,aAAa,EAAE,cAAc,CAAC,EAAE,CAAA;IACrD,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,gBAAgB,CAC3B,aAAa,SAAS,iBAAiB,EACvC,CAAC,SAAS,SAAS,UAAU,CAAC,aAAa,CAAC,EAAE,IAC3C;KACF,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,gBAAgB,CAAC,aAAa,EAAE,CAAC,CAAC,GAAG,SAAS;CAChE,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CACzB,KAAK,CAAC,aAAa,SAAS,iBAAiB,GAAG,iBAAiB,EACjE,KAAK,CAAC,eAAe,SAAS,SAAS,UAAU,CAAC,aAAa,CAAC,EAAE,GACjE,SAAS,UAAU,CAAC,aAAa,CAAC,EAAE,EAErC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE;IAAE,MAAM,CAAC,EAAE,aAAa,CAAC;IAAC,QAAQ,EAAE,eAAe,CAAA;CAAE,GAC3D,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,aAAa,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC,CAsEtF"}
1
+ {"version":3,"file":"inspect-xml.d.ts","sourceRoot":"","sources":["../../src/xml/inspect-xml.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEjG;;;;;;;;;;;;;GAaG;AAEH,MAAM,MAAM,gBAAgB,CAC3B,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,IAC7C;IACH,sFAAsF;IACtF,SAAS,EAAE,MAAM,CAAA;IACjB,oEAAoE;IACpE,UAAU,EAAE,OAAO,CAAC,uBAAuB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAA;IAC3E,iEAAiE;IACjE,QAAQ,EAAE,UAAU,CAAC,aAAa,EAAE,cAAc,CAAC,EAAE,CAAA;IACrD,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,gBAAgB,CAC3B,aAAa,SAAS,iBAAiB,EACvC,CAAC,SAAS,SAAS,UAAU,CAAC,aAAa,CAAC,EAAE,IAC3C;KACF,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,gBAAgB,CAAC,aAAa,EAAE,CAAC,CAAC,GAAG,SAAS;CAChE,CAAA;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACzB,KAAK,CAAC,aAAa,SAAS,iBAAiB,GAAG,iBAAiB,EACjE,KAAK,CAAC,eAAe,SAAS,SAAS,UAAU,CAAC,aAAa,CAAC,EAAE,GACjE,SAAS,UAAU,CAAC,aAAa,CAAC,EAAE,EAErC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE;IAAE,MAAM,CAAC,EAAE,aAAa,CAAC;IAAC,QAAQ,EAAE,eAAe,CAAA;CAAE,GAC3D,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,aAAa,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC,CAsEtF"}
@@ -1,5 +1,5 @@
1
1
  export { parseXmlFile } from './parse-xml-document';
2
2
  export { ParseSession } from './parse-session';
3
- export type { ParseXmlFileParams, ParseXmlFileResult } from './parse-xml-document.types';
3
+ export type { ParseTarget, ParseXmlFileParams, ParseXmlFileResult, } from './parse-xml-document.types';
4
4
  export type * from './types';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/xml/parse/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AACxF,mBAAmB,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/xml/parse/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,YAAY,EACX,WAAW,EACX,kBAAkB,EAClB,kBAAkB,GAClB,MAAM,4BAA4B,CAAA;AACnC,mBAAmB,SAAS,CAAA"}
@@ -0,0 +1,5 @@
1
+ /** Bytes read from the file per chunk (32 KiB). */
2
+ export declare const DEFAULT_CHUNK_SIZE: number;
3
+ /** Records handed to the store per batch. */
4
+ export declare const DEFAULT_BATCH_SIZE = 2000;
5
+ //# sourceMappingURL=parse-xml-document.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-xml-document.constants.d.ts","sourceRoot":"","sources":["../../../src/xml/parse/parse-xml-document.constants.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,eAAO,MAAM,kBAAkB,QAAY,CAAA;AAE3C,6CAA6C;AAC7C,eAAO,MAAM,kBAAkB,OAAO,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { ParseXmlFileParams, ParseXmlFileResult } from './parse-xml-document.types';
2
+ import { ImportControl } from '../../store/store.types';
2
3
  export type { ParseXmlFileParams, ParseXmlFileResult } from './parse-xml-document.types';
3
4
  /**
4
5
  * Parse a single XML file and persist records into a Store via chunked streaming.
@@ -6,7 +7,17 @@ export type { ParseXmlFileParams, ParseXmlFileResult } from './parse-xml-documen
6
7
  * - Uses SAX streaming to avoid loading full XML into memory
7
8
  * - Batches records and flushes to Store.bulkWrite in chunks
8
9
  * - ParseSession encapsulates parent-child resolution state (no module globals)
9
- * - Database-agnostic: only calls Store.bulkWrite(documentId, ops)
10
+ * - Database-agnostic: only calls its target's bulkWrite (the file's records) and writeSession (the session's)
11
+ * - `control`: progress told after each stored batch (never awaited), an abort honoured before each
12
+ * batch and before the session's writes (`IMPORT_ABORTED`; the records already stored are the
13
+ * caller's to remove)
14
+ *
15
+ * @internal the streaming parser `runImport` drives; callers import through the project
10
16
  */
11
- export declare function parseXmlFile(params: ParseXmlFileParams): Promise<ParseXmlFileResult>;
17
+ export declare function parseXmlFile(params: ParseXmlFileParams, control?: ImportControl): Promise<ParseXmlFileResult>;
18
+ /** An aborted import goes no further: `IMPORT_ABORTED`. */
19
+ export declare function throwIfAborted(params: {
20
+ signal?: AbortSignal;
21
+ file: File;
22
+ }): void;
12
23
  //# sourceMappingURL=parse-xml-document.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parse-xml-document.d.ts","sourceRoot":"","sources":["../../../src/xml/parse/parse-xml-document.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAKxF,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AASxF;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAoD1F"}
1
+ {"version":3,"file":"parse-xml-document.d.ts","sourceRoot":"","sources":["../../../src/xml/parse/parse-xml-document.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAEX,kBAAkB,EAClB,kBAAkB,EAClB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,qBAAqB,CAAA;AAGxE,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAIxF;;;;;;;;;;;;GAYG;AACH,wBAAsB,YAAY,CACjC,MAAM,EAAE,kBAAkB,EAC1B,OAAO,GAAE,aAAkB,GACzB,OAAO,CAAC,kBAAkB,CAAC,CAoE7B;AA8ID,2DAA2D;AAC3D,wBAAgB,cAAc,CAAC,MAAM,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,IAAI,CAAA;CAAE,GAAG,IAAI,CAOjF"}
@@ -1,10 +1,18 @@
1
+ import { Diagnostic } from '../../diagnostics';
1
2
  import { Perf } from '../../perf';
2
- import { Store } from '../../store/store.types';
3
+ import { ImportTarget } from '../../store/store.types';
3
4
  import { AnyDialecteConfig, ChunkOptions, DialecteHooks } from '../../types';
5
+ /**
6
+ * What the parse writes through: the file's records, then its session's writes; registering the document and marking
7
+ * it ready are its caller's.
8
+ */
9
+ export type ParseTarget = Pick<ImportTarget, 'bulkWrite' | 'writeSession'>;
4
10
  export type ParseXmlFileParams = {
5
11
  file: File;
6
12
  documentId: string;
7
- store: Store;
13
+ /** The key the config is registered under; given to the import session */
14
+ configKey: string;
15
+ store: ParseTarget;
8
16
  config: AnyDialecteConfig;
9
17
  /** Use custom record IDs from XML attributes (testing) */
10
18
  useCustomRecordsIds?: boolean;
@@ -18,5 +26,7 @@ export type ParseXmlFileParams = {
18
26
  export type ParseXmlFileResult = {
19
27
  documentId: string;
20
28
  recordCount: number;
29
+ /** What the import session had to say; `[]` when nothing */
30
+ diagnostics: Diagnostic[];
21
31
  };
22
32
  //# sourceMappingURL=parse-xml-document.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parse-xml-document.types.d.ts","sourceRoot":"","sources":["../../../src/xml/parse/parse-xml-document.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE7E,MAAM,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,IAAI,CAAA;IACV,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,KAAK,CAAA;IACZ,MAAM,EAAE,iBAAiB,CAAA;IACzB,0DAA0D;IAC1D,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,iCAAiC;IACjC,YAAY,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;IACpC,4EAA4E;IAC5E,KAAK,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAA;IACxC,sEAAsE;IACtE,IAAI,CAAC,EAAE,IAAI,CAAA;CACX,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;CACnB,CAAA"}
1
+ {"version":3,"file":"parse-xml-document.types.d.ts","sourceRoot":"","sources":["../../../src/xml/parse/parse-xml-document.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE7E;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,EAAE,WAAW,GAAG,cAAc,CAAC,CAAA;AAE1E,MAAM,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,IAAI,CAAA;IACV,UAAU,EAAE,MAAM,CAAA;IAClB,0EAA0E;IAC1E,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,WAAW,CAAA;IAClB,MAAM,EAAE,iBAAiB,CAAA;IACzB,0DAA0D;IAC1D,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,iCAAiC;IACjC,YAAY,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;IACpC,4EAA4E;IAC5E,KAAK,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAA;IACxC,sEAAsE;IACtE,IAAI,CAAC,EAAE,IAAI,CAAA;CACX,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAChC,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,4DAA4D;IAC5D,WAAW,EAAE,UAAU,EAAE,CAAA;CACzB,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type * as sax from 'sax';
2
+ /**
3
+ * The options core's XML reader builds sax with. sax's own trim and normalize are off: they use JavaScript's
4
+ * whitespace (a no-break space, a byte order mark...), core trims and collapses each run of text with XML's.
5
+ */
6
+ export declare const SAX_PARSER_OPTIONS: sax.SAXOptions;
7
+ //# sourceMappingURL=parser.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parser.constants.d.ts","sourceRoot":"","sources":["../../../src/xml/parse/parser.constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,KAAK,CAAA;AAE/B;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,GAAG,CAAC,UAMpC,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { ParseSession } from './parse-session';
2
2
  import { ParserInstance } from './types';
3
3
  import { Perf } from '../../perf';
4
- import { AnyDialecteConfig, DialecteHooks } from '../../types';
4
+ import { AnyDialecteConfig, ImportSession, TransactionHooks } from '../../types';
5
5
  /**
6
6
  * Sets up the SAX parser for XML parsing.
7
7
  * @param namespaces Namespace configuration from dialecte
@@ -12,7 +12,9 @@ export declare function setSaxParser(params: {
12
12
  dialecteConfig: AnyDialecteConfig;
13
13
  useCustomRecordsIds: boolean;
14
14
  session: ParseSession;
15
- hooks?: DialecteHooks<AnyDialecteConfig>;
15
+ /** The record hooks standardization applies; the per-record io hook is the import session's */
16
+ hooks?: TransactionHooks<AnyDialecteConfig>;
17
+ importSession?: ImportSession;
16
18
  perf?: Perf;
17
19
  }): ParserInstance;
18
20
  //# sourceMappingURL=parser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/xml/parse/parser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAS9C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,SAAS,CAAA;AAC1D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,KAAK,EAEX,iBAAiB,EAKjB,aAAa,EACb,MAAM,SAAS,CAAA;AAIhB;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE;IACpC,cAAc,EAAE,iBAAiB,CAAA;IACjC,mBAAmB,EAAE,OAAO,CAAA;IAC5B,OAAO,EAAE,YAAY,CAAA;IACrB,KAAK,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAA;IACxC,IAAI,CAAC,EAAE,IAAI,CAAA;CACX,GAAG,cAAc,CA+DjB"}
1
+ {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/xml/parse/parser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAc9C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,SAAS,CAAA;AAC1D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,KAAK,EAEX,iBAAiB,EAKjB,aAAa,EACb,gBAAgB,EAChB,MAAM,SAAS,CAAA;AAIhB;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE;IACpC,cAAc,EAAE,iBAAiB,CAAA;IACjC,mBAAmB,EAAE,OAAO,CAAA;IAC5B,OAAO,EAAE,YAAY,CAAA;IACrB,+FAA+F;IAC/F,KAAK,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAA;IAC3C,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,IAAI,CAAC,EAAE,IAAI,CAAA;CACX,GAAG,cAAc,CA0DjB"}
@@ -9,5 +9,7 @@ export type ParserState = {
9
9
  defaultNamespace: Namespace | null;
10
10
  stack: AnyRawRecord[];
11
11
  recordsBatch: AnyRawRecord[];
12
+ /** The root element was opened: a second one at depth 0 is a parse error (sax lets it through) */
13
+ sawRoot: boolean;
12
14
  };
13
15
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/xml/parse/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,MAAM,MAAM,cAAc,GAAG;IAC5B,MAAM,EAAE,SAAS,CAAA;IACjB,UAAU,EAAE,MAAM,YAAY,EAAE,CAAA;IAChC,OAAO,EAAE,MAAM,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACzB,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAA;IAClC,KAAK,EAAE,YAAY,EAAE,CAAA;IACrB,YAAY,EAAE,YAAY,EAAE,CAAA;CAC5B,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/xml/parse/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAEpC,MAAM,MAAM,cAAc,GAAG;IAC5B,MAAM,EAAE,SAAS,CAAA;IACjB,UAAU,EAAE,MAAM,YAAY,EAAE,CAAA;IAChC,OAAO,EAAE,MAAM,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACzB,gBAAgB,EAAE,SAAS,GAAG,IAAI,CAAA;IAClC,KAAK,EAAE,YAAY,EAAE,CAAA;IACrB,YAAY,EAAE,YAAY,EAAE,CAAA;IAC5B,kGAAkG;IAClG,OAAO,EAAE,OAAO,CAAA;CAChB,CAAA"}