@livestore/common 0.3.0-dev.10 → 0.3.0-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 +23 -26
- package/dist/adapter-types.d.ts.map +1 -1
- package/dist/adapter-types.js.map +1 -1
- package/dist/derived-mutations.d.ts +4 -4
- package/dist/derived-mutations.d.ts.map +1 -1
- package/dist/derived-mutations.test.js.map +1 -1
- package/dist/devtools/devtools-bridge.d.ts +1 -2
- package/dist/devtools/devtools-bridge.d.ts.map +1 -1
- package/dist/devtools/devtools-messages.d.ts +110 -98
- package/dist/devtools/devtools-messages.d.ts.map +1 -1
- package/dist/devtools/devtools-messages.js +6 -9
- package/dist/devtools/devtools-messages.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/leader-thread/apply-mutation.d.ts +2 -5
- package/dist/leader-thread/apply-mutation.d.ts.map +1 -1
- package/dist/leader-thread/apply-mutation.js +26 -38
- package/dist/leader-thread/apply-mutation.js.map +1 -1
- package/dist/leader-thread/leader-sync-processor.d.ts +2 -2
- package/dist/leader-thread/leader-sync-processor.d.ts.map +1 -1
- package/dist/leader-thread/leader-sync-processor.js +12 -20
- package/dist/leader-thread/leader-sync-processor.js.map +1 -1
- package/dist/leader-thread/leader-worker-devtools.d.ts +1 -1
- package/dist/leader-thread/leader-worker-devtools.d.ts.map +1 -1
- package/dist/leader-thread/leader-worker-devtools.js +66 -22
- package/dist/leader-thread/leader-worker-devtools.js.map +1 -1
- package/dist/leader-thread/make-leader-thread-layer.d.ts +7 -8
- package/dist/leader-thread/make-leader-thread-layer.d.ts.map +1 -1
- package/dist/leader-thread/make-leader-thread-layer.js +5 -11
- package/dist/leader-thread/make-leader-thread-layer.js.map +1 -1
- package/dist/leader-thread/mutationlog.d.ts +17 -4
- package/dist/leader-thread/mutationlog.d.ts.map +1 -1
- package/dist/leader-thread/mutationlog.js +1 -2
- package/dist/leader-thread/mutationlog.js.map +1 -1
- package/dist/leader-thread/pull-queue-set.d.ts.map +1 -1
- package/dist/leader-thread/recreate-db.d.ts.map +1 -1
- package/dist/leader-thread/recreate-db.js +3 -9
- package/dist/leader-thread/recreate-db.js.map +1 -1
- package/dist/leader-thread/types.d.ts +9 -17
- package/dist/leader-thread/types.d.ts.map +1 -1
- package/dist/leader-thread/types.js.map +1 -1
- package/dist/mutation.d.ts +2 -9
- package/dist/mutation.d.ts.map +1 -1
- package/dist/mutation.js +5 -5
- package/dist/mutation.js.map +1 -1
- package/dist/query-builder/impl.d.ts +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 +19 -13
- package/dist/rehydrate-from-mutationlog.js.map +1 -1
- package/dist/schema/EventId.d.ts +14 -16
- package/dist/schema/EventId.d.ts.map +1 -1
- package/dist/schema/EventId.js +7 -15
- package/dist/schema/EventId.js.map +1 -1
- package/dist/schema/MutationEvent.d.ts +80 -49
- package/dist/schema/MutationEvent.d.ts.map +1 -1
- package/dist/schema/MutationEvent.js +15 -32
- package/dist/schema/MutationEvent.js.map +1 -1
- package/dist/schema/system-tables.d.ts +26 -26
- package/dist/schema/system-tables.d.ts.map +1 -1
- package/dist/schema/system-tables.js +11 -19
- package/dist/schema/system-tables.js.map +1 -1
- package/dist/schema-management/migrations.js +6 -6
- package/dist/schema-management/migrations.js.map +1 -1
- package/dist/sync/client-session-sync-processor.d.ts +4 -4
- package/dist/sync/client-session-sync-processor.d.ts.map +1 -1
- package/dist/sync/index.d.ts +1 -1
- package/dist/sync/index.d.ts.map +1 -1
- package/dist/sync/index.js +1 -1
- package/dist/sync/index.js.map +1 -1
- package/dist/sync/next/history-dag-common.d.ts +4 -1
- package/dist/sync/next/history-dag-common.d.ts.map +1 -1
- package/dist/sync/next/history-dag-common.js +1 -1
- package/dist/sync/next/history-dag-common.js.map +1 -1
- package/dist/sync/next/rebase-events.d.ts +3 -3
- package/dist/sync/next/rebase-events.d.ts.map +1 -1
- package/dist/sync/next/rebase-events.js +2 -3
- package/dist/sync/next/rebase-events.js.map +1 -1
- package/dist/sync/next/test/mutation-fixtures.d.ts.map +1 -1
- package/dist/sync/next/test/mutation-fixtures.js +9 -3
- package/dist/sync/next/test/mutation-fixtures.js.map +1 -1
- package/dist/sync/sync.d.ts +11 -21
- package/dist/sync/sync.d.ts.map +1 -1
- package/dist/sync/sync.js.map +1 -1
- package/dist/sync/syncstate.d.ts +23 -45
- package/dist/sync/syncstate.d.ts.map +1 -1
- package/dist/sync/syncstate.js +12 -56
- package/dist/sync/syncstate.js.map +1 -1
- package/dist/sync/syncstate.test.js +69 -125
- package/dist/sync/syncstate.test.js.map +1 -1
- package/dist/sync/validate-push-payload.d.ts +2 -2
- package/dist/sync/validate-push-payload.d.ts.map +1 -1
- package/dist/sync/validate-push-payload.js +2 -2
- package/dist/sync/validate-push-payload.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +5 -6
- package/src/adapter-types.ts +24 -22
- package/src/derived-mutations.test.ts +1 -1
- package/src/derived-mutations.ts +5 -9
- package/src/devtools/devtools-bridge.ts +1 -2
- package/src/devtools/devtools-messages.ts +6 -9
- package/src/index.ts +6 -0
- package/src/leader-thread/apply-mutation.ts +31 -49
- package/src/leader-thread/{LeaderSyncProcessor.ts → leader-sync-processor.ts} +230 -235
- package/src/leader-thread/leader-worker-devtools.ts +109 -30
- package/src/leader-thread/make-leader-thread-layer.ts +13 -24
- package/src/leader-thread/mutationlog.ts +5 -9
- package/src/leader-thread/recreate-db.ts +5 -9
- package/src/leader-thread/types.ts +11 -18
- package/src/mutation.ts +7 -17
- package/src/rehydrate-from-mutationlog.ts +23 -15
- package/src/schema/EventId.ts +9 -23
- package/src/schema/MutationEvent.ts +24 -46
- package/src/schema/system-tables.ts +11 -19
- package/src/schema-management/migrations.ts +6 -6
- package/src/sync/{ClientSessionSyncProcessor.ts → client-session-sync-processor.ts} +9 -11
- package/src/sync/index.ts +1 -1
- package/src/sync/next/history-dag-common.ts +1 -1
- package/src/sync/next/rebase-events.ts +7 -7
- package/src/sync/next/test/mutation-fixtures.ts +10 -3
- package/src/sync/sync.ts +6 -19
- package/src/sync/syncstate.test.ts +67 -127
- package/src/sync/syncstate.ts +19 -21
- package/src/sync/validate-push-payload.ts +4 -7
- package/src/version.ts +1 -1
- package/dist/leader-thread/LeaderSyncProcessor.d.ts +0 -37
- package/dist/leader-thread/LeaderSyncProcessor.d.ts.map +0 -1
- package/dist/leader-thread/LeaderSyncProcessor.js +0 -417
- package/dist/leader-thread/LeaderSyncProcessor.js.map +0 -1
- package/dist/schema/EventId.test.d.ts +0 -2
- package/dist/schema/EventId.test.d.ts.map +0 -1
- package/dist/schema/EventId.test.js +0 -11
- package/dist/schema/EventId.test.js.map +0 -1
- package/dist/schema/MutationEvent.test.d.ts +0 -2
- package/dist/schema/MutationEvent.test.d.ts.map +0 -1
- package/dist/schema/MutationEvent.test.js +0 -2
- package/dist/schema/MutationEvent.test.js.map +0 -1
- package/dist/sync/ClientSessionSyncProcessor.d.ts +0 -45
- package/dist/sync/ClientSessionSyncProcessor.d.ts.map +0 -1
- package/dist/sync/ClientSessionSyncProcessor.js +0 -134
- package/dist/sync/ClientSessionSyncProcessor.js.map +0 -1
- package/src/schema/EventId.test.ts +0 -12
@@ -2,7 +2,7 @@ import { Schema } from '@livestore/utils/effect';
|
|
2
2
|
declare const SnapshotReq_base: Schema.Struct<{
|
3
3
|
_tag: Schema.tag<"LSD.Leader.SnapshotReq">;
|
4
4
|
} & {
|
5
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
5
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
6
6
|
} & {
|
7
7
|
requestId: typeof Schema.String;
|
8
8
|
}>;
|
@@ -11,7 +11,7 @@ export declare class SnapshotReq extends SnapshotReq_base {
|
|
11
11
|
declare const SnapshotRes_base: Schema.Struct<{
|
12
12
|
_tag: Schema.tag<"LSD.Leader.SnapshotRes">;
|
13
13
|
} & {
|
14
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
14
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
15
15
|
} & {
|
16
16
|
requestId: typeof Schema.String;
|
17
17
|
} & {
|
@@ -22,7 +22,7 @@ export declare class SnapshotRes extends SnapshotRes_base {
|
|
22
22
|
declare const LoadDatabaseFileReq_base: Schema.Struct<{
|
23
23
|
_tag: Schema.tag<"LSD.Leader.LoadDatabaseFileReq">;
|
24
24
|
} & {
|
25
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
25
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
26
26
|
} & {
|
27
27
|
requestId: typeof Schema.String;
|
28
28
|
} & {
|
@@ -33,7 +33,7 @@ export declare class LoadDatabaseFileReq extends LoadDatabaseFileReq_base {
|
|
33
33
|
declare const LoadDatabaseFileRes_base: Schema.Struct<{
|
34
34
|
_tag: Schema.tag<"LSD.Leader.LoadDatabaseFileRes">;
|
35
35
|
} & {
|
36
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
36
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
37
37
|
} & {
|
38
38
|
requestId: typeof Schema.String;
|
39
39
|
} & {
|
@@ -44,10 +44,9 @@ export declare class LoadDatabaseFileRes extends LoadDatabaseFileRes_base {
|
|
44
44
|
declare const DebugInfoReq_base: Schema.Struct<{
|
45
45
|
_tag: Schema.tag<"LSD.DebugInfoReq">;
|
46
46
|
} & {
|
47
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
47
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
48
48
|
} & {
|
49
|
-
|
50
|
-
sessionId: typeof Schema.String;
|
49
|
+
appHostId: typeof Schema.String;
|
51
50
|
requestId: typeof Schema.String;
|
52
51
|
}>;
|
53
52
|
export declare class DebugInfoReq extends DebugInfoReq_base {
|
@@ -55,48 +54,47 @@ export declare class DebugInfoReq extends DebugInfoReq_base {
|
|
55
54
|
declare const DebugInfoRes_base: Schema.Struct<{
|
56
55
|
_tag: Schema.tag<"LSD.DebugInfoRes">;
|
57
56
|
} & {
|
58
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
57
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
59
58
|
} & {
|
60
|
-
|
61
|
-
sessionId: typeof Schema.String;
|
59
|
+
appHostId: typeof Schema.String;
|
62
60
|
requestId: typeof Schema.String;
|
63
61
|
} & {
|
64
62
|
debugInfo: Schema.Struct<{
|
65
63
|
slowQueries: Schema.transform<Schema.Struct<{
|
66
64
|
size: typeof Schema.Number;
|
67
65
|
items: Schema.Array$<Schema.Schema<{
|
66
|
+
readonly queryStr: string;
|
68
67
|
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
69
68
|
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
70
69
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
71
|
-
readonly queryStr: string;
|
72
70
|
readonly durationMs: number;
|
73
71
|
readonly rowsCount: number | undefined;
|
74
72
|
readonly queriedTables: ReadonlySet<string>;
|
75
73
|
readonly startTimePerfNow: number;
|
76
74
|
}, {
|
75
|
+
readonly queryStr: string;
|
77
76
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
78
77
|
readonly [x: string]: string | number | readonly number[] | null;
|
79
78
|
} | undefined;
|
80
|
-
readonly queryStr: string;
|
81
79
|
readonly durationMs: number;
|
82
80
|
readonly rowsCount: number | undefined;
|
83
81
|
readonly queriedTables: readonly string[];
|
84
82
|
readonly startTimePerfNow: number;
|
85
83
|
}, never>>;
|
86
84
|
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
|
85
|
+
readonly queryStr: string;
|
87
86
|
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
88
87
|
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
89
88
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
90
|
-
readonly queryStr: string;
|
91
89
|
readonly durationMs: number;
|
92
90
|
readonly rowsCount: number | undefined;
|
93
91
|
readonly queriedTables: ReadonlySet<string>;
|
94
92
|
readonly startTimePerfNow: number;
|
95
93
|
}>, import("../bounded-collections.js").BoundArray<{
|
94
|
+
readonly queryStr: string;
|
96
95
|
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
97
96
|
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
98
97
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
99
|
-
readonly queryStr: string;
|
100
98
|
readonly durationMs: number;
|
101
99
|
readonly rowsCount: number | undefined;
|
102
100
|
readonly queriedTables: ReadonlySet<string>;
|
@@ -115,10 +113,9 @@ export declare class DebugInfoRes extends DebugInfoRes_base {
|
|
115
113
|
declare const DebugInfoHistorySubscribe_base: Schema.Struct<{
|
116
114
|
_tag: Schema.tag<"LSD.DebugInfoHistorySubscribe">;
|
117
115
|
} & {
|
118
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
116
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
119
117
|
} & {
|
120
|
-
|
121
|
-
sessionId: typeof Schema.String;
|
118
|
+
appHostId: typeof Schema.String;
|
122
119
|
requestId: typeof Schema.String;
|
123
120
|
}>;
|
124
121
|
export declare class DebugInfoHistorySubscribe extends DebugInfoHistorySubscribe_base {
|
@@ -126,48 +123,47 @@ export declare class DebugInfoHistorySubscribe extends DebugInfoHistorySubscribe
|
|
126
123
|
declare const DebugInfoHistoryRes_base: Schema.Struct<{
|
127
124
|
_tag: Schema.tag<"LSD.DebugInfoHistoryRes">;
|
128
125
|
} & {
|
129
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
126
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
130
127
|
} & {
|
131
|
-
|
132
|
-
sessionId: typeof Schema.String;
|
128
|
+
appHostId: typeof Schema.String;
|
133
129
|
requestId: typeof Schema.String;
|
134
130
|
} & {
|
135
131
|
debugInfoHistory: Schema.Array$<Schema.Struct<{
|
136
132
|
slowQueries: Schema.transform<Schema.Struct<{
|
137
133
|
size: typeof Schema.Number;
|
138
134
|
items: Schema.Array$<Schema.Schema<{
|
135
|
+
readonly queryStr: string;
|
139
136
|
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
140
137
|
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
141
138
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
142
|
-
readonly queryStr: string;
|
143
139
|
readonly durationMs: number;
|
144
140
|
readonly rowsCount: number | undefined;
|
145
141
|
readonly queriedTables: ReadonlySet<string>;
|
146
142
|
readonly startTimePerfNow: number;
|
147
143
|
}, {
|
144
|
+
readonly queryStr: string;
|
148
145
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
149
146
|
readonly [x: string]: string | number | readonly number[] | null;
|
150
147
|
} | undefined;
|
151
|
-
readonly queryStr: string;
|
152
148
|
readonly durationMs: number;
|
153
149
|
readonly rowsCount: number | undefined;
|
154
150
|
readonly queriedTables: readonly string[];
|
155
151
|
readonly startTimePerfNow: number;
|
156
152
|
}, never>>;
|
157
153
|
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
|
154
|
+
readonly queryStr: string;
|
158
155
|
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
159
156
|
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
160
157
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
161
|
-
readonly queryStr: string;
|
162
158
|
readonly durationMs: number;
|
163
159
|
readonly rowsCount: number | undefined;
|
164
160
|
readonly queriedTables: ReadonlySet<string>;
|
165
161
|
readonly startTimePerfNow: number;
|
166
162
|
}>, import("../bounded-collections.js").BoundArray<{
|
163
|
+
readonly queryStr: string;
|
167
164
|
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
168
165
|
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
169
166
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
170
|
-
readonly queryStr: string;
|
171
167
|
readonly durationMs: number;
|
172
168
|
readonly rowsCount: number | undefined;
|
173
169
|
readonly queriedTables: ReadonlySet<string>;
|
@@ -186,10 +182,9 @@ export declare class DebugInfoHistoryRes extends DebugInfoHistoryRes_base {
|
|
186
182
|
declare const DebugInfoHistoryUnsubscribe_base: Schema.Struct<{
|
187
183
|
_tag: Schema.tag<"LSD.DebugInfoHistoryUnsubscribe">;
|
188
184
|
} & {
|
189
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
185
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
190
186
|
} & {
|
191
|
-
|
192
|
-
sessionId: typeof Schema.String;
|
187
|
+
appHostId: typeof Schema.String;
|
193
188
|
requestId: typeof Schema.String;
|
194
189
|
}>;
|
195
190
|
export declare class DebugInfoHistoryUnsubscribe extends DebugInfoHistoryUnsubscribe_base {
|
@@ -197,10 +192,9 @@ export declare class DebugInfoHistoryUnsubscribe extends DebugInfoHistoryUnsubsc
|
|
197
192
|
declare const DebugInfoResetReq_base: Schema.Struct<{
|
198
193
|
_tag: Schema.tag<"LSD.DebugInfoResetReq">;
|
199
194
|
} & {
|
200
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
195
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
201
196
|
} & {
|
202
|
-
|
203
|
-
sessionId: typeof Schema.String;
|
197
|
+
appHostId: typeof Schema.String;
|
204
198
|
requestId: typeof Schema.String;
|
205
199
|
}>;
|
206
200
|
export declare class DebugInfoResetReq extends DebugInfoResetReq_base {
|
@@ -208,10 +202,9 @@ export declare class DebugInfoResetReq extends DebugInfoResetReq_base {
|
|
208
202
|
declare const DebugInfoResetRes_base: Schema.Struct<{
|
209
203
|
_tag: Schema.tag<"LSD.DebugInfoResetRes">;
|
210
204
|
} & {
|
211
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
205
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
212
206
|
} & {
|
213
|
-
|
214
|
-
sessionId: typeof Schema.String;
|
207
|
+
appHostId: typeof Schema.String;
|
215
208
|
requestId: typeof Schema.String;
|
216
209
|
}>;
|
217
210
|
export declare class DebugInfoResetRes extends DebugInfoResetRes_base {
|
@@ -219,10 +212,9 @@ export declare class DebugInfoResetRes extends DebugInfoResetRes_base {
|
|
219
212
|
declare const DebugInfoRerunQueryReq_base: Schema.Struct<{
|
220
213
|
_tag: Schema.tag<"LSD.DebugInfoRerunQueryReq">;
|
221
214
|
} & {
|
222
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
215
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
223
216
|
} & {
|
224
|
-
|
225
|
-
sessionId: typeof Schema.String;
|
217
|
+
appHostId: typeof Schema.String;
|
226
218
|
requestId: typeof Schema.String;
|
227
219
|
} & {
|
228
220
|
queryStr: typeof Schema.String;
|
@@ -234,10 +226,9 @@ export declare class DebugInfoRerunQueryReq extends DebugInfoRerunQueryReq_base
|
|
234
226
|
declare const DebugInfoRerunQueryRes_base: Schema.Struct<{
|
235
227
|
_tag: Schema.tag<"LSD.DebugInfoRerunQueryRes">;
|
236
228
|
} & {
|
237
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
229
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
238
230
|
} & {
|
239
|
-
|
240
|
-
sessionId: typeof Schema.String;
|
231
|
+
appHostId: typeof Schema.String;
|
241
232
|
requestId: typeof Schema.String;
|
242
233
|
}>;
|
243
234
|
export declare class DebugInfoRerunQueryRes extends DebugInfoRerunQueryRes_base {
|
@@ -245,27 +236,38 @@ export declare class DebugInfoRerunQueryRes extends DebugInfoRerunQueryRes_base
|
|
245
236
|
declare const MutationBroadcast_base: Schema.Struct<{
|
246
237
|
_tag: Schema.tag<"LSD.Leader.MutationBroadcast">;
|
247
238
|
} & {
|
248
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
249
|
-
} & {
|
250
|
-
mutationEventEncoded: Schema.
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
parentId:
|
258
|
-
global:
|
259
|
-
local:
|
260
|
-
}
|
261
|
-
}
|
239
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
240
|
+
} & {
|
241
|
+
mutationEventEncoded: Schema.SchemaClass<{
|
242
|
+
readonly id: {
|
243
|
+
readonly global: number;
|
244
|
+
readonly local: number;
|
245
|
+
};
|
246
|
+
readonly mutation: string;
|
247
|
+
readonly args: any;
|
248
|
+
readonly parentId: {
|
249
|
+
readonly global: number;
|
250
|
+
readonly local: number;
|
251
|
+
};
|
252
|
+
}, {
|
253
|
+
readonly id: {
|
254
|
+
readonly global: number;
|
255
|
+
readonly local: number;
|
256
|
+
};
|
257
|
+
readonly mutation: string;
|
258
|
+
readonly args: any;
|
259
|
+
readonly parentId: {
|
260
|
+
readonly global: number;
|
261
|
+
readonly local: number;
|
262
|
+
};
|
263
|
+
}, never>;
|
262
264
|
}>;
|
263
265
|
export declare class MutationBroadcast extends MutationBroadcast_base {
|
264
266
|
}
|
265
267
|
declare const RunMutationReq_base: Schema.Struct<{
|
266
268
|
_tag: Schema.tag<"LSD.Leader.RunMutationReq">;
|
267
269
|
} & {
|
268
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
270
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
269
271
|
} & {
|
270
272
|
requestId: typeof Schema.String;
|
271
273
|
} & {
|
@@ -282,7 +284,7 @@ export declare class RunMutationReq extends RunMutationReq_base {
|
|
282
284
|
declare const RunMutationRes_base: Schema.Struct<{
|
283
285
|
_tag: Schema.tag<"LSD.Leader.RunMutationRes">;
|
284
286
|
} & {
|
285
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
287
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
286
288
|
} & {
|
287
289
|
requestId: typeof Schema.String;
|
288
290
|
}>;
|
@@ -291,7 +293,7 @@ export declare class RunMutationRes extends RunMutationRes_base {
|
|
291
293
|
declare const MutationLogReq_base: Schema.Struct<{
|
292
294
|
_tag: Schema.tag<"LSD.Leader.MutationLogReq">;
|
293
295
|
} & {
|
294
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
296
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
295
297
|
} & {
|
296
298
|
requestId: typeof Schema.String;
|
297
299
|
}>;
|
@@ -300,7 +302,7 @@ export declare class MutationLogReq extends MutationLogReq_base {
|
|
300
302
|
declare const MutationLogRes_base: Schema.Struct<{
|
301
303
|
_tag: Schema.tag<"LSD.Leader.MutationLogRes">;
|
302
304
|
} & {
|
303
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
305
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
304
306
|
} & {
|
305
307
|
requestId: typeof Schema.String;
|
306
308
|
} & {
|
@@ -311,10 +313,9 @@ export declare class MutationLogRes extends MutationLogRes_base {
|
|
311
313
|
declare const ReactivityGraphSubscribe_base: Schema.Struct<{
|
312
314
|
_tag: Schema.tag<"LSD.ReactivityGraphSubscribe">;
|
313
315
|
} & {
|
314
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
316
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
315
317
|
} & {
|
316
|
-
|
317
|
-
sessionId: typeof Schema.String;
|
318
|
+
appHostId: typeof Schema.String;
|
318
319
|
requestId: typeof Schema.String;
|
319
320
|
} & {
|
320
321
|
includeResults: typeof Schema.Boolean;
|
@@ -324,10 +325,9 @@ export declare class ReactivityGraphSubscribe extends ReactivityGraphSubscribe_b
|
|
324
325
|
declare const ReactivityGraphUnsubscribe_base: Schema.Struct<{
|
325
326
|
_tag: Schema.tag<"LSD.ReactivityGraphUnsubscribe">;
|
326
327
|
} & {
|
327
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
328
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
328
329
|
} & {
|
329
|
-
|
330
|
-
sessionId: typeof Schema.String;
|
330
|
+
appHostId: typeof Schema.String;
|
331
331
|
requestId: typeof Schema.String;
|
332
332
|
}>;
|
333
333
|
export declare class ReactivityGraphUnsubscribe extends ReactivityGraphUnsubscribe_base {
|
@@ -335,10 +335,9 @@ export declare class ReactivityGraphUnsubscribe extends ReactivityGraphUnsubscri
|
|
335
335
|
declare const ReactivityGraphRes_base: Schema.Struct<{
|
336
336
|
_tag: Schema.tag<"LSD.ReactivityGraphRes">;
|
337
337
|
} & {
|
338
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
338
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
339
339
|
} & {
|
340
|
-
|
341
|
-
sessionId: typeof Schema.String;
|
340
|
+
appHostId: typeof Schema.String;
|
342
341
|
requestId: typeof Schema.String;
|
343
342
|
} & {
|
344
343
|
reactivityGraph: typeof Schema.Any;
|
@@ -348,10 +347,9 @@ export declare class ReactivityGraphRes extends ReactivityGraphRes_base {
|
|
348
347
|
declare const LiveQueriesSubscribe_base: Schema.Struct<{
|
349
348
|
_tag: Schema.tag<"LSD.LiveQueriesSubscribe">;
|
350
349
|
} & {
|
351
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
350
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
352
351
|
} & {
|
353
|
-
|
354
|
-
sessionId: typeof Schema.String;
|
352
|
+
appHostId: typeof Schema.String;
|
355
353
|
requestId: typeof Schema.String;
|
356
354
|
}>;
|
357
355
|
export declare class LiveQueriesSubscribe extends LiveQueriesSubscribe_base {
|
@@ -359,10 +357,9 @@ export declare class LiveQueriesSubscribe extends LiveQueriesSubscribe_base {
|
|
359
357
|
declare const LiveQueriesUnsubscribe_base: Schema.Struct<{
|
360
358
|
_tag: Schema.tag<"LSD.LiveQueriesUnsubscribe">;
|
361
359
|
} & {
|
362
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
360
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
363
361
|
} & {
|
364
|
-
|
365
|
-
sessionId: typeof Schema.String;
|
362
|
+
appHostId: typeof Schema.String;
|
366
363
|
requestId: typeof Schema.String;
|
367
364
|
}>;
|
368
365
|
export declare class LiveQueriesUnsubscribe extends LiveQueriesUnsubscribe_base {
|
@@ -386,10 +383,9 @@ export declare class SerializedLiveQuery extends SerializedLiveQuery_base {
|
|
386
383
|
declare const LiveQueriesRes_base: Schema.Struct<{
|
387
384
|
_tag: Schema.tag<"LSD.LiveQueriesRes">;
|
388
385
|
} & {
|
389
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
386
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
390
387
|
} & {
|
391
|
-
|
392
|
-
sessionId: typeof Schema.String;
|
388
|
+
appHostId: typeof Schema.String;
|
393
389
|
requestId: typeof Schema.String;
|
394
390
|
} & {
|
395
391
|
liveQueries: Schema.Array$<typeof SerializedLiveQuery>;
|
@@ -399,7 +395,7 @@ export declare class LiveQueriesRes extends LiveQueriesRes_base {
|
|
399
395
|
declare const ResetAllDataReq_base: Schema.Struct<{
|
400
396
|
_tag: Schema.tag<"LSD.Leader.ResetAllDataReq">;
|
401
397
|
} & {
|
402
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
398
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
403
399
|
} & {
|
404
400
|
requestId: typeof Schema.String;
|
405
401
|
} & {
|
@@ -410,7 +406,7 @@ export declare class ResetAllDataReq extends ResetAllDataReq_base {
|
|
410
406
|
declare const ResetAllDataRes_base: Schema.Struct<{
|
411
407
|
_tag: Schema.tag<"LSD.Leader.ResetAllDataRes">;
|
412
408
|
} & {
|
413
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
409
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
414
410
|
} & {
|
415
411
|
requestId: typeof Schema.String;
|
416
412
|
}>;
|
@@ -419,7 +415,7 @@ export declare class ResetAllDataRes extends ResetAllDataRes_base {
|
|
419
415
|
declare const DatabaseFileInfoReq_base: Schema.Struct<{
|
420
416
|
_tag: Schema.tag<"LSD.Leader.DatabaseFileInfoReq">;
|
421
417
|
} & {
|
422
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
418
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
423
419
|
} & {
|
424
420
|
requestId: typeof Schema.String;
|
425
421
|
}>;
|
@@ -439,7 +435,7 @@ export declare class DatabaseFileInfo extends DatabaseFileInfo_base {
|
|
439
435
|
declare const DatabaseFileInfoRes_base: Schema.Struct<{
|
440
436
|
_tag: Schema.tag<"LSD.Leader.DatabaseFileInfoRes">;
|
441
437
|
} & {
|
442
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
438
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
443
439
|
} & {
|
444
440
|
requestId: typeof Schema.String;
|
445
441
|
} & {
|
@@ -451,7 +447,7 @@ export declare class DatabaseFileInfoRes extends DatabaseFileInfoRes_base {
|
|
451
447
|
declare const NetworkStatusSubscribe_base: Schema.Struct<{
|
452
448
|
_tag: Schema.tag<"LSD.Leader.NetworkStatusSubscribe">;
|
453
449
|
} & {
|
454
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
450
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
455
451
|
} & {
|
456
452
|
requestId: typeof Schema.String;
|
457
453
|
}>;
|
@@ -460,7 +456,7 @@ export declare class NetworkStatusSubscribe extends NetworkStatusSubscribe_base
|
|
460
456
|
declare const NetworkStatusUnsubscribe_base: Schema.Struct<{
|
461
457
|
_tag: Schema.tag<"LSD.Leader.NetworkStatusUnsubscribe">;
|
462
458
|
} & {
|
463
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
459
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
464
460
|
} & {
|
465
461
|
requestId: typeof Schema.String;
|
466
462
|
}>;
|
@@ -469,7 +465,7 @@ export declare class NetworkStatusUnsubscribe extends NetworkStatusUnsubscribe_b
|
|
469
465
|
declare const NetworkStatusRes_base: Schema.Struct<{
|
470
466
|
_tag: Schema.tag<"LSD.Leader.NetworkStatusRes">;
|
471
467
|
} & {
|
472
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
468
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
473
469
|
} & {
|
474
470
|
requestId: typeof Schema.String;
|
475
471
|
} & {
|
@@ -483,7 +479,7 @@ export declare class NetworkStatusRes extends NetworkStatusRes_base {
|
|
483
479
|
declare const SyncingInfoReq_base: Schema.Struct<{
|
484
480
|
_tag: Schema.tag<"LSD.Leader.SyncingInfoReq">;
|
485
481
|
} & {
|
486
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
482
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
487
483
|
} & {
|
488
484
|
requestId: typeof Schema.String;
|
489
485
|
}>;
|
@@ -498,7 +494,7 @@ export declare class SyncingInfo extends SyncingInfo_base {
|
|
498
494
|
declare const SyncingInfoRes_base: Schema.Struct<{
|
499
495
|
_tag: Schema.tag<"LSD.Leader.SyncingInfoRes">;
|
500
496
|
} & {
|
501
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
497
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
502
498
|
} & {
|
503
499
|
requestId: typeof Schema.String;
|
504
500
|
} & {
|
@@ -509,7 +505,7 @@ export declare class SyncingInfoRes extends SyncingInfoRes_base {
|
|
509
505
|
declare const SyncHistorySubscribe_base: Schema.Struct<{
|
510
506
|
_tag: Schema.tag<"LSD.Leader.SyncHistorySubscribe">;
|
511
507
|
} & {
|
512
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
508
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
513
509
|
} & {
|
514
510
|
requestId: typeof Schema.String;
|
515
511
|
}>;
|
@@ -518,7 +514,7 @@ export declare class SyncHistorySubscribe extends SyncHistorySubscribe_base {
|
|
518
514
|
declare const SyncHistoryUnsubscribe_base: Schema.Struct<{
|
519
515
|
_tag: Schema.tag<"LSD.Leader.SyncHistoryUnsubscribe">;
|
520
516
|
} & {
|
521
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
517
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
522
518
|
} & {
|
523
519
|
requestId: typeof Schema.String;
|
524
520
|
}>;
|
@@ -527,16 +523,33 @@ export declare class SyncHistoryUnsubscribe extends SyncHistoryUnsubscribe_base
|
|
527
523
|
declare const SyncHistoryRes_base: Schema.Struct<{
|
528
524
|
_tag: Schema.tag<"LSD.Leader.SyncHistoryRes">;
|
529
525
|
} & {
|
530
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
526
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
531
527
|
} & {
|
532
528
|
requestId: typeof Schema.String;
|
533
529
|
} & {
|
534
|
-
mutationEventEncoded: Schema.
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
530
|
+
mutationEventEncoded: Schema.SchemaClass<{
|
531
|
+
readonly id: {
|
532
|
+
readonly global: number;
|
533
|
+
readonly local: number;
|
534
|
+
};
|
535
|
+
readonly mutation: string;
|
536
|
+
readonly args: any;
|
537
|
+
readonly parentId: {
|
538
|
+
readonly global: number;
|
539
|
+
readonly local: number;
|
540
|
+
};
|
541
|
+
}, {
|
542
|
+
readonly id: {
|
543
|
+
readonly global: number;
|
544
|
+
readonly local: number;
|
545
|
+
};
|
546
|
+
readonly mutation: string;
|
547
|
+
readonly args: any;
|
548
|
+
readonly parentId: {
|
549
|
+
readonly global: number;
|
550
|
+
readonly local: number;
|
551
|
+
};
|
552
|
+
}, never>;
|
540
553
|
metadata: Schema.Option<Schema.Schema<Schema.JsonValue, Schema.JsonValue, never>>;
|
541
554
|
}>;
|
542
555
|
export declare class SyncHistoryRes extends SyncHistoryRes_base {
|
@@ -544,17 +557,16 @@ export declare class SyncHistoryRes extends SyncHistoryRes_base {
|
|
544
557
|
declare const Disconnect_base: Schema.Struct<{
|
545
558
|
_tag: Schema.tag<"LSD.Disconnect">;
|
546
559
|
} & {
|
547
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
560
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
548
561
|
} & {
|
549
|
-
|
550
|
-
sessionId: typeof Schema.String;
|
562
|
+
appHostId: typeof Schema.String;
|
551
563
|
}>;
|
552
564
|
export declare class Disconnect extends Disconnect_base {
|
553
565
|
}
|
554
566
|
declare const Ping_base: Schema.Struct<{
|
555
567
|
_tag: Schema.tag<"LSD.Ping">;
|
556
568
|
} & {
|
557
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
569
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
558
570
|
} & {
|
559
571
|
requestId: typeof Schema.String;
|
560
572
|
}>;
|
@@ -563,7 +575,7 @@ export declare class Ping extends Ping_base {
|
|
563
575
|
declare const Pong_base: Schema.Struct<{
|
564
576
|
_tag: Schema.tag<"LSD.Pong">;
|
565
577
|
} & {
|
566
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
578
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.0"]>;
|
567
579
|
} & {
|
568
580
|
requestId: typeof Schema.String;
|
569
581
|
}>;
|
@@ -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":["../../src/devtools/devtools-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAgB,MAAM,yBAAyB,CAAA;;;;;;;;AA0C9D,qBAAa,WAAY,SAAQ,gBAA8C;CAAG;;;;;;;;;;AAElF,qBAAa,WAAY,SAAQ,gBAE/B;CAAG;;;;;;;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAEvC;CAAG;;;;;;;;;;AAEL,qBAAa,mBAAoB,SAAQ,wBAEvC;CAAG;;;;;;;;;AAEL,qBAAa,YAAa,SAAQ,iBAA6C;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElF,qBAAa,YAAa,SAAQ,iBAEhC;CAAG;;;;;;;;;AAEL,qBAAa,yBAA0B,SAAQ,8BAA0D;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE5G,qBAAa,mBAAoB,SAAQ,wBAEvC;CAAG;;;;;;;;;AAEL,qBAAa,2BAA4B,SAAQ,gCAA4D;CAAG;;;;;;;;;AAEhH,qBAAa,iBAAkB,SAAQ,sBAAkD;CAAG;;;;;;;;;AAE5F,qBAAa,iBAAkB,SAAQ,sBAAk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qBAAa,cAAe,SAAQ,mBAAiD;CAAG;;;;;AAExF,qBAAa,WAAY,SAAQ,gBAG/B;CAAG;;;;;;;;;;AAEL,qBAAa,cAAe,SAAQ,mBAElC;CAAG;;;;;;;;AAEL,qBAAa,oBAAqB,SAAQ,yBAAuD;CAAG;;;;;;;;AACpG,qBAAa,sBAAuB,SAAQ,2BAAyD;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACxG,qBAAa,cAAe,SAAQ,mBAGlC;CAAG;;;;;;;;AAEL,qBAAa,UAAW,SAAQ,eAA4C;CAAG;;;;;;;;AAE/E,qBAAa,IAAK,SAAQ,SAAgC;CAAG;;;;;;;;AAE7D,qBAAa,IAAK,SAAQ,SAAgC;CAAG;AAE7D,eAAO,MAAM,kBAAkB,qVAcwB,CAAA;AAEvD,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAA;AAE/D,eAAO,MAAM,yBAAyB,uTAawB,CAAA;AAE9D,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAA;AAE7E,eAAO,MAAM,oBAAoB,mSAawB,CAAA;AAEzD,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAA;AAEnE,eAAO,MAAM,2BAA2B,+LASwB,CAAA;AAEhE,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,IAAI,CAAA"}
|
@@ -5,8 +5,7 @@ import * as MutationEvent from '../schema/MutationEvent.js';
|
|
5
5
|
import { PreparedBindValues } from '../util.js';
|
6
6
|
import { liveStoreVersion as pkgVersion } from '../version.js';
|
7
7
|
const requestId = Schema.String;
|
8
|
-
const
|
9
|
-
const sessionId = Schema.String;
|
8
|
+
const appHostId = Schema.String;
|
10
9
|
const liveStoreVersion = Schema.Literal(pkgVersion);
|
11
10
|
const LSDMessage = (tag, fields) => Schema.TaggedStruct(tag, {
|
12
11
|
liveStoreVersion,
|
@@ -16,13 +15,11 @@ const LSDChannelMessage = (tag, fields) => LSDMessage(tag, {
|
|
16
15
|
...fields,
|
17
16
|
});
|
18
17
|
const LSDStoreChannelMessage = (tag, fields) => LSDMessage(tag, {
|
19
|
-
|
20
|
-
sessionId,
|
18
|
+
appHostId,
|
21
19
|
...fields,
|
22
20
|
});
|
23
21
|
const LSDStoreReqResMessage = (tag, fields) => LSDMessage(tag, {
|
24
|
-
|
25
|
-
sessionId,
|
22
|
+
appHostId,
|
26
23
|
requestId,
|
27
24
|
...fields,
|
28
25
|
});
|
@@ -72,12 +69,12 @@ export class DebugInfoRerunQueryRes extends LSDStoreReqResMessage('LSD.DebugInfo
|
|
72
69
|
}
|
73
70
|
// TODO refactor this to use push/pull semantics
|
74
71
|
export class MutationBroadcast extends LSDMessage('LSD.Leader.MutationBroadcast', {
|
75
|
-
mutationEventEncoded: MutationEvent.
|
72
|
+
mutationEventEncoded: MutationEvent.EncodedAny,
|
76
73
|
}) {
|
77
74
|
}
|
78
75
|
// TODO refactor this to use push/pull semantics
|
79
76
|
export class RunMutationReq extends LSDReqResMessage('LSD.Leader.RunMutationReq', {
|
80
|
-
mutationEventEncoded: MutationEvent.
|
77
|
+
mutationEventEncoded: MutationEvent.EncodedAny.pipe(Schema.omit('id', 'parentId')),
|
81
78
|
}) {
|
82
79
|
}
|
83
80
|
export class RunMutationRes extends LSDReqResMessage('LSD.Leader.RunMutationRes', {}) {
|
@@ -158,7 +155,7 @@ export class SyncHistorySubscribe extends LSDReqResMessage('LSD.Leader.SyncHisto
|
|
158
155
|
export class SyncHistoryUnsubscribe extends LSDReqResMessage('LSD.Leader.SyncHistoryUnsubscribe', {}) {
|
159
156
|
}
|
160
157
|
export class SyncHistoryRes extends LSDReqResMessage('LSD.Leader.SyncHistoryRes', {
|
161
|
-
mutationEventEncoded: MutationEvent.
|
158
|
+
mutationEventEncoded: MutationEvent.EncodedAny,
|
162
159
|
metadata: Schema.Option(Schema.JsonValue),
|
163
160
|
}) {
|
164
161
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"devtools-messages.js","sourceRoot":"","sources":["../../src/devtools/devtools-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,gBAAgB,IAAI,UAAU,EAAE,MAAM,eAAe,CAAA;AAE9D,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAA;AAC/B,MAAM,
|
1
|
+
{"version":3,"file":"devtools-messages.js","sourceRoot":"","sources":["../../src/devtools/devtools-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,gBAAgB,IAAI,UAAU,EAAE,MAAM,eAAe,CAAA;AAE9D,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAA;AAC/B,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAA;AAC/B,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;AAEnD,MAAM,UAAU,GAAG,CAA0D,GAAQ,EAAE,MAAc,EAAE,EAAE,CACvG,MAAM,CAAC,YAAY,CAAC,GAAG,EAAE;IACvB,gBAAgB;IAChB,GAAG,MAAM;CACV,CAAC,CAAC,WAAW,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