@livestore/common 0.0.55-dev.0 → 0.0.55-dev.2
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/dist/.tsbuildinfo +1 -1
- package/dist/adapter-types.d.ts +1 -0
- package/dist/adapter-types.d.ts.map +1 -1
- package/dist/adapter-types.js +1 -0
- package/dist/adapter-types.js.map +1 -1
- package/dist/devtools/devtools-messages.d.ts +174 -30
- package/dist/devtools/devtools-messages.d.ts.map +1 -1
- package/dist/devtools/devtools-messages.js +82 -159
- package/dist/devtools/devtools-messages.js.map +1 -1
- package/dist/devtools/index.d.ts +4 -0
- package/dist/devtools/index.d.ts.map +1 -1
- package/dist/devtools/index.js +9 -0
- package/dist/devtools/index.js.map +1 -1
- package/dist/rehydrate-from-mutationlog.d.ts +2 -2
- package/dist/rehydrate-from-mutationlog.d.ts.map +1 -1
- package/dist/rehydrate-from-mutationlog.js +10 -11
- package/dist/rehydrate-from-mutationlog.js.map +1 -1
- package/package.json +3 -3
- package/src/adapter-types.ts +1 -0
- package/src/devtools/devtools-messages.ts +103 -170
- package/src/devtools/index.ts +11 -0
- package/src/rehydrate-from-mutationlog.ts +21 -11
package/dist/adapter-types.d.ts
CHANGED
|
@@ -101,6 +101,7 @@ declare const UnexpectedError_base: Schema.TaggedErrorClass<UnexpectedError, "Li
|
|
|
101
101
|
readonly _tag: Schema.tag<"LiveStore.UnexpectedError">;
|
|
102
102
|
} & {
|
|
103
103
|
cause: typeof Schema.AnyError;
|
|
104
|
+
note: Schema.optional<typeof Schema.String>;
|
|
104
105
|
payload: Schema.optional<typeof Schema.Any>;
|
|
105
106
|
}>;
|
|
106
107
|
export declare class UnexpectedError extends UnexpectedError_base {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-types.d.ts","sourceRoot":"","sources":["../src/adapter-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAA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AAM,MAAM,+BAA+B,CAAC,OAAO,SAAS,eAAe,GAAG,eAAe,IAAI;IAC/F,QAAQ,EAAE,mBAAmB,CAAA;IAC7B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,WAAW,CAAC,MAAM,OAAO,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAC,CAAA;IAC7E,KAAK,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAA;IAC/B,OAAO,CAAC,EAAE;QACR,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAA;KACnD,CAAA;CACF,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE;IACvC,MAAM,EAAE,eAAe,CAAA;IACvB,eAAe,EAAE,OAAO,CAAA;IACxB,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;CAC3D,KAAK,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,CAAA"}
|
package/dist/adapter-types.js
CHANGED
|
@@ -10,6 +10,7 @@ export const BootStateProgress = Schema.Struct({
|
|
|
10
10
|
export const BootStatus = Schema.Union(Schema.Struct({ stage: Schema.Literal('loading') }), Schema.Struct({ stage: Schema.Literal('migrating'), progress: BootStateProgress }), Schema.Struct({ stage: Schema.Literal('rehydrating'), progress: BootStateProgress }), Schema.Struct({ stage: Schema.Literal('syncing'), progress: BootStateProgress }), Schema.Struct({ stage: Schema.Literal('done') }));
|
|
11
11
|
export class UnexpectedError extends Schema.TaggedError()('LiveStore.UnexpectedError', {
|
|
12
12
|
cause: Schema.AnyError,
|
|
13
|
+
note: Schema.optional(Schema.String),
|
|
13
14
|
payload: Schema.optional(Schema.Any),
|
|
14
15
|
}) {
|
|
15
16
|
static mapToUnexpectedError = (effect) => effect.pipe(Effect.tapCauseLogPretty, Effect.mapError((cause) => (Schema.is(UnexpectedError)(cause) ? cause : new UnexpectedError({ cause }))), Effect.catchAllDefect((cause) => new UnexpectedError({ cause })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter-types.js","sourceRoot":"","sources":["../src/adapter-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AA2BhE,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC;IACzC,WAAW,EAAE,MAAM,CAAC,OAAO;IAC3B,WAAW,EAAE,MAAM,CAAC,MAAM;CAC3B,CAAC,CAAA;AAOF,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,KAAK,EAAE,MAAM,CAAC,MAAM;CACrB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CACpC,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,EACnD,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC,EAClF,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC,EACpF,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC,EAChF,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,M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CAAC;IACpE,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC,QAAQ;CACvB,CAAC;CAAG"}
|
|
@@ -3,8 +3,10 @@ declare const SnapshotReq_base: Schema.Struct<{
|
|
|
3
3
|
_tag: Schema.tag<"LSD.SnapshotReq">;
|
|
4
4
|
} & {
|
|
5
5
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
6
|
-
|
|
6
|
+
} & {
|
|
7
7
|
channelId: typeof Schema.String;
|
|
8
|
+
} & {
|
|
9
|
+
requestId: typeof Schema.String;
|
|
8
10
|
}>;
|
|
9
11
|
export declare class SnapshotReq extends SnapshotReq_base {
|
|
10
12
|
}
|
|
@@ -12,7 +14,11 @@ declare const SnapshotRes_base: Schema.Struct<{
|
|
|
12
14
|
_tag: Schema.tag<"LSD.SnapshotRes">;
|
|
13
15
|
} & {
|
|
14
16
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
17
|
+
} & {
|
|
18
|
+
channelId: typeof Schema.String;
|
|
19
|
+
} & {
|
|
15
20
|
requestId: typeof Schema.String;
|
|
21
|
+
} & {
|
|
16
22
|
snapshot: Schema.Schema<Uint8Array, Uint8Array, never>;
|
|
17
23
|
}>;
|
|
18
24
|
export declare class SnapshotRes extends SnapshotRes_base {
|
|
@@ -21,8 +27,11 @@ declare const LoadDatabaseFileReq_base: Schema.Struct<{
|
|
|
21
27
|
_tag: Schema.tag<"LSD.LoadDatabaseFileReq">;
|
|
22
28
|
} & {
|
|
23
29
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
24
|
-
|
|
30
|
+
} & {
|
|
25
31
|
channelId: typeof Schema.String;
|
|
32
|
+
} & {
|
|
33
|
+
requestId: typeof Schema.String;
|
|
34
|
+
} & {
|
|
26
35
|
data: Schema.Schema<Uint8Array, Uint8Array, never>;
|
|
27
36
|
}>;
|
|
28
37
|
export declare class LoadDatabaseFileReq extends LoadDatabaseFileReq_base {
|
|
@@ -31,7 +40,11 @@ declare const LoadDatabaseFileRes_base: Schema.Struct<{
|
|
|
31
40
|
_tag: Schema.tag<"LSD.LoadDatabaseFileRes">;
|
|
32
41
|
} & {
|
|
33
42
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
43
|
+
} & {
|
|
44
|
+
channelId: typeof Schema.String;
|
|
45
|
+
} & {
|
|
34
46
|
requestId: typeof Schema.String;
|
|
47
|
+
} & {
|
|
35
48
|
status: Schema.Literal<["ok", "unsupported-file", "unsupported-database"]>;
|
|
36
49
|
}>;
|
|
37
50
|
export declare class LoadDatabaseFileRes extends LoadDatabaseFileRes_base {
|
|
@@ -40,8 +53,10 @@ declare const DebugInfoReq_base: Schema.Struct<{
|
|
|
40
53
|
_tag: Schema.tag<"LSD.DebugInfoReq">;
|
|
41
54
|
} & {
|
|
42
55
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
43
|
-
|
|
56
|
+
} & {
|
|
44
57
|
channelId: typeof Schema.String;
|
|
58
|
+
} & {
|
|
59
|
+
requestId: typeof Schema.String;
|
|
45
60
|
}>;
|
|
46
61
|
export declare class DebugInfoReq extends DebugInfoReq_base {
|
|
47
62
|
}
|
|
@@ -49,43 +64,47 @@ declare const DebugInfoRes_base: Schema.Struct<{
|
|
|
49
64
|
_tag: Schema.tag<"LSD.DebugInfoRes">;
|
|
50
65
|
} & {
|
|
51
66
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
67
|
+
} & {
|
|
68
|
+
channelId: typeof Schema.String;
|
|
69
|
+
} & {
|
|
52
70
|
requestId: typeof Schema.String;
|
|
71
|
+
} & {
|
|
53
72
|
debugInfo: Schema.Struct<{
|
|
54
73
|
slowQueries: Schema.transform<Schema.Struct<{
|
|
55
74
|
size: typeof Schema.Number;
|
|
56
75
|
items: Schema.Array$<Schema.Schema<{
|
|
76
|
+
readonly queryStr: string;
|
|
57
77
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
58
78
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
59
79
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
60
|
-
readonly queryStr: string;
|
|
61
80
|
readonly durationMs: number;
|
|
62
81
|
readonly rowsCount: number | undefined;
|
|
63
82
|
readonly queriedTables: ReadonlySet<string>;
|
|
64
83
|
readonly startTimePerfNow: number;
|
|
65
84
|
}, {
|
|
85
|
+
readonly queryStr: string;
|
|
66
86
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
|
67
87
|
readonly [x: string]: string | number | readonly number[] | null;
|
|
68
88
|
} | undefined;
|
|
69
|
-
readonly queryStr: string;
|
|
70
89
|
readonly durationMs: number;
|
|
71
90
|
readonly rowsCount: number | undefined;
|
|
72
91
|
readonly queriedTables: readonly string[];
|
|
73
92
|
readonly startTimePerfNow: number;
|
|
74
93
|
}, never>>;
|
|
75
94
|
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
|
|
95
|
+
readonly queryStr: string;
|
|
76
96
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
77
97
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
78
98
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
79
|
-
readonly queryStr: string;
|
|
80
99
|
readonly durationMs: number;
|
|
81
100
|
readonly rowsCount: number | undefined;
|
|
82
101
|
readonly queriedTables: ReadonlySet<string>;
|
|
83
102
|
readonly startTimePerfNow: number;
|
|
84
103
|
}>, import("../bounded-collections.js").BoundArray<{
|
|
104
|
+
readonly queryStr: string;
|
|
85
105
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
86
106
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
87
107
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
88
|
-
readonly queryStr: string;
|
|
89
108
|
readonly durationMs: number;
|
|
90
109
|
readonly rowsCount: number | undefined;
|
|
91
110
|
readonly queriedTables: ReadonlySet<string>;
|
|
@@ -105,8 +124,10 @@ declare const DebugInfoHistorySubscribe_base: Schema.Struct<{
|
|
|
105
124
|
_tag: Schema.tag<"LSD.DebugInfoHistorySubscribe">;
|
|
106
125
|
} & {
|
|
107
126
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
108
|
-
|
|
127
|
+
} & {
|
|
109
128
|
channelId: typeof Schema.String;
|
|
129
|
+
} & {
|
|
130
|
+
requestId: typeof Schema.String;
|
|
110
131
|
}>;
|
|
111
132
|
export declare class DebugInfoHistorySubscribe extends DebugInfoHistorySubscribe_base {
|
|
112
133
|
}
|
|
@@ -114,43 +135,47 @@ declare const DebugInfoHistoryRes_base: Schema.Struct<{
|
|
|
114
135
|
_tag: Schema.tag<"LSD.DebugInfoHistoryRes">;
|
|
115
136
|
} & {
|
|
116
137
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
138
|
+
} & {
|
|
139
|
+
channelId: typeof Schema.String;
|
|
140
|
+
} & {
|
|
117
141
|
requestId: typeof Schema.String;
|
|
142
|
+
} & {
|
|
118
143
|
debugInfoHistory: Schema.Array$<Schema.Struct<{
|
|
119
144
|
slowQueries: Schema.transform<Schema.Struct<{
|
|
120
145
|
size: typeof Schema.Number;
|
|
121
146
|
items: Schema.Array$<Schema.Schema<{
|
|
147
|
+
readonly queryStr: string;
|
|
122
148
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
123
149
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
124
150
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
125
|
-
readonly queryStr: string;
|
|
126
151
|
readonly durationMs: number;
|
|
127
152
|
readonly rowsCount: number | undefined;
|
|
128
153
|
readonly queriedTables: ReadonlySet<string>;
|
|
129
154
|
readonly startTimePerfNow: number;
|
|
130
155
|
}, {
|
|
156
|
+
readonly queryStr: string;
|
|
131
157
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
|
132
158
|
readonly [x: string]: string | number | readonly number[] | null;
|
|
133
159
|
} | undefined;
|
|
134
|
-
readonly queryStr: string;
|
|
135
160
|
readonly durationMs: number;
|
|
136
161
|
readonly rowsCount: number | undefined;
|
|
137
162
|
readonly queriedTables: readonly string[];
|
|
138
163
|
readonly startTimePerfNow: number;
|
|
139
164
|
}, never>>;
|
|
140
165
|
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
|
|
166
|
+
readonly queryStr: string;
|
|
141
167
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
142
168
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
143
169
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
144
|
-
readonly queryStr: string;
|
|
145
170
|
readonly durationMs: number;
|
|
146
171
|
readonly rowsCount: number | undefined;
|
|
147
172
|
readonly queriedTables: ReadonlySet<string>;
|
|
148
173
|
readonly startTimePerfNow: number;
|
|
149
174
|
}>, import("../bounded-collections.js").BoundArray<{
|
|
175
|
+
readonly queryStr: string;
|
|
150
176
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
151
177
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
152
178
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
153
|
-
readonly queryStr: string;
|
|
154
179
|
readonly durationMs: number;
|
|
155
180
|
readonly rowsCount: number | undefined;
|
|
156
181
|
readonly queriedTables: ReadonlySet<string>;
|
|
@@ -170,8 +195,10 @@ declare const DebugInfoHistoryUnsubscribe_base: Schema.Struct<{
|
|
|
170
195
|
_tag: Schema.tag<"LSD.DebugInfoHistoryUnsubscribe">;
|
|
171
196
|
} & {
|
|
172
197
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
173
|
-
|
|
198
|
+
} & {
|
|
174
199
|
channelId: typeof Schema.String;
|
|
200
|
+
} & {
|
|
201
|
+
requestId: typeof Schema.String;
|
|
175
202
|
}>;
|
|
176
203
|
export declare class DebugInfoHistoryUnsubscribe extends DebugInfoHistoryUnsubscribe_base {
|
|
177
204
|
}
|
|
@@ -179,8 +206,10 @@ declare const DebugInfoResetReq_base: Schema.Struct<{
|
|
|
179
206
|
_tag: Schema.tag<"LSD.DebugInfoResetReq">;
|
|
180
207
|
} & {
|
|
181
208
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
182
|
-
|
|
209
|
+
} & {
|
|
183
210
|
channelId: typeof Schema.String;
|
|
211
|
+
} & {
|
|
212
|
+
requestId: typeof Schema.String;
|
|
184
213
|
}>;
|
|
185
214
|
export declare class DebugInfoResetReq extends DebugInfoResetReq_base {
|
|
186
215
|
}
|
|
@@ -188,6 +217,9 @@ declare const DebugInfoResetRes_base: Schema.Struct<{
|
|
|
188
217
|
_tag: Schema.tag<"LSD.DebugInfoResetRes">;
|
|
189
218
|
} & {
|
|
190
219
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
220
|
+
} & {
|
|
221
|
+
channelId: typeof Schema.String;
|
|
222
|
+
} & {
|
|
191
223
|
requestId: typeof Schema.String;
|
|
192
224
|
}>;
|
|
193
225
|
export declare class DebugInfoResetRes extends DebugInfoResetRes_base {
|
|
@@ -196,8 +228,11 @@ declare const DebugInfoRerunQueryReq_base: Schema.Struct<{
|
|
|
196
228
|
_tag: Schema.tag<"LSD.DebugInfoRerunQueryReq">;
|
|
197
229
|
} & {
|
|
198
230
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
199
|
-
|
|
231
|
+
} & {
|
|
200
232
|
channelId: typeof Schema.String;
|
|
233
|
+
} & {
|
|
234
|
+
requestId: typeof Schema.String;
|
|
235
|
+
} & {
|
|
201
236
|
queryStr: typeof Schema.String;
|
|
202
237
|
bindValues: Schema.UndefinedOr<Schema.brand<Schema.Union<[Schema.Array$<Schema.Union<[typeof Schema.String, typeof Schema.Number, Schema.Schema<Uint8Array, readonly number[], never>, typeof Schema.Null]>>, Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, typeof Schema.Number, Schema.Schema<Uint8Array, readonly number[], never>, typeof Schema.Null]>>]>, "PreparedBindValues">>;
|
|
203
238
|
queriedTables: Schema.ReadonlySet$<typeof Schema.String>;
|
|
@@ -208,6 +243,9 @@ declare const DebugInfoRerunQueryRes_base: Schema.Struct<{
|
|
|
208
243
|
_tag: Schema.tag<"LSD.DebugInfoRerunQueryRes">;
|
|
209
244
|
} & {
|
|
210
245
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
246
|
+
} & {
|
|
247
|
+
channelId: typeof Schema.String;
|
|
248
|
+
} & {
|
|
211
249
|
requestId: typeof Schema.String;
|
|
212
250
|
}>;
|
|
213
251
|
export declare class DebugInfoRerunQueryRes extends DebugInfoRerunQueryRes_base {
|
|
@@ -216,6 +254,7 @@ declare const MutationBroadcast_base: Schema.Struct<{
|
|
|
216
254
|
_tag: Schema.tag<"LSD.MutationBroadcast">;
|
|
217
255
|
} & {
|
|
218
256
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
257
|
+
} & {
|
|
219
258
|
mutationEventEncoded: Schema.Struct<{
|
|
220
259
|
mutation: typeof Schema.String;
|
|
221
260
|
args: typeof Schema.Any;
|
|
@@ -229,8 +268,11 @@ declare const RunMutationReq_base: Schema.Struct<{
|
|
|
229
268
|
_tag: Schema.tag<"LSD.RunMutationReq">;
|
|
230
269
|
} & {
|
|
231
270
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
232
|
-
|
|
271
|
+
} & {
|
|
233
272
|
channelId: typeof Schema.String;
|
|
273
|
+
} & {
|
|
274
|
+
requestId: typeof Schema.String;
|
|
275
|
+
} & {
|
|
234
276
|
mutationEventEncoded: Schema.Struct<{
|
|
235
277
|
mutation: typeof Schema.String;
|
|
236
278
|
args: typeof Schema.Any;
|
|
@@ -244,8 +286,10 @@ declare const RunMutationRes_base: Schema.Struct<{
|
|
|
244
286
|
_tag: Schema.tag<"LSD.RunMutationRes">;
|
|
245
287
|
} & {
|
|
246
288
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
247
|
-
|
|
289
|
+
} & {
|
|
248
290
|
channelId: typeof Schema.String;
|
|
291
|
+
} & {
|
|
292
|
+
requestId: typeof Schema.String;
|
|
249
293
|
}>;
|
|
250
294
|
export declare class RunMutationRes extends RunMutationRes_base {
|
|
251
295
|
}
|
|
@@ -253,8 +297,10 @@ declare const MutationLogReq_base: Schema.Struct<{
|
|
|
253
297
|
_tag: Schema.tag<"LSD.MutationLogReq">;
|
|
254
298
|
} & {
|
|
255
299
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
256
|
-
|
|
300
|
+
} & {
|
|
257
301
|
channelId: typeof Schema.String;
|
|
302
|
+
} & {
|
|
303
|
+
requestId: typeof Schema.String;
|
|
258
304
|
}>;
|
|
259
305
|
export declare class MutationLogReq extends MutationLogReq_base {
|
|
260
306
|
}
|
|
@@ -262,8 +308,11 @@ declare const MutationLogRes_base: Schema.Struct<{
|
|
|
262
308
|
_tag: Schema.tag<"LSD.MutationLogRes">;
|
|
263
309
|
} & {
|
|
264
310
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
265
|
-
|
|
311
|
+
} & {
|
|
266
312
|
channelId: typeof Schema.String;
|
|
313
|
+
} & {
|
|
314
|
+
requestId: typeof Schema.String;
|
|
315
|
+
} & {
|
|
267
316
|
mutationLog: Schema.Schema<Uint8Array, Uint8Array, never>;
|
|
268
317
|
}>;
|
|
269
318
|
export declare class MutationLogRes extends MutationLogRes_base {
|
|
@@ -272,8 +321,11 @@ declare const ReactivityGraphSubscribe_base: Schema.Struct<{
|
|
|
272
321
|
_tag: Schema.tag<"LSD.ReactivityGraphSubscribe">;
|
|
273
322
|
} & {
|
|
274
323
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
275
|
-
|
|
324
|
+
} & {
|
|
276
325
|
channelId: typeof Schema.String;
|
|
326
|
+
} & {
|
|
327
|
+
requestId: typeof Schema.String;
|
|
328
|
+
} & {
|
|
277
329
|
includeResults: typeof Schema.Boolean;
|
|
278
330
|
}>;
|
|
279
331
|
export declare class ReactivityGraphSubscribe extends ReactivityGraphSubscribe_base {
|
|
@@ -282,8 +334,10 @@ declare const ReactivityGraphUnsubscribe_base: Schema.Struct<{
|
|
|
282
334
|
_tag: Schema.tag<"LSD.ReactivityGraphUnsubscribe">;
|
|
283
335
|
} & {
|
|
284
336
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
285
|
-
|
|
337
|
+
} & {
|
|
286
338
|
channelId: typeof Schema.String;
|
|
339
|
+
} & {
|
|
340
|
+
requestId: typeof Schema.String;
|
|
287
341
|
}>;
|
|
288
342
|
export declare class ReactivityGraphUnsubscribe extends ReactivityGraphUnsubscribe_base {
|
|
289
343
|
}
|
|
@@ -291,7 +345,11 @@ declare const ReactivityGraphRes_base: Schema.Struct<{
|
|
|
291
345
|
_tag: Schema.tag<"LSD.ReactivityGraphRes">;
|
|
292
346
|
} & {
|
|
293
347
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
348
|
+
} & {
|
|
349
|
+
channelId: typeof Schema.String;
|
|
350
|
+
} & {
|
|
294
351
|
requestId: typeof Schema.String;
|
|
352
|
+
} & {
|
|
295
353
|
reactivityGraph: typeof Schema.Any;
|
|
296
354
|
}>;
|
|
297
355
|
export declare class ReactivityGraphRes extends ReactivityGraphRes_base {
|
|
@@ -300,8 +358,10 @@ declare const LiveQueriesSubscribe_base: Schema.Struct<{
|
|
|
300
358
|
_tag: Schema.tag<"LSD.LiveQueriesSubscribe">;
|
|
301
359
|
} & {
|
|
302
360
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
303
|
-
|
|
361
|
+
} & {
|
|
304
362
|
channelId: typeof Schema.String;
|
|
363
|
+
} & {
|
|
364
|
+
requestId: typeof Schema.String;
|
|
305
365
|
}>;
|
|
306
366
|
export declare class LiveQueriesSubscribe extends LiveQueriesSubscribe_base {
|
|
307
367
|
}
|
|
@@ -309,8 +369,10 @@ declare const LiveQueriesUnsubscribe_base: Schema.Struct<{
|
|
|
309
369
|
_tag: Schema.tag<"LSD.LiveQueriesUnsubscribe">;
|
|
310
370
|
} & {
|
|
311
371
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
312
|
-
|
|
372
|
+
} & {
|
|
313
373
|
channelId: typeof Schema.String;
|
|
374
|
+
} & {
|
|
375
|
+
requestId: typeof Schema.String;
|
|
314
376
|
}>;
|
|
315
377
|
export declare class LiveQueriesUnsubscribe extends LiveQueriesUnsubscribe_base {
|
|
316
378
|
}
|
|
@@ -334,7 +396,11 @@ declare const LiveQueriesRes_base: Schema.Struct<{
|
|
|
334
396
|
_tag: Schema.tag<"LSD.LiveQueriesRes">;
|
|
335
397
|
} & {
|
|
336
398
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
399
|
+
} & {
|
|
400
|
+
channelId: typeof Schema.String;
|
|
401
|
+
} & {
|
|
337
402
|
requestId: typeof Schema.String;
|
|
403
|
+
} & {
|
|
338
404
|
liveQueries: Schema.Array$<typeof SerializedLiveQuery>;
|
|
339
405
|
}>;
|
|
340
406
|
export declare class LiveQueriesRes extends LiveQueriesRes_base {
|
|
@@ -343,8 +409,11 @@ declare const ResetAllDataReq_base: Schema.Struct<{
|
|
|
343
409
|
_tag: Schema.tag<"LSD.ResetAllDataReq">;
|
|
344
410
|
} & {
|
|
345
411
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
346
|
-
|
|
412
|
+
} & {
|
|
347
413
|
channelId: typeof Schema.String;
|
|
414
|
+
} & {
|
|
415
|
+
requestId: typeof Schema.String;
|
|
416
|
+
} & {
|
|
348
417
|
mode: Schema.Literal<["all-data", "only-app-db"]>;
|
|
349
418
|
}>;
|
|
350
419
|
export declare class ResetAllDataReq extends ResetAllDataReq_base {
|
|
@@ -353,16 +422,46 @@ declare const ResetAllDataRes_base: Schema.Struct<{
|
|
|
353
422
|
_tag: Schema.tag<"LSD.ResetAllDataRes">;
|
|
354
423
|
} & {
|
|
355
424
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
425
|
+
} & {
|
|
426
|
+
channelId: typeof Schema.String;
|
|
427
|
+
} & {
|
|
356
428
|
requestId: typeof Schema.String;
|
|
357
429
|
}>;
|
|
358
430
|
export declare class ResetAllDataRes extends ResetAllDataRes_base {
|
|
359
431
|
}
|
|
432
|
+
declare const DatabaseFileInfoReq_base: Schema.Struct<{
|
|
433
|
+
_tag: Schema.tag<"LSD.DatabaseFileInfoReq">;
|
|
434
|
+
} & {
|
|
435
|
+
liveStoreVersion: Schema.Literal<[string]>;
|
|
436
|
+
} & {
|
|
437
|
+
channelId: typeof Schema.String;
|
|
438
|
+
} & {
|
|
439
|
+
requestId: typeof Schema.String;
|
|
440
|
+
}>;
|
|
441
|
+
export declare class DatabaseFileInfoReq extends DatabaseFileInfoReq_base {
|
|
442
|
+
}
|
|
443
|
+
declare const DatabaseFileInfoRes_base: Schema.Struct<{
|
|
444
|
+
_tag: Schema.tag<"LSD.DatabaseFileInfoRes">;
|
|
445
|
+
} & {
|
|
446
|
+
liveStoreVersion: Schema.Literal<[string]>;
|
|
447
|
+
} & {
|
|
448
|
+
channelId: typeof Schema.String;
|
|
449
|
+
} & {
|
|
450
|
+
requestId: typeof Schema.String;
|
|
451
|
+
} & {
|
|
452
|
+
dbFileSize: typeof Schema.Number;
|
|
453
|
+
mutationLogFileSize: typeof Schema.Number;
|
|
454
|
+
}>;
|
|
455
|
+
export declare class DatabaseFileInfoRes extends DatabaseFileInfoRes_base {
|
|
456
|
+
}
|
|
360
457
|
declare const MessagePortForStoreReq_base: Schema.Struct<{
|
|
361
458
|
_tag: Schema.tag<"LSD.MessagePortForStoreReq">;
|
|
362
459
|
} & {
|
|
363
460
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
364
|
-
|
|
461
|
+
} & {
|
|
365
462
|
channelId: typeof Schema.String;
|
|
463
|
+
} & {
|
|
464
|
+
requestId: typeof Schema.String;
|
|
366
465
|
}>;
|
|
367
466
|
export declare class MessagePortForStoreReq extends MessagePortForStoreReq_base {
|
|
368
467
|
}
|
|
@@ -370,8 +469,11 @@ declare const MessagePortForStoreRes_base: Schema.Struct<{
|
|
|
370
469
|
_tag: Schema.tag<"LSD.MessagePortForStoreRes">;
|
|
371
470
|
} & {
|
|
372
471
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
373
|
-
|
|
472
|
+
} & {
|
|
374
473
|
channelId: typeof Schema.String;
|
|
474
|
+
} & {
|
|
475
|
+
requestId: typeof Schema.String;
|
|
476
|
+
} & {
|
|
375
477
|
port: Schema.Schema<MessagePort, MessagePort, never>;
|
|
376
478
|
}>;
|
|
377
479
|
export declare class MessagePortForStoreRes extends MessagePortForStoreRes_base {
|
|
@@ -380,7 +482,9 @@ declare const NetworkStatusChanged_base: Schema.Struct<{
|
|
|
380
482
|
_tag: Schema.tag<"LSD.NetworkStatusChanged">;
|
|
381
483
|
} & {
|
|
382
484
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
485
|
+
} & {
|
|
383
486
|
channelId: typeof Schema.String;
|
|
487
|
+
} & {
|
|
384
488
|
networkStatus: Schema.Struct<{
|
|
385
489
|
isConnected: typeof Schema.Boolean;
|
|
386
490
|
timestampMs: typeof Schema.Number;
|
|
@@ -388,6 +492,36 @@ declare const NetworkStatusChanged_base: Schema.Struct<{
|
|
|
388
492
|
}>;
|
|
389
493
|
export declare class NetworkStatusChanged extends NetworkStatusChanged_base {
|
|
390
494
|
}
|
|
495
|
+
declare const SyncingInfoReq_base: Schema.Struct<{
|
|
496
|
+
_tag: Schema.tag<"LSD.SyncingInfoReq">;
|
|
497
|
+
} & {
|
|
498
|
+
liveStoreVersion: Schema.Literal<[string]>;
|
|
499
|
+
} & {
|
|
500
|
+
channelId: typeof Schema.String;
|
|
501
|
+
} & {
|
|
502
|
+
requestId: typeof Schema.String;
|
|
503
|
+
}>;
|
|
504
|
+
export declare class SyncingInfoReq extends SyncingInfoReq_base {
|
|
505
|
+
}
|
|
506
|
+
declare const SyncingInfo_base: Schema.Struct<{
|
|
507
|
+
enabled: typeof Schema.Boolean;
|
|
508
|
+
metadata: Schema.Record$<typeof Schema.String, typeof Schema.Any>;
|
|
509
|
+
}>;
|
|
510
|
+
export declare class SyncingInfo extends SyncingInfo_base {
|
|
511
|
+
}
|
|
512
|
+
declare const SyncingInfoRes_base: Schema.Struct<{
|
|
513
|
+
_tag: Schema.tag<"LSD.SyncingInfoRes">;
|
|
514
|
+
} & {
|
|
515
|
+
liveStoreVersion: Schema.Literal<[string]>;
|
|
516
|
+
} & {
|
|
517
|
+
channelId: typeof Schema.String;
|
|
518
|
+
} & {
|
|
519
|
+
requestId: typeof Schema.String;
|
|
520
|
+
} & {
|
|
521
|
+
syncingInfo: typeof SyncingInfo;
|
|
522
|
+
}>;
|
|
523
|
+
export declare class SyncingInfoRes extends SyncingInfoRes_base {
|
|
524
|
+
}
|
|
391
525
|
declare const DevtoolsReady_base: Schema.Struct<{
|
|
392
526
|
_tag: Schema.tag<"LSD.DevtoolsReady">;
|
|
393
527
|
} & {
|
|
@@ -399,6 +533,7 @@ declare const DevtoolsConnected_base: Schema.Struct<{
|
|
|
399
533
|
_tag: Schema.tag<"LSD.DevtoolsConnected">;
|
|
400
534
|
} & {
|
|
401
535
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
536
|
+
} & {
|
|
402
537
|
channelId: typeof Schema.String;
|
|
403
538
|
}>;
|
|
404
539
|
export declare class DevtoolsConnected extends DevtoolsConnected_base {
|
|
@@ -407,7 +542,9 @@ declare const AppHostReady_base: Schema.Struct<{
|
|
|
407
542
|
_tag: Schema.tag<"LSD.AppHostReady">;
|
|
408
543
|
} & {
|
|
409
544
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
545
|
+
} & {
|
|
410
546
|
channelId: typeof Schema.String;
|
|
547
|
+
} & {
|
|
411
548
|
isLeaderTab: typeof Schema.Boolean;
|
|
412
549
|
}>;
|
|
413
550
|
export declare class AppHostReady extends AppHostReady_base {
|
|
@@ -416,8 +553,10 @@ declare const Disconnect_base: Schema.Struct<{
|
|
|
416
553
|
_tag: Schema.tag<"LSD.Disconnect">;
|
|
417
554
|
} & {
|
|
418
555
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
419
|
-
|
|
556
|
+
} & {
|
|
420
557
|
channelId: typeof Schema.String;
|
|
558
|
+
} & {
|
|
559
|
+
requestId: typeof Schema.String;
|
|
421
560
|
}>;
|
|
422
561
|
export declare class Disconnect extends Disconnect_base {
|
|
423
562
|
}
|
|
@@ -425,8 +564,10 @@ declare const Ping_base: Schema.Struct<{
|
|
|
425
564
|
_tag: Schema.tag<"LSD.Ping">;
|
|
426
565
|
} & {
|
|
427
566
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
428
|
-
|
|
567
|
+
} & {
|
|
429
568
|
channelId: typeof Schema.String;
|
|
569
|
+
} & {
|
|
570
|
+
requestId: typeof Schema.String;
|
|
430
571
|
}>;
|
|
431
572
|
export declare class Ping extends Ping_base {
|
|
432
573
|
}
|
|
@@ -434,15 +575,18 @@ declare const Pong_base: Schema.Struct<{
|
|
|
434
575
|
_tag: Schema.tag<"LSD.Pong">;
|
|
435
576
|
} & {
|
|
436
577
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
578
|
+
} & {
|
|
579
|
+
channelId: typeof Schema.String;
|
|
580
|
+
} & {
|
|
437
581
|
requestId: typeof Schema.String;
|
|
438
582
|
}>;
|
|
439
583
|
export declare class Pong extends Pong_base {
|
|
440
584
|
}
|
|
441
|
-
export declare const MessageToAppHostCoordinator: Schema.Union<[typeof SnapshotReq, typeof LoadDatabaseFileReq, typeof MutationLogReq, typeof ResetAllDataReq, typeof MessagePortForStoreRes, typeof DevtoolsReady, typeof Disconnect, typeof DevtoolsConnected, typeof RunMutationReq, typeof Ping]>;
|
|
585
|
+
export declare const MessageToAppHostCoordinator: Schema.Union<[typeof SnapshotReq, typeof LoadDatabaseFileReq, typeof MutationLogReq, typeof ResetAllDataReq, typeof MessagePortForStoreRes, typeof DevtoolsReady, typeof Disconnect, typeof DevtoolsConnected, typeof RunMutationReq, typeof Ping, typeof DatabaseFileInfoReq, typeof SyncingInfoReq]>;
|
|
442
586
|
export type MessageToAppHostCoordinator = typeof MessageToAppHostCoordinator.Type;
|
|
443
587
|
export declare const MessageToAppHostStore: Schema.Union<[typeof DebugInfoReq, typeof DebugInfoHistorySubscribe, typeof DebugInfoHistoryUnsubscribe, typeof DebugInfoResetReq, typeof DebugInfoRerunQueryReq, typeof ReactivityGraphSubscribe, typeof ReactivityGraphUnsubscribe, typeof LiveQueriesSubscribe, typeof LiveQueriesUnsubscribe]>;
|
|
444
588
|
export type MessageToAppHostStore = typeof MessageToAppHostStore.Type;
|
|
445
|
-
export declare const MessageFromAppHostCoordinator: Schema.Union<[typeof SnapshotRes, typeof LoadDatabaseFileRes, typeof MutationLogRes, typeof ResetAllDataRes, typeof MessagePortForStoreReq, typeof Disconnect, typeof MutationBroadcast, typeof AppHostReady, typeof NetworkStatusChanged, typeof RunMutationRes, typeof Pong]>;
|
|
589
|
+
export declare const MessageFromAppHostCoordinator: Schema.Union<[typeof SnapshotRes, typeof LoadDatabaseFileRes, typeof MutationLogRes, typeof ResetAllDataRes, typeof MessagePortForStoreReq, typeof Disconnect, typeof MutationBroadcast, typeof AppHostReady, typeof NetworkStatusChanged, typeof RunMutationRes, typeof Pong, typeof DatabaseFileInfoRes, typeof SyncingInfoRes]>;
|
|
446
590
|
export type MessageFromAppHostCoordinator = typeof MessageFromAppHostCoordinator.Type;
|
|
447
591
|
export declare const MessageFromAppHostStore: Schema.Union<[typeof DebugInfoRes, typeof DebugInfoHistoryRes, typeof DebugInfoResetRes, typeof DebugInfoRerunQueryRes, typeof ReactivityGraphRes, typeof LiveQueriesRes]>;
|
|
448
592
|
export type MessageFromAppHostStore = typeof MessageFromAppHostStore.Type;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-messages.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAgB,MAAM,yBAAyB,CAAA
|
|
1
|
+
{"version":3,"file":"devtools-messages.d.ts","sourceRoot":"","sources":["../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