@livestore/common 0.0.54-dev.18 → 0.0.54-dev.19
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/debug-info.d.ts +8 -8
- package/dist/debug-info.d.ts.map +1 -1
- package/dist/debug-info.js +4 -7
- package/dist/debug-info.js.map +1 -1
- package/dist/devtools/devtools-messages.d.ts +23 -3
- package/dist/devtools/devtools-messages.d.ts.map +1 -1
- package/dist/devtools/devtools-messages.js +16 -2
- package/dist/devtools/devtools-messages.js.map +1 -1
- package/package.json +3 -3
- package/src/debug-info.ts +4 -9
- package/src/devtools/devtools-messages.ts +16 -0
- package/dist/devtools/index copy.d.ts +0 -214
- package/dist/devtools/index copy.d.ts.map +0 -1
- package/dist/devtools/index copy.js +0 -137
- package/dist/devtools/index copy.js.map +0 -1
package/dist/debug-info.d.ts
CHANGED
|
@@ -21,38 +21,38 @@ export declare const DebugInfo: Schema.Struct<{
|
|
|
21
21
|
slowQueries: Schema.transform<Schema.Struct<{
|
|
22
22
|
size: typeof Schema.Number;
|
|
23
23
|
items: Schema.Array$<Schema.Schema<{
|
|
24
|
+
readonly queryStr: string;
|
|
24
25
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
25
26
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
26
27
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
27
|
-
readonly queryStr: string;
|
|
28
28
|
readonly durationMs: number;
|
|
29
29
|
readonly rowsCount: number | undefined;
|
|
30
30
|
readonly queriedTables: ReadonlySet<string>;
|
|
31
31
|
readonly startTimePerfNow: number;
|
|
32
32
|
}, {
|
|
33
|
+
readonly queryStr: string;
|
|
33
34
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
|
34
35
|
readonly [x: string]: string | number | readonly number[] | null;
|
|
35
36
|
} | undefined;
|
|
36
|
-
readonly queryStr: string;
|
|
37
37
|
readonly durationMs: number;
|
|
38
38
|
readonly rowsCount: number | undefined;
|
|
39
39
|
readonly queriedTables: readonly string[];
|
|
40
40
|
readonly startTimePerfNow: number;
|
|
41
41
|
}, never>>;
|
|
42
42
|
}>, Schema.Schema<BoundArray<{
|
|
43
|
+
readonly queryStr: string;
|
|
43
44
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
44
45
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
45
46
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
46
|
-
readonly queryStr: string;
|
|
47
47
|
readonly durationMs: number;
|
|
48
48
|
readonly rowsCount: number | undefined;
|
|
49
49
|
readonly queriedTables: ReadonlySet<string>;
|
|
50
50
|
readonly startTimePerfNow: number;
|
|
51
51
|
}>, BoundArray<{
|
|
52
|
+
readonly queryStr: string;
|
|
52
53
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
53
54
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
54
55
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
55
|
-
readonly queryStr: string;
|
|
56
56
|
readonly durationMs: number;
|
|
57
57
|
readonly rowsCount: number | undefined;
|
|
58
58
|
readonly queriedTables: ReadonlySet<string>;
|
|
@@ -70,38 +70,38 @@ export declare const MutableDebugInfo: Schema.mutable<Schema.Struct<{
|
|
|
70
70
|
slowQueries: Schema.transform<Schema.Struct<{
|
|
71
71
|
size: typeof Schema.Number;
|
|
72
72
|
items: Schema.Array$<Schema.Schema<{
|
|
73
|
+
readonly queryStr: string;
|
|
73
74
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
74
75
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
75
76
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
76
|
-
readonly queryStr: string;
|
|
77
77
|
readonly durationMs: number;
|
|
78
78
|
readonly rowsCount: number | undefined;
|
|
79
79
|
readonly queriedTables: ReadonlySet<string>;
|
|
80
80
|
readonly startTimePerfNow: number;
|
|
81
81
|
}, {
|
|
82
|
+
readonly queryStr: string;
|
|
82
83
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
|
83
84
|
readonly [x: string]: string | number | readonly number[] | null;
|
|
84
85
|
} | undefined;
|
|
85
|
-
readonly queryStr: string;
|
|
86
86
|
readonly durationMs: number;
|
|
87
87
|
readonly rowsCount: number | undefined;
|
|
88
88
|
readonly queriedTables: readonly string[];
|
|
89
89
|
readonly startTimePerfNow: number;
|
|
90
90
|
}, never>>;
|
|
91
91
|
}>, Schema.Schema<BoundArray<{
|
|
92
|
+
readonly queryStr: string;
|
|
92
93
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
93
94
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
94
95
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
95
|
-
readonly queryStr: string;
|
|
96
96
|
readonly durationMs: number;
|
|
97
97
|
readonly rowsCount: number | undefined;
|
|
98
98
|
readonly queriedTables: ReadonlySet<string>;
|
|
99
99
|
readonly startTimePerfNow: number;
|
|
100
100
|
}>, BoundArray<{
|
|
101
|
+
readonly queryStr: string;
|
|
101
102
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
102
103
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
103
104
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
104
|
-
readonly queryStr: string;
|
|
105
105
|
readonly durationMs: number;
|
|
106
106
|
readonly rowsCount: number | undefined;
|
|
107
107
|
readonly queriedTables: ReadonlySet<string>;
|
package/dist/debug-info.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-info.d.ts","sourceRoot":"","sources":["../src/debug-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAE7D,OAAO,EAAE,UAAU,EAAE,MA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O,gBAAgB,CAAC,IAAI,CAAA"}
|
package/dist/debug-info.js
CHANGED
|
@@ -9,13 +9,7 @@ export const SlowQueryInfo = Schema.Struct({
|
|
|
9
9
|
queriedTables: Schema.ReadonlySet(Schema.String),
|
|
10
10
|
startTimePerfNow: Schema.Number,
|
|
11
11
|
});
|
|
12
|
-
const BoundArraySchemaFromSelf = (
|
|
13
|
-
identifier: `BoundArrayFromSelf`,
|
|
14
|
-
pretty: () => (_) => `BoundArray(${_.length})`,
|
|
15
|
-
arbitrary: () => (fc) => fc.anything(),
|
|
16
|
-
equivalence: () => (a, b) => a === b,
|
|
17
|
-
});
|
|
18
|
-
const BoundArraySchemaFromSelf_ = (item) => Schema.declare([item], {
|
|
12
|
+
const BoundArraySchemaFromSelf = (item) => Schema.declare([item], {
|
|
19
13
|
decode: (item) => (input, parseOptions, ast) => {
|
|
20
14
|
if (input instanceof BoundArray) {
|
|
21
15
|
const elements = ParseResult.decodeUnknown(Schema.Array(item))([...input], parseOptions);
|
|
@@ -32,6 +26,9 @@ const BoundArraySchemaFromSelf_ = (item) => Schema.declare([item], {
|
|
|
32
26
|
},
|
|
33
27
|
}, {
|
|
34
28
|
description: `BoundArray<${Schema.format(item)}>`,
|
|
29
|
+
pretty: () => (_) => `BoundArray(${_.length})`,
|
|
30
|
+
arbitrary: () => (fc) => fc.anything(),
|
|
31
|
+
equivalence: () => (a, b) => a === b,
|
|
35
32
|
});
|
|
36
33
|
const BoundArraySchema = (elSchema) => Schema.transform(Schema.Struct({
|
|
37
34
|
size: Schema.Number,
|
package/dist/debug-info.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-info.js","sourceRoot":"","sources":["../src/debug-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAE7D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,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.TaggedStruct<"LSD.MutationBroadcast", {
|
|
107
107
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
108
|
-
requestId: typeof Schema.String;
|
|
109
108
|
mutationEventEncoded: Schema.Struct<{
|
|
110
109
|
mutation: typeof Schema.String;
|
|
111
110
|
args: typeof Schema.Any;
|
|
@@ -115,6 +114,26 @@ declare const MutationBroadcast_base: Schema.TaggedStruct<"LSD.MutationBroadcast
|
|
|
115
114
|
}>;
|
|
116
115
|
export declare class MutationBroadcast extends MutationBroadcast_base {
|
|
117
116
|
}
|
|
117
|
+
declare const RunMutationReq_base: Schema.TaggedStruct<"LSD.RunMutationReq", {
|
|
118
|
+
liveStoreVersion: Schema.Literal<[string]>;
|
|
119
|
+
requestId: typeof Schema.String;
|
|
120
|
+
channelId: typeof Schema.String;
|
|
121
|
+
mutationEventEncoded: Schema.Struct<{
|
|
122
|
+
mutation: typeof Schema.String;
|
|
123
|
+
args: typeof Schema.Any;
|
|
124
|
+
id: typeof Schema.String;
|
|
125
|
+
}>;
|
|
126
|
+
persisted: typeof Schema.Boolean;
|
|
127
|
+
}>;
|
|
128
|
+
export declare class RunMutationReq extends RunMutationReq_base {
|
|
129
|
+
}
|
|
130
|
+
declare const RunMutationRes_base: Schema.TaggedStruct<"LSD.RunMutationRes", {
|
|
131
|
+
liveStoreVersion: Schema.Literal<[string]>;
|
|
132
|
+
requestId: typeof Schema.String;
|
|
133
|
+
channelId: typeof Schema.String;
|
|
134
|
+
}>;
|
|
135
|
+
export declare class RunMutationRes extends RunMutationRes_base {
|
|
136
|
+
}
|
|
118
137
|
declare const MutationLogReq_base: Schema.TaggedStruct<"LSD.MutationLogReq", {
|
|
119
138
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
120
139
|
requestId: typeof Schema.String;
|
|
@@ -125,6 +144,7 @@ export declare class MutationLogReq extends MutationLogReq_base {
|
|
|
125
144
|
declare const MutationLogRes_base: Schema.TaggedStruct<"LSD.MutationLogRes", {
|
|
126
145
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
127
146
|
requestId: typeof Schema.String;
|
|
147
|
+
channelId: typeof Schema.String;
|
|
128
148
|
mutationLog: Schema.Schema<Uint8Array, readonly number[], never>;
|
|
129
149
|
}>;
|
|
130
150
|
export declare class MutationLogRes extends MutationLogRes_base {
|
|
@@ -236,9 +256,9 @@ declare const Disconnect_base: Schema.TaggedStruct<"LSD.Disconnect", {
|
|
|
236
256
|
}>;
|
|
237
257
|
export declare class Disconnect extends Disconnect_base {
|
|
238
258
|
}
|
|
239
|
-
export declare const MessageToAppHost: Schema.Union<[typeof SnapshotReq, typeof MutationLogReq, typeof DebugInfoReq, typeof DebugInfoResetReq, typeof DebugInfoRerunQueryReq, typeof SignalsSubscribe, typeof SignalsUnsubscribe, typeof LiveQueriesSubscribe, typeof LiveQueriesUnsubscribe, typeof ResetAllDataReq, typeof DevtoolsReady, typeof Disconnect, typeof DevtoolsConnected]>;
|
|
259
|
+
export declare const MessageToAppHost: Schema.Union<[typeof SnapshotReq, typeof MutationLogReq, typeof DebugInfoReq, typeof DebugInfoResetReq, typeof DebugInfoRerunQueryReq, typeof SignalsSubscribe, typeof SignalsUnsubscribe, typeof LiveQueriesSubscribe, typeof LiveQueriesUnsubscribe, typeof ResetAllDataReq, typeof DevtoolsReady, typeof Disconnect, typeof DevtoolsConnected, typeof RunMutationReq]>;
|
|
240
260
|
export type MessageToAppHost = typeof MessageToAppHost.Type;
|
|
241
|
-
export declare const MessageFromAppHost: Schema.Union<[typeof SnapshotRes, typeof MutationLogRes, typeof DebugInfoRes, typeof DebugInfoResetRes, typeof DebugInfoRerunQueryRes, typeof SignalsRes, typeof LiveQueriesRes, typeof ResetAllDataRes, typeof Disconnect, typeof MutationBroadcast, typeof AppHostReady, typeof NetworkStatusChanged]>;
|
|
261
|
+
export declare const MessageFromAppHost: Schema.Union<[typeof SnapshotRes, typeof MutationLogRes, typeof DebugInfoRes, typeof DebugInfoResetRes, typeof DebugInfoRerunQueryRes, typeof SignalsRes, typeof LiveQueriesRes, typeof ResetAllDataRes, typeof Disconnect, typeof MutationBroadcast, typeof AppHostReady, typeof NetworkStatusChanged, typeof RunMutationRes]>;
|
|
242
262
|
export type MessageFromAppHost = typeof MessageFromAppHost.Type;
|
|
243
263
|
export declare const makeBroadcastChannels: () => {
|
|
244
264
|
fromAppHost: BroadcastChannel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-messages.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-messages.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;;;;;;AAYhD,qBAAa,WAAY,SAAQ,gBAI/B;CAAG;;;;;;AAEL,qBAAa,WAAY,SAAQ,gBAI/B;CAAG;;;;;;AAEL,qBAAa,YAAa,SAAQ,iBAIhC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,YAAa,SAAQ,iBAIhC;CAAG;;;;;;AAEL,qBAAa,iBAAkB,SAAQ,sBAIrC;CAAG;;;;;AAEL,qBAAa,iBAAkB,SAAQ,sBAGrC;CAAG;;;;;;;;;AAEL,qBAAa,sBAAuB,SAAQ,2BAO1C;CAAG;;;;;AAEL,qBAAa,sBAAuB,SAAQ,2BAG1C;CAAG
|
|
1
|
+
{"version":3,"file":"devtools-messages.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-messages.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;;;;;;AAYhD,qBAAa,WAAY,SAAQ,gBAI/B;CAAG;;;;;;AAEL,qBAAa,WAAY,SAAQ,gBAI/B;CAAG;;;;;;AAEL,qBAAa,YAAa,SAAQ,iBAIhC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,YAAa,SAAQ,iBAIhC;CAAG;;;;;;AAEL,qBAAa,iBAAk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BAAkB,iUAc9B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAA;AAG/D,eAAO,MAAM,qBAAqB;;;CAGhC,CAAA"}
|
|
@@ -57,12 +57,25 @@ export class DebugInfoRerunQueryRes extends Schema.TaggedStruct('LSD.DebugInfoRe
|
|
|
57
57
|
}) {
|
|
58
58
|
}
|
|
59
59
|
export class MutationBroadcast extends Schema.TaggedStruct('LSD.MutationBroadcast', {
|
|
60
|
+
liveStoreVersion,
|
|
61
|
+
mutationEventEncoded: mutationEventSchemaEncodedAny,
|
|
62
|
+
persisted: Schema.Boolean,
|
|
63
|
+
}) {
|
|
64
|
+
}
|
|
65
|
+
export class RunMutationReq extends Schema.TaggedStruct('LSD.RunMutationReq', {
|
|
60
66
|
liveStoreVersion,
|
|
61
67
|
requestId,
|
|
68
|
+
channelId,
|
|
62
69
|
mutationEventEncoded: mutationEventSchemaEncodedAny,
|
|
63
70
|
persisted: Schema.Boolean,
|
|
64
71
|
}) {
|
|
65
72
|
}
|
|
73
|
+
export class RunMutationRes extends Schema.TaggedStruct('LSD.RunMutationRes', {
|
|
74
|
+
liveStoreVersion,
|
|
75
|
+
requestId,
|
|
76
|
+
channelId,
|
|
77
|
+
}) {
|
|
78
|
+
}
|
|
66
79
|
export class MutationLogReq extends Schema.TaggedStruct('LSD.MutationLogReq', {
|
|
67
80
|
liveStoreVersion,
|
|
68
81
|
requestId,
|
|
@@ -72,6 +85,7 @@ export class MutationLogReq extends Schema.TaggedStruct('LSD.MutationLogReq', {
|
|
|
72
85
|
export class MutationLogRes extends Schema.TaggedStruct('LSD.MutationLogRes', {
|
|
73
86
|
liveStoreVersion,
|
|
74
87
|
requestId,
|
|
88
|
+
channelId,
|
|
75
89
|
mutationLog: Schema.Uint8Array,
|
|
76
90
|
}) {
|
|
77
91
|
}
|
|
@@ -160,8 +174,8 @@ export class Disconnect extends Schema.TaggedStruct('LSD.Disconnect', {
|
|
|
160
174
|
channelId,
|
|
161
175
|
}) {
|
|
162
176
|
}
|
|
163
|
-
export const MessageToAppHost = Schema.Union(SnapshotReq, MutationLogReq, DebugInfoReq, DebugInfoResetReq, DebugInfoRerunQueryReq, SignalsSubscribe, SignalsUnsubscribe, LiveQueriesSubscribe, LiveQueriesUnsubscribe, ResetAllDataReq, DevtoolsReady, Disconnect, DevtoolsConnected);
|
|
164
|
-
export const MessageFromAppHost = Schema.Union(SnapshotRes, MutationLogRes, DebugInfoRes, DebugInfoResetRes, DebugInfoRerunQueryRes, SignalsRes, LiveQueriesRes, ResetAllDataRes, Disconnect, MutationBroadcast, AppHostReady, NetworkStatusChanged);
|
|
177
|
+
export const MessageToAppHost = Schema.Union(SnapshotReq, MutationLogReq, DebugInfoReq, DebugInfoResetReq, DebugInfoRerunQueryReq, SignalsSubscribe, SignalsUnsubscribe, LiveQueriesSubscribe, LiveQueriesUnsubscribe, ResetAllDataReq, DevtoolsReady, Disconnect, DevtoolsConnected, RunMutationReq);
|
|
178
|
+
export const MessageFromAppHost = Schema.Union(SnapshotRes, MutationLogRes, DebugInfoRes, DebugInfoResetRes, DebugInfoRerunQueryRes, SignalsRes, LiveQueriesRes, ResetAllDataRes, Disconnect, MutationBroadcast, AppHostReady, NetworkStatusChanged, RunMutationRes);
|
|
165
179
|
// TODO make specific over app key
|
|
166
180
|
export const makeBroadcastChannels = () => ({
|
|
167
181
|
fromAppHost: new BroadcastChannel(`livestore-devtools-from-app-host`),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-messages.js","sourceRoot":"","sources":["../../src/devtools/devtools-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,gCAAgC,CAAA;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAGhD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,O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jB,YAAY,EACZ,oBAAoB,EACpB,cAAc,CACf,CAAA;AAID,kCAAkC;AAClC,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,IAAI,gBAAgB,CAAC,kCAAkC,CAAC;IACrE,SAAS,EAAE,IAAI,gBAAgB,CAAC,gCAAgC,CAAC;CAClE,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livestore/common",
|
|
3
|
-
"version": "0.0.54-dev.
|
|
3
|
+
"version": "0.0.54-dev.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@opentelemetry/api": "^1.9.0",
|
|
36
|
-
"@livestore/utils": "0.0.54-dev.
|
|
37
|
-
"effect-db-schema": "0.0.54-dev.
|
|
36
|
+
"@livestore/utils": "0.0.54-dev.19",
|
|
37
|
+
"effect-db-schema": "0.0.54-dev.19"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"vitest": "^1.6.0"
|
package/src/debug-info.ts
CHANGED
|
@@ -21,15 +21,7 @@ export const SlowQueryInfo = Schema.Struct({
|
|
|
21
21
|
startTimePerfNow: Schema.Number,
|
|
22
22
|
})
|
|
23
23
|
|
|
24
|
-
const BoundArraySchemaFromSelf = <
|
|
25
|
-
Schema.declare((_): _ is BoundArray<ItemDecoded> => _ instanceof BoundArray, {
|
|
26
|
-
identifier: `BoundArrayFromSelf`,
|
|
27
|
-
pretty: () => (_) => `BoundArray(${_.length})`,
|
|
28
|
-
arbitrary: () => (fc) => fc.anything() as any,
|
|
29
|
-
equivalence: () => (a, b) => a === b,
|
|
30
|
-
}) as any as Schema.Schema<BoundArray<ItemDecoded>, BoundArray<ItemEncoded>>
|
|
31
|
-
|
|
32
|
-
const BoundArraySchemaFromSelf_ = <A, I, R>(
|
|
24
|
+
const BoundArraySchemaFromSelf = <A, I, R>(
|
|
33
25
|
item: Schema.Schema<A, I, R>,
|
|
34
26
|
): Schema.Schema<BoundArray<A>, BoundArray<I>, R> =>
|
|
35
27
|
Schema.declare(
|
|
@@ -52,6 +44,9 @@ const BoundArraySchemaFromSelf_ = <A, I, R>(
|
|
|
52
44
|
},
|
|
53
45
|
{
|
|
54
46
|
description: `BoundArray<${Schema.format(item)}>`,
|
|
47
|
+
pretty: () => (_) => `BoundArray(${_.length})`,
|
|
48
|
+
arbitrary: () => (fc) => fc.anything() as any,
|
|
49
|
+
equivalence: () => (a, b) => a === b,
|
|
55
50
|
},
|
|
56
51
|
)
|
|
57
52
|
|
|
@@ -61,12 +61,25 @@ export class DebugInfoRerunQueryRes extends Schema.TaggedStruct('LSD.DebugInfoRe
|
|
|
61
61
|
}) {}
|
|
62
62
|
|
|
63
63
|
export class MutationBroadcast extends Schema.TaggedStruct('LSD.MutationBroadcast', {
|
|
64
|
+
liveStoreVersion,
|
|
65
|
+
mutationEventEncoded: mutationEventSchemaEncodedAny,
|
|
66
|
+
persisted: Schema.Boolean,
|
|
67
|
+
}) {}
|
|
68
|
+
|
|
69
|
+
export class RunMutationReq extends Schema.TaggedStruct('LSD.RunMutationReq', {
|
|
64
70
|
liveStoreVersion,
|
|
65
71
|
requestId,
|
|
72
|
+
channelId,
|
|
66
73
|
mutationEventEncoded: mutationEventSchemaEncodedAny,
|
|
67
74
|
persisted: Schema.Boolean,
|
|
68
75
|
}) {}
|
|
69
76
|
|
|
77
|
+
export class RunMutationRes extends Schema.TaggedStruct('LSD.RunMutationRes', {
|
|
78
|
+
liveStoreVersion,
|
|
79
|
+
requestId,
|
|
80
|
+
channelId,
|
|
81
|
+
}) {}
|
|
82
|
+
|
|
70
83
|
export class MutationLogReq extends Schema.TaggedStruct('LSD.MutationLogReq', {
|
|
71
84
|
liveStoreVersion,
|
|
72
85
|
requestId,
|
|
@@ -76,6 +89,7 @@ export class MutationLogReq extends Schema.TaggedStruct('LSD.MutationLogReq', {
|
|
|
76
89
|
export class MutationLogRes extends Schema.TaggedStruct('LSD.MutationLogRes', {
|
|
77
90
|
liveStoreVersion,
|
|
78
91
|
requestId,
|
|
92
|
+
channelId,
|
|
79
93
|
mutationLog: Schema.Uint8Array,
|
|
80
94
|
}) {}
|
|
81
95
|
|
|
@@ -180,6 +194,7 @@ export const MessageToAppHost = Schema.Union(
|
|
|
180
194
|
DevtoolsReady,
|
|
181
195
|
Disconnect,
|
|
182
196
|
DevtoolsConnected,
|
|
197
|
+
RunMutationReq,
|
|
183
198
|
)
|
|
184
199
|
|
|
185
200
|
export type MessageToAppHost = typeof MessageToAppHost.Type
|
|
@@ -197,6 +212,7 @@ export const MessageFromAppHost = Schema.Union(
|
|
|
197
212
|
MutationBroadcast,
|
|
198
213
|
AppHostReady,
|
|
199
214
|
NetworkStatusChanged,
|
|
215
|
+
RunMutationRes,
|
|
200
216
|
)
|
|
201
217
|
|
|
202
218
|
export type MessageFromAppHost = typeof MessageFromAppHost.Type
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import { Schema } from '@livestore/utils/effect';
|
|
2
|
-
declare const SnapshotReq_base: Schema.TaggedStruct<"LSD.SnapshotReq", {
|
|
3
|
-
requestId: typeof Schema.String;
|
|
4
|
-
channelId: typeof Schema.String;
|
|
5
|
-
}>;
|
|
6
|
-
export declare class SnapshotReq extends SnapshotReq_base {
|
|
7
|
-
}
|
|
8
|
-
declare const SnapshotRes_base: Schema.TaggedStruct<"LSD.SnapshotRes", {
|
|
9
|
-
requestId: typeof Schema.String;
|
|
10
|
-
snapshot: Schema.Schema<Uint8Array, readonly number[], never>;
|
|
11
|
-
}>;
|
|
12
|
-
export declare class SnapshotRes extends SnapshotRes_base {
|
|
13
|
-
}
|
|
14
|
-
declare const DebugInfoReq_base: Schema.TaggedStruct<"LSD.DebugInfoReq", {
|
|
15
|
-
requestId: typeof Schema.String;
|
|
16
|
-
channelId: typeof Schema.String;
|
|
17
|
-
}>;
|
|
18
|
-
export declare class DebugInfoReq extends DebugInfoReq_base {
|
|
19
|
-
}
|
|
20
|
-
declare const DebugInfoRes_base: Schema.TaggedStruct<"LSD.DebugInfoRes", {
|
|
21
|
-
requestId: typeof Schema.String;
|
|
22
|
-
debugInfo: Schema.Struct<{
|
|
23
|
-
slowQueries: Schema.transform<Schema.Struct<{
|
|
24
|
-
size: typeof Schema.Number;
|
|
25
|
-
items: Schema.Array$<Schema.Schema<{
|
|
26
|
-
readonly queryStr: string;
|
|
27
|
-
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
28
|
-
readonly [x: string]: string | number | Uint8Array | null;
|
|
29
|
-
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
30
|
-
readonly durationMs: number;
|
|
31
|
-
readonly rowsCount: number | undefined;
|
|
32
|
-
readonly queriedTables: ReadonlySet<string>;
|
|
33
|
-
readonly startTimePerfNow: number;
|
|
34
|
-
}, {
|
|
35
|
-
readonly queryStr: string;
|
|
36
|
-
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
|
37
|
-
readonly [x: string]: string | number | readonly number[] | null;
|
|
38
|
-
} | undefined;
|
|
39
|
-
readonly durationMs: number;
|
|
40
|
-
readonly rowsCount: number | undefined;
|
|
41
|
-
readonly queriedTables: readonly string[];
|
|
42
|
-
readonly startTimePerfNow: number;
|
|
43
|
-
}, never>>;
|
|
44
|
-
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
|
|
45
|
-
readonly queryStr: string;
|
|
46
|
-
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
47
|
-
readonly [x: string]: string | number | Uint8Array | null;
|
|
48
|
-
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
49
|
-
readonly durationMs: number;
|
|
50
|
-
readonly rowsCount: number | undefined;
|
|
51
|
-
readonly queriedTables: ReadonlySet<string>;
|
|
52
|
-
readonly startTimePerfNow: number;
|
|
53
|
-
}>, import("../bounded-collections.js").BoundArray<{
|
|
54
|
-
readonly queryStr: string;
|
|
55
|
-
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
56
|
-
readonly [x: string]: string | number | Uint8Array | null;
|
|
57
|
-
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
58
|
-
readonly durationMs: number;
|
|
59
|
-
readonly rowsCount: number | undefined;
|
|
60
|
-
readonly queriedTables: ReadonlySet<string>;
|
|
61
|
-
readonly startTimePerfNow: number;
|
|
62
|
-
}>, never>>;
|
|
63
|
-
queryFrameDuration: typeof Schema.Number;
|
|
64
|
-
queryFrameCount: typeof Schema.Number;
|
|
65
|
-
events: Schema.transform<Schema.Struct<{
|
|
66
|
-
size: typeof Schema.Number;
|
|
67
|
-
items: Schema.Array$<Schema.Schema<readonly [string, any], readonly [string, any], never>>;
|
|
68
|
-
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<readonly [string, any]>, import("../bounded-collections.js").BoundArray<readonly [string, any]>, never>>;
|
|
69
|
-
}>;
|
|
70
|
-
}>;
|
|
71
|
-
export declare class DebugInfoRes extends DebugInfoRes_base {
|
|
72
|
-
}
|
|
73
|
-
declare const DebugInfoResetReq_base: Schema.TaggedStruct<"LSD.DebugInfoResetReq", {
|
|
74
|
-
requestId: typeof Schema.String;
|
|
75
|
-
channelId: typeof Schema.String;
|
|
76
|
-
}>;
|
|
77
|
-
export declare class DebugInfoResetReq extends DebugInfoResetReq_base {
|
|
78
|
-
}
|
|
79
|
-
declare const DebugInfoResetRes_base: Schema.TaggedStruct<"LSD.DebugInfoResetRes", {
|
|
80
|
-
requestId: typeof Schema.String;
|
|
81
|
-
}>;
|
|
82
|
-
export declare class DebugInfoResetRes extends DebugInfoResetRes_base {
|
|
83
|
-
}
|
|
84
|
-
declare const DebugInfoRerunQueryReq_base: Schema.TaggedStruct<"LSD.DebugInfoRerunQueryReq", {
|
|
85
|
-
requestId: typeof Schema.String;
|
|
86
|
-
channelId: typeof Schema.String;
|
|
87
|
-
queryStr: typeof Schema.String;
|
|
88
|
-
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">>;
|
|
89
|
-
queriedTables: Schema.ReadonlySet$<typeof Schema.String>;
|
|
90
|
-
}>;
|
|
91
|
-
export declare class DebugInfoRerunQueryReq extends DebugInfoRerunQueryReq_base {
|
|
92
|
-
}
|
|
93
|
-
declare const DebugInfoRerunQueryRes_base: Schema.TaggedStruct<"LSD.DebugInfoRerunQueryRes", {
|
|
94
|
-
requestId: typeof Schema.String;
|
|
95
|
-
}>;
|
|
96
|
-
export declare class DebugInfoRerunQueryRes extends DebugInfoRerunQueryRes_base {
|
|
97
|
-
}
|
|
98
|
-
declare const MutationBroadcast_base: Schema.TaggedStruct<"LSD.MutationBroadcast", {
|
|
99
|
-
requestId: typeof Schema.String;
|
|
100
|
-
mutationEventEncoded: Schema.Struct<{
|
|
101
|
-
mutation: typeof Schema.String;
|
|
102
|
-
args: typeof Schema.Any;
|
|
103
|
-
id: typeof Schema.String;
|
|
104
|
-
}>;
|
|
105
|
-
persisted: typeof Schema.Boolean;
|
|
106
|
-
}>;
|
|
107
|
-
export declare class MutationBroadcast extends MutationBroadcast_base {
|
|
108
|
-
}
|
|
109
|
-
declare const MutationLogReq_base: Schema.TaggedStruct<"LSD.MutationLogReq", {
|
|
110
|
-
requestId: typeof Schema.String;
|
|
111
|
-
channelId: typeof Schema.String;
|
|
112
|
-
}>;
|
|
113
|
-
export declare class MutationLogReq extends MutationLogReq_base {
|
|
114
|
-
}
|
|
115
|
-
declare const MutationLogRes_base: Schema.TaggedStruct<"LSD.MutationLogRes", {
|
|
116
|
-
requestId: typeof Schema.String;
|
|
117
|
-
mutationLog: Schema.Schema<Uint8Array, readonly number[], never>;
|
|
118
|
-
}>;
|
|
119
|
-
export declare class MutationLogRes extends MutationLogRes_base {
|
|
120
|
-
}
|
|
121
|
-
declare const SignalsSubscribe_base: Schema.TaggedStruct<"LSD.SignalsSubscribe", {
|
|
122
|
-
requestId: typeof Schema.String;
|
|
123
|
-
channelId: typeof Schema.String;
|
|
124
|
-
includeResults: typeof Schema.Boolean;
|
|
125
|
-
}>;
|
|
126
|
-
export declare class SignalsSubscribe extends SignalsSubscribe_base {
|
|
127
|
-
}
|
|
128
|
-
declare const SignalsUnsubscribe_base: Schema.TaggedStruct<"LSD.SignalsUnsubscribe", {
|
|
129
|
-
requestId: typeof Schema.String;
|
|
130
|
-
channelId: typeof Schema.String;
|
|
131
|
-
}>;
|
|
132
|
-
export declare class SignalsUnsubscribe extends SignalsUnsubscribe_base {
|
|
133
|
-
}
|
|
134
|
-
declare const SignalsRes_base: Schema.TaggedStruct<"LSD.SignalsRes", {
|
|
135
|
-
requestId: typeof Schema.String;
|
|
136
|
-
signals: typeof Schema.Any;
|
|
137
|
-
}>;
|
|
138
|
-
export declare class SignalsRes extends SignalsRes_base {
|
|
139
|
-
}
|
|
140
|
-
declare const LiveQueriesSubscribe_base: Schema.TaggedStruct<"LSD.LiveQueriesSubscribe", {
|
|
141
|
-
requestId: typeof Schema.String;
|
|
142
|
-
channelId: typeof Schema.String;
|
|
143
|
-
}>;
|
|
144
|
-
export declare class LiveQueriesSubscribe extends LiveQueriesSubscribe_base {
|
|
145
|
-
}
|
|
146
|
-
declare const LiveQueriesUnsubscribe_base: Schema.TaggedStruct<"LSD.LiveQueriesUnsubscribe", {
|
|
147
|
-
requestId: typeof Schema.String;
|
|
148
|
-
channelId: typeof Schema.String;
|
|
149
|
-
}>;
|
|
150
|
-
export declare class LiveQueriesUnsubscribe extends LiveQueriesUnsubscribe_base {
|
|
151
|
-
}
|
|
152
|
-
declare const SerializedLiveQuery_base: Schema.Struct<{
|
|
153
|
-
_tag: Schema.Literal<["js", "sql", "graphql"]>;
|
|
154
|
-
id: typeof Schema.Number;
|
|
155
|
-
label: typeof Schema.String;
|
|
156
|
-
runs: typeof Schema.Number;
|
|
157
|
-
executionTimes: Schema.Array$<typeof Schema.Number>;
|
|
158
|
-
lastestResult: typeof Schema.Any;
|
|
159
|
-
activeSubscriptions: Schema.Array$<Schema.Struct<{
|
|
160
|
-
frames: Schema.Array$<Schema.Struct<{
|
|
161
|
-
name: typeof Schema.String;
|
|
162
|
-
filePath: typeof Schema.String;
|
|
163
|
-
}>>;
|
|
164
|
-
}>>;
|
|
165
|
-
}>;
|
|
166
|
-
export declare class SerializedLiveQuery extends SerializedLiveQuery_base {
|
|
167
|
-
}
|
|
168
|
-
declare const LiveQueriesRes_base: Schema.TaggedStruct<"LSD.LiveQueriesRes", {
|
|
169
|
-
requestId: typeof Schema.String;
|
|
170
|
-
liveQueries: Schema.Array$<typeof SerializedLiveQuery>;
|
|
171
|
-
}>;
|
|
172
|
-
export declare class LiveQueriesRes extends LiveQueriesRes_base {
|
|
173
|
-
}
|
|
174
|
-
declare const ResetAllDataReq_base: Schema.TaggedStruct<"LSD.ResetAllDataReq", {
|
|
175
|
-
requestId: typeof Schema.String;
|
|
176
|
-
channelId: typeof Schema.String;
|
|
177
|
-
mode: Schema.Literal<["all-data", "only-app-db"]>;
|
|
178
|
-
}>;
|
|
179
|
-
export declare class ResetAllDataReq extends ResetAllDataReq_base {
|
|
180
|
-
}
|
|
181
|
-
declare const ResetAllDataRes_base: Schema.TaggedStruct<"LSD.ResetAllDataRes", {
|
|
182
|
-
requestId: typeof Schema.String;
|
|
183
|
-
}>;
|
|
184
|
-
export declare class ResetAllDataRes extends ResetAllDataRes_base {
|
|
185
|
-
}
|
|
186
|
-
declare const DevtoolsReadyBroadcast_base: Schema.TaggedStruct<"LSD.DevtoolsReadyBroadcast", {}>;
|
|
187
|
-
export declare class DevtoolsReadyBroadcast extends DevtoolsReadyBroadcast_base {
|
|
188
|
-
}
|
|
189
|
-
declare const AppHostReadyBroadcast_base: Schema.TaggedStruct<"LSD.AppHostReadyBroadcast", {
|
|
190
|
-
channelId: typeof Schema.String;
|
|
191
|
-
}>;
|
|
192
|
-
export declare class AppHostReadyBroadcast extends AppHostReadyBroadcast_base {
|
|
193
|
-
}
|
|
194
|
-
declare const Disconnect_base: Schema.TaggedStruct<"LSD.Disconnect", {
|
|
195
|
-
requestId: typeof Schema.String;
|
|
196
|
-
channelId: typeof Schema.String;
|
|
197
|
-
}>;
|
|
198
|
-
export declare class Disconnect extends Disconnect_base {
|
|
199
|
-
}
|
|
200
|
-
declare const SchemaChanged_base: Schema.TaggedStruct<"LSD.SchemaChanged", {
|
|
201
|
-
requestId: typeof Schema.String;
|
|
202
|
-
}>;
|
|
203
|
-
export declare class SchemaChanged extends SchemaChanged_base {
|
|
204
|
-
}
|
|
205
|
-
export declare const MessageToAppHost: Schema.Union<[typeof SnapshotReq, typeof MutationLogReq, typeof DebugInfoReq, typeof DebugInfoResetReq, typeof DebugInfoRerunQueryReq, typeof SignalsSubscribe, typeof SignalsUnsubscribe, typeof LiveQueriesSubscribe, typeof LiveQueriesUnsubscribe, typeof ResetAllDataReq, typeof DevtoolsReadyBroadcast, typeof Disconnect]>;
|
|
206
|
-
export type MessageToAppHost = typeof MessageToAppHost.Type;
|
|
207
|
-
export declare const MessageFromAppHost: Schema.Union<[typeof SnapshotRes, typeof MutationLogRes, typeof DebugInfoRes, typeof DebugInfoResetRes, typeof DebugInfoRerunQueryRes, typeof SignalsRes, typeof LiveQueriesRes, typeof ResetAllDataRes, typeof Disconnect, typeof SchemaChanged, typeof MutationBroadcast, typeof AppHostReadyBroadcast]>;
|
|
208
|
-
export type MessageFromAppHost = typeof MessageFromAppHost.Type;
|
|
209
|
-
export declare const makeBroadcastChannels: () => {
|
|
210
|
-
fromAppHost: BroadcastChannel;
|
|
211
|
-
toAppHost: BroadcastChannel;
|
|
212
|
-
};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