@dxos/echo 0.8.4-main.69d29f4 → 0.8.4-main.6fa680abb7
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.
- package/README.md +2 -2
- package/dist/lib/{browser → neutral}/Annotation.mjs +9 -5
- package/dist/lib/neutral/Database.mjs +45 -0
- package/dist/lib/{browser → neutral}/Entity.mjs +19 -12
- package/dist/lib/{browser → neutral}/Err.mjs +4 -3
- package/dist/lib/neutral/Feed.mjs +46 -0
- package/dist/lib/{node-esm → neutral}/Filter.mjs +12 -10
- package/dist/lib/{browser → neutral}/Format.mjs +4 -5
- package/dist/lib/neutral/JsonSchema.mjs +19 -0
- package/dist/lib/{browser → neutral}/Key.mjs +2 -3
- package/dist/lib/{browser → neutral}/Obj.mjs +36 -17
- package/dist/lib/{browser → neutral}/Order.mjs +2 -3
- package/dist/lib/neutral/Query.mjs +35 -0
- package/dist/lib/neutral/QueryResult.mjs +2 -0
- package/dist/lib/neutral/Ref.mjs +24 -0
- package/dist/lib/{browser → neutral}/Relation.mjs +21 -13
- package/dist/lib/neutral/SchemaRegistry.mjs +2 -0
- package/dist/lib/neutral/Tag.mjs +28 -0
- package/dist/lib/neutral/Type.mjs +37 -0
- package/dist/lib/{browser/chunk-AFGYYVVQ.mjs → neutral/chunk-2FK7XCDV.mjs} +6 -7
- package/dist/lib/neutral/chunk-2FK7XCDV.mjs.map +7 -0
- package/dist/lib/neutral/chunk-2Z72D23W.mjs +787 -0
- package/dist/lib/neutral/chunk-2Z72D23W.mjs.map +7 -0
- package/dist/lib/neutral/chunk-35FDO7WH.mjs +396 -0
- package/dist/lib/neutral/chunk-35FDO7WH.mjs.map +7 -0
- package/dist/lib/neutral/chunk-4HWWKURH.mjs +34 -0
- package/dist/lib/neutral/chunk-4HWWKURH.mjs.map +7 -0
- package/dist/lib/{browser/chunk-73M2G455.mjs → neutral/chunk-7VLKWC6T.mjs} +33 -10
- package/dist/lib/neutral/chunk-7VLKWC6T.mjs.map +7 -0
- package/dist/lib/{browser/chunk-INHXFXY5.mjs → neutral/chunk-ANHVGJI4.mjs} +2 -3
- package/dist/lib/{node-esm/chunk-AJEMYSIR.mjs.map → neutral/chunk-ANHVGJI4.mjs.map} +1 -1
- package/dist/lib/{browser/chunk-R3S54KRI.mjs → neutral/chunk-B5OXLWZL.mjs} +14 -15
- package/dist/lib/neutral/chunk-B5OXLWZL.mjs.map +7 -0
- package/dist/lib/{browser/chunk-TPIL3G6Y.mjs → neutral/chunk-BESZGRPL.mjs} +17 -6
- package/dist/lib/neutral/chunk-BESZGRPL.mjs.map +7 -0
- package/dist/lib/{browser/chunk-ZHXZGIXD.mjs → neutral/chunk-BNCCGLJN.mjs} +1 -3
- package/dist/lib/{browser/chunk-ZHXZGIXD.mjs.map → neutral/chunk-BNCCGLJN.mjs.map} +2 -2
- package/dist/lib/{browser/chunk-QIWDIPLR.mjs → neutral/chunk-EK7UOJ3R.mjs} +9 -5
- package/dist/lib/neutral/chunk-EK7UOJ3R.mjs.map +7 -0
- package/dist/lib/neutral/chunk-ETOQXZHC.mjs +130 -0
- package/dist/lib/neutral/chunk-ETOQXZHC.mjs.map +7 -0
- package/dist/lib/neutral/chunk-EV3A23AS.mjs +283 -0
- package/dist/lib/neutral/chunk-EV3A23AS.mjs.map +7 -0
- package/dist/lib/{node-esm/chunk-OZEDKT4R.mjs → neutral/chunk-FUGL645K.mjs} +135 -26
- package/dist/lib/neutral/chunk-FUGL645K.mjs.map +7 -0
- package/dist/lib/{browser/chunk-5RDNDPMX.mjs → neutral/chunk-FZO7LQO7.mjs} +3 -4
- package/dist/lib/neutral/chunk-FZO7LQO7.mjs.map +7 -0
- package/dist/lib/{browser/chunk-CGS2ULMK.mjs → neutral/chunk-J5LGTIGS.mjs} +1 -2
- package/dist/lib/neutral/chunk-LDHKQDXR.mjs +27 -0
- package/dist/lib/neutral/chunk-LDHKQDXR.mjs.map +7 -0
- package/dist/lib/{node-esm/chunk-5U5F4AWK.mjs → neutral/chunk-MFJPOZDU.mjs} +1579 -2717
- package/dist/lib/neutral/chunk-MFJPOZDU.mjs.map +7 -0
- package/dist/lib/{node-esm/chunk-NBWL7UCZ.mjs → neutral/chunk-OENWMTE6.mjs} +9 -4
- package/dist/lib/neutral/chunk-OENWMTE6.mjs.map +7 -0
- package/dist/lib/{browser/chunk-IXVWLTG7.mjs → neutral/chunk-OMUPQMLR.mjs} +1 -3
- package/dist/lib/{node-esm/chunk-UKGVOINP.mjs.map → neutral/chunk-OMUPQMLR.mjs.map} +1 -1
- package/dist/lib/{browser/chunk-2RMVRVOB.mjs → neutral/chunk-PH5RST5U.mjs} +73 -25
- package/dist/lib/neutral/chunk-PH5RST5U.mjs.map +7 -0
- package/dist/lib/neutral/chunk-PKD2L7XO.mjs +152 -0
- package/dist/lib/neutral/chunk-PKD2L7XO.mjs.map +7 -0
- package/dist/lib/{browser/chunk-L4RXUJHJ.mjs → neutral/chunk-QLALBCSA.mjs} +12 -58
- package/dist/lib/neutral/chunk-QLALBCSA.mjs.map +7 -0
- package/dist/lib/neutral/chunk-QTUBE4DR.mjs +102 -0
- package/dist/lib/neutral/chunk-QTUBE4DR.mjs.map +7 -0
- package/dist/lib/{node-esm/chunk-YOLH5KS4.mjs → neutral/chunk-SEMVAGBM.mjs} +97 -25
- package/dist/lib/neutral/chunk-SEMVAGBM.mjs.map +7 -0
- package/dist/lib/{node-esm/chunk-YQ2NWGL5.mjs → neutral/chunk-UBEZSGXY.mjs} +15 -3
- package/dist/lib/neutral/chunk-UBEZSGXY.mjs.map +7 -0
- package/dist/lib/{browser/chunk-JMKVF2YQ.mjs → neutral/chunk-UI6MWK5W.mjs} +3 -4
- package/dist/lib/neutral/chunk-UI6MWK5W.mjs.map +7 -0
- package/dist/lib/{browser/chunk-YKTSSMDS.mjs → neutral/chunk-WYOKA6AE.mjs} +4 -6
- package/dist/lib/neutral/chunk-WYOKA6AE.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +97 -0
- package/dist/lib/{node-esm → neutral}/internal/index.mjs +53 -40
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/{node-esm → neutral}/testing/index.mjs +43 -37
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/types/src/Annotation.d.ts +23 -1
- package/dist/types/src/Annotation.d.ts.map +1 -1
- package/dist/types/src/Collection.d.ts +16 -0
- package/dist/types/src/Collection.d.ts.map +1 -0
- package/dist/types/src/Database.d.ts +78 -83
- package/dist/types/src/Database.d.ts.map +1 -1
- package/dist/types/src/Dataset.d.ts +18 -0
- package/dist/types/src/Dataset.d.ts.map +1 -0
- package/dist/types/src/Entity.d.ts +38 -12
- package/dist/types/src/Entity.d.ts.map +1 -1
- package/dist/types/src/Err.d.ts +43 -0
- package/dist/types/src/Err.d.ts.map +1 -1
- package/dist/types/src/Feed.d.ts +165 -0
- package/dist/types/src/Feed.d.ts.map +1 -0
- package/dist/types/src/Filter.d.ts +1 -1
- package/dist/types/src/Filter.d.ts.map +1 -1
- package/dist/types/src/Format.d.ts +3 -3
- package/dist/types/src/Format.d.ts.map +1 -1
- package/dist/types/src/Hypergraph.d.ts +2 -2
- package/dist/types/src/Hypergraph.d.ts.map +1 -1
- package/dist/types/src/JsonSchema.d.ts +11 -4
- package/dist/types/src/JsonSchema.d.ts.map +1 -1
- package/dist/types/src/Obj.d.ts +149 -36
- package/dist/types/src/Obj.d.ts.map +1 -1
- package/dist/types/src/Order.d.ts.map +1 -1
- package/dist/types/src/Query.d.ts +101 -14
- package/dist/types/src/Query.d.ts.map +1 -1
- package/dist/types/src/Ref.d.ts +58 -10
- package/dist/types/src/Ref.d.ts.map +1 -1
- package/dist/types/src/Relation.d.ts +73 -26
- package/dist/types/src/Relation.d.ts.map +1 -1
- package/dist/types/src/SchemaRegistry.d.ts +4 -4
- package/dist/types/src/SchemaRegistry.d.ts.map +1 -1
- package/dist/types/src/Tag.d.ts +4 -3
- package/dist/types/src/Tag.d.ts.map +1 -1
- package/dist/types/src/Type.d.ts +51 -180
- package/dist/types/src/Type.d.ts.map +1 -1
- package/dist/types/src/View.d.ts +68 -0
- package/dist/types/src/View.d.ts.map +1 -0
- package/dist/types/src/hierarchy.test.d.ts +2 -0
- package/dist/types/src/hierarchy.test.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +4 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/internal/{annotations → Annotation}/annotations.d.ts +68 -8
- package/dist/types/src/internal/Annotation/annotations.d.ts.map +1 -0
- package/dist/types/src/internal/Annotation/annotations.test.d.ts.map +1 -0
- package/dist/types/src/internal/Annotation/index.d.ts +4 -0
- package/dist/types/src/internal/Annotation/index.d.ts.map +1 -0
- package/dist/types/src/internal/{api → Annotation}/sorting.d.ts +1 -1
- package/dist/types/src/internal/Annotation/sorting.d.ts.map +1 -0
- package/dist/types/src/internal/{annotations → Annotation}/util.d.ts +13 -1
- package/dist/types/src/internal/Annotation/util.d.ts.map +1 -0
- package/dist/types/src/internal/{api/entity.d.ts → Entity/api.d.ts} +2 -2
- package/dist/types/src/internal/Entity/api.d.ts.map +1 -0
- package/dist/types/src/internal/{entities → Entity}/entity.d.ts +3 -3
- package/dist/types/src/internal/Entity/entity.d.ts.map +1 -0
- package/dist/types/src/internal/{entities → Entity}/index.d.ts +2 -0
- package/dist/types/src/internal/Entity/index.d.ts.map +1 -0
- package/dist/types/src/internal/{entities → Entity}/model.d.ts +4 -26
- package/dist/types/src/internal/Entity/model.d.ts.map +1 -0
- package/dist/types/src/internal/{entities → Entity}/object.d.ts +2 -2
- package/dist/types/src/internal/Entity/object.d.ts.map +1 -0
- package/dist/types/src/internal/{entities → Entity}/relation.d.ts +3 -30
- package/dist/types/src/internal/Entity/relation.d.ts.map +1 -0
- package/dist/types/src/internal/Entity/util.d.ts.map +1 -0
- package/dist/types/src/internal/{api → Entity}/version.d.ts +1 -1
- package/dist/types/src/internal/Entity/version.d.ts.map +1 -0
- package/dist/types/src/internal/Format/date.d.ts.map +1 -0
- package/dist/types/src/internal/Format/date.test.d.ts.map +1 -0
- package/dist/types/src/internal/Format/format.d.ts.map +1 -0
- package/dist/types/src/internal/Format/format.test.d.ts.map +1 -0
- package/dist/types/src/internal/Format/index.d.ts.map +1 -0
- package/dist/types/src/internal/Format/number.d.ts.map +1 -0
- package/dist/types/src/internal/Format/object.d.ts.map +1 -0
- package/dist/types/src/internal/Format/select.d.ts.map +1 -0
- package/dist/types/src/internal/Format/string.d.ts.map +1 -0
- package/dist/types/src/internal/{formats → Format}/types.d.ts +1 -1
- package/dist/types/src/internal/Format/types.d.ts.map +1 -0
- package/dist/types/src/internal/{json-schema → JsonSchema}/annotations.d.ts +1 -1
- package/dist/types/src/internal/JsonSchema/annotations.d.ts.map +1 -0
- package/dist/types/src/internal/JsonSchema/effect-schema.test.d.ts.map +1 -0
- package/dist/types/src/internal/JsonSchema/index.d.ts.map +1 -0
- package/dist/types/src/internal/JsonSchema/json-schema-normalize.d.ts.map +1 -0
- package/dist/types/src/internal/{json-schema → JsonSchema}/json-schema-type.d.ts +19 -19
- package/dist/types/src/internal/JsonSchema/json-schema-type.d.ts.map +1 -0
- package/dist/types/src/internal/JsonSchema/json-schema.d.ts.map +1 -0
- package/dist/types/src/internal/JsonSchema/json-schema.test.d.ts.map +1 -0
- package/dist/types/src/internal/Obj/clone.d.ts.map +1 -0
- package/dist/types/src/internal/Obj/common.d.ts.map +1 -0
- package/dist/types/src/internal/{object → Obj}/create-object.d.ts +2 -2
- package/dist/types/src/internal/Obj/create-object.d.ts.map +1 -0
- package/dist/types/src/internal/Obj/create-object.test.d.ts.map +1 -0
- package/dist/types/src/internal/{object → Obj}/deleted.d.ts +1 -1
- package/dist/types/src/internal/Obj/deleted.d.ts.map +1 -0
- package/dist/types/src/internal/Obj/ids.d.ts.map +1 -0
- package/dist/types/src/internal/Obj/index.d.ts.map +1 -0
- package/dist/types/src/internal/Obj/inspect.d.ts.map +1 -0
- package/dist/types/src/internal/{object → Obj}/json-serializer.d.ts +4 -4
- package/dist/types/src/internal/Obj/json-serializer.d.ts.map +1 -0
- package/dist/types/src/internal/Obj/json-serializer.test.d.ts.map +1 -0
- package/dist/types/src/internal/Obj/schema-validator.d.ts +2 -0
- package/dist/types/src/internal/Obj/schema-validator.d.ts.map +1 -0
- package/dist/types/src/internal/Obj/schema-validator.test.d.ts.map +1 -0
- package/dist/types/src/internal/{object → Obj}/set-value.d.ts +1 -1
- package/dist/types/src/internal/Obj/set-value.d.ts.map +1 -0
- package/dist/types/src/internal/Obj/set-value.test.d.ts.map +1 -0
- package/dist/types/src/internal/Obj/snapshot.d.ts.map +1 -0
- package/dist/types/src/internal/{object → Obj}/typed-object.d.ts +4 -4
- package/dist/types/src/internal/Obj/typed-object.d.ts.map +1 -0
- package/dist/types/src/internal/Obj/typed-object.test.d.ts.map +1 -0
- package/dist/types/src/internal/Ref/index.d.ts.map +1 -0
- package/dist/types/src/internal/{ref → Ref}/ref-array.d.ts +1 -1
- package/dist/types/src/internal/Ref/ref-array.d.ts.map +1 -0
- package/dist/types/src/internal/{ref → Ref}/ref.d.ts +16 -3
- package/dist/types/src/internal/Ref/ref.d.ts.map +1 -0
- package/dist/types/src/internal/Ref/ref.test.d.ts.map +1 -0
- package/dist/types/src/internal/{schema → Type}/compose.d.ts +1 -1
- package/dist/types/src/internal/Type/compose.d.ts.map +1 -0
- package/dist/types/src/internal/Type/compose.test.d.ts.map +1 -0
- package/dist/types/src/internal/{schema → Type}/echo-schema.d.ts +8 -7
- package/dist/types/src/internal/Type/echo-schema.d.ts.map +1 -0
- package/dist/types/src/internal/Type/index.d.ts.map +1 -0
- package/dist/types/src/internal/Type/manipulation.d.ts.map +1 -0
- package/dist/types/src/internal/{schema → Type}/persistent-schema.d.ts +2 -2
- package/dist/types/src/internal/Type/persistent-schema.d.ts.map +1 -0
- package/dist/types/src/internal/{api → common/api}/index.d.ts +0 -4
- package/dist/types/src/internal/common/api/index.d.ts.map +1 -0
- package/dist/types/src/internal/common/api/meta.d.ts.map +1 -0
- package/dist/types/src/internal/common/index.d.ts +4 -0
- package/dist/types/src/internal/common/index.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/change-context.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/change.test.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/define-hidden-property.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/errors.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/event-batch.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/handler.test.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/index.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/json-serializer.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/make-object.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/ownership.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/proxy-types.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/proxy-utils.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/reactive-array.d.ts.map +1 -0
- package/dist/types/src/internal/{proxy → common/proxy}/reactive.d.ts +1 -1
- package/dist/types/src/internal/common/proxy/reactive.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/schema-validator.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/schema.test.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/symbols.d.ts.map +1 -0
- package/dist/types/src/internal/{proxy → common/proxy}/typed-handler.d.ts +2 -1
- package/dist/types/src/internal/common/proxy/typed-handler.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/typed-handler.test.d.ts.map +1 -0
- package/dist/types/src/internal/common/proxy/typed-object.test.d.ts.map +1 -0
- package/dist/types/src/internal/{types → common/types}/base.d.ts +1 -0
- package/dist/types/src/internal/common/types/base.d.ts.map +1 -0
- package/dist/types/src/internal/{types → common/types}/entity.d.ts +2 -2
- package/dist/types/src/internal/common/types/entity.d.ts.map +1 -0
- package/dist/types/src/internal/{types → common/types}/index.d.ts +1 -0
- package/dist/types/src/internal/common/types/index.d.ts.map +1 -0
- package/dist/types/src/internal/{types → common/types}/meta.d.ts +2 -1
- package/dist/types/src/internal/common/types/meta.d.ts.map +1 -0
- package/dist/types/src/internal/common/types/model-symbols.d.ts +54 -0
- package/dist/types/src/internal/common/types/model-symbols.d.ts.map +1 -0
- package/dist/types/src/internal/{types → common/types}/typename.d.ts +8 -0
- package/dist/types/src/internal/common/types/typename.d.ts.map +1 -0
- package/dist/types/src/internal/{types → common/types}/version.d.ts +2 -2
- package/dist/types/src/internal/common/types/version.d.ts.map +1 -0
- package/dist/types/src/internal/index.d.ts +8 -10
- package/dist/types/src/internal/index.d.ts.map +1 -1
- package/dist/types/src/testing/test-schema.d.ts +19 -18
- package/dist/types/src/testing/test-schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +39 -113
- package/src/Annotation.ts +31 -1
- package/src/Collection.ts +32 -0
- package/src/Database.ts +153 -172
- package/src/Dataset.ts +26 -0
- package/src/Entity.ts +71 -51
- package/src/Err.ts +22 -0
- package/src/Feed.ts +257 -0
- package/src/Filter.ts +19 -4
- package/src/Format.ts +3 -3
- package/src/Hypergraph.ts +2 -2
- package/src/JsonSchema.ts +14 -4
- package/src/Obj.test.ts +63 -2
- package/src/Obj.ts +274 -132
- package/src/Order.ts +3 -1
- package/src/Query.test.ts +181 -14
- package/src/Query.ts +249 -23
- package/src/Ref.ts +64 -11
- package/src/Relation.test.ts +8 -2
- package/src/Relation.ts +163 -129
- package/src/SchemaRegistry.ts +5 -4
- package/src/Tag.ts +6 -5
- package/src/Type.test.ts +10 -10
- package/src/Type.ts +70 -303
- package/src/View.ts +102 -0
- package/src/hierarchy.test.ts +33 -0
- package/src/index.ts +4 -0
- package/src/internal/{annotations → Annotation}/annotations.test.ts +6 -6
- package/src/internal/{annotations → Annotation}/annotations.ts +120 -9
- package/src/internal/{annotations → Annotation}/index.ts +1 -0
- package/src/internal/{api → Annotation}/sorting.ts +2 -3
- package/src/internal/{annotations → Annotation}/util.ts +14 -1
- package/src/internal/{api/entity.ts → Entity/api.ts} +4 -2
- package/src/internal/{entities → Entity}/entity.ts +6 -4
- package/src/internal/{entities → Entity}/index.ts +2 -0
- package/src/internal/{entities → Entity}/model.ts +17 -42
- package/src/internal/{entities → Entity}/object.ts +2 -2
- package/src/internal/{entities → Entity}/relation.ts +19 -36
- package/src/internal/{api → Entity}/version.ts +3 -2
- package/src/internal/{formats → Format}/date.test.ts +1 -1
- package/src/internal/{formats → Format}/format.test.ts +1 -1
- package/src/internal/{formats → Format}/types.ts +3 -3
- package/src/internal/{json-schema → JsonSchema}/annotations.ts +3 -3
- package/src/internal/{json-schema → JsonSchema}/json-schema-type.ts +4 -4
- package/src/internal/{json-schema → JsonSchema}/json-schema.test.ts +48 -48
- package/src/internal/{json-schema → JsonSchema}/json-schema.ts +6 -4
- package/src/internal/{object → Obj}/clone.ts +3 -3
- package/src/internal/{object → Obj}/common.ts +2 -2
- package/src/internal/{object → Obj}/create-object.test.ts +4 -4
- package/src/internal/{object → Obj}/create-object.ts +5 -5
- package/src/internal/{object → Obj}/deleted.ts +2 -2
- package/src/internal/{object → Obj}/inspect.ts +2 -2
- package/src/internal/{object → Obj}/json-serializer.test.ts +29 -6
- package/src/internal/{object → Obj}/json-serializer.ts +30 -14
- package/src/internal/{object → Obj}/schema-validator.ts +1 -1
- package/src/internal/{object → Obj}/set-value.ts +2 -2
- package/src/internal/Obj/snapshot.ts +105 -0
- package/src/internal/{object → Obj}/typed-object.test.ts +3 -3
- package/src/internal/{object → Obj}/typed-object.ts +4 -4
- package/src/internal/{ref → Ref}/ref-array.ts +1 -1
- package/src/internal/{ref → Ref}/ref.test.ts +4 -4
- package/src/internal/{ref → Ref}/ref.ts +27 -4
- package/src/internal/{schema → Type}/compose.test.ts +5 -5
- package/src/internal/{schema → Type}/compose.ts +1 -1
- package/src/internal/{schema → Type}/echo-schema.ts +11 -10
- package/src/internal/{schema → Type}/manipulation.ts +1 -1
- package/src/internal/{schema → Type}/persistent-schema.ts +10 -4
- package/src/internal/{README.md → common/README.md} +1 -1
- package/src/internal/{api → common/api}/index.ts +0 -4
- package/src/internal/common/index.ts +7 -0
- package/src/internal/{proxy → common/proxy}/change.test.ts +3 -3
- package/src/internal/{proxy → common/proxy}/handler.test.ts +2 -2
- package/src/internal/{proxy → common/proxy}/json-serializer.ts +6 -3
- package/src/internal/{proxy → common/proxy}/make-object.ts +13 -3
- package/src/internal/{proxy → common/proxy}/reactive.ts +1 -1
- package/src/internal/{proxy → common/proxy}/schema.test.ts +10 -10
- package/src/internal/{proxy → common/proxy}/typed-handler.test.ts +6 -6
- package/src/internal/{proxy → common/proxy}/typed-handler.ts +10 -3
- package/src/internal/{proxy → common/proxy}/typed-object.test.ts +4 -4
- package/src/internal/{types → common/types}/base.ts +1 -1
- package/src/internal/{types → common/types}/entity.ts +2 -2
- package/src/internal/{types → common/types}/index.ts +1 -0
- package/src/internal/{types → common/types}/meta.ts +4 -1
- package/src/internal/common/types/model-symbols.ts +69 -0
- package/src/internal/{types → common/types}/typename.ts +10 -0
- package/src/internal/{types → common/types}/version.ts +2 -3
- package/src/internal/index.ts +8 -31
- package/src/testing/api.test.ts +4 -4
- package/src/testing/test-schema.ts +20 -18
- package/dist/lib/browser/Database.mjs +0 -18
- package/dist/lib/browser/Filter.mjs +0 -62
- package/dist/lib/browser/JsonSchema.mjs +0 -20
- package/dist/lib/browser/Query.mjs +0 -27
- package/dist/lib/browser/QueryResult.mjs +0 -3
- package/dist/lib/browser/Ref.mjs +0 -23
- package/dist/lib/browser/SchemaRegistry.mjs +0 -3
- package/dist/lib/browser/Tag.mjs +0 -26
- package/dist/lib/browser/Type.mjs +0 -48
- package/dist/lib/browser/chunk-2RMVRVOB.mjs.map +0 -7
- package/dist/lib/browser/chunk-5RDNDPMX.mjs.map +0 -7
- package/dist/lib/browser/chunk-73M2G455.mjs.map +0 -7
- package/dist/lib/browser/chunk-7STIBCP7.mjs +0 -133
- package/dist/lib/browser/chunk-7STIBCP7.mjs.map +0 -7
- package/dist/lib/browser/chunk-AFGYYVVQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-BC6R4CAF.mjs +0 -24
- package/dist/lib/browser/chunk-BC6R4CAF.mjs.map +0 -7
- package/dist/lib/browser/chunk-BPYFLHWO.mjs +0 -158
- package/dist/lib/browser/chunk-BPYFLHWO.mjs.map +0 -7
- package/dist/lib/browser/chunk-CBPFF3ZO.mjs +0 -204
- package/dist/lib/browser/chunk-CBPFF3ZO.mjs.map +0 -7
- package/dist/lib/browser/chunk-CJ5YELTO.mjs +0 -39
- package/dist/lib/browser/chunk-CJ5YELTO.mjs.map +0 -7
- package/dist/lib/browser/chunk-FPOISFQK.mjs +0 -40
- package/dist/lib/browser/chunk-FPOISFQK.mjs.map +0 -7
- package/dist/lib/browser/chunk-INHXFXY5.mjs.map +0 -7
- package/dist/lib/browser/chunk-IXVWLTG7.mjs.map +0 -7
- package/dist/lib/browser/chunk-JMKVF2YQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-L4RXUJHJ.mjs.map +0 -7
- package/dist/lib/browser/chunk-MYCCGG2T.mjs +0 -15
- package/dist/lib/browser/chunk-MYCCGG2T.mjs.map +0 -7
- package/dist/lib/browser/chunk-PAM4KEXE.mjs +0 -3847
- package/dist/lib/browser/chunk-PAM4KEXE.mjs.map +0 -7
- package/dist/lib/browser/chunk-QIWDIPLR.mjs.map +0 -7
- package/dist/lib/browser/chunk-R3S54KRI.mjs.map +0 -7
- package/dist/lib/browser/chunk-RK4Z4JUZ.mjs +0 -283
- package/dist/lib/browser/chunk-RK4Z4JUZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-TPIL3G6Y.mjs.map +0 -7
- package/dist/lib/browser/chunk-YKTSSMDS.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -85
- package/dist/lib/browser/internal/index.mjs +0 -457
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/testing/index.mjs +0 -367
- package/dist/lib/browser/testing/index.mjs.map +0 -7
- package/dist/lib/node-esm/Annotation.mjs +0 -33
- package/dist/lib/node-esm/Annotation.mjs.map +0 -7
- package/dist/lib/node-esm/Database.mjs +0 -18
- package/dist/lib/node-esm/Database.mjs.map +0 -7
- package/dist/lib/node-esm/Entity.mjs +0 -52
- package/dist/lib/node-esm/Entity.mjs.map +0 -7
- package/dist/lib/node-esm/Err.mjs +0 -11
- package/dist/lib/node-esm/Err.mjs.map +0 -7
- package/dist/lib/node-esm/Format.mjs +0 -67
- package/dist/lib/node-esm/Format.mjs.map +0 -7
- package/dist/lib/node-esm/JsonSchema.mjs +0 -20
- package/dist/lib/node-esm/JsonSchema.mjs.map +0 -7
- package/dist/lib/node-esm/Key.mjs +0 -13
- package/dist/lib/node-esm/Key.mjs.map +0 -7
- package/dist/lib/node-esm/Obj.mjs +0 -91
- package/dist/lib/node-esm/Obj.mjs.map +0 -7
- package/dist/lib/node-esm/Order.mjs +0 -13
- package/dist/lib/node-esm/Order.mjs.map +0 -7
- package/dist/lib/node-esm/Query.mjs +0 -27
- package/dist/lib/node-esm/Query.mjs.map +0 -7
- package/dist/lib/node-esm/QueryResult.mjs +0 -3
- package/dist/lib/node-esm/QueryResult.mjs.map +0 -7
- package/dist/lib/node-esm/Ref.mjs +0 -23
- package/dist/lib/node-esm/Ref.mjs.map +0 -7
- package/dist/lib/node-esm/Relation.mjs +0 -85
- package/dist/lib/node-esm/Relation.mjs.map +0 -7
- package/dist/lib/node-esm/SchemaRegistry.mjs +0 -3
- package/dist/lib/node-esm/SchemaRegistry.mjs.map +0 -7
- package/dist/lib/node-esm/Tag.mjs +0 -26
- package/dist/lib/node-esm/Tag.mjs.map +0 -7
- package/dist/lib/node-esm/Type.mjs +0 -48
- package/dist/lib/node-esm/Type.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2RIFBW3A.mjs +0 -250
- package/dist/lib/node-esm/chunk-2RIFBW3A.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-5CB2ZW74.mjs +0 -57
- package/dist/lib/node-esm/chunk-5CB2ZW74.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-5U5F4AWK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-AJEMYSIR.mjs +0 -22
- package/dist/lib/node-esm/chunk-BKYE5IW6.mjs +0 -158
- package/dist/lib/node-esm/chunk-BKYE5IW6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BYOD7EVP.mjs +0 -98
- package/dist/lib/node-esm/chunk-BYOD7EVP.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-FWTSPIFF.mjs +0 -133
- package/dist/lib/node-esm/chunk-FWTSPIFF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-K37NA7PO.mjs +0 -43
- package/dist/lib/node-esm/chunk-K37NA7PO.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-LIXUCQJM.mjs +0 -41
- package/dist/lib/node-esm/chunk-LIXUCQJM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-MOLNWFNL.mjs +0 -9
- package/dist/lib/node-esm/chunk-MOLNWFNL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-MOWUEW5P.mjs +0 -15
- package/dist/lib/node-esm/chunk-MOWUEW5P.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NBWL7UCZ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-OZEDKT4R.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PW3VCWL5.mjs +0 -24
- package/dist/lib/node-esm/chunk-PW3VCWL5.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TSTKBFST.mjs +0 -403
- package/dist/lib/node-esm/chunk-TSTKBFST.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UKGVOINP.mjs +0 -9
- package/dist/lib/node-esm/chunk-UV63HEHQ.mjs +0 -143
- package/dist/lib/node-esm/chunk-UV63HEHQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-WXLVPCRJ.mjs +0 -288
- package/dist/lib/node-esm/chunk-WXLVPCRJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-WZ6YBELW.mjs +0 -74
- package/dist/lib/node-esm/chunk-WZ6YBELW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XHJRMQZD.mjs +0 -69
- package/dist/lib/node-esm/chunk-XHJRMQZD.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YOLH5KS4.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YQ2NWGL5.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -85
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/internal/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/testing/index.mjs.map +0 -7
- package/dist/types/src/internal/annotations/annotations.d.ts.map +0 -1
- package/dist/types/src/internal/annotations/annotations.test.d.ts.map +0 -1
- package/dist/types/src/internal/annotations/index.d.ts +0 -3
- package/dist/types/src/internal/annotations/index.d.ts.map +0 -1
- package/dist/types/src/internal/annotations/util.d.ts.map +0 -1
- package/dist/types/src/internal/api/annotations.d.ts +0 -23
- package/dist/types/src/internal/api/annotations.d.ts.map +0 -1
- package/dist/types/src/internal/api/entity.d.ts.map +0 -1
- package/dist/types/src/internal/api/index.d.ts.map +0 -1
- package/dist/types/src/internal/api/meta.d.ts.map +0 -1
- package/dist/types/src/internal/api/sorting.d.ts.map +0 -1
- package/dist/types/src/internal/api/version.d.ts.map +0 -1
- package/dist/types/src/internal/entities/entity.d.ts.map +0 -1
- package/dist/types/src/internal/entities/index.d.ts.map +0 -1
- package/dist/types/src/internal/entities/model.d.ts.map +0 -1
- package/dist/types/src/internal/entities/object.d.ts.map +0 -1
- package/dist/types/src/internal/entities/relation.d.ts.map +0 -1
- package/dist/types/src/internal/entities/util.d.ts.map +0 -1
- package/dist/types/src/internal/formats/date.d.ts.map +0 -1
- package/dist/types/src/internal/formats/date.test.d.ts.map +0 -1
- package/dist/types/src/internal/formats/format.d.ts.map +0 -1
- package/dist/types/src/internal/formats/format.test.d.ts.map +0 -1
- package/dist/types/src/internal/formats/index.d.ts.map +0 -1
- package/dist/types/src/internal/formats/number.d.ts.map +0 -1
- package/dist/types/src/internal/formats/object.d.ts.map +0 -1
- package/dist/types/src/internal/formats/select.d.ts.map +0 -1
- package/dist/types/src/internal/formats/string.d.ts.map +0 -1
- package/dist/types/src/internal/formats/types.d.ts.map +0 -1
- package/dist/types/src/internal/json-schema/annotations.d.ts.map +0 -1
- package/dist/types/src/internal/json-schema/effect-schema.test.d.ts.map +0 -1
- package/dist/types/src/internal/json-schema/index.d.ts.map +0 -1
- package/dist/types/src/internal/json-schema/json-schema-normalize.d.ts.map +0 -1
- package/dist/types/src/internal/json-schema/json-schema-type.d.ts.map +0 -1
- package/dist/types/src/internal/json-schema/json-schema.d.ts.map +0 -1
- package/dist/types/src/internal/json-schema/json-schema.test.d.ts.map +0 -1
- package/dist/types/src/internal/object/clone.d.ts.map +0 -1
- package/dist/types/src/internal/object/common.d.ts.map +0 -1
- package/dist/types/src/internal/object/create-object.d.ts.map +0 -1
- package/dist/types/src/internal/object/create-object.test.d.ts.map +0 -1
- package/dist/types/src/internal/object/deleted.d.ts.map +0 -1
- package/dist/types/src/internal/object/ids.d.ts.map +0 -1
- package/dist/types/src/internal/object/index.d.ts.map +0 -1
- package/dist/types/src/internal/object/inspect.d.ts.map +0 -1
- package/dist/types/src/internal/object/json-serializer.d.ts.map +0 -1
- package/dist/types/src/internal/object/json-serializer.test.d.ts.map +0 -1
- package/dist/types/src/internal/object/schema-validator.d.ts +0 -2
- package/dist/types/src/internal/object/schema-validator.d.ts.map +0 -1
- package/dist/types/src/internal/object/schema-validator.test.d.ts.map +0 -1
- package/dist/types/src/internal/object/set-value.d.ts.map +0 -1
- package/dist/types/src/internal/object/set-value.test.d.ts.map +0 -1
- package/dist/types/src/internal/object/snapshot.d.ts.map +0 -1
- package/dist/types/src/internal/object/typed-object.d.ts.map +0 -1
- package/dist/types/src/internal/object/typed-object.test.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/change-context.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/change.test.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/define-hidden-property.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/errors.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/event-batch.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/handler.test.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/index.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/json-serializer.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/make-object.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/ownership.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/proxy-types.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/proxy-utils.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/reactive-array.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/reactive.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/schema-validator.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/schema.test.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/symbols.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/typed-handler.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/typed-handler.test.d.ts.map +0 -1
- package/dist/types/src/internal/proxy/typed-object.test.d.ts.map +0 -1
- package/dist/types/src/internal/ref/index.d.ts.map +0 -1
- package/dist/types/src/internal/ref/ref-array.d.ts.map +0 -1
- package/dist/types/src/internal/ref/ref.d.ts.map +0 -1
- package/dist/types/src/internal/ref/ref.test.d.ts.map +0 -1
- package/dist/types/src/internal/schema/compose.d.ts.map +0 -1
- package/dist/types/src/internal/schema/compose.test.d.ts.map +0 -1
- package/dist/types/src/internal/schema/echo-schema.d.ts.map +0 -1
- package/dist/types/src/internal/schema/index.d.ts.map +0 -1
- package/dist/types/src/internal/schema/manipulation.d.ts.map +0 -1
- package/dist/types/src/internal/schema/persistent-schema.d.ts.map +0 -1
- package/dist/types/src/internal/types/base.d.ts.map +0 -1
- package/dist/types/src/internal/types/entity.d.ts.map +0 -1
- package/dist/types/src/internal/types/index.d.ts.map +0 -1
- package/dist/types/src/internal/types/meta.d.ts.map +0 -1
- package/dist/types/src/internal/types/typename.d.ts.map +0 -1
- package/dist/types/src/internal/types/version.d.ts.map +0 -1
- package/src/internal/api/annotations.ts +0 -60
- package/src/internal/object/snapshot.ts +0 -70
- /package/dist/lib/{browser → neutral}/Annotation.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/Database.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/Entity.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/Err.mjs.map +0 -0
- /package/dist/lib/{browser/Filter.mjs.map → neutral/Feed.mjs.map} +0 -0
- /package/dist/lib/{node-esm → neutral}/Filter.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/Format.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/JsonSchema.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/Key.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/Obj.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/Order.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/Query.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/QueryResult.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/Ref.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/Relation.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/SchemaRegistry.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/Tag.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/Type.mjs.map +0 -0
- /package/dist/lib/{browser/chunk-CGS2ULMK.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/{browser → neutral}/index.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/internal/index.mjs.map +0 -0
- /package/dist/types/src/internal/{annotations → Annotation}/annotations.test.d.ts +0 -0
- /package/dist/types/src/internal/{entities → Entity}/util.d.ts +0 -0
- /package/dist/types/src/internal/{formats → Format}/date.d.ts +0 -0
- /package/dist/types/src/internal/{formats → Format}/date.test.d.ts +0 -0
- /package/dist/types/src/internal/{formats → Format}/format.d.ts +0 -0
- /package/dist/types/src/internal/{formats → Format}/format.test.d.ts +0 -0
- /package/dist/types/src/internal/{formats → Format}/index.d.ts +0 -0
- /package/dist/types/src/internal/{formats → Format}/number.d.ts +0 -0
- /package/dist/types/src/internal/{formats → Format}/object.d.ts +0 -0
- /package/dist/types/src/internal/{formats → Format}/select.d.ts +0 -0
- /package/dist/types/src/internal/{formats → Format}/string.d.ts +0 -0
- /package/dist/types/src/internal/{json-schema → JsonSchema}/effect-schema.test.d.ts +0 -0
- /package/dist/types/src/internal/{json-schema → JsonSchema}/index.d.ts +0 -0
- /package/dist/types/src/internal/{json-schema → JsonSchema}/json-schema-normalize.d.ts +0 -0
- /package/dist/types/src/internal/{json-schema → JsonSchema}/json-schema.d.ts +0 -0
- /package/dist/types/src/internal/{json-schema → JsonSchema}/json-schema.test.d.ts +0 -0
- /package/dist/types/src/internal/{object → Obj}/clone.d.ts +0 -0
- /package/dist/types/src/internal/{object → Obj}/common.d.ts +0 -0
- /package/dist/types/src/internal/{object → Obj}/create-object.test.d.ts +0 -0
- /package/dist/types/src/internal/{object → Obj}/ids.d.ts +0 -0
- /package/dist/types/src/internal/{object → Obj}/index.d.ts +0 -0
- /package/dist/types/src/internal/{object → Obj}/inspect.d.ts +0 -0
- /package/dist/types/src/internal/{object → Obj}/json-serializer.test.d.ts +0 -0
- /package/dist/types/src/internal/{object → Obj}/schema-validator.test.d.ts +0 -0
- /package/dist/types/src/internal/{object → Obj}/set-value.test.d.ts +0 -0
- /package/dist/types/src/internal/{object → Obj}/snapshot.d.ts +0 -0
- /package/dist/types/src/internal/{object → Obj}/typed-object.test.d.ts +0 -0
- /package/dist/types/src/internal/{ref → Ref}/index.d.ts +0 -0
- /package/dist/types/src/internal/{ref → Ref}/ref.test.d.ts +0 -0
- /package/dist/types/src/internal/{schema → Type}/compose.test.d.ts +0 -0
- /package/dist/types/src/internal/{schema → Type}/index.d.ts +0 -0
- /package/dist/types/src/internal/{schema → Type}/manipulation.d.ts +0 -0
- /package/dist/types/src/internal/{api → common/api}/meta.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/change-context.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/change.test.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/define-hidden-property.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/errors.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/event-batch.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/handler.test.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/index.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/json-serializer.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/make-object.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/ownership.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/proxy-types.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/proxy-utils.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/reactive-array.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/schema-validator.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/schema.test.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/symbols.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/typed-handler.test.d.ts +0 -0
- /package/dist/types/src/internal/{proxy → common/proxy}/typed-object.test.d.ts +0 -0
- /package/src/internal/{entities → Entity}/util.ts +0 -0
- /package/src/internal/{formats → Format}/date.ts +0 -0
- /package/src/internal/{formats → Format}/format.ts +0 -0
- /package/src/internal/{formats → Format}/index.ts +0 -0
- /package/src/internal/{formats → Format}/number.ts +0 -0
- /package/src/internal/{formats → Format}/object.ts +0 -0
- /package/src/internal/{formats → Format}/select.ts +0 -0
- /package/src/internal/{formats → Format}/string.ts +0 -0
- /package/src/internal/{json-schema → JsonSchema}/effect-schema.test.ts +0 -0
- /package/src/internal/{json-schema → JsonSchema}/index.ts +0 -0
- /package/src/internal/{json-schema → JsonSchema}/json-schema-normalize.ts +0 -0
- /package/src/internal/{object → Obj}/ids.ts +0 -0
- /package/src/internal/{object → Obj}/index.ts +0 -0
- /package/src/internal/{object → Obj}/schema-validator.test.ts +0 -0
- /package/src/internal/{object → Obj}/set-value.test.ts +0 -0
- /package/src/internal/{ref → Ref}/index.ts +0 -0
- /package/src/internal/{schema → Type}/index.ts +0 -0
- /package/src/internal/{api → common/api}/meta.ts +0 -0
- /package/src/internal/{proxy → common/proxy}/change-context.ts +0 -0
- /package/src/internal/{proxy → common/proxy}/define-hidden-property.ts +0 -0
- /package/src/internal/{proxy → common/proxy}/errors.ts +0 -0
- /package/src/internal/{proxy → common/proxy}/event-batch.ts +0 -0
- /package/src/internal/{proxy → common/proxy}/index.ts +0 -0
- /package/src/internal/{proxy → common/proxy}/ownership.ts +0 -0
- /package/src/internal/{proxy → common/proxy}/proxy-types.ts +0 -0
- /package/src/internal/{proxy → common/proxy}/proxy-utils.ts +0 -0
- /package/src/internal/{proxy → common/proxy}/reactive-array.ts +0 -0
- /package/src/internal/{proxy → common/proxy}/schema-validator.ts +0 -0
- /package/src/internal/{proxy → common/proxy}/symbols.ts +0 -0
package/README.md
CHANGED
|
@@ -29,8 +29,8 @@ import { Type, Obj, Relation, Ref, Query, Filter } from '@dxos/echo';
|
|
|
29
29
|
| | Object | Relation (extends Obj) | Ref |
|
|
30
30
|
| ----------------------------- | -------------------------- | -------------------------- | -------------- |
|
|
31
31
|
| **SCHEMA API** |
|
|
32
|
-
| Define schema | `Type.Obj()` | `Type.Relation()` | `
|
|
33
|
-
| Any schema type | `Type.
|
|
32
|
+
| Define schema | `Type.Obj()` | `Type.Relation()` | `Ref.Ref()` |
|
|
33
|
+
| Any schema type | `Type.AnyObj` | `Type.Relation.Any` | `Type.Ref.Any` |
|
|
34
34
|
| Get DXN (of schema) | `Type.getDXN(schema)` | `Type.getDXN(schema)` | |
|
|
35
35
|
| Get typename (of schema) | `Type.getTypename(schema)` | `Type.getTypename(schema)` | |
|
|
36
36
|
| Get type metadata (of schema) | `Type.getMeta(schema)` | `Type.getMeta(schema)` | |
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
make
|
|
3
|
+
} from "./chunk-OENWMTE6.mjs";
|
|
3
4
|
import {
|
|
4
5
|
DescriptionAnnotation,
|
|
5
6
|
FormInputAnnotation,
|
|
6
7
|
GeneratorAnnotation,
|
|
8
|
+
IconAnnotation,
|
|
7
9
|
LabelAnnotation,
|
|
8
10
|
ReferenceAnnotation,
|
|
9
11
|
SystemTypeAnnotation,
|
|
@@ -13,13 +15,14 @@ import {
|
|
|
13
15
|
getTypeAnnotation,
|
|
14
16
|
setDescriptionWithSchema,
|
|
15
17
|
setLabelWithSchema
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-SEMVAGBM.mjs";
|
|
19
|
+
import "./chunk-WYOKA6AE.mjs";
|
|
20
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
19
21
|
export {
|
|
20
22
|
DescriptionAnnotation,
|
|
21
23
|
FormInputAnnotation,
|
|
22
24
|
GeneratorAnnotation,
|
|
25
|
+
IconAnnotation,
|
|
23
26
|
LabelAnnotation,
|
|
24
27
|
ReferenceAnnotation,
|
|
25
28
|
SystemTypeAnnotation,
|
|
@@ -27,6 +30,7 @@ export {
|
|
|
27
30
|
getDescriptionWithSchema,
|
|
28
31
|
getLabelWithSchema,
|
|
29
32
|
getTypeAnnotation,
|
|
33
|
+
make,
|
|
30
34
|
setDescriptionWithSchema,
|
|
31
35
|
setLabelWithSchema
|
|
32
36
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Database,
|
|
3
|
+
Service,
|
|
4
|
+
TypeId,
|
|
5
|
+
add,
|
|
6
|
+
flush,
|
|
7
|
+
isDatabase,
|
|
8
|
+
layer,
|
|
9
|
+
load,
|
|
10
|
+
loadOption,
|
|
11
|
+
makeService,
|
|
12
|
+
notAvailable,
|
|
13
|
+
query,
|
|
14
|
+
remove,
|
|
15
|
+
resolve,
|
|
16
|
+
runQuery,
|
|
17
|
+
runSchemaQuery,
|
|
18
|
+
schemaQuery,
|
|
19
|
+
spaceId
|
|
20
|
+
} from "./chunk-ETOQXZHC.mjs";
|
|
21
|
+
import "./chunk-SEMVAGBM.mjs";
|
|
22
|
+
import "./chunk-WYOKA6AE.mjs";
|
|
23
|
+
import "./chunk-UBEZSGXY.mjs";
|
|
24
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
25
|
+
export {
|
|
26
|
+
Database,
|
|
27
|
+
Service,
|
|
28
|
+
TypeId,
|
|
29
|
+
add,
|
|
30
|
+
flush,
|
|
31
|
+
isDatabase,
|
|
32
|
+
layer,
|
|
33
|
+
load,
|
|
34
|
+
loadOption,
|
|
35
|
+
makeService,
|
|
36
|
+
notAvailable,
|
|
37
|
+
query,
|
|
38
|
+
remove,
|
|
39
|
+
resolve,
|
|
40
|
+
runQuery,
|
|
41
|
+
runSchemaQuery,
|
|
42
|
+
schemaQuery,
|
|
43
|
+
spaceId
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=Database.mjs.map
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import "@dxos/node-std/globals";
|
|
2
1
|
import {
|
|
3
2
|
Kind,
|
|
3
|
+
KindId,
|
|
4
4
|
KindSchema,
|
|
5
|
+
Meta,
|
|
6
|
+
SnapshotKindId,
|
|
5
7
|
addTag,
|
|
6
8
|
change,
|
|
7
9
|
getDXN,
|
|
@@ -14,24 +16,27 @@ import {
|
|
|
14
16
|
getTypeDXN,
|
|
15
17
|
getTypename,
|
|
16
18
|
isDeleted,
|
|
19
|
+
isEntity,
|
|
20
|
+
isSnapshot,
|
|
17
21
|
removeTag,
|
|
18
22
|
subscribe,
|
|
19
23
|
toJSON
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-7VLKWC6T.mjs";
|
|
25
|
+
import "./chunk-MFJPOZDU.mjs";
|
|
26
|
+
import "./chunk-4HWWKURH.mjs";
|
|
27
|
+
import "./chunk-2Z72D23W.mjs";
|
|
28
|
+
import "./chunk-B5OXLWZL.mjs";
|
|
29
|
+
import "./chunk-35FDO7WH.mjs";
|
|
30
|
+
import "./chunk-ETOQXZHC.mjs";
|
|
31
|
+
import "./chunk-SEMVAGBM.mjs";
|
|
32
|
+
import "./chunk-WYOKA6AE.mjs";
|
|
33
|
+
import "./chunk-UBEZSGXY.mjs";
|
|
34
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
31
35
|
export {
|
|
32
36
|
Kind,
|
|
33
37
|
KindId,
|
|
34
38
|
KindSchema,
|
|
39
|
+
Meta,
|
|
35
40
|
SnapshotKindId,
|
|
36
41
|
addTag,
|
|
37
42
|
change,
|
|
@@ -45,6 +50,8 @@ export {
|
|
|
45
50
|
getTypeDXN,
|
|
46
51
|
getTypename,
|
|
47
52
|
isDeleted,
|
|
53
|
+
isEntity,
|
|
54
|
+
isSnapshot,
|
|
48
55
|
removeTag,
|
|
49
56
|
subscribe,
|
|
50
57
|
toJSON
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import "@dxos/node-std/globals";
|
|
2
1
|
import {
|
|
2
|
+
GetReactiveError,
|
|
3
3
|
ObjectNotFoundError,
|
|
4
4
|
SchemaNotFoundError
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-UBEZSGXY.mjs";
|
|
6
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
7
7
|
export {
|
|
8
|
+
GetReactiveError,
|
|
8
9
|
ObjectNotFoundError,
|
|
9
10
|
SchemaNotFoundError
|
|
10
11
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DXN_KEY,
|
|
3
|
+
Feed,
|
|
4
|
+
Service,
|
|
5
|
+
append,
|
|
6
|
+
cursor,
|
|
7
|
+
getQueueDxn,
|
|
8
|
+
make,
|
|
9
|
+
next,
|
|
10
|
+
nextOption,
|
|
11
|
+
notAvailable,
|
|
12
|
+
query,
|
|
13
|
+
remove,
|
|
14
|
+
runQuery,
|
|
15
|
+
setRetention
|
|
16
|
+
} from "./chunk-QTUBE4DR.mjs";
|
|
17
|
+
import "./chunk-QLALBCSA.mjs";
|
|
18
|
+
import "./chunk-FUGL645K.mjs";
|
|
19
|
+
import "./chunk-7VLKWC6T.mjs";
|
|
20
|
+
import "./chunk-MFJPOZDU.mjs";
|
|
21
|
+
import "./chunk-4HWWKURH.mjs";
|
|
22
|
+
import "./chunk-2Z72D23W.mjs";
|
|
23
|
+
import "./chunk-B5OXLWZL.mjs";
|
|
24
|
+
import "./chunk-35FDO7WH.mjs";
|
|
25
|
+
import "./chunk-ETOQXZHC.mjs";
|
|
26
|
+
import "./chunk-SEMVAGBM.mjs";
|
|
27
|
+
import "./chunk-WYOKA6AE.mjs";
|
|
28
|
+
import "./chunk-UBEZSGXY.mjs";
|
|
29
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
30
|
+
export {
|
|
31
|
+
DXN_KEY,
|
|
32
|
+
Feed,
|
|
33
|
+
Service,
|
|
34
|
+
append,
|
|
35
|
+
cursor,
|
|
36
|
+
getQueueDxn,
|
|
37
|
+
make,
|
|
38
|
+
next,
|
|
39
|
+
nextOption,
|
|
40
|
+
notAvailable,
|
|
41
|
+
query,
|
|
42
|
+
remove,
|
|
43
|
+
runQuery,
|
|
44
|
+
setRetention
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=Feed.mjs.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
1
|
import {
|
|
3
2
|
and,
|
|
4
3
|
between,
|
|
@@ -24,15 +23,18 @@ import {
|
|
|
24
23
|
type,
|
|
25
24
|
typeDXN,
|
|
26
25
|
typename
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-BESZGRPL.mjs";
|
|
27
|
+
import "./chunk-EK7UOJ3R.mjs";
|
|
28
|
+
import "./chunk-MFJPOZDU.mjs";
|
|
29
|
+
import "./chunk-4HWWKURH.mjs";
|
|
30
|
+
import "./chunk-2Z72D23W.mjs";
|
|
31
|
+
import "./chunk-B5OXLWZL.mjs";
|
|
32
|
+
import "./chunk-35FDO7WH.mjs";
|
|
33
|
+
import "./chunk-ETOQXZHC.mjs";
|
|
34
|
+
import "./chunk-SEMVAGBM.mjs";
|
|
35
|
+
import "./chunk-WYOKA6AE.mjs";
|
|
36
|
+
import "./chunk-UBEZSGXY.mjs";
|
|
37
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
36
38
|
export {
|
|
37
39
|
and,
|
|
38
40
|
between,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "./chunk-5RDNDPMX.mjs";
|
|
1
|
+
import "./chunk-FZO7LQO7.mjs";
|
|
3
2
|
import {
|
|
4
3
|
Currency,
|
|
5
4
|
CurrencyAnnotationId,
|
|
@@ -30,9 +29,9 @@ import {
|
|
|
30
29
|
getOptionsAnnotation,
|
|
31
30
|
getTypeEnum,
|
|
32
31
|
typeToFormat
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-B5OXLWZL.mjs";
|
|
33
|
+
import "./chunk-WYOKA6AE.mjs";
|
|
34
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
36
35
|
export {
|
|
37
36
|
Currency,
|
|
38
37
|
CurrencyAnnotationId,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
JsonSchema,
|
|
3
|
+
toEffectSchema,
|
|
4
|
+
toJsonSchema
|
|
5
|
+
} from "./chunk-LDHKQDXR.mjs";
|
|
6
|
+
import "./chunk-2Z72D23W.mjs";
|
|
7
|
+
import "./chunk-B5OXLWZL.mjs";
|
|
8
|
+
import "./chunk-35FDO7WH.mjs";
|
|
9
|
+
import "./chunk-ETOQXZHC.mjs";
|
|
10
|
+
import "./chunk-SEMVAGBM.mjs";
|
|
11
|
+
import "./chunk-WYOKA6AE.mjs";
|
|
12
|
+
import "./chunk-UBEZSGXY.mjs";
|
|
13
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
14
|
+
export {
|
|
15
|
+
JsonSchema,
|
|
16
|
+
toEffectSchema,
|
|
17
|
+
toJsonSchema
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=JsonSchema.mjs.map
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import "@dxos/node-std/globals";
|
|
2
1
|
import {
|
|
3
2
|
ID,
|
|
4
3
|
Meta,
|
|
4
|
+
Parent,
|
|
5
|
+
Unknown,
|
|
6
|
+
VersionTypeId,
|
|
5
7
|
addTag,
|
|
6
8
|
change,
|
|
7
9
|
clone,
|
|
10
|
+
compareVersions,
|
|
11
|
+
decodeVersion,
|
|
8
12
|
deleteKeys,
|
|
13
|
+
encodeVersion,
|
|
9
14
|
fromJSON,
|
|
10
15
|
getDXN,
|
|
11
16
|
getDatabase,
|
|
@@ -13,6 +18,10 @@ import {
|
|
|
13
18
|
getKeys,
|
|
14
19
|
getLabel,
|
|
15
20
|
getMeta,
|
|
21
|
+
getParent,
|
|
22
|
+
getReactive,
|
|
23
|
+
getReactiveOption,
|
|
24
|
+
getReactiveOrThrow,
|
|
16
25
|
getSchema,
|
|
17
26
|
getSnapshot,
|
|
18
27
|
getTypeDXN,
|
|
@@ -21,36 +30,39 @@ import {
|
|
|
21
30
|
instanceOf,
|
|
22
31
|
isDeleted,
|
|
23
32
|
isObject,
|
|
33
|
+
isSnapshot,
|
|
34
|
+
isVersion,
|
|
24
35
|
make,
|
|
25
36
|
removeTag,
|
|
26
37
|
setDescription,
|
|
27
38
|
setLabel,
|
|
39
|
+
setParent,
|
|
28
40
|
setValue,
|
|
41
|
+
snapshotOf,
|
|
29
42
|
sort,
|
|
30
43
|
sortByLabel,
|
|
31
44
|
sortByTypename,
|
|
32
45
|
subscribe,
|
|
33
46
|
toJSON,
|
|
34
|
-
version
|
|
35
|
-
} from "./chunk-CBPFF3ZO.mjs";
|
|
36
|
-
import "./chunk-73M2G455.mjs";
|
|
37
|
-
import {
|
|
38
|
-
VersionTypeId,
|
|
39
|
-
compareVersions,
|
|
40
|
-
decodeVersion,
|
|
41
|
-
encodeVersion,
|
|
42
|
-
isVersion,
|
|
47
|
+
version,
|
|
43
48
|
versionValid
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-FUGL645K.mjs";
|
|
50
|
+
import "./chunk-7VLKWC6T.mjs";
|
|
51
|
+
import "./chunk-MFJPOZDU.mjs";
|
|
52
|
+
import "./chunk-4HWWKURH.mjs";
|
|
53
|
+
import "./chunk-2Z72D23W.mjs";
|
|
54
|
+
import "./chunk-B5OXLWZL.mjs";
|
|
55
|
+
import "./chunk-35FDO7WH.mjs";
|
|
56
|
+
import "./chunk-ETOQXZHC.mjs";
|
|
57
|
+
import "./chunk-SEMVAGBM.mjs";
|
|
58
|
+
import "./chunk-WYOKA6AE.mjs";
|
|
59
|
+
import "./chunk-UBEZSGXY.mjs";
|
|
60
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
51
61
|
export {
|
|
52
62
|
ID,
|
|
53
63
|
Meta,
|
|
64
|
+
Parent,
|
|
65
|
+
Unknown,
|
|
54
66
|
VersionTypeId,
|
|
55
67
|
addTag,
|
|
56
68
|
change,
|
|
@@ -66,6 +78,10 @@ export {
|
|
|
66
78
|
getKeys,
|
|
67
79
|
getLabel,
|
|
68
80
|
getMeta,
|
|
81
|
+
getParent,
|
|
82
|
+
getReactive,
|
|
83
|
+
getReactiveOption,
|
|
84
|
+
getReactiveOrThrow,
|
|
69
85
|
getSchema,
|
|
70
86
|
getSnapshot,
|
|
71
87
|
getTypeDXN,
|
|
@@ -74,12 +90,15 @@ export {
|
|
|
74
90
|
instanceOf,
|
|
75
91
|
isDeleted,
|
|
76
92
|
isObject,
|
|
93
|
+
isSnapshot,
|
|
77
94
|
isVersion,
|
|
78
95
|
make,
|
|
79
96
|
removeTag,
|
|
80
97
|
setDescription,
|
|
81
98
|
setLabel,
|
|
99
|
+
setParent,
|
|
82
100
|
setValue,
|
|
101
|
+
snapshotOf,
|
|
83
102
|
sort,
|
|
84
103
|
sortByLabel,
|
|
85
104
|
sortByTypename,
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {
|
|
2
|
+
all,
|
|
3
|
+
from,
|
|
4
|
+
fromAst,
|
|
5
|
+
is,
|
|
6
|
+
select,
|
|
7
|
+
type,
|
|
8
|
+
without
|
|
9
|
+
} from "./chunk-EV3A23AS.mjs";
|
|
10
|
+
import "./chunk-QTUBE4DR.mjs";
|
|
11
|
+
import "./chunk-QLALBCSA.mjs";
|
|
12
|
+
import "./chunk-BESZGRPL.mjs";
|
|
13
|
+
import "./chunk-EK7UOJ3R.mjs";
|
|
14
|
+
import "./chunk-FUGL645K.mjs";
|
|
15
|
+
import "./chunk-7VLKWC6T.mjs";
|
|
16
|
+
import "./chunk-MFJPOZDU.mjs";
|
|
17
|
+
import "./chunk-4HWWKURH.mjs";
|
|
18
|
+
import "./chunk-2Z72D23W.mjs";
|
|
19
|
+
import "./chunk-B5OXLWZL.mjs";
|
|
20
|
+
import "./chunk-35FDO7WH.mjs";
|
|
21
|
+
import "./chunk-ETOQXZHC.mjs";
|
|
22
|
+
import "./chunk-SEMVAGBM.mjs";
|
|
23
|
+
import "./chunk-WYOKA6AE.mjs";
|
|
24
|
+
import "./chunk-UBEZSGXY.mjs";
|
|
25
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
26
|
+
export {
|
|
27
|
+
all,
|
|
28
|
+
from,
|
|
29
|
+
fromAst,
|
|
30
|
+
is,
|
|
31
|
+
select,
|
|
32
|
+
type,
|
|
33
|
+
without
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=Query.mjs.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Array,
|
|
3
|
+
Ref,
|
|
4
|
+
fromDXN,
|
|
5
|
+
isRef,
|
|
6
|
+
isRefType,
|
|
7
|
+
make
|
|
8
|
+
} from "./chunk-EK7UOJ3R.mjs";
|
|
9
|
+
import "./chunk-4HWWKURH.mjs";
|
|
10
|
+
import "./chunk-35FDO7WH.mjs";
|
|
11
|
+
import "./chunk-ETOQXZHC.mjs";
|
|
12
|
+
import "./chunk-SEMVAGBM.mjs";
|
|
13
|
+
import "./chunk-WYOKA6AE.mjs";
|
|
14
|
+
import "./chunk-UBEZSGXY.mjs";
|
|
15
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
16
|
+
export {
|
|
17
|
+
Array,
|
|
18
|
+
Ref,
|
|
19
|
+
fromDXN,
|
|
20
|
+
isRef,
|
|
21
|
+
isRefType,
|
|
22
|
+
make
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=Ref.mjs.map
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import "@dxos/node-std/globals";
|
|
2
1
|
import {
|
|
2
|
+
Meta,
|
|
3
3
|
Source,
|
|
4
4
|
Target,
|
|
5
|
+
Unknown,
|
|
6
|
+
VersionTypeId,
|
|
5
7
|
addTag,
|
|
6
8
|
change,
|
|
7
9
|
deleteKeys,
|
|
@@ -22,6 +24,8 @@ import {
|
|
|
22
24
|
getValue,
|
|
23
25
|
isDeleted,
|
|
24
26
|
isRelation,
|
|
27
|
+
isSnapshot,
|
|
28
|
+
isVersion,
|
|
25
29
|
make,
|
|
26
30
|
removeTag,
|
|
27
31
|
setDescription,
|
|
@@ -33,21 +37,24 @@ import {
|
|
|
33
37
|
subscribe,
|
|
34
38
|
toJSON,
|
|
35
39
|
version
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-PH5RST5U.mjs";
|
|
41
|
+
import "./chunk-FUGL645K.mjs";
|
|
42
|
+
import "./chunk-7VLKWC6T.mjs";
|
|
43
|
+
import "./chunk-MFJPOZDU.mjs";
|
|
44
|
+
import "./chunk-4HWWKURH.mjs";
|
|
45
|
+
import "./chunk-2Z72D23W.mjs";
|
|
46
|
+
import "./chunk-B5OXLWZL.mjs";
|
|
47
|
+
import "./chunk-35FDO7WH.mjs";
|
|
48
|
+
import "./chunk-ETOQXZHC.mjs";
|
|
49
|
+
import "./chunk-SEMVAGBM.mjs";
|
|
50
|
+
import "./chunk-WYOKA6AE.mjs";
|
|
51
|
+
import "./chunk-UBEZSGXY.mjs";
|
|
52
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
48
53
|
export {
|
|
54
|
+
Meta,
|
|
49
55
|
Source,
|
|
50
56
|
Target,
|
|
57
|
+
Unknown,
|
|
51
58
|
VersionTypeId,
|
|
52
59
|
addTag,
|
|
53
60
|
change,
|
|
@@ -69,6 +76,7 @@ export {
|
|
|
69
76
|
getValue,
|
|
70
77
|
isDeleted,
|
|
71
78
|
isRelation,
|
|
79
|
+
isSnapshot,
|
|
72
80
|
isVersion,
|
|
73
81
|
make,
|
|
74
82
|
removeTag,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Tag,
|
|
3
|
+
createTagList,
|
|
4
|
+
findTagByLabel,
|
|
5
|
+
make,
|
|
6
|
+
sortTags
|
|
7
|
+
} from "./chunk-2FK7XCDV.mjs";
|
|
8
|
+
import "./chunk-QLALBCSA.mjs";
|
|
9
|
+
import "./chunk-FUGL645K.mjs";
|
|
10
|
+
import "./chunk-7VLKWC6T.mjs";
|
|
11
|
+
import "./chunk-MFJPOZDU.mjs";
|
|
12
|
+
import "./chunk-4HWWKURH.mjs";
|
|
13
|
+
import "./chunk-2Z72D23W.mjs";
|
|
14
|
+
import "./chunk-B5OXLWZL.mjs";
|
|
15
|
+
import "./chunk-35FDO7WH.mjs";
|
|
16
|
+
import "./chunk-ETOQXZHC.mjs";
|
|
17
|
+
import "./chunk-SEMVAGBM.mjs";
|
|
18
|
+
import "./chunk-WYOKA6AE.mjs";
|
|
19
|
+
import "./chunk-UBEZSGXY.mjs";
|
|
20
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
21
|
+
export {
|
|
22
|
+
Tag,
|
|
23
|
+
createTagList,
|
|
24
|
+
findTagByLabel,
|
|
25
|
+
make,
|
|
26
|
+
sortTags
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=Tag.mjs.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PersistentType,
|
|
3
|
+
RuntimeType,
|
|
4
|
+
getDXN,
|
|
5
|
+
getMeta,
|
|
6
|
+
getTypename,
|
|
7
|
+
getVersion,
|
|
8
|
+
isMutable,
|
|
9
|
+
isObjectSchema,
|
|
10
|
+
isRelationSchema,
|
|
11
|
+
object,
|
|
12
|
+
relation
|
|
13
|
+
} from "./chunk-QLALBCSA.mjs";
|
|
14
|
+
import "./chunk-MFJPOZDU.mjs";
|
|
15
|
+
import "./chunk-4HWWKURH.mjs";
|
|
16
|
+
import "./chunk-2Z72D23W.mjs";
|
|
17
|
+
import "./chunk-B5OXLWZL.mjs";
|
|
18
|
+
import "./chunk-35FDO7WH.mjs";
|
|
19
|
+
import "./chunk-ETOQXZHC.mjs";
|
|
20
|
+
import "./chunk-SEMVAGBM.mjs";
|
|
21
|
+
import "./chunk-WYOKA6AE.mjs";
|
|
22
|
+
import "./chunk-UBEZSGXY.mjs";
|
|
23
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
24
|
+
export {
|
|
25
|
+
PersistentType,
|
|
26
|
+
RuntimeType,
|
|
27
|
+
getDXN,
|
|
28
|
+
getMeta,
|
|
29
|
+
getTypename,
|
|
30
|
+
getVersion,
|
|
31
|
+
isMutable,
|
|
32
|
+
isObjectSchema,
|
|
33
|
+
isRelationSchema,
|
|
34
|
+
object,
|
|
35
|
+
relation
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=Type.mjs.map
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import "@dxos/node-std/globals";
|
|
2
1
|
import {
|
|
3
2
|
object
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QLALBCSA.mjs";
|
|
5
4
|
import {
|
|
6
5
|
make
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FUGL645K.mjs";
|
|
8
7
|
import {
|
|
9
8
|
LabelAnnotation,
|
|
10
9
|
SystemTypeAnnotation
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SEMVAGBM.mjs";
|
|
12
11
|
import {
|
|
13
12
|
__export
|
|
14
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-J5LGTIGS.mjs";
|
|
15
14
|
|
|
16
15
|
// src/Tag.ts
|
|
17
16
|
var Tag_exports = {};
|
|
@@ -27,7 +26,7 @@ var Tag = Schema.Struct({
|
|
|
27
26
|
label: Schema.String,
|
|
28
27
|
hue: Schema.optional(Schema.String)
|
|
29
28
|
}).pipe(object({
|
|
30
|
-
typename: "dxos.
|
|
29
|
+
typename: "org.dxos.type.tag",
|
|
31
30
|
version: "0.1.0"
|
|
32
31
|
}), LabelAnnotation.set([
|
|
33
32
|
"label"
|
|
@@ -54,4 +53,4 @@ export {
|
|
|
54
53
|
findTagByLabel,
|
|
55
54
|
Tag_exports
|
|
56
55
|
};
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-2FK7XCDV.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/Tag.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nimport * as internal from './internal';\nimport * as Obj from './Obj';\nimport * as Type from './Type';\n\nexport const Tag = Schema.Struct({\n label: Schema.String,\n hue: Schema.optional(Schema.String), // TODO(burdon): Color name?\n}).pipe(\n Type.object({\n typename: 'org.dxos.type.tag',\n version: '0.1.0',\n }),\n internal.LabelAnnotation.set(['label']),\n internal.SystemTypeAnnotation.set(true),\n);\n\nexport type Tag = Schema.Schema.Type<typeof Tag>;\n\nexport const make = (props: Obj.MakeProps<typeof Tag>) => Obj.make(Tag, props);\n\nexport type Map = Record<string, Tag>;\n\nexport const sortTags = ({ label: a }: Tag, { label: b }: Tag) => a.localeCompare(b);\n\nexport const createTagList = (tags: Map): Tag[] =>\n Object.entries(tags)\n .map(([id, tag]) => ({ ...tag, id }))\n .sort(sortTags);\n\nexport const findTagByLabel = (tags: Map | undefined, name: string): Tag | undefined => {\n const entry = Object.entries(tags ?? {}).find(([_, tag]) => tag.label.toLowerCase() === name.toLowerCase());\n return entry ? { ...entry[1], id: entry[0] } : undefined;\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;;;;;cAAAA;EAAA;;AAMA,YAAYC,YAAY;AAMjB,IAAMC,MAAaC,cAAO;EAC/BC,OAAcC;EACdC,KAAYC,gBAAgBF,aAAM;AACpC,CAAA,EAAGG,KACIC,OAAO;EACVC,UAAU;EACVC,SAAS;AACX,CAAA,GACSC,gBAAgBC,IAAI;EAAC;CAAQ,GAC7BC,qBAAqBD,IAAI,IAAA,CAAA;AAK7B,IAAME,QAAO,CAACC,UAAyCD,KAAKb,KAAKc,KAAAA;AAIjE,IAAMC,WAAW,CAAC,EAAEb,OAAOc,EAAC,GAAS,EAAEd,OAAOe,EAAC,MAAYD,EAAEE,cAAcD,CAAAA;AAE3E,IAAME,gBAAgB,CAACC,SAC5BC,OAAOC,QAAQF,IAAAA,EACZG,IAAI,CAAC,CAACC,IAAIC,GAAAA,OAAU;EAAE,GAAGA;EAAKD;AAAG,EAAA,EACjCE,KAAKX,QAAAA;AAEH,IAAMY,iBAAiB,CAACP,MAAuBQ,SAAAA;AACpD,QAAMC,QAAQR,OAAOC,QAAQF,QAAQ,CAAC,CAAA,EAAGU,KAAK,CAAC,CAACC,GAAGN,GAAAA,MAASA,IAAIvB,MAAM8B,YAAW,MAAOJ,KAAKI,YAAW,CAAA;AACxG,SAAOH,QAAQ;IAAE,GAAGA,MAAM,CAAA;IAAIL,IAAIK,MAAM,CAAA;EAAG,IAAII;AACjD;",
|
|
6
|
+
"names": ["make", "Schema", "Tag", "Struct", "label", "String", "hue", "optional", "pipe", "object", "typename", "version", "LabelAnnotation", "set", "SystemTypeAnnotation", "make", "props", "sortTags", "a", "b", "localeCompare", "createTagList", "tags", "Object", "entries", "map", "id", "tag", "sort", "findTagByLabel", "name", "entry", "find", "_", "toLowerCase", "undefined"]
|
|
7
|
+
}
|