@fireproof/core 0.21.0-dev-preview-7 → 0.22.0-keybag

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 (444) hide show
  1. package/index.d.ts +2 -16
  2. package/index.js +2 -15
  3. package/index.js.map +1 -1
  4. package/index.ts +2 -0
  5. package/package.json +12 -70
  6. package/tsconfig.json +18 -0
  7. package/README.md +0 -269
  8. package/apply-head-queue.d.ts +0 -18
  9. package/apply-head-queue.d.ts.map +0 -1
  10. package/apply-head-queue.js +0 -47
  11. package/apply-head-queue.js.map +0 -1
  12. package/blockstore/attachable-store.d.ts +0 -19
  13. package/blockstore/attachable-store.d.ts.map +0 -1
  14. package/blockstore/attachable-store.js +0 -316
  15. package/blockstore/attachable-store.js.map +0 -1
  16. package/blockstore/commit-queue.d.ts +0 -17
  17. package/blockstore/commit-queue.d.ts.map +0 -1
  18. package/blockstore/commit-queue.js +0 -60
  19. package/blockstore/commit-queue.js.map +0 -1
  20. package/blockstore/commitor.d.ts +0 -21
  21. package/blockstore/commitor.d.ts.map +0 -1
  22. package/blockstore/commitor.js +0 -95
  23. package/blockstore/commitor.js.map +0 -1
  24. package/blockstore/connect-raw.d.ts +0 -2
  25. package/blockstore/connect-raw.d.ts.map +0 -1
  26. package/blockstore/connect-raw.js +0 -2
  27. package/blockstore/connect-raw.js.map +0 -1
  28. package/blockstore/connection-base.d.ts +0 -2
  29. package/blockstore/connection-base.d.ts.map +0 -1
  30. package/blockstore/connection-base.js +0 -2
  31. package/blockstore/connection-base.js.map +0 -1
  32. package/blockstore/encrypt-helpers.d.ts +0 -2
  33. package/blockstore/encrypt-helpers.d.ts.map +0 -1
  34. package/blockstore/encrypt-helpers.js +0 -2
  35. package/blockstore/encrypt-helpers.js.map +0 -1
  36. package/blockstore/fp-envelope.d.ts +0 -32
  37. package/blockstore/fp-envelope.d.ts.map +0 -1
  38. package/blockstore/fp-envelope.js +0 -14
  39. package/blockstore/fp-envelope.js.map +0 -1
  40. package/blockstore/gateway.d.ts +0 -20
  41. package/blockstore/gateway.d.ts.map +0 -1
  42. package/blockstore/gateway.js +0 -2
  43. package/blockstore/gateway.js.map +0 -1
  44. package/blockstore/index.d.ts +0 -17
  45. package/blockstore/index.d.ts.map +0 -1
  46. package/blockstore/index.js +0 -17
  47. package/blockstore/index.js.map +0 -1
  48. package/blockstore/interceptor-gateway.d.ts +0 -29
  49. package/blockstore/interceptor-gateway.d.ts.map +0 -1
  50. package/blockstore/interceptor-gateway.js +0 -137
  51. package/blockstore/interceptor-gateway.js.map +0 -1
  52. package/blockstore/loader-helpers.d.ts +0 -10
  53. package/blockstore/loader-helpers.d.ts.map +0 -1
  54. package/blockstore/loader-helpers.js +0 -115
  55. package/blockstore/loader-helpers.js.map +0 -1
  56. package/blockstore/loader.d.ts +0 -62
  57. package/blockstore/loader.d.ts.map +0 -1
  58. package/blockstore/loader.js +0 -523
  59. package/blockstore/loader.js.map +0 -1
  60. package/blockstore/register-store-protocol.d.ts +0 -22
  61. package/blockstore/register-store-protocol.d.ts.map +0 -1
  62. package/blockstore/register-store-protocol.js +0 -125
  63. package/blockstore/register-store-protocol.js.map +0 -1
  64. package/blockstore/serde-gateway.d.ts +0 -78
  65. package/blockstore/serde-gateway.d.ts.map +0 -1
  66. package/blockstore/serde-gateway.js +0 -2
  67. package/blockstore/serde-gateway.js.map +0 -1
  68. package/blockstore/store-factory.d.ts +0 -11
  69. package/blockstore/store-factory.d.ts.map +0 -1
  70. package/blockstore/store-factory.js +0 -104
  71. package/blockstore/store-factory.js.map +0 -1
  72. package/blockstore/store-remote.d.ts +0 -2
  73. package/blockstore/store-remote.d.ts.map +0 -1
  74. package/blockstore/store-remote.js +0 -2
  75. package/blockstore/store-remote.js.map +0 -1
  76. package/blockstore/store.d.ts +0 -86
  77. package/blockstore/store.d.ts.map +0 -1
  78. package/blockstore/store.js +0 -437
  79. package/blockstore/store.js.map +0 -1
  80. package/blockstore/task-manager.d.ts +0 -19
  81. package/blockstore/task-manager.d.ts.map +0 -1
  82. package/blockstore/task-manager.js +0 -50
  83. package/blockstore/task-manager.js.map +0 -1
  84. package/blockstore/transaction.d.ts +0 -62
  85. package/blockstore/transaction.d.ts.map +0 -1
  86. package/blockstore/transaction.js +0 -256
  87. package/blockstore/transaction.js.map +0 -1
  88. package/blockstore/types.d.ts +0 -508
  89. package/blockstore/types.d.ts.map +0 -1
  90. package/blockstore/types.js +0 -83
  91. package/blockstore/types.js.map +0 -1
  92. package/blockstore/uri-interceptor.d.ts +0 -19
  93. package/blockstore/uri-interceptor.d.ts.map +0 -1
  94. package/blockstore/uri-interceptor.js +0 -61
  95. package/blockstore/uri-interceptor.js.map +0 -1
  96. package/bundle-not-impl.d.ts +0 -2
  97. package/bundle-not-impl.d.ts.map +0 -1
  98. package/bundle-not-impl.js +0 -4
  99. package/bundle-not-impl.js.map +0 -1
  100. package/cli/main.js +0 -26645
  101. package/crdt-clock.d.ts +0 -26
  102. package/crdt-clock.d.ts.map +0 -1
  103. package/crdt-clock.js +0 -133
  104. package/crdt-clock.js.map +0 -1
  105. package/crdt-helpers.d.ts +0 -19
  106. package/crdt-helpers.d.ts.map +0 -1
  107. package/crdt-helpers.js +0 -332
  108. package/crdt-helpers.js.map +0 -1
  109. package/crdt.d.ts +0 -41
  110. package/crdt.d.ts.map +0 -1
  111. package/crdt.js +0 -164
  112. package/crdt.js.map +0 -1
  113. package/database.d.ts +0 -33
  114. package/database.d.ts.map +0 -1
  115. package/database.js +0 -132
  116. package/database.js.map +0 -1
  117. package/deno.json +0 -20
  118. package/index.d.ts.map +0 -1
  119. package/indexer-helpers.d.ts +0 -68
  120. package/indexer-helpers.d.ts.map +0 -1
  121. package/indexer-helpers.js +0 -157
  122. package/indexer-helpers.js.map +0 -1
  123. package/indexer.d.ts +0 -24
  124. package/indexer.d.ts.map +0 -1
  125. package/indexer.js +0 -239
  126. package/indexer.js.map +0 -1
  127. package/ledger.d.ts +0 -56
  128. package/ledger.d.ts.map +0 -1
  129. package/ledger.js +0 -237
  130. package/ledger.js.map +0 -1
  131. package/protocols/cloud/http-connection.d.ts +0 -26
  132. package/protocols/cloud/http-connection.d.ts.map +0 -1
  133. package/protocols/cloud/http-connection.js +0 -154
  134. package/protocols/cloud/http-connection.js.map +0 -1
  135. package/protocols/cloud/index.d.ts +0 -10
  136. package/protocols/cloud/index.d.ts.map +0 -1
  137. package/protocols/cloud/index.js +0 -10
  138. package/protocols/cloud/index.js.map +0 -1
  139. package/protocols/cloud/msg-raw-connection-base.d.ts +0 -16
  140. package/protocols/cloud/msg-raw-connection-base.d.ts.map +0 -1
  141. package/protocols/cloud/msg-raw-connection-base.js +0 -22
  142. package/protocols/cloud/msg-raw-connection-base.js.map +0 -1
  143. package/protocols/cloud/msg-types-data.d.ts +0 -36
  144. package/protocols/cloud/msg-types-data.d.ts.map +0 -1
  145. package/protocols/cloud/msg-types-data.js +0 -38
  146. package/protocols/cloud/msg-types-data.js.map +0 -1
  147. package/protocols/cloud/msg-types-meta.d.ts +0 -41
  148. package/protocols/cloud/msg-types-meta.d.ts.map +0 -1
  149. package/protocols/cloud/msg-types-meta.js +0 -98
  150. package/protocols/cloud/msg-types-meta.js.map +0 -1
  151. package/protocols/cloud/msg-types-wal.d.ts +0 -33
  152. package/protocols/cloud/msg-types-wal.d.ts.map +0 -1
  153. package/protocols/cloud/msg-types-wal.js +0 -38
  154. package/protocols/cloud/msg-types-wal.js.map +0 -1
  155. package/protocols/cloud/msg-types.d.ts +0 -310
  156. package/protocols/cloud/msg-types.d.ts.map +0 -1
  157. package/protocols/cloud/msg-types.js +0 -299
  158. package/protocols/cloud/msg-types.js.map +0 -1
  159. package/protocols/cloud/msger.d.ts +0 -94
  160. package/protocols/cloud/msger.d.ts.map +0 -1
  161. package/protocols/cloud/msger.js +0 -319
  162. package/protocols/cloud/msger.js.map +0 -1
  163. package/protocols/cloud/ws-connection.d.ts +0 -40
  164. package/protocols/cloud/ws-connection.d.ts.map +0 -1
  165. package/protocols/cloud/ws-connection.js +0 -205
  166. package/protocols/cloud/ws-connection.js.map +0 -1
  167. package/protocols/dashboard/index.d.ts +0 -4
  168. package/protocols/dashboard/index.d.ts.map +0 -1
  169. package/protocols/dashboard/index.js +0 -4
  170. package/protocols/dashboard/index.js.map +0 -1
  171. package/protocols/dashboard/msg-api.d.ts +0 -11
  172. package/protocols/dashboard/msg-api.d.ts.map +0 -1
  173. package/protocols/dashboard/msg-api.js +0 -55
  174. package/protocols/dashboard/msg-api.js.map +0 -1
  175. package/protocols/dashboard/msg-is.d.ts +0 -45
  176. package/protocols/dashboard/msg-is.d.ts.map +0 -1
  177. package/protocols/dashboard/msg-is.js +0 -63
  178. package/protocols/dashboard/msg-is.js.map +0 -1
  179. package/protocols/dashboard/msg-types.d.ts +0 -397
  180. package/protocols/dashboard/msg-types.d.ts.map +0 -1
  181. package/protocols/dashboard/msg-types.js +0 -4
  182. package/protocols/dashboard/msg-types.js.map +0 -1
  183. package/protocols/index.d.ts +0 -3
  184. package/protocols/index.d.ts.map +0 -1
  185. package/protocols/index.js +0 -3
  186. package/protocols/index.js.map +0 -1
  187. package/react/img-file.d.ts +0 -303
  188. package/react/img-file.d.ts.map +0 -1
  189. package/react/img-file.js +0 -92
  190. package/react/img-file.js.map +0 -1
  191. package/react/index.d.ts +0 -5
  192. package/react/index.d.ts.map +0 -1
  193. package/react/index.js +0 -5
  194. package/react/index.js.map +0 -1
  195. package/react/types.d.ts +0 -91
  196. package/react/types.d.ts.map +0 -1
  197. package/react/types.js +0 -2
  198. package/react/types.js.map +0 -1
  199. package/react/use-all-docs.d.ts +0 -4
  200. package/react/use-all-docs.d.ts.map +0 -1
  201. package/react/use-all-docs.js +0 -25
  202. package/react/use-all-docs.js.map +0 -1
  203. package/react/use-attach.d.ts +0 -11
  204. package/react/use-attach.d.ts.map +0 -1
  205. package/react/use-attach.js +0 -169
  206. package/react/use-attach.js.map +0 -1
  207. package/react/use-changes.d.ts +0 -4
  208. package/react/use-changes.d.ts.map +0 -1
  209. package/react/use-changes.js +0 -19
  210. package/react/use-changes.js.map +0 -1
  211. package/react/use-document.d.ts +0 -4
  212. package/react/use-document.d.ts.map +0 -1
  213. package/react/use-document.js +0 -109
  214. package/react/use-document.js.map +0 -1
  215. package/react/use-fireproof.d.ts +0 -6
  216. package/react/use-fireproof.d.ts.map +0 -1
  217. package/react/use-fireproof.js +0 -20
  218. package/react/use-fireproof.js.map +0 -1
  219. package/react/use-live-query.d.ts +0 -4
  220. package/react/use-live-query.d.ts.map +0 -1
  221. package/react/use-live-query.js +0 -24
  222. package/react/use-live-query.js.map +0 -1
  223. package/runtime/files.d.ts +0 -12
  224. package/runtime/files.d.ts.map +0 -1
  225. package/runtime/files.js +0 -29
  226. package/runtime/files.js.map +0 -1
  227. package/runtime/gateways/cloud/gateway.d.ts +0 -41
  228. package/runtime/gateways/cloud/gateway.d.ts.map +0 -1
  229. package/runtime/gateways/cloud/gateway.js +0 -514
  230. package/runtime/gateways/cloud/gateway.js.map +0 -1
  231. package/runtime/gateways/cloud/index.d.ts +0 -3
  232. package/runtime/gateways/cloud/index.d.ts.map +0 -1
  233. package/runtime/gateways/cloud/index.js +0 -3
  234. package/runtime/gateways/cloud/index.js.map +0 -1
  235. package/runtime/gateways/cloud/to-cloud.d.ts +0 -59
  236. package/runtime/gateways/cloud/to-cloud.d.ts.map +0 -1
  237. package/runtime/gateways/cloud/to-cloud.js +0 -175
  238. package/runtime/gateways/cloud/to-cloud.js.map +0 -1
  239. package/runtime/gateways/def-serde-gateway.d.ts +0 -18
  240. package/runtime/gateways/def-serde-gateway.d.ts.map +0 -1
  241. package/runtime/gateways/def-serde-gateway.js +0 -92
  242. package/runtime/gateways/def-serde-gateway.js.map +0 -1
  243. package/runtime/gateways/file/deno/deno-filesystem.d.ts +0 -27
  244. package/runtime/gateways/file/deno/deno-filesystem.d.ts.map +0 -1
  245. package/runtime/gateways/file/deno/deno-filesystem.js +0 -52
  246. package/runtime/gateways/file/deno/deno-filesystem.js.map +0 -1
  247. package/runtime/gateways/file/deno/get-sys-file-system.d.ts +0 -4
  248. package/runtime/gateways/file/deno/get-sys-file-system.d.ts.map +0 -1
  249. package/runtime/gateways/file/deno/get-sys-file-system.js +0 -11
  250. package/runtime/gateways/file/deno/get-sys-file-system.js.map +0 -1
  251. package/runtime/gateways/file/deno/index.d.ts +0 -2
  252. package/runtime/gateways/file/deno/index.d.ts.map +0 -1
  253. package/runtime/gateways/file/deno/index.js +0 -2
  254. package/runtime/gateways/file/deno/index.js.map +0 -1
  255. package/runtime/gateways/file/gateway-impl.d.ts +0 -18
  256. package/runtime/gateways/file/gateway-impl.d.ts.map +0 -1
  257. package/runtime/gateways/file/gateway-impl.js +0 -121
  258. package/runtime/gateways/file/gateway-impl.js.map +0 -1
  259. package/runtime/gateways/file/index.d.ts +0 -3
  260. package/runtime/gateways/file/index.d.ts.map +0 -1
  261. package/runtime/gateways/file/index.js +0 -3
  262. package/runtime/gateways/file/index.js.map +0 -1
  263. package/runtime/gateways/file/key-bag-file.d.ts +0 -20
  264. package/runtime/gateways/file/key-bag-file.d.ts.map +0 -1
  265. package/runtime/gateways/file/key-bag-file.js +0 -52
  266. package/runtime/gateways/file/key-bag-file.js.map +0 -1
  267. package/runtime/gateways/file/node/get-sys-file-system.d.ts +0 -4
  268. package/runtime/gateways/file/node/get-sys-file-system.d.ts.map +0 -1
  269. package/runtime/gateways/file/node/get-sys-file-system.js +0 -11
  270. package/runtime/gateways/file/node/get-sys-file-system.js.map +0 -1
  271. package/runtime/gateways/file/node/index.d.ts +0 -2
  272. package/runtime/gateways/file/node/index.d.ts.map +0 -1
  273. package/runtime/gateways/file/node/index.js +0 -2
  274. package/runtime/gateways/file/node/index.js.map +0 -1
  275. package/runtime/gateways/file/node/node-filesystem.d.ts +0 -32
  276. package/runtime/gateways/file/node/node-filesystem.d.ts.map +0 -1
  277. package/runtime/gateways/file/node/node-filesystem.js +0 -33
  278. package/runtime/gateways/file/node/node-filesystem.js.map +0 -1
  279. package/runtime/gateways/file/node/to-array-buffer.d.ts +0 -2
  280. package/runtime/gateways/file/node/to-array-buffer.d.ts.map +0 -1
  281. package/runtime/gateways/file/node/to-array-buffer.js +0 -12
  282. package/runtime/gateways/file/node/to-array-buffer.js.map +0 -1
  283. package/runtime/gateways/file/sys-file-system-factory.d.ts +0 -4
  284. package/runtime/gateways/file/sys-file-system-factory.d.ts.map +0 -1
  285. package/runtime/gateways/file/sys-file-system-factory.js +0 -13
  286. package/runtime/gateways/file/sys-file-system-factory.js.map +0 -1
  287. package/runtime/gateways/file/utils.d.ts +0 -5
  288. package/runtime/gateways/file/utils.d.ts.map +0 -1
  289. package/runtime/gateways/file/utils.js +0 -27
  290. package/runtime/gateways/file/utils.js.map +0 -1
  291. package/runtime/gateways/file/version.d.ts +0 -2
  292. package/runtime/gateways/file/version.d.ts.map +0 -1
  293. package/runtime/gateways/file/version.js +0 -2
  294. package/runtime/gateways/file/version.js.map +0 -1
  295. package/runtime/gateways/fp-envelope-serialize.d.ts +0 -50
  296. package/runtime/gateways/fp-envelope-serialize.d.ts.map +0 -1
  297. package/runtime/gateways/fp-envelope-serialize.js +0 -141
  298. package/runtime/gateways/fp-envelope-serialize.js.map +0 -1
  299. package/runtime/gateways/index.d.ts +0 -6
  300. package/runtime/gateways/index.d.ts.map +0 -1
  301. package/runtime/gateways/index.js +0 -6
  302. package/runtime/gateways/index.js.map +0 -1
  303. package/runtime/gateways/indexeddb/gateway-impl.d.ts +0 -22
  304. package/runtime/gateways/indexeddb/gateway-impl.d.ts.map +0 -1
  305. package/runtime/gateways/indexeddb/gateway-impl.js +0 -147
  306. package/runtime/gateways/indexeddb/gateway-impl.js.map +0 -1
  307. package/runtime/gateways/indexeddb/index.d.ts +0 -6
  308. package/runtime/gateways/indexeddb/index.d.ts.map +0 -1
  309. package/runtime/gateways/indexeddb/index.js +0 -6
  310. package/runtime/gateways/indexeddb/index.js.map +0 -1
  311. package/runtime/gateways/indexeddb/key-bag-indexeddb.d.ts +0 -16
  312. package/runtime/gateways/indexeddb/key-bag-indexeddb.d.ts.map +0 -1
  313. package/runtime/gateways/indexeddb/key-bag-indexeddb.js +0 -48
  314. package/runtime/gateways/indexeddb/key-bag-indexeddb.js.map +0 -1
  315. package/runtime/gateways/indexeddb-version.d.ts +0 -2
  316. package/runtime/gateways/indexeddb-version.d.ts.map +0 -1
  317. package/runtime/gateways/indexeddb-version.js +0 -2
  318. package/runtime/gateways/indexeddb-version.js.map +0 -1
  319. package/runtime/gateways/memory/gateway.d.ts +0 -18
  320. package/runtime/gateways/memory/gateway.d.ts.map +0 -1
  321. package/runtime/gateways/memory/gateway.js +0 -73
  322. package/runtime/gateways/memory/gateway.js.map +0 -1
  323. package/runtime/gateways/memory/version.d.ts +0 -2
  324. package/runtime/gateways/memory/version.d.ts.map +0 -1
  325. package/runtime/gateways/memory/version.js +0 -2
  326. package/runtime/gateways/memory/version.js.map +0 -1
  327. package/runtime/index.d.ts +0 -13
  328. package/runtime/index.d.ts.map +0 -1
  329. package/runtime/index.js +0 -13
  330. package/runtime/index.js.map +0 -1
  331. package/runtime/key-bag-memory.d.ts +0 -13
  332. package/runtime/key-bag-memory.d.ts.map +0 -1
  333. package/runtime/key-bag-memory.js +0 -30
  334. package/runtime/key-bag-memory.js.map +0 -1
  335. package/runtime/key-bag.d.ts +0 -88
  336. package/runtime/key-bag.d.ts.map +0 -1
  337. package/runtime/key-bag.js +0 -417
  338. package/runtime/key-bag.js.map +0 -1
  339. package/runtime/keyed-crypto.d.ts +0 -19
  340. package/runtime/keyed-crypto.d.ts.map +0 -1
  341. package/runtime/keyed-crypto.js +0 -192
  342. package/runtime/keyed-crypto.js.map +0 -1
  343. package/runtime/memory-sys-container.d.ts +0 -2
  344. package/runtime/memory-sys-container.d.ts.map +0 -1
  345. package/runtime/memory-sys-container.js +0 -2
  346. package/runtime/memory-sys-container.js.map +0 -1
  347. package/runtime/meta-key-hack.d.ts +0 -42
  348. package/runtime/meta-key-hack.d.ts.map +0 -1
  349. package/runtime/meta-key-hack.js +0 -201
  350. package/runtime/meta-key-hack.js.map +0 -1
  351. package/runtime/sts-service/index.d.ts +0 -40
  352. package/runtime/sts-service/index.d.ts.map +0 -1
  353. package/runtime/sts-service/index.js +0 -108
  354. package/runtime/sts-service/index.js.map +0 -1
  355. package/runtime/sys-container.d.ts +0 -2
  356. package/runtime/sys-container.d.ts.map +0 -1
  357. package/runtime/sys-container.js +0 -2
  358. package/runtime/sys-container.js.map +0 -1
  359. package/runtime/wait-pr-multiformats/block.d.ts +0 -47
  360. package/runtime/wait-pr-multiformats/block.d.ts.map +0 -1
  361. package/runtime/wait-pr-multiformats/block.js +0 -64
  362. package/runtime/wait-pr-multiformats/block.js.map +0 -1
  363. package/runtime/wait-pr-multiformats/codec-interface.d.ts +0 -29
  364. package/runtime/wait-pr-multiformats/codec-interface.d.ts.map +0 -1
  365. package/runtime/wait-pr-multiformats/codec-interface.js +0 -2
  366. package/runtime/wait-pr-multiformats/codec-interface.js.map +0 -1
  367. package/runtime/wait-pr-multiformats/index.d.ts +0 -3
  368. package/runtime/wait-pr-multiformats/index.d.ts.map +0 -1
  369. package/runtime/wait-pr-multiformats/index.js +0 -3
  370. package/runtime/wait-pr-multiformats/index.js.map +0 -1
  371. package/tests/blockstore/fp-envelope.test.ts-off +0 -65
  372. package/tests/blockstore/fragment-gateway.test.ts-off +0 -106
  373. package/tests/blockstore/interceptor-gateway.test.ts +0 -254
  374. package/tests/blockstore/keyed-crypto-indexeddb-file.test.ts +0 -128
  375. package/tests/blockstore/keyed-crypto.test.ts +0 -376
  376. package/tests/blockstore/loader.test.ts +0 -298
  377. package/tests/blockstore/standalone.test.ts +0 -152
  378. package/tests/blockstore/store.test.ts +0 -192
  379. package/tests/blockstore/transaction.test.ts +0 -130
  380. package/tests/fireproof/all-gateway.test.ts +0 -461
  381. package/tests/fireproof/attachable.test.ts +0 -686
  382. package/tests/fireproof/cars/bafkreidxwt2nhvbl4fnqfw3ctlt6zbrir4kqwmjo5im6rf4q5si27kgo2i.car +0 -0
  383. package/tests/fireproof/cars/bafkreidxwt2nhvbl4fnqfw3ctlt6zbrir4kqwmjo5im6rf4q5si27kgo2i.ts +0 -324
  384. package/tests/fireproof/charwise-boolean.test.ts +0 -66
  385. package/tests/fireproof/crdt.test.ts +0 -570
  386. package/tests/fireproof/database.test.ts +0 -779
  387. package/tests/fireproof/deleted-docs-handling.test.ts +0 -111
  388. package/tests/fireproof/fireproof.test.fixture.ts +0 -133
  389. package/tests/fireproof/fireproof.test.ts +0 -777
  390. package/tests/fireproof/hello.test.ts +0 -74
  391. package/tests/fireproof/indexer.test.ts +0 -458
  392. package/tests/fireproof/multiple-ledger.test.ts +0 -65
  393. package/tests/fireproof/query-docs.test.ts +0 -116
  394. package/tests/fireproof/query-limit-issue.test.ts +0 -147
  395. package/tests/fireproof/query-property-inconsistency.test.ts +0 -89
  396. package/tests/fireproof/query-result-properties.test.ts +0 -42
  397. package/tests/fireproof/stable-cid.test.ts +0 -69
  398. package/tests/fireproof/utils.test.ts +0 -135
  399. package/tests/gateway/file/loader-config.test.ts +0 -307
  400. package/tests/gateway/indexeddb/loader-config.test.ts +0 -79
  401. package/tests/helpers.ts +0 -172
  402. package/tests/protocols/cloud/msger.test.ts +0 -548
  403. package/tests/react/img-file.test.tsx +0 -190
  404. package/tests/react/use-all-docs.test.tsx +0 -172
  405. package/tests/react/use-document-with-nonexistent-id.test.tsx +0 -96
  406. package/tests/react/use-fireproof-db-switch.test.tsx +0 -91
  407. package/tests/react/use-fireproof-stability.test.tsx +0 -145
  408. package/tests/react/use-fireproof.test.tsx +0 -645
  409. package/tests/runtime/fp-envelope-serialize.test.ts +0 -254
  410. package/tests/runtime/meta-key-hack.test.ts +0 -95
  411. package/tests/setup.file.ts +0 -1
  412. package/tests/setup.indexeddb.ts +0 -0
  413. package/tests/setup.memory.ts +0 -2
  414. package/tests/vitest.file.config.ts +0 -14
  415. package/tests/vitest.indexeddb.config.ts +0 -37
  416. package/tests/vitest.memory.config.ts +0 -25
  417. package/types.d.ts +0 -461
  418. package/types.d.ts.map +0 -1
  419. package/types.js +0 -60
  420. package/types.js.map +0 -1
  421. package/use-fireproof/iframe-strategy.d.ts +0 -14
  422. package/use-fireproof/iframe-strategy.d.ts.map +0 -1
  423. package/use-fireproof/iframe-strategy.js +0 -79
  424. package/use-fireproof/iframe-strategy.js.map +0 -1
  425. package/use-fireproof/index.d.ts +0 -14
  426. package/use-fireproof/index.d.ts.map +0 -1
  427. package/use-fireproof/index.js +0 -36
  428. package/use-fireproof/index.js.map +0 -1
  429. package/use-fireproof/redirect-strategy.d.ts +0 -15
  430. package/use-fireproof/redirect-strategy.d.ts.map +0 -1
  431. package/use-fireproof/redirect-strategy.js +0 -153
  432. package/use-fireproof/redirect-strategy.js.map +0 -1
  433. package/utils.d.ts +0 -48
  434. package/utils.d.ts.map +0 -1
  435. package/utils.js +0 -406
  436. package/utils.js.map +0 -1
  437. package/version.d.ts +0 -2
  438. package/version.d.ts.map +0 -1
  439. package/version.js +0 -4
  440. package/version.js.map +0 -1
  441. package/write-queue.d.ts +0 -9
  442. package/write-queue.d.ts.map +0 -1
  443. package/write-queue.js +0 -70
  444. package/write-queue.js.map +0 -1
@@ -1,154 +0,0 @@
1
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
2
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
3
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
5
- };
6
- var _HttpConnection_instances, _HttpConnection_onMsg, _HttpConnection_poll;
7
- import { HttpHeader, Result, exception2Result } from "@adviser/cement";
8
- import { ensureLogger } from "../../utils.js";
9
- import { buildErrorMsg, MsgIsError } from "./msg-types.js";
10
- import { selectRandom, timeout, } from "./msger.js";
11
- import { MsgRawConnectionBase } from "./msg-raw-connection-base.js";
12
- function toHttpProtocol(uri) {
13
- const protocol = (uri.getParam("protocol") ?? uri.protocol).replace(/:$/, "");
14
- const toFix = uri.build();
15
- switch (protocol) {
16
- case "ws":
17
- case "http":
18
- toFix.protocol("http");
19
- break;
20
- case "https":
21
- case "wss":
22
- default:
23
- toFix.protocol("https");
24
- break;
25
- }
26
- return toFix.URI();
27
- }
28
- export function ensurePath(uri, fp) {
29
- const path = uri.pathname.replace(/\/$/, "").replace(/^\//, "");
30
- const buri = uri.build();
31
- if (path === "") {
32
- buri.appendRelative(fp);
33
- }
34
- return buri.toString();
35
- }
36
- export class HttpConnection extends MsgRawConnectionBase {
37
- constructor(sthis, uris, msgP, exGestalt) {
38
- super(sthis, exGestalt);
39
- _HttpConnection_instances.add(this);
40
- _HttpConnection_onMsg.set(this, new Map());
41
- this.isReady = true;
42
- this.activeBinds = new Map();
43
- this.logger = ensureLogger(sthis, "HttpConnection");
44
- this.baseURIs = uris.map((uri) => ({
45
- in: uri,
46
- cleaned: toHttpProtocol(uri),
47
- }));
48
- this.msgP = msgP;
49
- }
50
- send(_msg) {
51
- throw new Error("Method not implemented.");
52
- }
53
- async start() {
54
- return Result.Ok(undefined);
55
- }
56
- async close() {
57
- await Promise.all(Array.from(this.activeBinds.values()).map((state) => state.controller?.close()));
58
- __classPrivateFieldGet(this, _HttpConnection_onMsg, "f").clear();
59
- return Result.Ok(undefined);
60
- }
61
- toMsg(msg) {
62
- __classPrivateFieldGet(this, _HttpConnection_onMsg, "f").forEach((fn) => fn(msg));
63
- return msg;
64
- }
65
- onMsg(fn) {
66
- const key = this.sthis.nextId().str;
67
- __classPrivateFieldGet(this, _HttpConnection_onMsg, "f").set(key, fn);
68
- return () => __classPrivateFieldGet(this, _HttpConnection_onMsg, "f").delete(key);
69
- }
70
- bind(req, opts) {
71
- const state = {
72
- id: this.sthis.nextId().str,
73
- bind: {
74
- msg: req,
75
- opts,
76
- },
77
- };
78
- this.activeBinds.set(state.id, state);
79
- return new ReadableStream({
80
- cancel: () => {
81
- clearTimeout(state.timeout);
82
- this.activeBinds.delete(state.id);
83
- },
84
- start: (controller) => {
85
- state.controller = controller;
86
- __classPrivateFieldGet(this, _HttpConnection_instances, "m", _HttpConnection_poll).call(this, state);
87
- },
88
- });
89
- }
90
- async request(req, _opts) {
91
- const headers = HttpHeader.from();
92
- headers.Set("Content-Type", this.msgP.mime);
93
- headers.Set("Accept", this.msgP.mime);
94
- const rReqBody = exception2Result(() => this.msgP.ende.encode(req));
95
- if (rReqBody.isErr()) {
96
- return this.toMsg(buildErrorMsg(this, req, this.logger.Error().Err(rReqBody.Err()).Any("req", req).Msg("encode error").AsError()));
97
- }
98
- headers.Set("Content-Length", rReqBody.Ok().byteLength.toString());
99
- const url = selectRandom(this.baseURIs);
100
- this.logger.Debug().Any(url).Any("body", req).Msg("request");
101
- const rRes = await exception2Result(() => timeout(this.msgP.timeout, fetch(ensurePath(url.cleaned, "fp"), {
102
- method: "PUT",
103
- headers: headers.AsHeaderInit(),
104
- body: rReqBody.Ok(),
105
- })));
106
- this.logger.Debug().Any(url).Any("body", rRes).Msg("response");
107
- if (rRes.isErr()) {
108
- return this.toMsg(buildErrorMsg(this, req, this.logger.Error().Err(rRes).Any(url).Msg("fetch error").AsError()));
109
- }
110
- const res = rRes.Ok();
111
- if (!res.ok) {
112
- const data = new Uint8Array(await res.arrayBuffer());
113
- const ret = await exception2Result(async () => this.msgP.ende.decode(data));
114
- if (ret.isErr() || !MsgIsError(ret.Ok())) {
115
- return this.toMsg(buildErrorMsg(this, req, this.logger
116
- .Error()
117
- .Any(url)
118
- .Str("status", res.status.toString())
119
- .Str("statusText", res.statusText)
120
- .Msg("HTTP Error")
121
- .AsError(), await res.text().catch(() => "no body")));
122
- }
123
- return this.toMsg(ret.Ok());
124
- }
125
- const data = new Uint8Array(await res.arrayBuffer());
126
- const ret = await exception2Result(async () => this.msgP.ende.decode(data));
127
- if (ret.isErr()) {
128
- return this.toMsg(buildErrorMsg(this, req, this.logger.Error().Err(ret.Err()).Msg("decode error").AsError(), this.sthis.txt.decode(data)));
129
- }
130
- return this.toMsg(ret.Ok());
131
- }
132
- }
133
- _HttpConnection_onMsg = new WeakMap(), _HttpConnection_instances = new WeakSet(), _HttpConnection_poll = function _HttpConnection_poll(state) {
134
- this.request(state.bind.msg, state.bind.opts)
135
- .then((msg) => {
136
- try {
137
- state.controller?.enqueue(msg);
138
- if (MsgIsError(msg)) {
139
- state.controller?.close();
140
- }
141
- else {
142
- state.timeout = setTimeout(() => __classPrivateFieldGet(this, _HttpConnection_instances, "m", _HttpConnection_poll).call(this, state), state.bind.opts.pollInterval ?? 1000);
143
- }
144
- }
145
- catch (err) {
146
- state.controller?.error(err);
147
- state.controller?.close();
148
- }
149
- })
150
- .catch((err) => {
151
- state.controller?.error(err);
152
- });
153
- };
154
- //# sourceMappingURL=http-connection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"http-connection.js","sourceRoot":"","sources":["../../../../../src/protocols/cloud/http-connection.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAU,MAAM,EAAO,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAW,aAAa,EAA6B,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC/F,OAAO,EAML,YAAY,EACZ,OAAO,GAER,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGpE,SAAS,cAAc,CAAC,GAAQ;IAC9B,MAAM,QAAQ,GAAG,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC9E,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,EAAE,CAAC;IAC1B,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,IAAI,CAAC;QACV,KAAK,MAAM;YACT,KAAK,CA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;QACJ,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9B,CAAC;CAMF;uIA7GO,KAAmB;IACvB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;SAC1C,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;QACZ,IAAI,CAAC;YACH,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;YAC/B,IAAI,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;gBACpB,KAAK,CAAC,UAAU,EAAE,KAAK,EAAE,CAAC;YAC5B,CAAC;iBAAM,CAAC;gBACN,KAAK,CAAC,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,uBAAA,IAAI,uDAAM,MAAV,IAAI,EAAO,KAAK,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,CAAC;YAC5F,CAAC;QACH,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;YAC7B,KAAK,CAAC,UAAU,EAAE,KAAK,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC,CAAC;SACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACb,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAE/B,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -1,10 +0,0 @@
1
- export * from "./http-connection.js";
2
- export * from "./msg-raw-connection-base.js";
3
- export * from "./msg-types-data.js";
4
- export * from "./msg-types-meta.js";
5
- export * from "./msg-types-meta.js";
6
- export * from "./msg-types-wal.js";
7
- export * from "./msg-types.js";
8
- export * from "./msger.js";
9
- export * from "./ws-connection.js";
10
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/protocols/cloud/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
@@ -1,10 +0,0 @@
1
- export * from "./http-connection.js";
2
- export * from "./msg-raw-connection-base.js";
3
- export * from "./msg-types-data.js";
4
- export * from "./msg-types-meta.js";
5
- export * from "./msg-types-meta.js";
6
- export * from "./msg-types-wal.js";
7
- export * from "./msg-types.js";
8
- export * from "./msger.js";
9
- export * from "./ws-connection.js";
10
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/protocols/cloud/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
@@ -1,16 +0,0 @@
1
- import { SuperThis } from "../../types.js";
2
- import { MsgBase, ErrorMsg } from "./msg-types.js";
3
- import { ExchangedGestalt, OnErrorFn, UnReg } from "./msger.js";
4
- import { Logger } from "@adviser/cement";
5
- export declare class MsgRawConnectionBase {
6
- readonly sthis: SuperThis;
7
- readonly exchangedGestalt: ExchangedGestalt;
8
- constructor(sthis: SuperThis, exGestalt: ExchangedGestalt);
9
- readonly onErrorFns: Map<string, OnErrorFn>;
10
- onError(fn: OnErrorFn): UnReg;
11
- buildErrorMsg(msgCtx: {
12
- readonly logger: Logger;
13
- readonly sthis: SuperThis;
14
- }, msg: Partial<MsgBase>, err: Error): ErrorMsg;
15
- }
16
- //# sourceMappingURL=msg-raw-connection-base.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-raw-connection-base.d.ts","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-raw-connection-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAiB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,qBAAa,oBAAoB;IAC/B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;gBAEhC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB;IAKzD,QAAQ,CAAC,UAAU,yBAAgC;IACnD,OAAO,CAAC,EAAE,EAAE,SAAS,GAAG,KAAK;IAM7B,aAAa,CACX,MAAM,EAAE;QACN,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;KAC3B,EACD,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,EACrB,GAAG,EAAE,KAAK,GACT,QAAQ;CASZ"}
@@ -1,22 +0,0 @@
1
- import { buildErrorMsg } from "./msg-types.js";
2
- export class MsgRawConnectionBase {
3
- constructor(sthis, exGestalt) {
4
- this.onErrorFns = new Map();
5
- this.sthis = sthis;
6
- this.exchangedGestalt = exGestalt;
7
- }
8
- onError(fn) {
9
- const key = this.sthis.nextId().str;
10
- this.onErrorFns.set(key, fn);
11
- return () => this.onErrorFns.delete(key);
12
- }
13
- buildErrorMsg(msgCtx, msg, err) {
14
- const rmsg = Array.from(this.onErrorFns.values()).reduce((msg, fn) => {
15
- return fn(msg, err);
16
- }, msg);
17
- const emsg = buildErrorMsg(msgCtx, rmsg, err);
18
- msgCtx.logger.Error().Err(err).Any("msg", rmsg).Msg("connection error");
19
- return emsg;
20
- }
21
- }
22
- //# sourceMappingURL=msg-raw-connection-base.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-raw-connection-base.js","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-raw-connection-base.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIlE,MAAM,OAAO,oBAAoB;IAI/B,YAAY,KAAgB,EAAE,SAA2B;QAKhD,eAAU,GAAG,IAAI,GAAG,EAAqB,CAAC;QAJjD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;IACpC,CAAC;IAGD,OAAO,CAAC,EAAa;QACnB,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC;QACpC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAC7B,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC3C,CAAC;IAED,aAAa,CACX,MAGC,EACD,GAAqB,EACrB,GAAU;QAGV,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE;YACnE,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QACtB,CAAC,EAAE,GAAG,CAAC,CAAC;QACR,MAAM,IAAI,GAAG,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;QAC9C,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;QACxE,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -1,36 +0,0 @@
1
- import { Result, URI } from "@adviser/cement";
2
- import { ReqSignedUrl, NextId, MsgBase, ResSignedUrl, MsgWithError, ReqSignedUrlParam, GwCtx, MsgTypesCtx, PreSignedMsg, MsgWithConn } from "./msg-types.js";
3
- export interface ReqGetData extends ReqSignedUrl {
4
- readonly type: "reqGetData";
5
- }
6
- export declare function buildReqGetData(sthis: NextId, sup: ReqSignedUrlParam, ctx: GwCtx): ReqGetData;
7
- export declare function MsgIsReqGetData(msg: MsgBase): msg is ReqGetData;
8
- export interface ResGetData extends ResSignedUrl {
9
- readonly type: "resGetData";
10
- }
11
- export declare function MsgIsResGetData(msg: MsgBase): msg is ResGetData;
12
- export interface CalculatePreSignedUrl {
13
- calculatePreSignedUrl(ctx: MsgTypesCtx, p: PreSignedMsg): Promise<Result<URI>>;
14
- }
15
- export declare function buildResGetData(msgCtx: MsgTypesCtx, req: MsgWithConn<ReqGetData>, ctx: CalculatePreSignedUrl): Promise<MsgWithError<ResGetData>>;
16
- export interface ReqPutData extends ReqSignedUrl {
17
- readonly type: "reqPutData";
18
- }
19
- export declare function MsgIsReqPutData(msg: MsgBase): msg is ReqPutData;
20
- export declare function buildReqPutData(sthis: NextId, sup: ReqSignedUrlParam, ctx: GwCtx): ReqPutData;
21
- export interface ResPutData extends ResSignedUrl {
22
- readonly type: "resPutData";
23
- }
24
- export declare function MsgIsResPutData(msg: MsgBase): msg is ResPutData;
25
- export declare function buildResPutData(msgCtx: MsgTypesCtx, req: MsgWithConn<ReqPutData>, ctx: CalculatePreSignedUrl): Promise<MsgWithError<ResPutData>>;
26
- export interface ReqDelData extends ReqSignedUrl {
27
- readonly type: "reqDelData";
28
- }
29
- export declare function MsgIsReqDelData(msg: MsgBase): msg is ReqDelData;
30
- export declare function buildReqDelData(sthis: NextId, sup: ReqSignedUrlParam, ctx: GwCtx): ReqDelData;
31
- export interface ResDelData extends ResSignedUrl {
32
- readonly type: "resDelData";
33
- }
34
- export declare function MsgIsResDelData(msg: MsgBase): msg is ResDelData;
35
- export declare function buildResDelData(msgCtx: MsgTypesCtx, req: MsgWithConn<ReqDelData>, ctx: CalculatePreSignedUrl): Promise<MsgWithError<ResDelData>>;
36
- //# sourceMappingURL=msg-types-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-types-data.d.ts","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-types-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EACL,YAAY,EACZ,MAAM,EACN,OAAO,EACP,YAAY,EACZ,YAAY,EAEZ,iBAAiB,EAEjB,KAAK,EAEL,WAAW,EACX,YAAY,EACZ,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,UAAW,SAAQ,YAAY;IAC9C,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;CAC7B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,EAAE,GAAG,EAAE,KAAK,GAAG,UAAU,CAE7F;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,UAAU,CAE/D;AAED,MAAM,WAAW,UAAW,SAAQ,YAAY;IAC9C,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;CAE7B;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,UAAU,CAE/D;AAED,MAAM,WAAW,qBAAqB;IACpC,qBAAqB,CAAC,GAAG,EAAE,WAAW,EAAE,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG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,CAE/D;AAED,wBAAgB,eAAe,CAC7B,MAAM,EAAE,WAAW,EACnB,GAAG,EAAE,WAAW,CAAC,UAAU,CAAC,EAC5B,GAAG,EAAE,qBAAqB,GACzB,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAQnC"}
@@ -1,38 +0,0 @@
1
- import { buildRes, buildReqSignedUrl, MsgIsTenantLedger, } from "./msg-types.js";
2
- export function buildReqGetData(sthis, sup, ctx) {
3
- return buildReqSignedUrl(sthis, "reqGetData", sup, ctx);
4
- }
5
- export function MsgIsReqGetData(msg) {
6
- return msg.type === "reqGetData";
7
- }
8
- export function MsgIsResGetData(msg) {
9
- return msg.type === "resGetData" && MsgIsTenantLedger(msg);
10
- }
11
- export function buildResGetData(msgCtx, req, ctx) {
12
- return buildRes({ method: "GET", store: req.methodParam.store }, "resGetData", msgCtx, req, ctx);
13
- }
14
- export function MsgIsReqPutData(msg) {
15
- return msg.type === "reqPutData";
16
- }
17
- export function buildReqPutData(sthis, sup, ctx) {
18
- return buildReqSignedUrl(sthis, "reqPutData", sup, ctx);
19
- }
20
- export function MsgIsResPutData(msg) {
21
- return msg.type === "resPutData";
22
- }
23
- export function buildResPutData(msgCtx, req, ctx) {
24
- return buildRes({ method: "PUT", store: req.methodParam.store }, "resPutData", msgCtx, req, ctx);
25
- }
26
- export function MsgIsReqDelData(msg) {
27
- return msg.type === "reqDelData";
28
- }
29
- export function buildReqDelData(sthis, sup, ctx) {
30
- return buildReqSignedUrl(sthis, "reqDelData", sup, ctx);
31
- }
32
- export function MsgIsResDelData(msg) {
33
- return msg.type === "resDelData";
34
- }
35
- export function buildResDelData(msgCtx, req, ctx) {
36
- return buildRes({ method: "DELETE", store: req.methodParam.store }, "resDelData", msgCtx, req, ctx);
37
- }
38
- //# sourceMappingURL=msg-types-data.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-types-data.js","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-types-data.ts"],"names":[],"mappings":"AAC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EACZ,MAAM,EACN,GAAG,EACH,GAAG,CACJ,CAAC;AACJ,CAAC;AAMD,MAAM,UAAU,eAAe,CAAC,GAAY;IAC1C,OAAO,GAAG,CAAC,IAAI,KAAK,YAAY,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAa,EAAE,GAAsB,EAAE,GAAU;IAC/E,OAAO,iBAAiB,CAAa,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACtE,CAAC;AAMD,MAAM,UAAU,eAAe,CAAC,GAAY;IAC1C,OAAO,GAAG,CAAC,IAAI,KAAK,YAAY,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,eAAe,CAC7B,MAAmB,EACnB,GAA4B,EAC5B,GAA0B;IAE1B,OAAO,QAAQ,CACb,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,CAAC,WAAW,CAAC,KAAK,EAAE,EAClD,YAAY,EACZ,MAAM,EACN,GAAG,EACH,GAAG,CACJ,CAAC;AACJ,CAAC"}
@@ -1,41 +0,0 @@
1
- import { AuthType, GwCtx, MsgBase, MsgWithTenantLedger, NextId, ResOptionalSignedUrl, MsgTypesCtx, SignedUrlParam, MethodSignedUrlParam, ResSignedUrl, ReqSignedUrl, MethodSignedUrlParams, MsgWithConn, MsgWithOptionalConn, ReqGwCtx } from "./msg-types.js";
2
- import { V2SerializedMetaKey } from "../../runtime/meta-key-hack.js";
3
- export interface ReqPutMeta extends MsgWithTenantLedger<MsgWithOptionalConn> {
4
- readonly type: "reqPutMeta";
5
- readonly methodParam: MethodSignedUrlParam;
6
- readonly urlParam: SignedUrlParam;
7
- readonly meta: V2SerializedMetaKey;
8
- }
9
- export interface ResPutMetaVal {
10
- readonly type: "resPutMeta";
11
- readonly meta: V2SerializedMetaKey;
12
- }
13
- export type ResPutMeta = ResPutMetaVal & ResSignedUrl & MsgWithTenantLedger<MsgWithConn>;
14
- export declare function buildReqPutMeta(sthis: NextId, auth: AuthType, signedUrlParam: SignedUrlParam, meta: V2SerializedMetaKey, gwCtx: ReqGwCtx): ReqPutMeta;
15
- export declare function MsgIsReqPutMeta(msg: MsgBase): msg is ReqPutMeta;
16
- export declare function buildResPutMeta(_msgCtx: MsgTypesCtx, req: MsgWithTenantLedger<MsgWithConn<ReqPutMeta>>, meta: V2SerializedMetaKey, signedUrl: string): ResPutMeta;
17
- export declare function MsgIsResPutMeta(qs: MsgBase): qs is ResPutMeta;
18
- export interface BindGetMeta extends MsgWithTenantLedger<MsgWithOptionalConn & ReqSignedUrl> {
19
- readonly type: "bindGetMeta";
20
- }
21
- export declare function MsgIsBindGetMeta(msg: MsgBase): msg is BindGetMeta;
22
- export interface EventGetMeta extends MsgWithTenantLedger<MsgWithConn>, Omit<ResSignedUrl, "conn"> {
23
- readonly type: "eventGetMeta";
24
- readonly meta: V2SerializedMetaKey;
25
- }
26
- export declare function buildBindGetMeta(sthis: NextId, auth: AuthType, msp: MethodSignedUrlParams, gwCtx: ReqGwCtx): BindGetMeta;
27
- export declare function buildEventGetMeta(_msgCtx: MsgTypesCtx, req: MsgWithTenantLedger<MsgWithConn<ReqSignedUrl>>, meta: V2SerializedMetaKey, gwCtx: GwCtx, signedUrl: string): EventGetMeta;
28
- export declare function MsgIsEventGetMeta(qs: MsgBase): qs is EventGetMeta;
29
- export interface ReqDelMeta extends MsgWithTenantLedger<MsgWithOptionalConn> {
30
- readonly type: "reqDelMeta";
31
- readonly urlParam: SignedUrlParam;
32
- readonly meta?: V2SerializedMetaKey;
33
- }
34
- export declare function buildReqDelMeta(sthis: NextId, auth: AuthType, param: SignedUrlParam, gwCtx: ReqGwCtx, meta?: V2SerializedMetaKey): ReqDelMeta;
35
- export declare function MsgIsReqDelMeta(msg: MsgBase): msg is ReqDelMeta;
36
- export interface ResDelMeta extends MsgWithTenantLedger<MsgWithConn>, ResOptionalSignedUrl {
37
- readonly type: "resDelMeta";
38
- }
39
- export declare function buildResDelMeta(req: MsgWithTenantLedger<MsgWithConn<ReqDelMeta>>, param: SignedUrlParam, signedUrl?: string): ResDelMeta;
40
- export declare function MsgIsResDelMeta(qs: MsgBase): qs is ResDelMeta;
41
- //# sourceMappingURL=msg-types-meta.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-types-meta.d.ts","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-types-meta.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,KAAK,EACL,OAAO,EACP,mBAAmB,EACnB,MAAM,EACN,oBAAoB,EACpB,WAAW,EACX,cAAc,EACd,oBAAoB,EACpB,YAAY,EAEZ,YAAY,EACZ,qBAAqB,EACrB,WAAW,EACX,mBAAmB,EACnB,QAAQ,EACT,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,MAAM,WAAW,UAAW,SAAQ,mBAAmB,CAAC,mBAAmB,CAAC;IAC1E,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAC3C,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;CACpC;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;CACpC;AAED,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG,YAAY,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;AAEzF,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,QAAQ,EACd,cAAc,EAAE,cAAc,EAC9B,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,QAAQ,GACd,UAAU,CAcZ;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,UAAU,CAE/D;AAED,wBAAgB,eAAe,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E,mBAAmB,CAAC;CACrC;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,cAAc,EACrB,KAAK,EAAE,QAAQ,EACf,IAAI,CAAC,EAAE,mBAAmB,GACzB,UAAU,CAYZ;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,UAAU,CAE/D;AAED,MAAM,WAAW,UAAW,SAAQ,mBAAmB,CAAC,WAAW,CAAC,EAAE,oBAAoB;IACxF,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;CAC7B;AAED,wBAAgB,eAAe,CAE7B,GAAG,EAAE,mBAAmB,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,EACjD,KAAK,EAAE,cAAc,EACrB,SAAS,CAAC,EAAE,MAAM,GACjB,UAAU,CAaZ;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,OAAO,GAAG,EAAE,IAAI,UAAU,CAE7D"}
@@ -1,98 +0,0 @@
1
- import { VERSION, } from "./msg-types.js";
2
- export function buildReqPutMeta(sthis, auth, signedUrlParam, meta, gwCtx) {
3
- return {
4
- auth,
5
- tid: sthis.nextId().str,
6
- type: "reqPutMeta",
7
- ...gwCtx,
8
- version: VERSION,
9
- methodParam: {
10
- method: "PUT",
11
- store: "meta",
12
- },
13
- urlParam: signedUrlParam,
14
- meta,
15
- };
16
- }
17
- export function MsgIsReqPutMeta(msg) {
18
- return msg.type === "reqPutMeta";
19
- }
20
- export function buildResPutMeta(_msgCtx, req, meta, signedUrl) {
21
- return {
22
- meta,
23
- tid: req.tid,
24
- conn: req.conn,
25
- auth: req.auth,
26
- methodParam: req.methodParam,
27
- urlParam: req.urlParam,
28
- tenant: req.tenant,
29
- type: "resPutMeta",
30
- signedUrl,
31
- version: VERSION,
32
- };
33
- }
34
- export function MsgIsResPutMeta(qs) {
35
- return qs.type === "resPutMeta";
36
- }
37
- export function MsgIsBindGetMeta(msg) {
38
- return msg.type === "bindGetMeta";
39
- }
40
- export function buildBindGetMeta(sthis, auth, msp, gwCtx) {
41
- return {
42
- auth,
43
- ...gwCtx,
44
- tid: gwCtx.tid ?? sthis.nextId().str,
45
- type: "bindGetMeta",
46
- version: VERSION,
47
- ...msp,
48
- };
49
- }
50
- export function buildEventGetMeta(_msgCtx, req, meta, gwCtx, signedUrl) {
51
- return {
52
- conn: gwCtx.conn,
53
- tenant: req.tenant,
54
- auth: req.auth,
55
- tid: req.tid,
56
- meta,
57
- signedUrl,
58
- type: "eventGetMeta",
59
- urlParam: req.urlParam,
60
- methodParam: { method: "GET", store: "meta" },
61
- version: VERSION,
62
- };
63
- }
64
- export function MsgIsEventGetMeta(qs) {
65
- return qs.type === "eventGetMeta";
66
- }
67
- export function buildReqDelMeta(sthis, auth, param, gwCtx, meta) {
68
- return {
69
- auth,
70
- tid: sthis.nextId().str,
71
- tenant: gwCtx.tenant,
72
- conn: gwCtx.conn,
73
- urlParam: param,
74
- meta,
75
- type: "reqDelMeta",
76
- version: VERSION,
77
- };
78
- }
79
- export function MsgIsReqDelMeta(msg) {
80
- return msg.type === "reqDelMeta";
81
- }
82
- export function buildResDelMeta(req, param, signedUrl) {
83
- return {
84
- auth: req.auth,
85
- methodParam: { method: "DELETE", store: "meta" },
86
- urlParam: param,
87
- signedUrl,
88
- tid: req.tid,
89
- conn: req.conn,
90
- tenant: req.tenant,
91
- type: "resDelMeta",
92
- version: VERSION,
93
- };
94
- }
95
- export function MsgIsResDelMeta(qs) {
96
- return qs.type === "resDelMeta";
97
- }
98
- //# sourceMappingURL=msg-types-meta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-types-meta.js","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-types-meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAWL,OAAO,GAMR,MAAM,gBAAgB,CAAC;AAkBxB,MAAM,UAAU,eAAe,CAC7B,KAAa,EACb,IAAc,EACd,cAA8B,EAC9B,IAAyB,EACzB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ACT,GAAG,EAAE,GAAG,CAAC,GAAG;QACZ,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,MAAM,EAAE,GAAG,CAAC,MAAM;QAClB,IAAI,EAAE,YAAY;QAElB,OAAO,EAAE,OAAO;KACjB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,EAAW;IACzC,OAAO,EAAE,CAAC,IAAI,KAAK,YAAY,CAAC;AAClC,CAAC"}
@@ -1,33 +0,0 @@
1
- import { MsgBase, MsgWithError, NextId, ReqSignedUrl, ResSignedUrl, ReqSignedUrlParam, GwCtx, MsgWithTenantLedger, MsgTypesCtx, MsgWithConn } from "./msg-types.js";
2
- import { CalculatePreSignedUrl } from "./msg-types-data.js";
3
- export interface ReqGetWAL extends ReqSignedUrl {
4
- readonly type: "reqGetWAL";
5
- }
6
- export declare function MsgIsReqGetWAL(msg: MsgBase): msg is ReqGetWAL;
7
- export declare function buildReqGetWAL(sthis: NextId, sup: ReqSignedUrlParam, ctx: GwCtx): ReqGetWAL;
8
- export interface ResGetWAL extends ResSignedUrl {
9
- readonly type: "resGetWAL";
10
- }
11
- export declare function MsgIsResGetWAL(msg: MsgBase): msg is ResGetWAL;
12
- export declare function buildResGetWAL(msgCtx: MsgTypesCtx, req: MsgWithTenantLedger<MsgWithConn<ReqGetWAL>>, ctx: CalculatePreSignedUrl): Promise<MsgWithError<ResGetWAL>>;
13
- export interface ReqPutWAL extends Omit<ReqSignedUrl, "type"> {
14
- readonly type: "reqPutWAL";
15
- }
16
- export declare function MsgIsReqPutWAL(msg: MsgBase): msg is ReqPutWAL;
17
- export declare function buildReqPutWAL(sthis: NextId, sup: ReqSignedUrlParam, ctx: GwCtx): ReqPutWAL;
18
- export interface ResPutWAL extends Omit<ResSignedUrl, "type"> {
19
- readonly type: "resPutWAL";
20
- }
21
- export declare function MsgIsResPutWAL(msg: MsgBase): msg is ResPutWAL;
22
- export declare function buildResPutWAL(msgCtx: MsgTypesCtx, req: MsgWithTenantLedger<MsgWithConn<ReqPutWAL>>, ctx: CalculatePreSignedUrl): Promise<MsgWithError<ResPutWAL>>;
23
- export interface ReqDelWAL extends Omit<ReqSignedUrl, "type"> {
24
- readonly type: "reqDelWAL";
25
- }
26
- export declare function MsgIsReqDelWAL(msg: MsgBase): msg is ReqDelWAL;
27
- export declare function buildReqDelWAL(sthis: NextId, sup: ReqSignedUrlParam, ctx: GwCtx): ReqDelWAL;
28
- export interface ResDelWAL extends Omit<ResSignedUrl, "type"> {
29
- readonly type: "resDelWAL";
30
- }
31
- export declare function MsgIsResDelWAL(msg: MsgBase): msg is ResDelWAL;
32
- export declare function buildResDelWAL(msgCtx: MsgTypesCtx, req: MsgWithTenantLedger<MsgWithConn<ReqDelWAL>>, ctx: CalculatePreSignedUrl): Promise<MsgWithError<ResDelWAL>>;
33
- //# sourceMappingURL=msg-types-wal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-types-wal.d.ts","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-types-wal.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,YAAY,EAEZ,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,iBAAiB,EAEjB,KAAK,EAEL,mBAAmB,EACnB,WAAW,EACX,WAAW,EACZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,WAAW,SAAU,SAAQ,YAAY;IAC7C,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;CAC5B;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,SAAS,CAE7D;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,EAAE,GAAG,EAAE,KAAK,GAAG,SAAS,CAE3F;AAED,MAAM,WAAW,SAAU,SAAQ,YAAY;IAC7C,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;CAE5B;AAED,wB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AG,SAAS,CAE3F;AAED,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC;IAC3D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;CAC5B;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,SAAS,CAE7D;AAED,wBAAgB,cAAc,CAC5B,MAAM,EAAE,WAAW,EACnB,GAAG,EAAE,mBAAmB,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,EAChD,GAAG,EAAE,qBAAqB,GACzB,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAQlC"}
@@ -1,38 +0,0 @@
1
- import { buildRes, buildReqSignedUrl, MsgIsTenantLedger, } from "./msg-types.js";
2
- export function MsgIsReqGetWAL(msg) {
3
- return msg.type === "reqGetWAL";
4
- }
5
- export function buildReqGetWAL(sthis, sup, ctx) {
6
- return buildReqSignedUrl(sthis, "reqGetWAL", sup, ctx);
7
- }
8
- export function MsgIsResGetWAL(msg) {
9
- return msg.type === "resGetWAL";
10
- }
11
- export function buildResGetWAL(msgCtx, req, ctx) {
12
- return buildRes({ method: "GET", store: "wal" }, "resGetWAL", msgCtx, req, ctx);
13
- }
14
- export function MsgIsReqPutWAL(msg) {
15
- return msg.type === "reqPutWAL";
16
- }
17
- export function buildReqPutWAL(sthis, sup, ctx) {
18
- return buildReqSignedUrl(sthis, "reqPutWAL", sup, ctx);
19
- }
20
- export function MsgIsResPutWAL(msg) {
21
- return msg.type === "resPutWAL";
22
- }
23
- export function buildResPutWAL(msgCtx, req, ctx) {
24
- return buildRes({ method: "PUT", store: "wal" }, "resPutWAL", msgCtx, req, ctx);
25
- }
26
- export function MsgIsReqDelWAL(msg) {
27
- return msg.type === "reqDelWAL";
28
- }
29
- export function buildReqDelWAL(sthis, sup, ctx) {
30
- return buildReqSignedUrl(sthis, "reqDelWAL", sup, ctx);
31
- }
32
- export function MsgIsResDelWAL(msg) {
33
- return msg.type === "resDelWAL" && MsgIsTenantLedger(msg);
34
- }
35
- export function buildResDelWAL(msgCtx, req, ctx) {
36
- return buildRes({ method: "DELETE", store: "wal" }, "resDelWAL", msgCtx, req, ctx);
37
- }
38
- //# sourceMappingURL=msg-types-wal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-types-wal.js","sourceRoot":"","sources":["../../../../../src/protocols/cloud/msg-types-wal.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,EAKR,iBAAiB,EAEjB,iBAAiB,GAIlB,MAAM,gBAAgB,CAAC;AAOxB,MAAM,UAAU,cAAc,CAAC,GAAY;IACzC,OAAO,GAAG,CAAC,IAAI,KAAK,WAAW,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAa,EAAE,GAAsB,EAAE,GAAU;IAC9E,OAAO,iBAAiB,CAAY,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACpE,CAAC;AAOD,MAAM,UAAU,cAAc,CAAC,GAAY;IACzC,OAAO,GAAG,CAAC,IAAI,KAAK,WAAW,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,cAAc,CAC5B,MAAmB,EACnB,GAAgD,EAChD,GAA0B;IAE1B,OAAO,QAAQ,CACb,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,EAC/B,WAAW,EACX,MAAM,EACN,GAAG,EACH,GAAG,CACJ,CAAC;AACJ,CAAC;AAOD,MAAM,UAAU,cAAc,CAAC,GAAY;IACzC,OAAO,GAAG,CAAC,IAAI,KAAK,WAAW,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAa,EAAE,GAAsB,EAAE,GAAU;IAC9E,OAAO,iBAAiB,CAAY,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;AACpE,CAAC;AAMD,MAAM,UAAU,cAAc,CAAC,GAAY;IACzC,OAAO,GAAG,CAAC,IAAI,KAAK,W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