@rocicorp/zero 0.3.2024102800 → 0.5.2024103100
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/out/chunk-TBA526RR.js +16475 -0
- package/out/chunk-TBA526RR.js.map +7 -0
- package/out/chunk-ULOTOBTC.js +1 -0
- package/out/internal.js +1 -1
- package/out/react.js.map +2 -2
- package/out/shared/src/arrays.d.ts +6 -0
- package/out/shared/src/arrays.d.ts.map +1 -0
- package/out/shared/src/arrays.js +20 -0
- package/out/shared/src/arrays.js.map +1 -0
- package/out/shared/src/iterables.d.ts +1 -0
- package/out/shared/src/iterables.d.ts.map +1 -1
- package/out/shared/src/iterables.js +33 -0
- package/out/shared/src/iterables.js.map +1 -1
- package/out/solid.js +16 -1
- package/out/solid.js.map +3 -3
- package/out/zero/src/advanced.d.ts +2 -0
- package/out/zero/src/advanced.d.ts.map +1 -0
- package/out/{zero-internal → zero-advanced}/src/mod.d.ts +2 -1
- package/out/{zero-internal → zero-advanced}/src/mod.d.ts.map +1 -1
- package/out/zero-cache/src/config/config-query.d.ts +1 -0
- package/out/zero-cache/src/config/config-query.d.ts.map +1 -1
- package/out/zero-cache/src/config/config-query.js +3 -0
- package/out/zero-cache/src/config/config-query.js.map +1 -1
- package/out/zero-cache/src/config/zero-config.d.ts +114 -114
- package/out/zero-cache/src/db/statements.d.ts +1 -1
- package/out/zero-cache/src/server/life-cycle.d.ts +19 -4
- package/out/zero-cache/src/server/life-cycle.d.ts.map +1 -1
- package/out/zero-cache/src/server/life-cycle.js +105 -54
- package/out/zero-cache/src/server/life-cycle.js.map +1 -1
- package/out/zero-cache/src/server/logging.js +2 -2
- package/out/zero-cache/src/server/logging.js.map +1 -1
- package/out/zero-cache/src/server/main.js +9 -9
- package/out/zero-cache/src/server/main.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts +3 -9
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.js +12 -32
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/initial-sync.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/initial-sync.js +4 -4
- package/out/zero-cache/src/services/change-streamer/pg/initial-sync.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/ddl.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/ddl.js +2 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/ddl.js.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/shard.d.ts.map +1 -1
- package/out/zero-cache/src/services/change-streamer/pg/schema/shard.js +4 -3
- package/out/zero-cache/src/services/change-streamer/pg/schema/shard.js.map +1 -1
- package/out/zero-cache/src/services/dispatcher/connect-params.d.ts +2 -1
- package/out/zero-cache/src/services/dispatcher/connect-params.d.ts.map +1 -1
- package/out/zero-cache/src/services/dispatcher/connect-params.js +4 -4
- package/out/zero-cache/src/services/dispatcher/connect-params.js.map +1 -1
- package/out/zero-cache/src/services/dispatcher/dispatcher.d.ts +3 -8
- package/out/zero-cache/src/services/dispatcher/dispatcher.d.ts.map +1 -1
- package/out/zero-cache/src/services/dispatcher/dispatcher.js +8 -24
- package/out/zero-cache/src/services/dispatcher/dispatcher.js.map +1 -1
- package/out/zero-cache/src/services/http-service.d.ts +16 -0
- package/out/zero-cache/src/services/http-service.d.ts.map +1 -0
- package/out/zero-cache/src/services/http-service.js +39 -0
- package/out/zero-cache/src/services/http-service.js.map +1 -0
- package/out/zero-cache/src/services/replicator/incremental-sync.d.ts.map +1 -1
- package/out/zero-cache/src/services/replicator/incremental-sync.js +2 -2
- package/out/zero-cache/src/services/replicator/incremental-sync.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/cvr.d.ts.map +1 -1
- package/out/zero-cache/src/services/view-syncer/cvr.js +6 -8
- package/out/zero-cache/src/services/view-syncer/cvr.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/drain-coordinator.d.ts.map +1 -1
- package/out/zero-cache/src/services/view-syncer/drain-coordinator.js +6 -0
- package/out/zero-cache/src/services/view-syncer/drain-coordinator.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/schema/types.d.ts +15 -15
- package/out/zero-cache/src/services/view-syncer/snapshotter.d.ts.map +1 -1
- package/out/zero-cache/src/services/view-syncer/snapshotter.js +6 -6
- package/out/zero-cache/src/services/view-syncer/snapshotter.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/view-syncer.js +2 -2
- package/out/zero-cache/src/services/view-syncer/view-syncer.js.map +1 -1
- package/out/zero-cache/src/types/lite.d.ts.map +1 -1
- package/out/zero-cache/src/types/lite.js +5 -0
- package/out/zero-cache/src/types/lite.js.map +1 -1
- package/out/zero-cache/src/types/processes.d.ts +1 -0
- package/out/zero-cache/src/types/processes.d.ts.map +1 -1
- package/out/zero-cache/src/types/processes.js +3 -2
- package/out/zero-cache/src/types/processes.js.map +1 -1
- package/out/zero-cache/src/workers/replicator.d.ts +2 -2
- package/out/zero-cache/src/workers/replicator.d.ts.map +1 -1
- package/out/zero-cache/src/workers/replicator.js +5 -1
- package/out/zero-cache/src/workers/replicator.js.map +1 -1
- package/out/zero-cache/src/workers/syncer.d.ts.map +1 -1
- package/out/zero-cache/src/workers/syncer.js +3 -1
- package/out/zero-cache/src/workers/syncer.js.map +1 -1
- package/out/zero-client/src/client/context.d.ts +2 -1
- package/out/zero-client/src/client/context.d.ts.map +1 -1
- package/out/zero-client/src/client/context.js +53 -39
- package/out/zero-client/src/client/context.js.map +1 -1
- package/out/zero-client/src/client/options.d.ts +37 -0
- package/out/zero-client/src/client/options.d.ts.map +1 -1
- package/out/zero-client/src/client/zero.d.ts +1 -1
- package/out/zero-client/src/client/zero.d.ts.map +1 -1
- package/out/zero-client/src/client/zero.js +28 -10
- package/out/zero-client/src/client/zero.js.map +1 -1
- package/out/zero-client/src/mod.d.ts +1 -0
- package/out/zero-client/src/mod.d.ts.map +1 -1
- package/out/zero-client/src/mod.js +1 -0
- package/out/zero-client/src/mod.js.map +1 -1
- package/out/zero-protocol/src/ast.d.ts +18 -10
- package/out/zero-protocol/src/ast.d.ts.map +1 -1
- package/out/zero-protocol/src/ast.js +80 -12
- package/out/zero-protocol/src/ast.js.map +1 -1
- package/out/zero-protocol/src/change-desired-queries.d.ts +6 -6
- package/out/zero-protocol/src/connect.d.ts +11 -13
- package/out/zero-protocol/src/connect.d.ts.map +1 -1
- package/out/zero-protocol/src/connect.js +6 -16
- package/out/zero-protocol/src/connect.js.map +1 -1
- package/out/zero-protocol/src/data.d.ts +2 -2
- package/out/zero-protocol/src/data.d.ts.map +1 -1
- package/out/zero-protocol/src/data.js +2 -1
- package/out/zero-protocol/src/data.js.map +1 -1
- package/out/zero-protocol/src/down.d.ts +7 -7
- package/out/zero-protocol/src/poke.d.ts +14 -14
- package/out/zero-protocol/src/push.d.ts +21 -21
- package/out/zero-protocol/src/queries-patch.d.ts +9 -9
- package/out/zero-protocol/src/row-patch.d.ts +2 -2
- package/out/zero-protocol/src/up.d.ts +9 -9
- package/out/zero-react/src/use-query.d.ts.map +1 -1
- package/out/zero-solid/src/create-zero.d.ts +3 -0
- package/out/zero-solid/src/create-zero.d.ts.map +1 -0
- package/out/zero-solid/src/mod.d.ts +1 -0
- package/out/zero-solid/src/mod.d.ts.map +1 -1
- package/out/zero-solid/src/solid-view.d.ts +1 -1
- package/out/zero-solid/src/use-query.d.ts +1 -1
- package/out/zero.js +24 -16033
- package/out/zero.js.map +4 -4
- package/out/zql/src/zql/builder/builder.d.ts.map +1 -1
- package/out/zql/src/zql/builder/builder.js +49 -8
- package/out/zql/src/zql/builder/builder.js.map +1 -1
- package/out/zql/src/zql/builder/filter.d.ts +2 -2
- package/out/zql/src/zql/builder/filter.d.ts.map +1 -1
- package/out/zql/src/zql/builder/filter.js.map +1 -1
- package/out/zql/src/zql/builder/like.js +1 -1
- package/out/zql/src/zql/builder/like.js.map +1 -1
- package/out/zql/src/zql/ivm/fan-in.d.ts +31 -0
- package/out/zql/src/zql/ivm/fan-in.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/fan-in.js +61 -0
- package/out/zql/src/zql/ivm/fan-in.js.map +1 -0
- package/out/zql/src/zql/ivm/fan-out.d.ts +19 -0
- package/out/zql/src/zql/ivm/fan-out.d.ts.map +1 -0
- package/out/zql/src/zql/ivm/fan-out.js +54 -0
- package/out/zql/src/zql/ivm/fan-out.js.map +1 -0
- package/out/zql/src/zql/ivm/filter.d.ts +1 -2
- package/out/zql/src/zql/ivm/filter.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/filter.js +8 -5
- package/out/zql/src/zql/ivm/filter.js.map +1 -1
- package/out/zql/src/zql/ivm/memory-source.d.ts +22 -4
- package/out/zql/src/zql/ivm/memory-source.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/memory-source.js +48 -1
- package/out/zql/src/zql/ivm/memory-source.js.map +1 -1
- package/out/zql/src/zql/ivm/schema.d.ts +1 -1
- package/out/zql/src/zql/ivm/schema.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/source.d.ts +1 -1
- package/out/zql/src/zql/ivm/source.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/take.d.ts.map +1 -1
- package/out/zql/src/zql/ivm/take.js.map +1 -1
- package/out/zql/src/zql/query/expression.d.ts +25 -0
- package/out/zql/src/zql/query/expression.d.ts.map +1 -0
- package/out/zql/src/zql/query/expression.js +115 -0
- package/out/zql/src/zql/query/expression.js.map +1 -0
- package/out/zql/src/zql/query/query-impl.d.ts +7 -3
- package/out/zql/src/zql/query/query-impl.d.ts.map +1 -1
- package/out/zql/src/zql/query/query-impl.js +19 -16
- package/out/zql/src/zql/query/query-impl.js.map +1 -1
- package/out/zql/src/zql/query/query-internal.d.ts +1 -1
- package/out/zql/src/zql/query/query.d.ts +15 -4
- package/out/zql/src/zql/query/query.d.ts.map +1 -1
- package/out/zqlite/src/db.d.ts +1 -1
- package/out/zqlite/src/db.js +1 -1
- package/out/zqlite/src/table-source.d.ts +2 -2
- package/out/zqlite/src/table-source.d.ts.map +1 -1
- package/out/zqlite/src/table-source.js +48 -26
- package/out/zqlite/src/table-source.js.map +1 -1
- package/package.json +5 -5
- package/out/chunk-NKGIR6IA.js +0 -1
- package/out/zero/src/internal.d.ts +0 -2
- package/out/zero/src/internal.d.ts.map +0 -1
- /package/out/{chunk-NKGIR6IA.js.map → chunk-ULOTOBTC.js.map} +0 -0
|
@@ -11,7 +11,7 @@ declare const createOpSchema: v.ObjectType<{
|
|
|
11
11
|
op: v.Type<"create">;
|
|
12
12
|
tableName: v.Type<string>;
|
|
13
13
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
14
|
-
value: v.Type<Record<string,
|
|
14
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
15
15
|
}, undefined>;
|
|
16
16
|
/**
|
|
17
17
|
* Upsert semantics. Inserts if entity with id does not already exist,
|
|
@@ -21,7 +21,7 @@ declare const setOpSchema: v.ObjectType<{
|
|
|
21
21
|
op: v.Type<"set">;
|
|
22
22
|
tableName: v.Type<string>;
|
|
23
23
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
24
|
-
value: v.Type<Record<string,
|
|
24
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
25
25
|
}, undefined>;
|
|
26
26
|
/**
|
|
27
27
|
* Updates if entity with id exists, otherwise does nothing.
|
|
@@ -30,7 +30,7 @@ declare const updateOpSchema: v.ObjectType<{
|
|
|
30
30
|
op: v.Type<"update">;
|
|
31
31
|
tableName: v.Type<string>;
|
|
32
32
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
33
|
-
value: v.Type<Record<string,
|
|
33
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
34
34
|
}, undefined>;
|
|
35
35
|
/**
|
|
36
36
|
* Deletes entity with id if it exists, otherwise does nothing.
|
|
@@ -45,17 +45,17 @@ declare const crudOpSchema: v.UnionType<[v.ObjectType<{
|
|
|
45
45
|
op: v.Type<"create">;
|
|
46
46
|
tableName: v.Type<string>;
|
|
47
47
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
48
|
-
value: v.Type<Record<string,
|
|
48
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
49
49
|
}, undefined>, v.ObjectType<{
|
|
50
50
|
op: v.Type<"set">;
|
|
51
51
|
tableName: v.Type<string>;
|
|
52
52
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
53
|
-
value: v.Type<Record<string,
|
|
53
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
54
54
|
}, undefined>, v.ObjectType<{
|
|
55
55
|
op: v.Type<"update">;
|
|
56
56
|
tableName: v.Type<string>;
|
|
57
57
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
58
|
-
value: v.Type<Record<string,
|
|
58
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
59
59
|
}, undefined>, v.ObjectType<{
|
|
60
60
|
op: v.Type<"delete">;
|
|
61
61
|
tableName: v.Type<string>;
|
|
@@ -67,17 +67,17 @@ declare const crudArgSchema: v.ObjectType<{
|
|
|
67
67
|
op: v.Type<"create">;
|
|
68
68
|
tableName: v.Type<string>;
|
|
69
69
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
70
|
-
value: v.Type<Record<string,
|
|
70
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
71
71
|
}, undefined>, v.ObjectType<{
|
|
72
72
|
op: v.Type<"set">;
|
|
73
73
|
tableName: v.Type<string>;
|
|
74
74
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
75
|
-
value: v.Type<Record<string,
|
|
75
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
76
76
|
}, undefined>, v.ObjectType<{
|
|
77
77
|
op: v.Type<"update">;
|
|
78
78
|
tableName: v.Type<string>;
|
|
79
79
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
80
|
-
value: v.Type<Record<string,
|
|
80
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
81
81
|
}, undefined>, v.ObjectType<{
|
|
82
82
|
op: v.Type<"delete">;
|
|
83
83
|
tableName: v.Type<string>;
|
|
@@ -95,17 +95,17 @@ export declare const crudMutationSchema: v.ObjectType<{
|
|
|
95
95
|
op: v.Type<"create">;
|
|
96
96
|
tableName: v.Type<string>;
|
|
97
97
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
98
|
-
value: v.Type<Record<string,
|
|
98
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
99
99
|
}, undefined>, v.ObjectType<{
|
|
100
100
|
op: v.Type<"set">;
|
|
101
101
|
tableName: v.Type<string>;
|
|
102
102
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
103
|
-
value: v.Type<Record<string,
|
|
103
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
104
104
|
}, undefined>, v.ObjectType<{
|
|
105
105
|
op: v.Type<"update">;
|
|
106
106
|
tableName: v.Type<string>;
|
|
107
107
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
108
|
-
value: v.Type<Record<string,
|
|
108
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
109
109
|
}, undefined>, v.ObjectType<{
|
|
110
110
|
op: v.Type<"delete">;
|
|
111
111
|
tableName: v.Type<string>;
|
|
@@ -133,17 +133,17 @@ export declare const mutationSchema: v.UnionType<[v.ObjectType<{
|
|
|
133
133
|
op: v.Type<"create">;
|
|
134
134
|
tableName: v.Type<string>;
|
|
135
135
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
136
|
-
value: v.Type<Record<string,
|
|
136
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
137
137
|
}, undefined>, v.ObjectType<{
|
|
138
138
|
op: v.Type<"set">;
|
|
139
139
|
tableName: v.Type<string>;
|
|
140
140
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
141
|
-
value: v.Type<Record<string,
|
|
141
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
142
142
|
}, undefined>, v.ObjectType<{
|
|
143
143
|
op: v.Type<"update">;
|
|
144
144
|
tableName: v.Type<string>;
|
|
145
145
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
146
|
-
value: v.Type<Record<string,
|
|
146
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
147
147
|
}, undefined>, v.ObjectType<{
|
|
148
148
|
op: v.Type<"delete">;
|
|
149
149
|
tableName: v.Type<string>;
|
|
@@ -172,17 +172,17 @@ export declare const pushBodySchema: v.ObjectType<{
|
|
|
172
172
|
op: v.Type<"create">;
|
|
173
173
|
tableName: v.Type<string>;
|
|
174
174
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
175
|
-
value: v.Type<Record<string,
|
|
175
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
176
176
|
}, undefined>, v.ObjectType<{
|
|
177
177
|
op: v.Type<"set">;
|
|
178
178
|
tableName: v.Type<string>;
|
|
179
179
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
180
|
-
value: v.Type<Record<string,
|
|
180
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
181
181
|
}, undefined>, v.ObjectType<{
|
|
182
182
|
op: v.Type<"update">;
|
|
183
183
|
tableName: v.Type<string>;
|
|
184
184
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
185
|
-
value: v.Type<Record<string,
|
|
185
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
186
186
|
}, undefined>, v.ObjectType<{
|
|
187
187
|
op: v.Type<"delete">;
|
|
188
188
|
tableName: v.Type<string>;
|
|
@@ -216,17 +216,17 @@ export declare const pushMessageSchema: v.TupleType<[v.Type<"push">, v.ObjectTyp
|
|
|
216
216
|
op: v.Type<"create">;
|
|
217
217
|
tableName: v.Type<string>;
|
|
218
218
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
219
|
-
value: v.Type<Record<string,
|
|
219
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
220
220
|
}, undefined>, v.ObjectType<{
|
|
221
221
|
op: v.Type<"set">;
|
|
222
222
|
tableName: v.Type<string>;
|
|
223
223
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
224
|
-
value: v.Type<Record<string,
|
|
224
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
225
225
|
}, undefined>, v.ObjectType<{
|
|
226
226
|
op: v.Type<"update">;
|
|
227
227
|
tableName: v.Type<string>;
|
|
228
228
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
229
|
-
value: v.Type<Record<string,
|
|
229
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
230
230
|
}, undefined>, v.ObjectType<{
|
|
231
231
|
op: v.Type<"delete">;
|
|
232
232
|
tableName: v.Type<string>;
|
|
@@ -6,7 +6,7 @@ declare const putOpSchema: v.ObjectType<{
|
|
|
6
6
|
schema: v.Optional<string>;
|
|
7
7
|
table: v.Type<string>;
|
|
8
8
|
alias: v.Optional<string>;
|
|
9
|
-
where: v.Optional<
|
|
9
|
+
where: v.Optional<{
|
|
10
10
|
type: "simple";
|
|
11
11
|
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
12
12
|
field: string;
|
|
@@ -15,12 +15,12 @@ declare const putOpSchema: v.ObjectType<{
|
|
|
15
15
|
anchor: "authData" | "preMutationRow";
|
|
16
16
|
field: string;
|
|
17
17
|
};
|
|
18
|
-
}
|
|
18
|
+
} | import("./ast.js").Conjunction | import("./ast.js").Disjunction>;
|
|
19
19
|
related: v.Optional<readonly import("./ast.js").CorrelatedSubQuery[]>;
|
|
20
20
|
limit: v.Optional<number>;
|
|
21
21
|
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
22
22
|
start: v.Optional<{
|
|
23
|
-
row: Record<string,
|
|
23
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
24
24
|
exclusive: boolean;
|
|
25
25
|
}>;
|
|
26
26
|
}, undefined>;
|
|
@@ -39,7 +39,7 @@ declare const patchOpSchema: v.UnionType<[v.ObjectType<{
|
|
|
39
39
|
schema: v.Optional<string>;
|
|
40
40
|
table: v.Type<string>;
|
|
41
41
|
alias: v.Optional<string>;
|
|
42
|
-
where: v.Optional<
|
|
42
|
+
where: v.Optional<{
|
|
43
43
|
type: "simple";
|
|
44
44
|
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
45
45
|
field: string;
|
|
@@ -48,12 +48,12 @@ declare const patchOpSchema: v.UnionType<[v.ObjectType<{
|
|
|
48
48
|
anchor: "authData" | "preMutationRow";
|
|
49
49
|
field: string;
|
|
50
50
|
};
|
|
51
|
-
}
|
|
51
|
+
} | import("./ast.js").Conjunction | import("./ast.js").Disjunction>;
|
|
52
52
|
related: v.Optional<readonly import("./ast.js").CorrelatedSubQuery[]>;
|
|
53
53
|
limit: v.Optional<number>;
|
|
54
54
|
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
55
55
|
start: v.Optional<{
|
|
56
|
-
row: Record<string,
|
|
56
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
57
57
|
exclusive: boolean;
|
|
58
58
|
}>;
|
|
59
59
|
}, undefined>;
|
|
@@ -70,7 +70,7 @@ export declare const queriesPatchSchema: v.ArrayType<v.UnionType<[v.ObjectType<{
|
|
|
70
70
|
schema: v.Optional<string>;
|
|
71
71
|
table: v.Type<string>;
|
|
72
72
|
alias: v.Optional<string>;
|
|
73
|
-
where: v.Optional<
|
|
73
|
+
where: v.Optional<{
|
|
74
74
|
type: "simple";
|
|
75
75
|
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
76
76
|
field: string;
|
|
@@ -79,12 +79,12 @@ export declare const queriesPatchSchema: v.ArrayType<v.UnionType<[v.ObjectType<{
|
|
|
79
79
|
anchor: "authData" | "preMutationRow";
|
|
80
80
|
field: string;
|
|
81
81
|
};
|
|
82
|
-
}
|
|
82
|
+
} | import("./ast.js").Conjunction | import("./ast.js").Disjunction>;
|
|
83
83
|
related: v.Optional<readonly import("./ast.js").CorrelatedSubQuery[]>;
|
|
84
84
|
limit: v.Optional<number>;
|
|
85
85
|
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
86
86
|
start: v.Optional<{
|
|
87
|
-
row: Record<string,
|
|
87
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
88
88
|
exclusive: boolean;
|
|
89
89
|
}>;
|
|
90
90
|
}, undefined>;
|
|
@@ -2,7 +2,7 @@ import * as v from '../../shared/src/valita.js';
|
|
|
2
2
|
declare const rowPatchOpSchema: v.UnionType<[v.ObjectType<{
|
|
3
3
|
op: v.Type<"put">;
|
|
4
4
|
tableName: v.Type<string>;
|
|
5
|
-
value: v.Type<Record<string,
|
|
5
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
6
6
|
}, undefined>, v.ObjectType<{
|
|
7
7
|
op: v.Type<"update">;
|
|
8
8
|
tableName: v.Type<string>;
|
|
@@ -19,7 +19,7 @@ declare const rowPatchOpSchema: v.UnionType<[v.ObjectType<{
|
|
|
19
19
|
export declare const rowsPatchSchema: v.ArrayType<v.UnionType<[v.ObjectType<{
|
|
20
20
|
op: v.Type<"put">;
|
|
21
21
|
tableName: v.Type<string>;
|
|
22
|
-
value: v.Type<Record<string,
|
|
22
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
23
23
|
}, undefined>, v.ObjectType<{
|
|
24
24
|
op: v.Type<"update">;
|
|
25
25
|
tableName: v.Type<string>;
|
|
@@ -7,7 +7,7 @@ export declare const upstreamSchema: v.UnionType<[v.TupleType<[v.Type<"initConne
|
|
|
7
7
|
schema: v.Optional<string>;
|
|
8
8
|
table: v.Type<string>;
|
|
9
9
|
alias: v.Optional<string>;
|
|
10
|
-
where: v.Optional<
|
|
10
|
+
where: v.Optional<{
|
|
11
11
|
type: "simple";
|
|
12
12
|
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
13
13
|
field: string;
|
|
@@ -16,12 +16,12 @@ export declare const upstreamSchema: v.UnionType<[v.TupleType<[v.Type<"initConne
|
|
|
16
16
|
anchor: "authData" | "preMutationRow";
|
|
17
17
|
field: string;
|
|
18
18
|
};
|
|
19
|
-
}
|
|
19
|
+
} | import("./ast.js").Conjunction | import("./ast.js").Disjunction>;
|
|
20
20
|
related: v.Optional<readonly import("./ast.js").CorrelatedSubQuery[]>;
|
|
21
21
|
limit: v.Optional<number>;
|
|
22
22
|
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
23
23
|
start: v.Optional<{
|
|
24
|
-
row: Record<string,
|
|
24
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
25
25
|
exclusive: boolean;
|
|
26
26
|
}>;
|
|
27
27
|
}, undefined>;
|
|
@@ -41,7 +41,7 @@ export declare const upstreamSchema: v.UnionType<[v.TupleType<[v.Type<"initConne
|
|
|
41
41
|
schema: v.Optional<string>;
|
|
42
42
|
table: v.Type<string>;
|
|
43
43
|
alias: v.Optional<string>;
|
|
44
|
-
where: v.Optional<
|
|
44
|
+
where: v.Optional<{
|
|
45
45
|
type: "simple";
|
|
46
46
|
op: "=" | "!=" | "<" | ">" | "<=" | ">=" | "LIKE" | "NOT LIKE" | "ILIKE" | "NOT ILIKE" | "IN" | "NOT IN";
|
|
47
47
|
field: string;
|
|
@@ -50,12 +50,12 @@ export declare const upstreamSchema: v.UnionType<[v.TupleType<[v.Type<"initConne
|
|
|
50
50
|
anchor: "authData" | "preMutationRow";
|
|
51
51
|
field: string;
|
|
52
52
|
};
|
|
53
|
-
}
|
|
53
|
+
} | import("./ast.js").Conjunction | import("./ast.js").Disjunction>;
|
|
54
54
|
related: v.Optional<readonly import("./ast.js").CorrelatedSubQuery[]>;
|
|
55
55
|
limit: v.Optional<number>;
|
|
56
56
|
orderBy: v.Optional<readonly (readonly [string, "asc" | "desc"])[]>;
|
|
57
57
|
start: v.Optional<{
|
|
58
|
-
row: Record<string,
|
|
58
|
+
row: Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>;
|
|
59
59
|
exclusive: boolean;
|
|
60
60
|
}>;
|
|
61
61
|
}, undefined>;
|
|
@@ -81,17 +81,17 @@ export declare const upstreamSchema: v.UnionType<[v.TupleType<[v.Type<"initConne
|
|
|
81
81
|
op: v.Type<"create">;
|
|
82
82
|
tableName: v.Type<string>;
|
|
83
83
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
84
|
-
value: v.Type<Record<string,
|
|
84
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
85
85
|
}, undefined>, v.ObjectType<{
|
|
86
86
|
op: v.Type<"set">;
|
|
87
87
|
tableName: v.Type<string>;
|
|
88
88
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
89
|
-
value: v.Type<Record<string,
|
|
89
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
90
90
|
}, undefined>, v.ObjectType<{
|
|
91
91
|
op: v.Type<"update">;
|
|
92
92
|
tableName: v.Type<string>;
|
|
93
93
|
primaryKey: v.Type<readonly [string, ...string[]]>;
|
|
94
|
-
value: v.Type<Record<string,
|
|
94
|
+
value: v.Type<Record<string, import("../../shared/src/json.js").ReadonlyJSONValue | undefined>>;
|
|
95
95
|
}, undefined>, v.ObjectType<{
|
|
96
96
|
op: v.Type<"delete">;
|
|
97
97
|
tableName: v.Type<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-query.d.ts","sourceRoot":"","sources":["../../../../zero-react/src/use-query.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,KAAK,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"use-query.d.ts","sourceRoot":"","sources":["../../../../zero-react/src/use-query.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,KAAK,EACL,SAAS,EAET,KAAK,EACL,WAAW,EAEZ,MAAM,8BAA8B,CAAC;AAItC,wBAAgB,QAAQ,CACtB,OAAO,SAAS,WAAW,EAC3B,OAAO,SAAS,SAAS,EACzB,CAAC,EAAE,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAE,OAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CASpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-zero.d.ts","sourceRoot":"","sources":["../../../../zero-solid/src/create-zero.ts"],"names":[],"mappings":"AACA,OAAO,EACL,IAAI,EACJ,KAAK,MAAM,EACX,KAAK,WAAW,EACjB,MAAM,8BAA8B,CAAC;AAGtC,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAM7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../zero-solid/src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../zero-solid/src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Change, type Format, type Input, type Output, type Query, type QueryType, type Smash, type TableSchema, type View } from '../../zero-
|
|
1
|
+
import { type Change, type Format, type Input, type Output, type Query, type QueryType, type Smash, type TableSchema, type View } from '../../zero-advanced/src/mod.js';
|
|
2
2
|
export declare class SolidView<V extends View> implements Output {
|
|
3
3
|
#private;
|
|
4
4
|
constructor(input: Input, format?: Format, onDestroy?: () => void);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type Accessor } from 'solid-js';
|
|
2
|
-
import type { Query, QueryType, Smash, TableSchema } from '../../zero-
|
|
2
|
+
import type { Query, QueryType, Smash, TableSchema } from '../../zero-advanced/src/mod.js';
|
|
3
3
|
export declare function useQuery<TSchema extends TableSchema, TReturn extends QueryType>(querySignal: () => Query<TSchema, TReturn>): Accessor<Smash<TReturn>>;
|
|
4
4
|
//# sourceMappingURL=use-query.d.ts.map
|