@dxos/echo 0.8.4-main.5ad4a44 → 0.8.4-main.66e292d

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 (343) hide show
  1. package/dist/lib/browser/{chunk-MWLA34S5.mjs → chunk-7GH6RXJ3.mjs} +2513 -2673
  2. package/dist/lib/browser/chunk-7GH6RXJ3.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-E4UTVJNF.mjs +1111 -0
  4. package/dist/lib/browser/chunk-E4UTVJNF.mjs.map +7 -0
  5. package/dist/lib/browser/index.mjs +21 -19
  6. package/dist/lib/browser/internal/index.mjs +55 -45
  7. package/dist/lib/browser/meta.json +1 -1
  8. package/dist/lib/browser/testing/index.mjs +247 -217
  9. package/dist/lib/browser/testing/index.mjs.map +4 -4
  10. package/dist/lib/node-esm/chunk-JE5RXM2I.mjs +1111 -0
  11. package/dist/lib/node-esm/chunk-JE5RXM2I.mjs.map +7 -0
  12. package/dist/lib/node-esm/{chunk-YTNLFBIK.mjs → chunk-M4B6BMD2.mjs} +2513 -2673
  13. package/dist/lib/node-esm/chunk-M4B6BMD2.mjs.map +7 -0
  14. package/dist/lib/node-esm/index.mjs +21 -19
  15. package/dist/lib/node-esm/internal/index.mjs +55 -45
  16. package/dist/lib/node-esm/meta.json +1 -1
  17. package/dist/lib/node-esm/testing/index.mjs +247 -217
  18. package/dist/lib/node-esm/testing/index.mjs.map +4 -4
  19. package/dist/types/src/Annotation.d.ts +2 -0
  20. package/dist/types/src/Annotation.d.ts.map +1 -0
  21. package/dist/types/src/Database.d.ts +137 -0
  22. package/dist/types/src/Database.d.ts.map +1 -0
  23. package/dist/types/src/Entity.d.ts +36 -0
  24. package/dist/types/src/Entity.d.ts.map +1 -0
  25. package/dist/types/src/Format.d.ts +4 -0
  26. package/dist/types/src/Format.d.ts.map +1 -0
  27. package/dist/types/src/JsonSchema.d.ts +9 -0
  28. package/dist/types/src/JsonSchema.d.ts.map +1 -0
  29. package/dist/types/src/Key.d.ts +1 -0
  30. package/dist/types/src/Key.d.ts.map +1 -1
  31. package/dist/types/src/Obj.d.ts +85 -62
  32. package/dist/types/src/Obj.d.ts.map +1 -1
  33. package/dist/types/src/Ref.d.ts +10 -10
  34. package/dist/types/src/Ref.d.ts.map +1 -1
  35. package/dist/types/src/Relation.d.ts +14 -11
  36. package/dist/types/src/Relation.d.ts.map +1 -1
  37. package/dist/types/src/Tag.d.ts +17 -0
  38. package/dist/types/src/Tag.d.ts.map +1 -0
  39. package/dist/types/src/Type.d.ts +39 -49
  40. package/dist/types/src/Type.d.ts.map +1 -1
  41. package/dist/types/src/errors.d.ts +14 -18
  42. package/dist/types/src/errors.d.ts.map +1 -1
  43. package/dist/types/src/index.d.ts +7 -3
  44. package/dist/types/src/index.d.ts.map +1 -1
  45. package/dist/types/src/internal/annotations/annotations.d.ts +174 -0
  46. package/dist/types/src/internal/annotations/annotations.d.ts.map +1 -0
  47. package/dist/types/src/internal/annotations/annotations.test.d.ts.map +1 -0
  48. package/dist/types/src/internal/annotations/index.d.ts +3 -0
  49. package/dist/types/src/internal/annotations/index.d.ts.map +1 -0
  50. package/dist/types/src/internal/annotations/util.d.ts +26 -0
  51. package/dist/types/src/internal/annotations/util.d.ts.map +1 -0
  52. package/dist/types/src/internal/entities/entity.d.ts +10 -0
  53. package/dist/types/src/internal/entities/entity.d.ts.map +1 -0
  54. package/dist/types/src/internal/{object → entities}/expando.d.ts +3 -1
  55. package/dist/types/src/internal/entities/expando.d.ts.map +1 -0
  56. package/dist/types/src/internal/entities/index.d.ts +6 -0
  57. package/dist/types/src/internal/entities/index.d.ts.map +1 -0
  58. package/dist/types/src/internal/entities/model.d.ts +70 -0
  59. package/dist/types/src/internal/entities/model.d.ts.map +1 -0
  60. package/dist/types/src/internal/entities/object.d.ts +11 -0
  61. package/dist/types/src/internal/entities/object.d.ts.map +1 -0
  62. package/dist/types/src/internal/entities/relation.d.ts +55 -0
  63. package/dist/types/src/internal/entities/relation.d.ts.map +1 -0
  64. package/dist/types/src/internal/entities/util.d.ts +2 -0
  65. package/dist/types/src/internal/entities/util.d.ts.map +1 -0
  66. package/dist/types/src/internal/formats/format.d.ts +2 -0
  67. package/dist/types/src/internal/formats/format.d.ts.map +1 -1
  68. package/dist/types/src/internal/formats/types.d.ts +7 -7
  69. package/dist/types/src/internal/formats/types.d.ts.map +1 -1
  70. package/dist/types/src/internal/index.d.ts +6 -10
  71. package/dist/types/src/internal/index.d.ts.map +1 -1
  72. package/dist/types/src/internal/json-schema/annotations.d.ts.map +1 -0
  73. package/dist/types/src/internal/json-schema/effect-schema.test.d.ts.map +1 -0
  74. package/dist/types/src/internal/json-schema/index.d.ts +2 -0
  75. package/dist/types/src/internal/json-schema/index.d.ts.map +1 -1
  76. package/dist/types/src/internal/json-schema/json-schema-type.d.ts.map +1 -1
  77. package/dist/types/src/internal/{json → json-schema}/json-schema.d.ts +2 -5
  78. package/dist/types/src/internal/json-schema/json-schema.d.ts.map +1 -0
  79. package/dist/types/src/internal/json-schema/json-schema.test.d.ts.map +1 -0
  80. package/dist/types/src/internal/object/common.d.ts.map +1 -1
  81. package/dist/types/src/internal/object/{create.d.ts → create-object.d.ts} +9 -10
  82. package/dist/types/src/internal/object/create-object.d.ts.map +1 -0
  83. package/dist/types/src/internal/object/create-object.test.d.ts +2 -0
  84. package/dist/types/src/internal/object/create-object.test.d.ts.map +1 -0
  85. package/dist/types/src/internal/object/deleted.d.ts +2 -2
  86. package/dist/types/src/internal/object/deleted.d.ts.map +1 -1
  87. package/dist/types/src/internal/object/ids.d.ts.map +1 -1
  88. package/dist/types/src/internal/object/index.d.ts +3 -12
  89. package/dist/types/src/internal/object/index.d.ts.map +1 -1
  90. package/dist/types/src/internal/object/json-serializer.d.ts +1 -2
  91. package/dist/types/src/internal/object/json-serializer.d.ts.map +1 -1
  92. package/dist/types/src/internal/object/schema-validator.d.ts.map +1 -1
  93. package/dist/types/src/internal/object/typed-object.d.ts +1 -1
  94. package/dist/types/src/internal/object/typed-object.d.ts.map +1 -1
  95. package/dist/types/src/internal/proxy/index.d.ts +3 -0
  96. package/dist/types/src/internal/proxy/index.d.ts.map +1 -0
  97. package/dist/types/src/internal/proxy/make-object.d.ts +16 -0
  98. package/dist/types/src/internal/proxy/make-object.d.ts.map +1 -0
  99. package/dist/types/src/internal/proxy/typed-handler.d.ts +1 -1
  100. package/dist/types/src/internal/proxy/typed-handler.d.ts.map +1 -1
  101. package/dist/types/src/internal/ref/ref.d.ts +15 -12
  102. package/dist/types/src/internal/ref/ref.d.ts.map +1 -1
  103. package/dist/types/src/internal/schema/compose.d.ts.map +1 -0
  104. package/dist/types/src/internal/schema/compose.test.d.ts.map +1 -0
  105. package/dist/types/src/internal/schema/echo-schema.d.ts +9 -9
  106. package/dist/types/src/internal/schema/echo-schema.d.ts.map +1 -1
  107. package/dist/types/src/internal/schema/index.d.ts +3 -4
  108. package/dist/types/src/internal/schema/index.d.ts.map +1 -1
  109. package/dist/types/src/internal/schema/manipulation.d.ts.map +1 -1
  110. package/dist/types/src/internal/schema/persistent-schema.d.ts +18 -0
  111. package/dist/types/src/internal/schema/persistent-schema.d.ts.map +1 -0
  112. package/dist/types/src/internal/schema/runtime-schema-registry.d.ts +1 -1
  113. package/dist/types/src/internal/schema/runtime-schema-registry.d.ts.map +1 -1
  114. package/dist/types/src/internal/types/base.d.ts +37 -0
  115. package/dist/types/src/internal/types/base.d.ts.map +1 -0
  116. package/dist/types/src/internal/{ast/entity-kind.d.ts → types/entity.d.ts} +3 -1
  117. package/dist/types/src/internal/types/entity.d.ts.map +1 -0
  118. package/dist/types/src/internal/types/index.d.ts +5 -2
  119. package/dist/types/src/internal/types/index.d.ts.map +1 -1
  120. package/dist/types/src/internal/{object → types}/meta.d.ts +20 -11
  121. package/dist/types/src/internal/types/meta.d.ts.map +1 -0
  122. package/dist/types/src/internal/types/typename.d.ts +13 -0
  123. package/dist/types/src/internal/types/typename.d.ts.map +1 -0
  124. package/dist/types/src/internal/{object → types}/version.d.ts +3 -2
  125. package/dist/types/src/internal/types/version.d.ts.map +1 -0
  126. package/dist/types/src/query/filter.d.ts +167 -0
  127. package/dist/types/src/query/filter.d.ts.map +1 -0
  128. package/dist/types/src/query/index.d.ts +3 -1
  129. package/dist/types/src/query/index.d.ts.map +1 -1
  130. package/dist/types/src/query/order.d.ts +12 -0
  131. package/dist/types/src/query/order.d.ts.map +1 -0
  132. package/dist/types/src/query/query.d.ts +9 -144
  133. package/dist/types/src/query/query.d.ts.map +1 -1
  134. package/dist/types/src/query/testing.d.ts +51 -0
  135. package/dist/types/src/query/testing.d.ts.map +1 -0
  136. package/dist/types/src/{internal/query/query.d.ts → query/types.d.ts} +1 -1
  137. package/dist/types/src/query/types.d.ts.map +1 -0
  138. package/dist/types/src/query/util.d.ts +8 -0
  139. package/dist/types/src/query/util.d.ts.map +1 -0
  140. package/dist/types/src/{test → testing}/api.test.d.ts.map +1 -1
  141. package/dist/types/src/testing/index.d.ts +3 -3
  142. package/dist/types/src/testing/index.d.ts.map +1 -1
  143. package/dist/types/src/testing/test-data.d.ts +18 -0
  144. package/dist/types/src/testing/test-data.d.ts.map +1 -0
  145. package/dist/types/src/testing/test-schema.d.ts +337 -0
  146. package/dist/types/src/testing/test-schema.d.ts.map +1 -0
  147. package/dist/types/src/{internal/testing/utils.d.ts → testing/util.d.ts} +11 -5
  148. package/dist/types/src/testing/util.d.ts.map +1 -0
  149. package/dist/types/tsconfig.tsbuildinfo +1 -1
  150. package/package.json +46 -38
  151. package/src/Annotation.ts +17 -0
  152. package/src/Database.ts +189 -0
  153. package/src/Entity.ts +51 -0
  154. package/src/Format.ts +11 -0
  155. package/src/JsonSchema.ts +16 -0
  156. package/src/Key.ts +3 -0
  157. package/src/Obj.ts +260 -147
  158. package/src/Ref.ts +9 -9
  159. package/src/Relation.ts +58 -44
  160. package/src/Tag.ts +40 -0
  161. package/src/Type.ts +96 -83
  162. package/src/index.ts +10 -4
  163. package/src/internal/README.md +83 -0
  164. package/src/internal/{ast → annotations}/annotations.test.ts +13 -15
  165. package/src/internal/annotations/annotations.ts +463 -0
  166. package/src/internal/annotations/index.ts +6 -0
  167. package/src/internal/annotations/util.ts +70 -0
  168. package/src/internal/entities/entity.ts +109 -0
  169. package/src/internal/{object → entities}/expando.ts +7 -5
  170. package/src/internal/entities/index.ts +9 -0
  171. package/src/internal/entities/model.ts +129 -0
  172. package/src/internal/entities/object.ts +45 -0
  173. package/src/internal/entities/relation.ts +155 -0
  174. package/src/internal/entities/util.ts +33 -0
  175. package/src/internal/formats/date.test.ts +1 -1
  176. package/src/internal/formats/date.ts +5 -5
  177. package/src/internal/formats/format.test.ts +5 -5
  178. package/src/internal/formats/format.ts +3 -0
  179. package/src/internal/formats/number.ts +5 -5
  180. package/src/internal/formats/object.ts +2 -2
  181. package/src/internal/formats/string.ts +9 -9
  182. package/src/internal/formats/types.ts +44 -39
  183. package/src/internal/index.ts +29 -13
  184. package/src/internal/{json → json-schema}/annotations.ts +1 -1
  185. package/src/internal/json-schema/index.ts +2 -0
  186. package/src/internal/json-schema/json-schema-type.ts +4 -3
  187. package/src/internal/{json → json-schema}/json-schema.test.ts +230 -97
  188. package/src/internal/{json → json-schema}/json-schema.ts +67 -87
  189. package/src/internal/object/common.ts +3 -4
  190. package/src/internal/object/{create.test.ts → create-object.test.ts} +31 -33
  191. package/src/internal/object/{create.ts → create-object.ts} +34 -35
  192. package/src/internal/object/deleted.ts +6 -6
  193. package/src/internal/object/ids.ts +1 -1
  194. package/src/internal/object/index.ts +3 -12
  195. package/src/internal/object/inspect.ts +3 -5
  196. package/src/internal/object/json-serializer.test.ts +33 -38
  197. package/src/internal/object/json-serializer.ts +43 -38
  198. package/src/internal/object/schema-validator.ts +3 -2
  199. package/src/internal/object/typed-object.test.ts +1 -1
  200. package/src/internal/object/typed-object.ts +17 -4
  201. package/src/internal/proxy/handler.test.ts +30 -20
  202. package/src/internal/proxy/index.ts +6 -0
  203. package/src/internal/proxy/{reactive-object.ts → make-object.ts} +19 -14
  204. package/src/internal/proxy/schema.test.ts +5 -4
  205. package/src/internal/proxy/typed-handler.test.ts +28 -28
  206. package/src/internal/proxy/typed-handler.ts +11 -6
  207. package/src/internal/proxy/typed-object.test.ts +17 -12
  208. package/src/internal/ref/ref.test.ts +9 -8
  209. package/src/internal/ref/ref.ts +24 -20
  210. package/src/internal/{projection → schema}/compose.test.ts +5 -6
  211. package/src/internal/{projection → schema}/compose.ts +2 -1
  212. package/src/internal/schema/echo-schema.ts +30 -28
  213. package/src/internal/schema/index.ts +3 -4
  214. package/src/internal/schema/manipulation.ts +7 -1
  215. package/src/internal/schema/persistent-schema.ts +28 -0
  216. package/src/internal/schema/runtime-schema-registry.ts +4 -4
  217. package/src/internal/types/base.ts +58 -0
  218. package/src/internal/{ast/entity-kind.ts → types/entity.ts} +8 -0
  219. package/src/internal/types/index.ts +5 -2
  220. package/src/internal/{object → types}/meta.ts +32 -18
  221. package/src/internal/types/typename.ts +45 -0
  222. package/src/internal/types/version.ts +20 -0
  223. package/src/query/filter.ts +455 -0
  224. package/src/query/index.ts +4 -1
  225. package/src/query/order.ts +34 -0
  226. package/src/query/query.test.ts +188 -216
  227. package/src/query/query.ts +24 -505
  228. package/src/query/testing.ts +64 -0
  229. package/src/query/util.ts +25 -0
  230. package/src/testing/api.test.ts +100 -0
  231. package/src/testing/index.ts +3 -3
  232. package/src/testing/test-data.ts +130 -0
  233. package/src/testing/test-schema.ts +213 -0
  234. package/src/{internal/testing/utils.ts → testing/util.ts} +38 -14
  235. package/dist/lib/browser/chunk-MWLA34S5.mjs.map +0 -7
  236. package/dist/lib/browser/chunk-OAZJQHVO.mjs +0 -453
  237. package/dist/lib/browser/chunk-OAZJQHVO.mjs.map +0 -7
  238. package/dist/lib/browser/chunk-ORIE2FMS.mjs +0 -514
  239. package/dist/lib/browser/chunk-ORIE2FMS.mjs.map +0 -7
  240. package/dist/lib/browser/query/index.mjs +0 -23
  241. package/dist/lib/browser/query/index.mjs.map +0 -7
  242. package/dist/lib/node-esm/chunk-AXWVDOP7.mjs +0 -453
  243. package/dist/lib/node-esm/chunk-AXWVDOP7.mjs.map +0 -7
  244. package/dist/lib/node-esm/chunk-L4PBAJDP.mjs +0 -514
  245. package/dist/lib/node-esm/chunk-L4PBAJDP.mjs.map +0 -7
  246. package/dist/lib/node-esm/chunk-YTNLFBIK.mjs.map +0 -7
  247. package/dist/lib/node-esm/query/index.mjs +0 -23
  248. package/dist/lib/node-esm/query/index.mjs.map +0 -7
  249. package/dist/types/src/internal/ast/annotation-helper.d.ts +0 -8
  250. package/dist/types/src/internal/ast/annotation-helper.d.ts.map +0 -1
  251. package/dist/types/src/internal/ast/annotations.d.ts +0 -119
  252. package/dist/types/src/internal/ast/annotations.d.ts.map +0 -1
  253. package/dist/types/src/internal/ast/annotations.test.d.ts.map +0 -1
  254. package/dist/types/src/internal/ast/entity-kind.d.ts.map +0 -1
  255. package/dist/types/src/internal/ast/index.d.ts +0 -5
  256. package/dist/types/src/internal/ast/index.d.ts.map +0 -1
  257. package/dist/types/src/internal/ast/types.d.ts +0 -6
  258. package/dist/types/src/internal/ast/types.d.ts.map +0 -1
  259. package/dist/types/src/internal/json/annotations.d.ts.map +0 -1
  260. package/dist/types/src/internal/json/effect-schema.test.d.ts.map +0 -1
  261. package/dist/types/src/internal/json/index.d.ts +0 -2
  262. package/dist/types/src/internal/json/index.d.ts.map +0 -1
  263. package/dist/types/src/internal/json/json-schema.d.ts.map +0 -1
  264. package/dist/types/src/internal/json/json-schema.test.d.ts.map +0 -1
  265. package/dist/types/src/internal/object/accessors.d.ts +0 -29
  266. package/dist/types/src/internal/object/accessors.d.ts.map +0 -1
  267. package/dist/types/src/internal/object/create.d.ts.map +0 -1
  268. package/dist/types/src/internal/object/create.test.d.ts +0 -2
  269. package/dist/types/src/internal/object/create.test.d.ts.map +0 -1
  270. package/dist/types/src/internal/object/entity.d.ts +0 -22
  271. package/dist/types/src/internal/object/entity.d.ts.map +0 -1
  272. package/dist/types/src/internal/object/expando.d.ts.map +0 -1
  273. package/dist/types/src/internal/object/meta.d.ts.map +0 -1
  274. package/dist/types/src/internal/object/model.d.ts +0 -117
  275. package/dist/types/src/internal/object/model.d.ts.map +0 -1
  276. package/dist/types/src/internal/object/relation.d.ts +0 -17
  277. package/dist/types/src/internal/object/relation.d.ts.map +0 -1
  278. package/dist/types/src/internal/object/typed-relation.d.ts +0 -32
  279. package/dist/types/src/internal/object/typed-relation.d.ts.map +0 -1
  280. package/dist/types/src/internal/object/typename.d.ts +0 -15
  281. package/dist/types/src/internal/object/typename.d.ts.map +0 -1
  282. package/dist/types/src/internal/object/version.d.ts.map +0 -1
  283. package/dist/types/src/internal/projection/compose.d.ts.map +0 -1
  284. package/dist/types/src/internal/projection/compose.test.d.ts.map +0 -1
  285. package/dist/types/src/internal/projection/index.d.ts +0 -2
  286. package/dist/types/src/internal/projection/index.d.ts.map +0 -1
  287. package/dist/types/src/internal/proxy/reactive-object.d.ts +0 -15
  288. package/dist/types/src/internal/proxy/reactive-object.d.ts.map +0 -1
  289. package/dist/types/src/internal/query/index.d.ts +0 -2
  290. package/dist/types/src/internal/query/index.d.ts.map +0 -1
  291. package/dist/types/src/internal/query/query.d.ts.map +0 -1
  292. package/dist/types/src/internal/schema/stored-schema.d.ts +0 -13
  293. package/dist/types/src/internal/schema/stored-schema.d.ts.map +0 -1
  294. package/dist/types/src/internal/testing/index.d.ts +0 -3
  295. package/dist/types/src/internal/testing/index.d.ts.map +0 -1
  296. package/dist/types/src/internal/testing/types.d.ts +0 -455
  297. package/dist/types/src/internal/testing/types.d.ts.map +0 -1
  298. package/dist/types/src/internal/testing/utils.d.ts.map +0 -1
  299. package/dist/types/src/internal/types/types.d.ts +0 -79
  300. package/dist/types/src/internal/types/types.d.ts.map +0 -1
  301. package/dist/types/src/internal/types/types.test.d.ts +0 -2
  302. package/dist/types/src/internal/types/types.test.d.ts.map +0 -1
  303. package/dist/types/src/internal/types/util.d.ts +0 -5
  304. package/dist/types/src/internal/types/util.d.ts.map +0 -1
  305. package/dist/types/src/query/tag.d.ts +0 -18
  306. package/dist/types/src/query/tag.d.ts.map +0 -1
  307. package/dist/types/src/testing/echo-schema.d.ts +0 -7
  308. package/dist/types/src/testing/echo-schema.d.ts.map +0 -1
  309. package/dist/types/src/testing/types.d.ts +0 -113
  310. package/dist/types/src/testing/types.d.ts.map +0 -1
  311. package/src/internal/ast/annotation-helper.ts +0 -22
  312. package/src/internal/ast/annotations.ts +0 -212
  313. package/src/internal/ast/index.ts +0 -8
  314. package/src/internal/ast/types.ts +0 -17
  315. package/src/internal/json/index.ts +0 -5
  316. package/src/internal/object/accessors.ts +0 -115
  317. package/src/internal/object/entity.ts +0 -204
  318. package/src/internal/object/model.ts +0 -170
  319. package/src/internal/object/relation.ts +0 -24
  320. package/src/internal/object/typed-relation.ts +0 -85
  321. package/src/internal/object/typename.ts +0 -61
  322. package/src/internal/object/version.ts +0 -22
  323. package/src/internal/projection/index.ts +0 -5
  324. package/src/internal/query/index.ts +0 -5
  325. package/src/internal/schema/stored-schema.ts +0 -26
  326. package/src/internal/testing/index.ts +0 -6
  327. package/src/internal/testing/types.ts +0 -211
  328. package/src/internal/types/types.test.ts +0 -48
  329. package/src/internal/types/types.ts +0 -176
  330. package/src/internal/types/util.ts +0 -9
  331. package/src/query/tag.ts +0 -35
  332. package/src/test/api.test.ts +0 -180
  333. package/src/testing/echo-schema.ts +0 -39
  334. package/src/testing/types.ts +0 -91
  335. /package/dist/types/src/internal/{ast → annotations}/annotations.test.d.ts +0 -0
  336. /package/dist/types/src/internal/{json → json-schema}/annotations.d.ts +0 -0
  337. /package/dist/types/src/internal/{json → json-schema}/effect-schema.test.d.ts +0 -0
  338. /package/dist/types/src/internal/{json → json-schema}/json-schema.test.d.ts +0 -0
  339. /package/dist/types/src/internal/{projection → schema}/compose.d.ts +0 -0
  340. /package/dist/types/src/internal/{projection → schema}/compose.test.d.ts +0 -0
  341. /package/dist/types/src/{test → testing}/api.test.d.ts +0 -0
  342. /package/src/internal/{json → json-schema}/effect-schema.test.ts +0 -0
  343. /package/src/{internal/query/query.ts → query/types.ts} +0 -0
@@ -1,23 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- Filter,
4
- Order,
5
- Query,
6
- Tag,
7
- TagInfo,
8
- createTagList,
9
- findTagByLabel,
10
- sortTags
11
- } from "../chunk-AXWVDOP7.mjs";
12
- import "../chunk-YTNLFBIK.mjs";
13
- export {
14
- Filter,
15
- Order,
16
- Query,
17
- Tag,
18
- TagInfo,
19
- createTagList,
20
- findTagByLabel,
21
- sortTags
22
- };
23
- //# sourceMappingURL=index.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": [],
4
- "sourcesContent": [],
5
- "mappings": "",
6
- "names": []
7
- }
@@ -1,8 +0,0 @@
1
- import type * as Option from 'effect/Option';
2
- import type * as Schema from 'effect/Schema';
3
- export interface AnnotationHelper<T> {
4
- get: (schema: Schema.Schema.Any) => Option.Option<T>;
5
- set: (value: T) => <S extends Schema.Schema.Any>(schema: S) => S;
6
- }
7
- export declare const createAnnotationHelper: <T>(id: symbol) => AnnotationHelper<T>;
8
- //# sourceMappingURL=annotation-helper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotation-helper.d.ts","sourceRoot":"","sources":["../../../../../src/internal/ast/annotation-helper.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAG7C,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACrD,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC;CAClE;AAED,eAAO,MAAM,sBAAsB,GAAI,CAAC,EAAE,IAAI,MAAM,KAAG,gBAAgB,CAAC,CAAC,CAQxE,CAAC"}
@@ -1,119 +0,0 @@
1
- import * as Schema from 'effect/Schema';
2
- import * as SchemaAST from 'effect/SchemaAST';
3
- import { DXN } from '@dxos/keys';
4
- import { type Primitive } from '@dxos/util';
5
- import { EntityKind } from './entity-kind';
6
- /**
7
- * If property is optional returns the nested property, otherwise returns the property.
8
- */
9
- export declare const unwrapOptional: (property: SchemaAST.PropertySignature) => SchemaAST.AST | SchemaAST.PropertySignature;
10
- /**
11
- * ECHO identifier (for a stored schema).
12
- * Must be a `dxn:echo:` URI.
13
- */
14
- export declare const TypeIdentifierAnnotationId: unique symbol;
15
- export declare const getTypeIdentifierAnnotation: (schema: Schema.Schema.All) => string | undefined;
16
- /**
17
- * ECHO type.
18
- */
19
- export declare const TypeAnnotationId: unique symbol;
20
- export declare const Typename: Schema.filter<typeof Schema.String>;
21
- export declare const SchemaVersion: Schema.filter<typeof Schema.String>;
22
- /**
23
- * Payload stored under {@link TypeAnnotationId}.
24
- */
25
- export declare const TypeAnnotation: Schema.Struct<{
26
- kind: Schema.Enums<typeof EntityKind>;
27
- typename: Schema.filter<typeof Schema.String>;
28
- version: Schema.filter<typeof Schema.String>;
29
- /**
30
- * If this is a relation, the schema of the source object.
31
- * Must be present if entity kind is {@link EntityKind.Relation}.
32
- */
33
- sourceSchema: Schema.optional<Schema.refine<string, typeof Schema.NonEmptyString>>;
34
- /**
35
- * If this is a relation, the schema of the target object.
36
- * Must be present if entity kind is {@link EntityKind.Relation}.
37
- */
38
- targetSchema: Schema.optional<Schema.refine<string, typeof Schema.NonEmptyString>>;
39
- }>;
40
- export interface TypeAnnotation extends Schema.Schema.Type<typeof TypeAnnotation> {
41
- }
42
- export type TypeMeta = Pick<TypeAnnotation, 'typename' | 'version'>;
43
- /**
44
- * @returns {@link TypeAnnotation} from a schema.
45
- * Schema must have been created with {@link TypedObject} or {@link TypedLink} or manually assigned an appropriate annotation.
46
- */
47
- export declare const getTypeAnnotation: (schema: Schema.Schema.All) => TypeAnnotation | undefined;
48
- /**
49
- * @returns {@link EntityKind} from a schema.
50
- */
51
- export declare const getEntityKind: (schema: Schema.Schema.All) => EntityKind | undefined;
52
- /**
53
- * @deprecated Use {@link Type.getTypename} instead.
54
- * @returns Schema typename (without dxn: prefix or version number).
55
- */
56
- export declare const getSchemaTypename: (schema: Schema.Schema.All) => string | undefined;
57
- /**
58
- * @deprecated Use {@link Type.getVersion} instead.
59
- * @returns Schema version in semver format.
60
- */
61
- export declare const getSchemaVersion: (schema: Schema.Schema.All) => string | undefined;
62
- /**
63
- * PropertyMeta (metadata for dynamic schema properties).
64
- * For user-defined annotations.
65
- */
66
- export declare const PropertyMetaAnnotationId: unique symbol;
67
- export type PropertyMetaValue = Primitive | Record<string, Primitive> | Primitive[];
68
- export type PropertyMetaAnnotation = {
69
- [name: string]: PropertyMetaValue;
70
- };
71
- export declare const PropertyMeta: (name: string, value: PropertyMetaValue) => <A, I, R>(self: Schema.Schema<A, I, R>) => Schema.Schema<A, I, R>;
72
- export declare const getPropertyMetaAnnotation: <T>(prop: SchemaAST.PropertySignature, name: string) => T | undefined;
73
- /**
74
- * Schema reference.
75
- */
76
- export declare const ReferenceAnnotationId: unique symbol;
77
- export type ReferenceAnnotationValue = TypeAnnotation;
78
- export declare const getReferenceAnnotation: (schema: Schema.Schema.AnyNoContext) => TypeAnnotation | undefined;
79
- /**
80
- * SchemaMeta.
81
- */
82
- export declare const SchemaMetaSymbol: unique symbol;
83
- export type SchemaMeta = TypeMeta & {
84
- id: string;
85
- };
86
- /**
87
- * Identifies a schema as a view.
88
- */
89
- export declare const ViewAnnotationId: unique symbol;
90
- export declare const ViewAnnotation: import("./annotation-helper").AnnotationHelper<boolean>;
91
- /**
92
- * Identifies label property or JSON path expression.
93
- * Either a string or an array of strings representing field accessors each matched in priority order.
94
- */
95
- export declare const LabelAnnotationId: unique symbol;
96
- export declare const LabelAnnotation: import("./annotation-helper").AnnotationHelper<string[]>;
97
- /**
98
- * Default field to be used on referenced schema to lookup the value.
99
- */
100
- export declare const FieldLookupAnnotationId: unique symbol;
101
- /**
102
- * Generate test data.
103
- */
104
- export declare const GeneratorAnnotationId: unique symbol;
105
- export type GeneratorAnnotationValue = string | {
106
- generator: string;
107
- args?: any[];
108
- probability?: number;
109
- };
110
- export declare const GeneratorAnnotation: import("./annotation-helper").AnnotationHelper<GeneratorAnnotationValue>;
111
- /**
112
- * @returns DXN of the schema.
113
- *
114
- * For non-stored schema returns `dxn:type:`.
115
- * For stored schema returns `dxn:echo:`.
116
- * @deprecated Use `Type.getDXN`.
117
- */
118
- export declare const getSchemaDXN: (schema: Schema.Schema.All) => DXN | undefined;
119
- //# sourceMappingURL=annotations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../../../src/internal/ast/annotations.ts"],"names":[],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotations.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/ast/annotations.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"entity-kind.d.ts","sourceRoot":"","sources":["../../../../../src/internal/ast/entity-kind.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC;;GAEG;AACH,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,eAAO,MAAM,gBAAgB,iCAA2B,CAAC"}
@@ -1,5 +0,0 @@
1
- export * from './annotations';
2
- export * from './annotation-helper';
3
- export * from './types';
4
- export * from './entity-kind';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/ast/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Sets the path for the field.
3
- * @param path Data source path in the json path format. This is the field path in the source object.
4
- */
5
- export declare const FieldPath: (path: string) => <A, I, R>(self: import("effect/Schema").Schema<A, I, R>) => import("effect/Schema").Schema<A, I, R>;
6
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/internal/ast/types.ts"],"names":[],"mappings":"AAWA;;;GAGG;AAEH,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,wGAA8C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../../../src/internal/json/annotations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAOrF,KAAK,sBAAsB,GAAG,MAAM,cAAc,CAAC;AAGnD,KAAK,4BAA4B,GAAG,MAAM,yBAAyB,CAAC;AAEpE;;;GAGG;AAEH,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAG7E,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAG9E,CAAC;AAEF;;GAEG;AAGH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,MAAM,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAKjF,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"effect-schema.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/json/effect-schema.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from './json-schema';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/json/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../../../../../src/internal/json/json-schema.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAmBxC,OAAO,EAIL,KAAK,cAAc,EAEpB,MAAM,gBAAgB,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAQ,MAAM,CAAC,MAAM,CAAC,GAAG,CAAqB,KAAG,cAOjF,CAAC;AAGF,oBAAY,QAAQ;IAClB,IAAI,IAAI;IACR,MAAM,IAAI,CAAE,yBAAyB;IACrC,MAAM,IAAI;IACV,OAAO,IAAI;IACX,IAAI,IAAI;IACR,GAAG,IAAI;IACP,MAAM,IAAI;IACV,IAAI,IAAI;CACT;AAGD,eAAO,MAAM,UAAU,GAAI,OAAO,QAAQ,KAAG,MAiB5C,CAAC;AAIF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,UAAS,iBAAsB,KAAG,cAoBzF,CAAC;AA4HF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,MAAM,cAAc,EAAE,QAAQ,cAAc,CAAC,OAAO,CAAC,KAAG,MAAM,CAAC,MAAM,CAAC,YA0GpG,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"json-schema.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/json/json-schema.test.ts"],"names":[],"mappings":""}
@@ -1,29 +0,0 @@
1
- import * as Schema from 'effect/Schema';
2
- import { DXN } from '@dxos/keys';
3
- /**
4
- * Returns a DXN for an object or schema.
5
- * @deprecated Use `Obj.getDXN`.
6
- */
7
- export declare const getObjectDXN: (object: any) => DXN | undefined;
8
- /**
9
- * Returns the schema for the given object if one is defined.
10
- */
11
- export declare const getSchema: (obj: unknown | undefined) => Schema.Schema.AnyNoContext | undefined;
12
- /**
13
- * Internal use only.
14
- */
15
- export declare const setSchema: (obj: any, schema: Schema.Schema.AnyNoContext) => void;
16
- /**
17
- * @deprecated Use {@link Obj.getLabel} instead.
18
- * Returns the label for a given object based on {@link LabelAnnotationId}.
19
- */
20
- export declare const getLabelForObject: (obj: unknown | undefined) => string | undefined;
21
- /**
22
- * Returns the label for a given object based on {@link LabelAnnotationId}.
23
- */
24
- export declare const getLabel: <S extends Schema.Schema.Any>(schema: S, object: Schema.Schema.Type<S>) => string | undefined;
25
- /**
26
- * Sets the label for a given object based on {@link LabelAnnotationId}.
27
- */
28
- export declare const setLabel: <S extends Schema.Schema.Any>(schema: S, object: Schema.Schema.Type<S>, label: string) => void;
29
- //# sourceMappingURL=accessors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accessors.d.ts","sourceRoot":"","sources":["../../../../../src/internal/object/accessors.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,GAAG,EAAY,MAAM,YAAY,CAAC;AAW3C;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,QAAQ,GAAG,KAAG,GAAG,GAAG,SAehD,CAAC;AAEF;;GAEG;AAGH,eAAO,MAAM,SAAS,GAAI,KAAK,OAAO,GAAG,SAAS,KAAG,MAAM,CAAC,MAAM,CAAC,YAAY,GAAG,SAIjF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,KAAK,GAAG,EAAE,QAAQ,MAAM,CAAC,MAAM,CAAC,YAAY,SAOrE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,KAAK,OAAO,GAAG,SAAS,KAAG,MAAM,GAAG,SAKrE,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,QAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,KAAG,MAAM,GAAG,SAwBzG,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,QAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,MAAM,SAM5G,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../../src/internal/object/create.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAY7C,OAAO,EACL,YAAY,EAOb,MAAM,SAAS,CAAC;AAIjB,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC,CAAC,EAAE,IAAI,GAAG,OAAO,YAAY,CAAC,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,CAAC,CAAC;AAE1G;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAIH,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,CAAC,YAAY,EACzD,QAAQ,CAAC,EACT,MAAM,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KACtC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CA+BlD,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=create.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/object/create.test.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- import * as Schema from 'effect/Schema';
2
- import type * as Types from 'effect/Types';
3
- import { type TypeMeta } from '../ast';
4
- import { type HasId, type ToMutable } from '../types';
5
- import { type RelationSourceTargetRefs } from './relation';
6
- type EchoTypeSchemaProps<T, ExtraFields = {}> = Types.Simplify<HasId & ToMutable<T> & ExtraFields>;
7
- export interface EchoTypeSchema<Self extends Schema.Schema.Any, ExtraFields = {}> extends TypeMeta, Schema.AnnotableClass<EchoTypeSchema<Self, ExtraFields>, EchoTypeSchemaProps<Schema.Schema.Type<Self>, ExtraFields>, EchoTypeSchemaProps<Schema.Schema.Encoded<Self>, ExtraFields>, Schema.Schema.Context<Self>> {
8
- instanceOf(value: unknown): boolean;
9
- }
10
- /**
11
- * Pipeable function to add ECHO object annotations to a schema.
12
- */
13
- export declare const EchoObject: {
14
- (meta: TypeMeta): <Self extends Schema.Schema.Any>(self: Self) => EchoTypeSchema<Self>;
15
- };
16
- export type EchoRelationOptions<TSource extends Schema.Schema.AnyNoContext, TTarget extends Schema.Schema.AnyNoContext> = TypeMeta & {
17
- source: TSource;
18
- target: TTarget;
19
- };
20
- export declare const EchoRelation: <Source extends Schema.Schema.AnyNoContext, Target extends Schema.Schema.AnyNoContext>(options: EchoRelationOptions<Source, Target>) => <Self extends Schema.Schema.Any>(self: Self) => EchoTypeSchema<Self, RelationSourceTargetRefs<Schema.Schema.Type<Source>, Schema.Schema.Type<Target>>>;
21
- export {};
22
- //# sourceMappingURL=entity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../../../src/internal/object/entity.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAM3C,OAAO,EAIL,KAAK,QAAQ,EAId,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAEtD,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAK3D,KAAK,mBAAmB,CAAC,CAAC,EAAE,WAAW,GAAG,EAAE,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC;AAEnG,MAAM,WAAW,cAAc,CAAC,IAAI,SAAS,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,WAAW,GAAG,EAAE,CAC9E,SAAQ,QAAQ,EACd,MAAM,CAAC,cAAc,CACnB,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,EACjC,mBAAmB,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,EAC1D,mBAAmB,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,EAC7D,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAC5B;IAQH,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;CACrC;AAED;;GAEG;AAEH,eAAO,MAAM,UAAU,EAAE;IAGvB,CAAC,IAAI,EAAE,QAAQ,GAAG,CAAC,IAAI,SAAS,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,KAAK,cAAc,CAAC,IAAI,CAAC,CAAC;CAkBxF,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAC7B,OAAO,SAAS,MAAM,CAAC,MAAM,CAAC,YAAY,EAC1C,OAAO,SAAS,MAAM,CAAC,MAAM,CAAC,YAAY,IACxC,QAAQ,GAAG;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAGF,eAAO,MAAM,YAAY,GAAI,MAAM,SAAS,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,CAAC,YAAY,EAC/G,SAAS,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,MAWpC,IAAI,SAAS,MAAM,CAAC,MAAM,CAAC,GAAG,EACpC,MAAM,IAAI,KACT,cAAc,CAAC,IAAI,EAAE,wBAAwB,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAqBzG,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"expando.d.ts","sourceRoot":"","sources":["../../../../../src/internal/object/expando.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,eAAO,MAAM,gBAAgB,0BAA0B,CAAC;AAExD,QAAA,MAAM,aAAa;;;QAElB,CAAC;AAEF;;GAEG;AAEH,MAAM,WAAW,OAAQ,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC;CAAG;AAE5E,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAiB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../../../src/internal/object/meta.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,KAAK,UAAU,EAAgB,MAAM,YAAY,CAAC;AAE3D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAS3C,eAAO,MAAM,gBAAgB;;;;;;;;IAIzB;;;;OAIG;;GAKN,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAErE,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,EAAE,IAAI,MAAM,KAAG,UAA8B,CAAC;AACvF,eAAO,MAAM,gBAAgB,GAAI,GAAG,UAAU,EAAE,GAAG,UAAU,YAA2C,CAAC;AAEzG;;;;GAIG;AAEH,eAAO,MAAM,aAAa,GAAI,KAAK,GAAG,KAAG,UAExC,CAAC;AAMF,eAAO,MAAM,OAAO,GAAI,KAAK,UAAU,KAAG,UAIzC,CAAC;AAGF,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,UAAU,CACuB,CAAC"}
@@ -1,117 +0,0 @@
1
- import type * as Schema from 'effect/Schema';
2
- import { type ForeignKey } from '@dxos/echo-protocol';
3
- import { DXN, ObjectId } from '@dxos/keys';
4
- import { EntityKind } from '../ast';
5
- import { type ObjectMeta } from './meta';
6
- import type { Version } from './version';
7
- /**
8
- * Entity kind.
9
- */
10
- export declare const EntityKindId: unique symbol;
11
- /**
12
- * DXN to the object itself.
13
- */
14
- export declare const SelfDXNId: unique symbol;
15
- /**
16
- * Property name for self DXN when object is serialized to JSON.
17
- */
18
- export declare const ATTR_SELF_DXN = "@dxn";
19
- /**
20
- * DXN to the object type.
21
- */
22
- export declare const TypeId: unique symbol;
23
- /**
24
- * Property name for typename when object is serialized to JSON.
25
- */
26
- export declare const ATTR_TYPE = "@type";
27
- /**
28
- * Reference to the object schema.
29
- */
30
- export declare const SchemaId: unique symbol;
31
- /**
32
- * Deletion marker.
33
- */
34
- export declare const DeletedId: unique symbol;
35
- /**
36
- * Property name for deleted when object is serialized to JSON.
37
- */
38
- export declare const ATTR_DELETED = "@deleted";
39
- /**
40
- * Metadata section.
41
- */
42
- export declare const MetaId: unique symbol;
43
- /**
44
- * Property name for meta when object is serialized to JSON.
45
- */
46
- export declare const ATTR_META = "@meta";
47
- /**
48
- * Used to access relation source ref on live ECHO objects.
49
- * Reading this symbol must return `Live<EchoObject<any>>` or a DXN.
50
- */
51
- export declare const RelationSourceDXNId: unique symbol;
52
- /**
53
- * Property name for relation source when object is serialized to JSON.
54
- */
55
- export declare const ATTR_RELATION_SOURCE = "@relationSource";
56
- /**
57
- * Used to access relation target ref on live ECHO objects.
58
- * Reading this symbol must return `Live<EchoObject<any>>` or a DXN.
59
- */
60
- export declare const RelationTargetDXNId: unique symbol;
61
- /**
62
- * Property name for relation target when object is serialized to JSON.
63
- */
64
- export declare const ATTR_RELATION_TARGET = "@relationTarget";
65
- /**
66
- * Used to access relation source ref on live ECHO objects.
67
- * Reading this symbol must return `Live<EchoObject<any>>` or a DXN.
68
- */
69
- export declare const RelationSourceId: unique symbol;
70
- /**
71
- * Used to access relation target ref on live ECHO objects.
72
- * Reading this symbol must return `Live<EchoObject<any>>` or a DXN.
73
- */
74
- export declare const RelationTargetId: unique symbol;
75
- /**
76
- * Getter to get object version.
77
- */
78
- export declare const ObjectVersionId: unique symbol;
79
- /**
80
- * Internal runtime representation of an object.
81
- * The fields are accessed through getter functions.
82
- */
83
- export interface InternalObjectProps {
84
- id: ObjectId;
85
- readonly [SelfDXNId]?: DXN;
86
- readonly [TypeId]?: DXN;
87
- /**
88
- * Returns the schema for the object.
89
- */
90
- readonly [SchemaId]?: Schema.Schema.AnyNoContext;
91
- readonly [EntityKindId]: EntityKind;
92
- readonly [DeletedId]?: boolean;
93
- readonly [MetaId]?: ObjectMeta;
94
- readonly [RelationSourceDXNId]?: DXN;
95
- readonly [RelationTargetDXNId]?: DXN;
96
- readonly [RelationSourceId]?: InternalObjectProps;
97
- readonly [RelationTargetId]?: InternalObjectProps;
98
- readonly [ObjectVersionId]?: Version;
99
- }
100
- /**
101
- * JSON representation of an object or relation.
102
- */
103
- export interface ObjectJSON {
104
- id: string;
105
- [ATTR_SELF_DXN]?: DXN.String;
106
- [ATTR_TYPE]: DXN.String;
107
- [ATTR_DELETED]?: boolean;
108
- [ATTR_META]?: ObjectMetaJSON;
109
- [ATTR_RELATION_SOURCE]?: DXN.String;
110
- [ATTR_RELATION_TARGET]?: DXN.String;
111
- }
112
- export interface ObjectMetaJSON {
113
- keys: ForeignKey[];
114
- tags?: string[];
115
- }
116
- export declare function assertObjectModelShape(obj: unknown): asserts obj is InternalObjectProps;
117
- //# sourceMappingURL=model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../../../src/internal/object/model.ts"],"names":[],"mappings":"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"}
@@ -1,17 +0,0 @@
1
- import type { RelationSourceId, RelationTargetId } from './model';
2
- /**
3
- * Source and target props on relations.
4
- */
5
- export type RelationSourceTargetRefs<Source = any, Target = any> = {
6
- /**
7
- * Source ECHO live object.
8
- */
9
- [RelationSourceId]: Source;
10
- /**
11
- * Target ECHO live object.
12
- */
13
- [RelationTargetId]: Target;
14
- };
15
- export type RelationSource<R> = R extends RelationSourceTargetRefs<infer Source, infer _Target> ? Source : never;
16
- export type RelationTarget<R> = R extends RelationSourceTargetRefs<infer _Source, infer Target> ? Target : never;
17
- //# sourceMappingURL=relation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"relation.d.ts","sourceRoot":"","sources":["../../../../../src/internal/object/relation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAElE;;GAEG;AAEH,MAAM,MAAM,wBAAwB,CAAC,MAAM,GAAG,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI;IACjE;;OAEG;IACH,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS,wBAAwB,CAAC,MAAM,MAAM,EAAE,MAAM,OAAO,CAAC,GAAG,MAAM,GAAG,KAAK,CAAC;AACjH,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS,wBAAwB,CAAC,MAAM,OAAO,EAAE,MAAM,MAAM,CAAC,GAAG,MAAM,GAAG,KAAK,CAAC"}
@@ -1,32 +0,0 @@
1
- import * as Schema from 'effect/Schema';
2
- import { type TypeMeta } from '../ast';
3
- import { type HasId } from '../types';
4
- import { type TypedObjectFields, type TypedObjectOptions } from './common';
5
- import { type RelationSourceTargetRefs } from './relation';
6
- /**
7
- * Definition for an object type that can be stored in an ECHO database.
8
- * Implements effect schema to define object properties.
9
- * Has a typename and version.
10
- *
11
- * In contrast to {@link EchoSchema} this definition is not recorded in the database.
12
- */
13
- export interface TypedRelation<A = any, I = any> extends TypeMeta, Schema.Schema<A, I> {
14
- }
15
- /**
16
- * Typed object that could be used as a prototype in class definitions.
17
- * This is an internal API type.
18
- * Use {@link TypedRelation} for the common use-cases.
19
- */
20
- export interface TypedRelationPrototype<A = any, I = any> extends TypedRelation<A, I> {
21
- /** Type constructor. */
22
- new (): HasId & A;
23
- }
24
- export type TypedRelationProps = TypeMeta & {
25
- disableValidation?: boolean;
26
- };
27
- /**
28
- * Base class factory for typed objects.
29
- * @deprecated Use {@link EchoRelation} instead.
30
- */
31
- export declare const TypedRelation: ({ typename: typenameParam, version: versionParam, disableValidation, }: TypedRelationProps) => <SchemaFields extends Schema.Struct.Fields, Options extends TypedObjectOptions>(fields: SchemaFields, options?: Options) => TypedRelationPrototype<TypedObjectFields<SchemaFields, Options> & RelationSourceTargetRefs, Schema.Struct.Encoded<SchemaFields>>;
32
- //# sourceMappingURL=typed-relation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typed-relation.d.ts","sourceRoot":"","sources":["../../../../../src/internal/object/typed-relation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAoE,KAAK,QAAQ,EAAY,MAAM,QAAQ,CAAC;AACnH,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAwB,MAAM,UAAU,CAAC;AACjG,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D;;;;;;GAMG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,CAAE,SAAQ,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC;CAAG;AAEzF;;;;GAIG;AACH,MAAM,WAAW,sBAAsB,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,GAAG,CAAE,SAAQ,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC;IACnF,wBAAwB;IACxB,QAAQ,KAAK,GAAG,CAAC,CAAC;CACnB;AAED,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG;IAE1C,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,wEAI3B,kBAAkB,MAOX,YAAY,SAAS,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,SAAS,kBAAkB,EACnF,QAAQ,YAAY,EACpB,UAAU,OAAO,KAChB,sBAAsB,CACvB,iBAAiB,CAAC,YAAY,EAAE,OAAO,CAAC,GAAG,wBAAwB,EACnE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,CA0BtC,CAAC"}
@@ -1,15 +0,0 @@
1
- import { DXN } from '@dxos/keys';
2
- import { type BaseObject } from '../types';
3
- /**
4
- * Gets the typename of the object without the version.
5
- * Returns only the name portion, not the DXN.
6
- * @example "example.org/type/Contact"
7
- */
8
- export declare const getTypename: (obj: BaseObject) => string | undefined;
9
- /**
10
- * @returns Object type as {@link DXN}.
11
- * @returns undefined if the object doesn't have a type.
12
- * @example `dxn:example.com/type/Contact:1.0.0`
13
- */
14
- export declare const getType: (obj: BaseObject) => DXN | undefined;
15
- //# sourceMappingURL=typename.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typename.d.ts","sourceRoot":"","sources":["../../../../../src/internal/object/typename.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAK3C;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,KAAK,UAAU,KAAG,MAAM,GAAG,SAStD,CAAC;AAgBF;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,KAAK,UAAU,KAAG,GAAG,GAAG,SAY/C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../../src/internal/object/version.ts"],"names":[],"mappings":"AAIA;;GAEG;AAKH,eAAO,MAAM,aAAa,EAAE,OAAO,MAAqC,CAAC;AAEzE;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACtB,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../../../../../src/internal/projection/compose.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD;;GAEG;AAGH,eAAO,MAAM,aAAa,GAAI,QAAQ,cAAc,EAAE,QAAQ,cAAc,KAAG,cAqB9E,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"compose.test.d.ts","sourceRoot":"","sources":["../../../../../src/internal/projection/compose.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from './compose';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/projection/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC"}
@@ -1,15 +0,0 @@
1
- import type * as Schema from 'effect/Schema';
2
- import { type Live } from '@dxos/live-object';
3
- import { type ObjectMeta } from '../object';
4
- import type { BaseObject, CreationProps } from '../types';
5
- /**
6
- * Creates a reactive object from a plain Javascript object.
7
- * Optionally provides a TS-effect schema.
8
- *
9
- * @depreacted Use `Obj.make`.
10
- */
11
- export declare const live: {
12
- <T extends BaseObject>(obj: T): Live<T>;
13
- <T extends BaseObject>(schema: Schema.Schema<T, any, never>, obj: NoInfer<CreationProps<T>>, meta?: ObjectMeta): Live<T>;
14
- };
15
- //# sourceMappingURL=reactive-object.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reactive-object.d.ts","sourceRoot":"","sources":["../../../../../src/internal/proxy/reactive-object.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAC;AAG7C,OAAO,EACL,KAAK,IAAI,EAKV,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EAAiC,KAAK,UAAU,EAA+C,MAAM,WAAW,CAAC;AACxH,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAI1D;;;;;GAKG;AAKH,eAAO,MAAM,IAAI,EAAE;IACjB,CAAC,CAAC,SAAS,UAAU,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IACxC,CAAC,CAAC,SAAS,UAAU,EACnB,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,EACpC,GAAG,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAC9B,IAAI,CAAC,EAAE,UAAU,GAChB,IAAI,CAAC,CAAC,CAAC,CAAC;CAcZ,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './query';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/query/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../../src/internal/query/query.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,kBAAkB;AAClB,QAAA,MAAM,aAAa,mEAA8D,CAAC;AAClF,kBAAkB;AAClB,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAC;AAEzE,kBAAkB;AAClB,QAAA,MAAM,SAAS;;;GAGQ,CAAC;AAExB,kBAAkB;AAClB,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC;CAAG;AAC9E,kBAAkB;AAClB,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAa,CAAC"}
@@ -1,13 +0,0 @@
1
- import * as Schema from 'effect/Schema';
2
- import { JsonSchemaType } from '../json-schema';
3
- /**
4
- * Persistent representation of a schema.
5
- */
6
- export declare const StoredSchema: import("..").EchoTypeSchema<Schema.Struct<{
7
- name: Schema.optional<typeof Schema.String>;
8
- typename: Schema.filter<typeof Schema.String>;
9
- version: Schema.filter<typeof Schema.String>;
10
- jsonSchema: Schema.Schema<JsonSchemaType, JsonSchemaType, never>;
11
- }>, {}>;
12
- export type StoredSchema = Schema.Schema.Type<typeof StoredSchema>;
13
- //# sourceMappingURL=stored-schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stored-schema.d.ts","sourceRoot":"","sources":["../../../../../src/internal/schema/stored-schema.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;OAUxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from './types';
2
- export * from './utils';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}