@dxos/echo-protocol 0.5.1-next.638da00 → 0.5.1-next.65aaa36
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.
|
@@ -10,7 +10,7 @@ export interface SpaceDoc {
|
|
|
10
10
|
* Objects inlined in the current document.
|
|
11
11
|
*/
|
|
12
12
|
objects?: {
|
|
13
|
-
[
|
|
13
|
+
[key: string]: ObjectStructure;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Object id points to an automerge doc url where the object is embedded.
|
|
@@ -23,9 +23,9 @@ export interface SpaceDoc {
|
|
|
23
23
|
* Representation of an ECHO object in an AM document.
|
|
24
24
|
*/
|
|
25
25
|
export type ObjectStructure = {
|
|
26
|
-
system: ObjectSystem;
|
|
27
|
-
meta: ObjectMeta;
|
|
28
26
|
data: Record<string, any>;
|
|
27
|
+
meta: ObjectMeta;
|
|
28
|
+
system: ObjectSystem;
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
31
|
* Echo object metadata.
|
|
@@ -42,7 +42,7 @@ export type ObjectMeta = {
|
|
|
42
42
|
export type ForeignKey = {
|
|
43
43
|
/**
|
|
44
44
|
* Name of the foreign database/system.
|
|
45
|
-
* E.g
|
|
45
|
+
* E.g. `github.com`.
|
|
46
46
|
*/
|
|
47
47
|
source?: string;
|
|
48
48
|
/**
|
|
@@ -55,13 +55,13 @@ export type ForeignKey = {
|
|
|
55
55
|
* (Is automerge specific.)
|
|
56
56
|
*/
|
|
57
57
|
export type ObjectSystem = {
|
|
58
|
-
/**
|
|
59
|
-
* Object reference ('protobuf' protocol) type.
|
|
60
|
-
*/
|
|
61
|
-
type?: EncodedReferenceObject;
|
|
62
58
|
/**
|
|
63
59
|
* Deletion marker.
|
|
64
60
|
*/
|
|
65
61
|
deleted?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Object reference ('protobuf' protocol) type.
|
|
64
|
+
*/
|
|
65
|
+
type?: EncodedReferenceObject;
|
|
66
66
|
};
|
|
67
67
|
//# sourceMappingURL=document-structure.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"document-structure.d.ts","sourceRoot":"","sources":["../../../src/document-structure.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAE1D,MAAM,MAAM,UAAU,GAAG;IAEvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE;QACP,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF;;OAEG;IACH,OAAO,CAAC,EAAE;QACR,CAAC,
|
|
1
|
+
{"version":3,"file":"document-structure.d.ts","sourceRoot":"","sources":["../../../src/document-structure.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAE1D,MAAM,MAAM,UAAU,GAAG;IAEvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE;QACP,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF;;OAEG;IACH,OAAO,CAAC,EAAE;QACR,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAC;KAChC,CAAC;IACF;;OAEG;IACH,KAAK,CAAC,EAAE;QACN,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;KAC1B,CAAC;CACH;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,YAAY,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,IAAI,EAAE,UAAU,EAAE,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,sBAAsB,CAAC;CAC/B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/echo-protocol",
|
|
3
|
-
"version": "0.5.1-next.
|
|
3
|
+
"version": "0.5.1-next.65aaa36",
|
|
4
4
|
"description": "Core ECHO APIs.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"src"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@dxos/protocols": "0.5.1-next.
|
|
25
|
+
"@dxos/protocols": "0.5.1-next.65aaa36"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
@@ -17,7 +17,7 @@ export interface SpaceDoc {
|
|
|
17
17
|
* Objects inlined in the current document.
|
|
18
18
|
*/
|
|
19
19
|
objects?: {
|
|
20
|
-
[
|
|
20
|
+
[key: string]: ObjectStructure;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
23
|
* Object id points to an automerge doc url where the object is embedded.
|
|
@@ -31,9 +31,9 @@ export interface SpaceDoc {
|
|
|
31
31
|
* Representation of an ECHO object in an AM document.
|
|
32
32
|
*/
|
|
33
33
|
export type ObjectStructure = {
|
|
34
|
-
system: ObjectSystem;
|
|
35
|
-
meta: ObjectMeta;
|
|
36
34
|
data: Record<string, any>;
|
|
35
|
+
meta: ObjectMeta;
|
|
36
|
+
system: ObjectSystem;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
/**
|
|
@@ -52,7 +52,7 @@ export type ObjectMeta = {
|
|
|
52
52
|
export type ForeignKey = {
|
|
53
53
|
/**
|
|
54
54
|
* Name of the foreign database/system.
|
|
55
|
-
* E.g
|
|
55
|
+
* E.g. `github.com`.
|
|
56
56
|
*/
|
|
57
57
|
source?: string;
|
|
58
58
|
|
|
@@ -68,12 +68,12 @@ export type ForeignKey = {
|
|
|
68
68
|
*/
|
|
69
69
|
export type ObjectSystem = {
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Deletion marker.
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
deleted?: boolean;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* Object reference ('protobuf' protocol) type.
|
|
77
77
|
*/
|
|
78
|
-
|
|
78
|
+
type?: EncodedReferenceObject;
|
|
79
79
|
};
|