@rocicorp/zero 0.25.0-canary.8 → 0.25.0-canary.9
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/shared/src/deep-merge.d.ts +20 -3
- package/out/shared/src/deep-merge.d.ts.map +1 -1
- package/out/shared/src/deep-merge.js +27 -0
- package/out/shared/src/deep-merge.js.map +1 -0
- package/out/shared/src/logging.d.ts.map +1 -1
- package/out/shared/src/logging.js +25 -9
- package/out/shared/src/logging.js.map +1 -1
- package/out/shared/src/object-traversal.d.ts +19 -0
- package/out/shared/src/object-traversal.d.ts.map +1 -0
- package/out/shared/src/object-traversal.js +27 -0
- package/out/shared/src/object-traversal.js.map +1 -0
- package/out/zero/package.json.js +1 -1
- package/out/zero/src/pg.js +0 -2
- package/out/zero/src/pg.js.map +1 -1
- package/out/zero/src/server.js +0 -2
- package/out/zero/src/server.js.map +1 -1
- package/out/zero/src/zero.js +19 -3
- package/out/zero/src/zero.js.map +1 -1
- package/out/zero-cache/src/auth/jwt.d.ts +3 -0
- package/out/zero-cache/src/auth/jwt.d.ts.map +1 -1
- package/out/zero-cache/src/auth/jwt.js.map +1 -1
- package/out/zero-cache/src/auth/write-authorizer.d.ts +2 -1
- package/out/zero-cache/src/auth/write-authorizer.d.ts.map +1 -1
- package/out/zero-cache/src/auth/write-authorizer.js +1 -11
- package/out/zero-cache/src/auth/write-authorizer.js.map +1 -1
- package/out/zero-cache/src/config/zero-config.d.ts +27 -0
- package/out/zero-cache/src/config/zero-config.d.ts.map +1 -1
- package/out/zero-cache/src/config/zero-config.js +35 -7
- package/out/zero-cache/src/config/zero-config.js.map +1 -1
- package/out/zero-cache/src/custom/fetch.d.ts +5 -5
- package/out/zero-cache/src/custom/fetch.d.ts.map +1 -1
- package/out/zero-cache/src/custom/fetch.js +14 -11
- package/out/zero-cache/src/custom/fetch.js.map +1 -1
- package/out/zero-cache/src/custom-queries/transform-query.d.ts.map +1 -1
- package/out/zero-cache/src/custom-queries/transform-query.js +2 -4
- package/out/zero-cache/src/custom-queries/transform-query.js.map +1 -1
- package/out/zero-cache/src/db/specs.d.ts +1 -1
- package/out/zero-cache/src/server/change-streamer.d.ts.map +1 -1
- package/out/zero-cache/src/server/change-streamer.js +9 -9
- package/out/zero-cache/src/server/change-streamer.js.map +1 -1
- package/out/zero-cache/src/server/syncer.d.ts.map +1 -1
- package/out/zero-cache/src/server/syncer.js +20 -8
- package/out/zero-cache/src/server/syncer.js.map +1 -1
- package/out/zero-cache/src/services/analyze.d.ts +1 -1
- package/out/zero-cache/src/services/analyze.d.ts.map +1 -1
- package/out/zero-cache/src/services/analyze.js +10 -1
- package/out/zero-cache/src/services/analyze.js.map +1 -1
- package/out/zero-cache/src/services/change-source/pg/schema/ddl.d.ts +5 -5
- package/out/zero-cache/src/services/change-source/pg/schema/published.d.ts +2 -2
- package/out/zero-cache/src/services/change-source/pg/schema/shard.d.ts +1 -1
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts +11 -2
- 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 +36 -0
- package/out/zero-cache/src/services/change-streamer/change-streamer-http.js.map +1 -1
- package/out/zero-cache/src/services/http-service.d.ts +5 -4
- package/out/zero-cache/src/services/http-service.d.ts.map +1 -1
- package/out/zero-cache/src/services/http-service.js +15 -10
- package/out/zero-cache/src/services/http-service.js.map +1 -1
- package/out/zero-cache/src/services/mutagen/mutagen.d.ts +2 -1
- package/out/zero-cache/src/services/mutagen/mutagen.d.ts.map +1 -1
- package/out/zero-cache/src/services/mutagen/mutagen.js +3 -2
- package/out/zero-cache/src/services/mutagen/mutagen.js.map +1 -1
- package/out/zero-cache/src/services/mutagen/pusher.d.ts +198 -0
- package/out/zero-cache/src/services/mutagen/pusher.d.ts.map +1 -1
- package/out/zero-cache/src/services/mutagen/pusher.js +5 -5
- package/out/zero-cache/src/services/mutagen/pusher.js.map +1 -1
- package/out/zero-cache/src/services/run-ast.d.ts +4 -0
- package/out/zero-cache/src/services/run-ast.d.ts.map +1 -1
- package/out/zero-cache/src/services/run-ast.js +8 -1
- package/out/zero-cache/src/services/run-ast.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/inspect-handler.d.ts.map +1 -1
- package/out/zero-cache/src/services/view-syncer/inspect-handler.js +2 -1
- package/out/zero-cache/src/services/view-syncer/inspect-handler.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/pipeline-driver.d.ts.map +1 -1
- package/out/zero-cache/src/services/view-syncer/pipeline-driver.js +15 -8
- package/out/zero-cache/src/services/view-syncer/pipeline-driver.js.map +1 -1
- package/out/zero-cache/src/services/view-syncer/schema/types.d.ts +4 -4
- package/out/zero-cache/src/services/view-syncer/view-syncer.d.ts.map +1 -1
- package/out/zero-cache/src/services/view-syncer/view-syncer.js +48 -25
- package/out/zero-cache/src/services/view-syncer/view-syncer.js.map +1 -1
- package/out/zero-cache/src/workers/connection.js +20 -15
- package/out/zero-cache/src/workers/connection.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 -3
- package/out/zero-cache/src/workers/syncer.js.map +1 -1
- package/out/zero-client/src/client/bindings.d.ts +4 -4
- package/out/zero-client/src/client/bindings.d.ts.map +1 -1
- package/out/zero-client/src/client/bindings.js.map +1 -1
- package/out/zero-client/src/client/connection.d.ts +1 -1
- package/out/zero-client/src/client/connection.d.ts.map +1 -1
- package/out/zero-client/src/client/connection.js +1 -1
- package/out/zero-client/src/client/connection.js.map +1 -1
- package/out/zero-client/src/client/crud.d.ts +7 -5
- package/out/zero-client/src/client/crud.d.ts.map +1 -1
- package/out/zero-client/src/client/crud.js +7 -7
- package/out/zero-client/src/client/crud.js.map +1 -1
- package/out/zero-client/src/client/custom.d.ts +7 -5
- package/out/zero-client/src/client/custom.d.ts.map +1 -1
- package/out/zero-client/src/client/custom.js +12 -7
- package/out/zero-client/src/client/custom.js.map +1 -1
- package/out/zero-client/src/client/inspector/inspector.d.ts +5 -1
- package/out/zero-client/src/client/inspector/inspector.d.ts.map +1 -1
- package/out/zero-client/src/client/inspector/inspector.js +7 -0
- package/out/zero-client/src/client/inspector/inspector.js.map +1 -1
- package/out/zero-client/src/client/inspector/lazy-inspector.d.ts.map +1 -1
- package/out/zero-client/src/client/inspector/lazy-inspector.js +13 -13
- package/out/zero-client/src/client/inspector/lazy-inspector.js.map +1 -1
- package/out/zero-client/src/client/make-mutate-property.d.ts +43 -0
- package/out/zero-client/src/client/make-mutate-property.d.ts.map +1 -0
- package/out/zero-client/src/client/make-mutate-property.js +38 -0
- package/out/zero-client/src/client/make-mutate-property.js.map +1 -0
- package/out/zero-client/src/client/make-replicache-mutators.d.ts +34 -0
- package/out/zero-client/src/client/make-replicache-mutators.d.ts.map +1 -0
- package/out/zero-client/src/client/make-replicache-mutators.js +103 -0
- package/out/zero-client/src/client/make-replicache-mutators.js.map +1 -0
- package/out/zero-client/src/client/options.d.ts +39 -27
- package/out/zero-client/src/client/options.d.ts.map +1 -1
- package/out/zero-client/src/client/options.js.map +1 -1
- package/out/zero-client/src/client/version.js +1 -1
- package/out/zero-client/src/client/zero.d.ts +23 -33
- package/out/zero-client/src/client/zero.d.ts.map +1 -1
- package/out/zero-client/src/client/zero.js +52 -118
- package/out/zero-client/src/client/zero.js.map +1 -1
- package/out/zero-client/src/mod.d.ts +12 -7
- package/out/zero-client/src/mod.d.ts.map +1 -1
- package/out/zero-protocol/src/analyze-query-result.d.ts +236 -0
- package/out/zero-protocol/src/analyze-query-result.d.ts.map +1 -1
- package/out/zero-protocol/src/analyze-query-result.js +128 -2
- package/out/zero-protocol/src/analyze-query-result.js.map +1 -1
- package/out/zero-protocol/src/ast.d.ts +1 -1
- package/out/zero-protocol/src/connect.d.ts.map +1 -1
- package/out/zero-protocol/src/connect.js +4 -0
- package/out/zero-protocol/src/connect.js.map +1 -1
- package/out/zero-protocol/src/custom-queries.d.ts +1 -1
- package/out/zero-protocol/src/down.d.ts +99 -0
- package/out/zero-protocol/src/down.d.ts.map +1 -1
- package/out/zero-protocol/src/error.d.ts +4 -4
- package/out/zero-protocol/src/inspect-down.d.ts +297 -0
- package/out/zero-protocol/src/inspect-down.d.ts.map +1 -1
- package/out/zero-protocol/src/inspect-up.d.ts +4 -0
- package/out/zero-protocol/src/inspect-up.d.ts.map +1 -1
- package/out/zero-protocol/src/inspect-up.js +2 -1
- package/out/zero-protocol/src/inspect-up.js.map +1 -1
- package/out/zero-protocol/src/protocol-version.d.ts +1 -1
- package/out/zero-protocol/src/protocol-version.d.ts.map +1 -1
- package/out/zero-protocol/src/protocol-version.js +1 -1
- package/out/zero-protocol/src/protocol-version.js.map +1 -1
- package/out/zero-protocol/src/push.d.ts +1 -1
- package/out/zero-protocol/src/up.d.ts +1 -0
- package/out/zero-protocol/src/up.d.ts.map +1 -1
- package/out/zero-react/src/components/inspector.d.ts +3 -2
- package/out/zero-react/src/components/inspector.d.ts.map +1 -1
- package/out/zero-react/src/components/inspector.js.map +1 -1
- package/out/zero-react/src/components/zero-inspector.d.ts +3 -2
- package/out/zero-react/src/components/zero-inspector.d.ts.map +1 -1
- package/out/zero-react/src/components/zero-inspector.js.map +1 -1
- package/out/zero-react/src/use-query.d.ts +5 -4
- package/out/zero-react/src/use-query.d.ts.map +1 -1
- package/out/zero-react/src/use-query.js +4 -3
- package/out/zero-react/src/use-query.js.map +1 -1
- package/out/zero-react/src/zero-provider.d.ts +7 -7
- package/out/zero-react/src/zero-provider.d.ts.map +1 -1
- package/out/zero-react/src/zero-provider.js.map +1 -1
- package/out/zero-schema/src/builder/schema-builder.js +1 -1
- package/out/zero-schema/src/builder/schema-builder.js.map +1 -1
- package/out/zero-server/src/custom.d.ts +4 -5
- package/out/zero-server/src/custom.d.ts.map +1 -1
- package/out/zero-server/src/custom.js.map +1 -1
- package/out/zero-server/src/mod.d.ts +0 -1
- package/out/zero-server/src/mod.d.ts.map +1 -1
- package/out/zero-server/src/process-mutations.d.ts +9 -14
- package/out/zero-server/src/process-mutations.d.ts.map +1 -1
- package/out/zero-server/src/process-mutations.js +151 -105
- package/out/zero-server/src/process-mutations.js.map +1 -1
- package/out/zero-server/src/push-processor.d.ts +5 -3
- package/out/zero-server/src/push-processor.d.ts.map +1 -1
- package/out/zero-server/src/push-processor.js +17 -25
- package/out/zero-server/src/push-processor.js.map +1 -1
- package/out/zero-server/src/queries/process-queries.js +1 -1
- package/out/zero-server/src/queries/process-queries.js.map +1 -1
- package/out/zero-server/src/zql-database.d.ts.map +1 -1
- package/out/zero-server/src/zql-database.js +1 -1
- package/out/zero-server/src/zql-database.js.map +1 -1
- package/out/zero-solid/src/use-query.d.ts +3 -3
- package/out/zero-solid/src/use-query.d.ts.map +1 -1
- package/out/zero-solid/src/use-query.js +27 -38
- package/out/zero-solid/src/use-query.js.map +1 -1
- package/out/zero-solid/src/use-zero-connection-state.d.ts.map +1 -1
- package/out/zero-solid/src/use-zero-connection-state.js +7 -5
- package/out/zero-solid/src/use-zero-connection-state.js.map +1 -1
- package/out/zero-solid/src/use-zero-online.d.ts.map +1 -1
- package/out/zero-solid/src/use-zero-online.js +7 -5
- package/out/zero-solid/src/use-zero-online.js.map +1 -1
- package/out/zero-solid/src/use-zero.d.ts +6 -5
- package/out/zero-solid/src/use-zero.d.ts.map +1 -1
- package/out/zero-solid/src/use-zero.js +2 -6
- package/out/zero-solid/src/use-zero.js.map +1 -1
- package/out/zql/src/builder/builder.d.ts +2 -1
- package/out/zql/src/builder/builder.d.ts.map +1 -1
- package/out/zql/src/builder/builder.js +4 -3
- package/out/zql/src/builder/builder.js.map +1 -1
- package/out/zql/src/mutate/custom.d.ts +15 -6
- package/out/zql/src/mutate/custom.d.ts.map +1 -1
- package/out/zql/src/mutate/custom.js +6 -6
- package/out/zql/src/mutate/custom.js.map +1 -1
- package/out/zql/src/mutate/mutator-registry.d.ts +142 -0
- package/out/zql/src/mutate/mutator-registry.d.ts.map +1 -0
- package/out/zql/src/mutate/mutator-registry.js +97 -0
- package/out/zql/src/mutate/mutator-registry.js.map +1 -0
- package/out/zql/src/mutate/mutator.d.ts +98 -0
- package/out/zql/src/mutate/mutator.d.ts.map +1 -0
- package/out/zql/src/mutate/mutator.js +35 -0
- package/out/zql/src/mutate/mutator.js.map +1 -0
- package/out/zql/src/planner/planner-connection.d.ts +7 -15
- package/out/zql/src/planner/planner-connection.d.ts.map +1 -1
- package/out/zql/src/planner/planner-connection.js +30 -24
- package/out/zql/src/planner/planner-connection.js.map +1 -1
- package/out/zql/src/planner/planner-debug.d.ts +37 -43
- package/out/zql/src/planner/planner-debug.d.ts.map +1 -1
- package/out/zql/src/planner/planner-debug.js +242 -0
- package/out/zql/src/planner/planner-debug.js.map +1 -0
- package/out/zql/src/planner/planner-fan-in.d.ts.map +1 -1
- package/out/zql/src/planner/planner-fan-in.js +11 -8
- package/out/zql/src/planner/planner-fan-in.js.map +1 -1
- package/out/zql/src/planner/planner-fan-out.d.ts.map +1 -1
- package/out/zql/src/planner/planner-fan-out.js +11 -8
- package/out/zql/src/planner/planner-fan-out.js.map +1 -1
- package/out/zql/src/planner/planner-graph.d.ts.map +1 -1
- package/out/zql/src/planner/planner-graph.js +13 -5
- package/out/zql/src/planner/planner-graph.js.map +1 -1
- package/out/zql/src/planner/planner-join.d.ts.map +1 -1
- package/out/zql/src/planner/planner-join.js +12 -9
- package/out/zql/src/planner/planner-join.js.map +1 -1
- package/out/zql/src/planner/planner-node.d.ts +4 -0
- package/out/zql/src/planner/planner-node.d.ts.map +1 -1
- package/out/zql/src/planner/planner-node.js +8 -0
- package/out/zql/src/planner/planner-node.js.map +1 -0
- package/out/zql/src/query/create-builder.d.ts +7 -0
- package/out/zql/src/query/create-builder.d.ts.map +1 -0
- package/out/zql/src/query/create-builder.js +44 -0
- package/out/zql/src/query/create-builder.js.map +1 -0
- package/out/zql/src/query/named.d.ts +1 -7
- package/out/zql/src/query/named.d.ts.map +1 -1
- package/out/zql/src/query/named.js +0 -21
- package/out/zql/src/query/named.js.map +1 -1
- package/out/zql/src/query/query-impl.d.ts +4 -3
- package/out/zql/src/query/query-impl.d.ts.map +1 -1
- package/out/zql/src/query/query-impl.js +3 -0
- package/out/zql/src/query/query-impl.js.map +1 -1
- package/out/zql/src/query/query-internals.js +0 -4
- package/out/zql/src/query/query-internals.js.map +1 -1
- package/out/zql/src/query/query-registry.d.ts +253 -0
- package/out/zql/src/query/query-registry.d.ts.map +1 -0
- package/out/zql/src/query/query-registry.js +131 -0
- package/out/zql/src/query/query-registry.js.map +1 -0
- package/out/zql/src/query/query.d.ts +16 -1
- package/out/zql/src/query/query.d.ts.map +1 -1
- package/out/zql/src/query/schema-query.d.ts +6 -0
- package/out/zql/src/query/schema-query.d.ts.map +1 -0
- package/out/zql/src/query/validate-input.js +12 -13
- package/out/zql/src/query/validate-input.js.map +1 -1
- package/package.json +2 -1
- package/out/zero-server/src/query-registry.d.ts +0 -10
- package/out/zero-server/src/query-registry.d.ts.map +0 -1
- package/out/zero-server/src/query-registry.js +0 -35
- package/out/zero-server/src/query-registry.js.map +0 -1
- package/out/zql/src/query/define-query.d.ts +0 -75
- package/out/zql/src/query/define-query.d.ts.map +0 -1
- package/out/zql/src/query/define-query.js +0 -47
- package/out/zql/src/query/define-query.js.map +0 -1
- package/out/zql/src/query/query-definitions.d.ts +0 -32
- package/out/zql/src/query/query-definitions.d.ts.map +0 -1
|
@@ -187,6 +187,105 @@ export declare const downstreamSchema: v.UnionType<[v.TupleType<[v.Type<"connect
|
|
|
187
187
|
readRowCountsByQuery: v.Optional<Record<string, Record<string, number>>>;
|
|
188
188
|
readRowCount: v.Optional<number>;
|
|
189
189
|
dbScansByQuery: v.Optional<Record<string, Record<string, number>>>;
|
|
190
|
+
plannerEvents: v.Optional<({
|
|
191
|
+
type: "attempt-start";
|
|
192
|
+
attemptNumber: number;
|
|
193
|
+
totalAttempts: number;
|
|
194
|
+
} | {
|
|
195
|
+
type: "connection-costs";
|
|
196
|
+
attemptNumber: number;
|
|
197
|
+
costs: {
|
|
198
|
+
connection: string;
|
|
199
|
+
cost: number;
|
|
200
|
+
costEstimate: {
|
|
201
|
+
limit?: number | undefined;
|
|
202
|
+
startupCost: number;
|
|
203
|
+
scanEst: number;
|
|
204
|
+
cost: number;
|
|
205
|
+
returnedRows: number;
|
|
206
|
+
selectivity: number;
|
|
207
|
+
};
|
|
208
|
+
pinned: boolean;
|
|
209
|
+
constraints: Record<string, Record<string, unknown> | null>;
|
|
210
|
+
constraintCosts: Record<string, {
|
|
211
|
+
limit?: number | undefined;
|
|
212
|
+
startupCost: number;
|
|
213
|
+
scanEst: number;
|
|
214
|
+
cost: number;
|
|
215
|
+
returnedRows: number;
|
|
216
|
+
selectivity: number;
|
|
217
|
+
}>;
|
|
218
|
+
}[];
|
|
219
|
+
} | {
|
|
220
|
+
type: "connection-selected";
|
|
221
|
+
attemptNumber: number;
|
|
222
|
+
connection: string;
|
|
223
|
+
cost: number;
|
|
224
|
+
isRoot: boolean;
|
|
225
|
+
} | {
|
|
226
|
+
type: "constraints-propagated";
|
|
227
|
+
attemptNumber: number;
|
|
228
|
+
connectionConstraints: {
|
|
229
|
+
connection: string;
|
|
230
|
+
constraints: Record<string, Record<string, unknown> | null>;
|
|
231
|
+
constraintCosts: Record<string, {
|
|
232
|
+
limit?: number | undefined;
|
|
233
|
+
startupCost: number;
|
|
234
|
+
scanEst: number;
|
|
235
|
+
cost: number;
|
|
236
|
+
returnedRows: number;
|
|
237
|
+
selectivity: number;
|
|
238
|
+
}>;
|
|
239
|
+
}[];
|
|
240
|
+
} | {
|
|
241
|
+
type: "plan-complete";
|
|
242
|
+
attemptNumber: number;
|
|
243
|
+
totalCost: number;
|
|
244
|
+
flipPattern: number;
|
|
245
|
+
joinStates: {
|
|
246
|
+
join: string;
|
|
247
|
+
type: "semi" | "flipped" | "unflippable";
|
|
248
|
+
}[];
|
|
249
|
+
} | {
|
|
250
|
+
type: "plan-failed";
|
|
251
|
+
attemptNumber: number;
|
|
252
|
+
reason: string;
|
|
253
|
+
} | {
|
|
254
|
+
type: "best-plan-selected";
|
|
255
|
+
bestAttemptNumber: number;
|
|
256
|
+
totalCost: number;
|
|
257
|
+
flipPattern: number;
|
|
258
|
+
joinStates: {
|
|
259
|
+
join: string;
|
|
260
|
+
type: "semi" | "flipped" | "unflippable";
|
|
261
|
+
}[];
|
|
262
|
+
} | {
|
|
263
|
+
attemptNumber?: number | undefined;
|
|
264
|
+
filters?: import("./ast.ts").Condition | undefined;
|
|
265
|
+
ordering?: readonly (readonly [string, "desc" | "asc"])[] | undefined;
|
|
266
|
+
joinType?: "semi" | "flipped" | "unflippable" | undefined;
|
|
267
|
+
type: "node-cost";
|
|
268
|
+
nodeType: "join" | "connection" | "fan-out" | "fan-in" | "terminus";
|
|
269
|
+
node: string;
|
|
270
|
+
branchPattern: number[];
|
|
271
|
+
downstreamChildSelectivity: number;
|
|
272
|
+
costEstimate: {
|
|
273
|
+
limit?: number | undefined;
|
|
274
|
+
startupCost: number;
|
|
275
|
+
scanEst: number;
|
|
276
|
+
cost: number;
|
|
277
|
+
returnedRows: number;
|
|
278
|
+
selectivity: number;
|
|
279
|
+
};
|
|
280
|
+
} | {
|
|
281
|
+
attemptNumber?: number | undefined;
|
|
282
|
+
constraint?: Record<string, unknown> | null | undefined;
|
|
283
|
+
type: "node-constraint";
|
|
284
|
+
nodeType: "join" | "connection" | "fan-out" | "fan-in" | "terminus";
|
|
285
|
+
node: string;
|
|
286
|
+
branchPattern: number[];
|
|
287
|
+
from: string;
|
|
288
|
+
})[]>;
|
|
190
289
|
}, undefined>;
|
|
191
290
|
}, undefined>, v.ObjectType<Omit<{
|
|
192
291
|
id: v.Type<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"down.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/down.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAehD,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"down.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/down.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAehD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAY5B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -36,7 +36,7 @@ export declare const pushFailedBodySchema: v.UnionType<[v.ObjectType<Omit<{
|
|
|
36
36
|
clientID: v.Type<string>;
|
|
37
37
|
}, undefined>>;
|
|
38
38
|
message: v.Type<string>;
|
|
39
|
-
}, "
|
|
39
|
+
}, "reason" | "status" | "origin" | "bodyPreview"> & {
|
|
40
40
|
origin: v.Type<"zeroCache">;
|
|
41
41
|
reason: v.Type<"http">;
|
|
42
42
|
status: v.Type<number>;
|
|
@@ -76,7 +76,7 @@ export declare const transformFailedBodySchema: v.UnionType<[v.ObjectType<Omit<{
|
|
|
76
76
|
*/
|
|
77
77
|
queryIDs: v.ArrayType<v.Type<string>>;
|
|
78
78
|
message: v.Type<string>;
|
|
79
|
-
}, "
|
|
79
|
+
}, "reason" | "status" | "origin" | "bodyPreview"> & {
|
|
80
80
|
origin: v.Type<"zeroCache">;
|
|
81
81
|
reason: v.Type<"http">;
|
|
82
82
|
status: v.Type<number>;
|
|
@@ -131,7 +131,7 @@ export declare const errorBodySchema: v.UnionType<[v.ObjectType<{
|
|
|
131
131
|
clientID: v.Type<string>;
|
|
132
132
|
}, undefined>>;
|
|
133
133
|
message: v.Type<string>;
|
|
134
|
-
}, "
|
|
134
|
+
}, "reason" | "status" | "origin" | "bodyPreview"> & {
|
|
135
135
|
origin: v.Type<"zeroCache">;
|
|
136
136
|
reason: v.Type<"http">;
|
|
137
137
|
status: v.Type<number>;
|
|
@@ -170,7 +170,7 @@ export declare const errorBodySchema: v.UnionType<[v.ObjectType<{
|
|
|
170
170
|
*/
|
|
171
171
|
queryIDs: v.ArrayType<v.Type<string>>;
|
|
172
172
|
message: v.Type<string>;
|
|
173
|
-
}, "
|
|
173
|
+
}, "reason" | "status" | "origin" | "bodyPreview"> & {
|
|
174
174
|
origin: v.Type<"zeroCache">;
|
|
175
175
|
reason: v.Type<"http">;
|
|
176
176
|
status: v.Type<number>;
|
|
@@ -85,6 +85,105 @@ export declare const inspectAnalyzeQueryDownSchema: v.ObjectType<Omit<{
|
|
|
85
85
|
readRowCountsByQuery: v.Optional<Record<string, Record<string, number>>>;
|
|
86
86
|
readRowCount: v.Optional<number>;
|
|
87
87
|
dbScansByQuery: v.Optional<Record<string, Record<string, number>>>;
|
|
88
|
+
plannerEvents: v.Optional<({
|
|
89
|
+
type: "attempt-start";
|
|
90
|
+
attemptNumber: number;
|
|
91
|
+
totalAttempts: number;
|
|
92
|
+
} | {
|
|
93
|
+
type: "connection-costs";
|
|
94
|
+
attemptNumber: number;
|
|
95
|
+
costs: {
|
|
96
|
+
connection: string;
|
|
97
|
+
cost: number;
|
|
98
|
+
costEstimate: {
|
|
99
|
+
limit?: number | undefined;
|
|
100
|
+
startupCost: number;
|
|
101
|
+
scanEst: number;
|
|
102
|
+
cost: number;
|
|
103
|
+
returnedRows: number;
|
|
104
|
+
selectivity: number;
|
|
105
|
+
};
|
|
106
|
+
pinned: boolean;
|
|
107
|
+
constraints: Record<string, Record<string, unknown> | null>;
|
|
108
|
+
constraintCosts: Record<string, {
|
|
109
|
+
limit?: number | undefined;
|
|
110
|
+
startupCost: number;
|
|
111
|
+
scanEst: number;
|
|
112
|
+
cost: number;
|
|
113
|
+
returnedRows: number;
|
|
114
|
+
selectivity: number;
|
|
115
|
+
}>;
|
|
116
|
+
}[];
|
|
117
|
+
} | {
|
|
118
|
+
type: "connection-selected";
|
|
119
|
+
attemptNumber: number;
|
|
120
|
+
connection: string;
|
|
121
|
+
cost: number;
|
|
122
|
+
isRoot: boolean;
|
|
123
|
+
} | {
|
|
124
|
+
type: "constraints-propagated";
|
|
125
|
+
attemptNumber: number;
|
|
126
|
+
connectionConstraints: {
|
|
127
|
+
connection: string;
|
|
128
|
+
constraints: Record<string, Record<string, unknown> | null>;
|
|
129
|
+
constraintCosts: Record<string, {
|
|
130
|
+
limit?: number | undefined;
|
|
131
|
+
startupCost: number;
|
|
132
|
+
scanEst: number;
|
|
133
|
+
cost: number;
|
|
134
|
+
returnedRows: number;
|
|
135
|
+
selectivity: number;
|
|
136
|
+
}>;
|
|
137
|
+
}[];
|
|
138
|
+
} | {
|
|
139
|
+
type: "plan-complete";
|
|
140
|
+
attemptNumber: number;
|
|
141
|
+
totalCost: number;
|
|
142
|
+
flipPattern: number;
|
|
143
|
+
joinStates: {
|
|
144
|
+
join: string;
|
|
145
|
+
type: "semi" | "flipped" | "unflippable";
|
|
146
|
+
}[];
|
|
147
|
+
} | {
|
|
148
|
+
type: "plan-failed";
|
|
149
|
+
attemptNumber: number;
|
|
150
|
+
reason: string;
|
|
151
|
+
} | {
|
|
152
|
+
type: "best-plan-selected";
|
|
153
|
+
bestAttemptNumber: number;
|
|
154
|
+
totalCost: number;
|
|
155
|
+
flipPattern: number;
|
|
156
|
+
joinStates: {
|
|
157
|
+
join: string;
|
|
158
|
+
type: "semi" | "flipped" | "unflippable";
|
|
159
|
+
}[];
|
|
160
|
+
} | {
|
|
161
|
+
attemptNumber?: number | undefined;
|
|
162
|
+
filters?: import("./ast.ts").Condition | undefined;
|
|
163
|
+
ordering?: readonly (readonly [string, "desc" | "asc"])[] | undefined;
|
|
164
|
+
joinType?: "semi" | "flipped" | "unflippable" | undefined;
|
|
165
|
+
type: "node-cost";
|
|
166
|
+
nodeType: "join" | "connection" | "fan-out" | "fan-in" | "terminus";
|
|
167
|
+
node: string;
|
|
168
|
+
branchPattern: number[];
|
|
169
|
+
downstreamChildSelectivity: number;
|
|
170
|
+
costEstimate: {
|
|
171
|
+
limit?: number | undefined;
|
|
172
|
+
startupCost: number;
|
|
173
|
+
scanEst: number;
|
|
174
|
+
cost: number;
|
|
175
|
+
returnedRows: number;
|
|
176
|
+
selectivity: number;
|
|
177
|
+
};
|
|
178
|
+
} | {
|
|
179
|
+
attemptNumber?: number | undefined;
|
|
180
|
+
constraint?: Record<string, unknown> | null | undefined;
|
|
181
|
+
type: "node-constraint";
|
|
182
|
+
nodeType: "join" | "connection" | "fan-out" | "fan-in" | "terminus";
|
|
183
|
+
node: string;
|
|
184
|
+
branchPattern: number[];
|
|
185
|
+
from: string;
|
|
186
|
+
})[]>;
|
|
88
187
|
}, undefined>;
|
|
89
188
|
}, undefined>;
|
|
90
189
|
export type InspectAnalyzeQueryDown = v.Infer<typeof inspectAnalyzeQueryDownSchema>;
|
|
@@ -152,6 +251,105 @@ export declare const inspectDownBodySchema: v.UnionType<[v.ObjectType<Omit<{
|
|
|
152
251
|
readRowCountsByQuery: v.Optional<Record<string, Record<string, number>>>;
|
|
153
252
|
readRowCount: v.Optional<number>;
|
|
154
253
|
dbScansByQuery: v.Optional<Record<string, Record<string, number>>>;
|
|
254
|
+
plannerEvents: v.Optional<({
|
|
255
|
+
type: "attempt-start";
|
|
256
|
+
attemptNumber: number;
|
|
257
|
+
totalAttempts: number;
|
|
258
|
+
} | {
|
|
259
|
+
type: "connection-costs";
|
|
260
|
+
attemptNumber: number;
|
|
261
|
+
costs: {
|
|
262
|
+
connection: string;
|
|
263
|
+
cost: number;
|
|
264
|
+
costEstimate: {
|
|
265
|
+
limit?: number | undefined;
|
|
266
|
+
startupCost: number;
|
|
267
|
+
scanEst: number;
|
|
268
|
+
cost: number;
|
|
269
|
+
returnedRows: number;
|
|
270
|
+
selectivity: number;
|
|
271
|
+
};
|
|
272
|
+
pinned: boolean;
|
|
273
|
+
constraints: Record<string, Record<string, unknown> | null>;
|
|
274
|
+
constraintCosts: Record<string, {
|
|
275
|
+
limit?: number | undefined;
|
|
276
|
+
startupCost: number;
|
|
277
|
+
scanEst: number;
|
|
278
|
+
cost: number;
|
|
279
|
+
returnedRows: number;
|
|
280
|
+
selectivity: number;
|
|
281
|
+
}>;
|
|
282
|
+
}[];
|
|
283
|
+
} | {
|
|
284
|
+
type: "connection-selected";
|
|
285
|
+
attemptNumber: number;
|
|
286
|
+
connection: string;
|
|
287
|
+
cost: number;
|
|
288
|
+
isRoot: boolean;
|
|
289
|
+
} | {
|
|
290
|
+
type: "constraints-propagated";
|
|
291
|
+
attemptNumber: number;
|
|
292
|
+
connectionConstraints: {
|
|
293
|
+
connection: string;
|
|
294
|
+
constraints: Record<string, Record<string, unknown> | null>;
|
|
295
|
+
constraintCosts: Record<string, {
|
|
296
|
+
limit?: number | undefined;
|
|
297
|
+
startupCost: number;
|
|
298
|
+
scanEst: number;
|
|
299
|
+
cost: number;
|
|
300
|
+
returnedRows: number;
|
|
301
|
+
selectivity: number;
|
|
302
|
+
}>;
|
|
303
|
+
}[];
|
|
304
|
+
} | {
|
|
305
|
+
type: "plan-complete";
|
|
306
|
+
attemptNumber: number;
|
|
307
|
+
totalCost: number;
|
|
308
|
+
flipPattern: number;
|
|
309
|
+
joinStates: {
|
|
310
|
+
join: string;
|
|
311
|
+
type: "semi" | "flipped" | "unflippable";
|
|
312
|
+
}[];
|
|
313
|
+
} | {
|
|
314
|
+
type: "plan-failed";
|
|
315
|
+
attemptNumber: number;
|
|
316
|
+
reason: string;
|
|
317
|
+
} | {
|
|
318
|
+
type: "best-plan-selected";
|
|
319
|
+
bestAttemptNumber: number;
|
|
320
|
+
totalCost: number;
|
|
321
|
+
flipPattern: number;
|
|
322
|
+
joinStates: {
|
|
323
|
+
join: string;
|
|
324
|
+
type: "semi" | "flipped" | "unflippable";
|
|
325
|
+
}[];
|
|
326
|
+
} | {
|
|
327
|
+
attemptNumber?: number | undefined;
|
|
328
|
+
filters?: import("./ast.ts").Condition | undefined;
|
|
329
|
+
ordering?: readonly (readonly [string, "desc" | "asc"])[] | undefined;
|
|
330
|
+
joinType?: "semi" | "flipped" | "unflippable" | undefined;
|
|
331
|
+
type: "node-cost";
|
|
332
|
+
nodeType: "join" | "connection" | "fan-out" | "fan-in" | "terminus";
|
|
333
|
+
node: string;
|
|
334
|
+
branchPattern: number[];
|
|
335
|
+
downstreamChildSelectivity: number;
|
|
336
|
+
costEstimate: {
|
|
337
|
+
limit?: number | undefined;
|
|
338
|
+
startupCost: number;
|
|
339
|
+
scanEst: number;
|
|
340
|
+
cost: number;
|
|
341
|
+
returnedRows: number;
|
|
342
|
+
selectivity: number;
|
|
343
|
+
};
|
|
344
|
+
} | {
|
|
345
|
+
attemptNumber?: number | undefined;
|
|
346
|
+
constraint?: Record<string, unknown> | null | undefined;
|
|
347
|
+
type: "node-constraint";
|
|
348
|
+
nodeType: "join" | "connection" | "fan-out" | "fan-in" | "terminus";
|
|
349
|
+
node: string;
|
|
350
|
+
branchPattern: number[];
|
|
351
|
+
from: string;
|
|
352
|
+
})[]>;
|
|
155
353
|
}, undefined>;
|
|
156
354
|
}, undefined>, v.ObjectType<Omit<{
|
|
157
355
|
id: v.Type<string>;
|
|
@@ -216,6 +414,105 @@ export declare const inspectDownMessageSchema: v.TupleType<[v.Type<"inspect">, v
|
|
|
216
414
|
readRowCountsByQuery: v.Optional<Record<string, Record<string, number>>>;
|
|
217
415
|
readRowCount: v.Optional<number>;
|
|
218
416
|
dbScansByQuery: v.Optional<Record<string, Record<string, number>>>;
|
|
417
|
+
plannerEvents: v.Optional<({
|
|
418
|
+
type: "attempt-start";
|
|
419
|
+
attemptNumber: number;
|
|
420
|
+
totalAttempts: number;
|
|
421
|
+
} | {
|
|
422
|
+
type: "connection-costs";
|
|
423
|
+
attemptNumber: number;
|
|
424
|
+
costs: {
|
|
425
|
+
connection: string;
|
|
426
|
+
cost: number;
|
|
427
|
+
costEstimate: {
|
|
428
|
+
limit?: number | undefined;
|
|
429
|
+
startupCost: number;
|
|
430
|
+
scanEst: number;
|
|
431
|
+
cost: number;
|
|
432
|
+
returnedRows: number;
|
|
433
|
+
selectivity: number;
|
|
434
|
+
};
|
|
435
|
+
pinned: boolean;
|
|
436
|
+
constraints: Record<string, Record<string, unknown> | null>;
|
|
437
|
+
constraintCosts: Record<string, {
|
|
438
|
+
limit?: number | undefined;
|
|
439
|
+
startupCost: number;
|
|
440
|
+
scanEst: number;
|
|
441
|
+
cost: number;
|
|
442
|
+
returnedRows: number;
|
|
443
|
+
selectivity: number;
|
|
444
|
+
}>;
|
|
445
|
+
}[];
|
|
446
|
+
} | {
|
|
447
|
+
type: "connection-selected";
|
|
448
|
+
attemptNumber: number;
|
|
449
|
+
connection: string;
|
|
450
|
+
cost: number;
|
|
451
|
+
isRoot: boolean;
|
|
452
|
+
} | {
|
|
453
|
+
type: "constraints-propagated";
|
|
454
|
+
attemptNumber: number;
|
|
455
|
+
connectionConstraints: {
|
|
456
|
+
connection: string;
|
|
457
|
+
constraints: Record<string, Record<string, unknown> | null>;
|
|
458
|
+
constraintCosts: Record<string, {
|
|
459
|
+
limit?: number | undefined;
|
|
460
|
+
startupCost: number;
|
|
461
|
+
scanEst: number;
|
|
462
|
+
cost: number;
|
|
463
|
+
returnedRows: number;
|
|
464
|
+
selectivity: number;
|
|
465
|
+
}>;
|
|
466
|
+
}[];
|
|
467
|
+
} | {
|
|
468
|
+
type: "plan-complete";
|
|
469
|
+
attemptNumber: number;
|
|
470
|
+
totalCost: number;
|
|
471
|
+
flipPattern: number;
|
|
472
|
+
joinStates: {
|
|
473
|
+
join: string;
|
|
474
|
+
type: "semi" | "flipped" | "unflippable";
|
|
475
|
+
}[];
|
|
476
|
+
} | {
|
|
477
|
+
type: "plan-failed";
|
|
478
|
+
attemptNumber: number;
|
|
479
|
+
reason: string;
|
|
480
|
+
} | {
|
|
481
|
+
type: "best-plan-selected";
|
|
482
|
+
bestAttemptNumber: number;
|
|
483
|
+
totalCost: number;
|
|
484
|
+
flipPattern: number;
|
|
485
|
+
joinStates: {
|
|
486
|
+
join: string;
|
|
487
|
+
type: "semi" | "flipped" | "unflippable";
|
|
488
|
+
}[];
|
|
489
|
+
} | {
|
|
490
|
+
attemptNumber?: number | undefined;
|
|
491
|
+
filters?: import("./ast.ts").Condition | undefined;
|
|
492
|
+
ordering?: readonly (readonly [string, "desc" | "asc"])[] | undefined;
|
|
493
|
+
joinType?: "semi" | "flipped" | "unflippable" | undefined;
|
|
494
|
+
type: "node-cost";
|
|
495
|
+
nodeType: "join" | "connection" | "fan-out" | "fan-in" | "terminus";
|
|
496
|
+
node: string;
|
|
497
|
+
branchPattern: number[];
|
|
498
|
+
downstreamChildSelectivity: number;
|
|
499
|
+
costEstimate: {
|
|
500
|
+
limit?: number | undefined;
|
|
501
|
+
startupCost: number;
|
|
502
|
+
scanEst: number;
|
|
503
|
+
cost: number;
|
|
504
|
+
returnedRows: number;
|
|
505
|
+
selectivity: number;
|
|
506
|
+
};
|
|
507
|
+
} | {
|
|
508
|
+
attemptNumber?: number | undefined;
|
|
509
|
+
constraint?: Record<string, unknown> | null | undefined;
|
|
510
|
+
type: "node-constraint";
|
|
511
|
+
nodeType: "join" | "connection" | "fan-out" | "fan-in" | "terminus";
|
|
512
|
+
node: string;
|
|
513
|
+
branchPattern: number[];
|
|
514
|
+
from: string;
|
|
515
|
+
})[]>;
|
|
219
516
|
}, undefined>;
|
|
220
517
|
}, undefined>, v.ObjectType<Omit<{
|
|
221
518
|
id: v.Type<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect-down.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/inspect-down.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAIhD,QAAA,MAAM,mBAAmB;;;aAGvB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;aAgBzB,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMpE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;aAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;;;;;;;aAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AAEF,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"inspect-down.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/inspect-down.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAIhD,QAAA,MAAM,mBAAmB;;;aAGvB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;aAgBzB,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMpE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;aAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;;;;;;;aAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAGxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;aAGjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAOjC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -28,6 +28,7 @@ export type InspectAuthenticateUpBody = v.Infer<typeof inspectAuthenticateUpSche
|
|
|
28
28
|
declare const analyzeQueryOptionsSchema: v.ObjectType<{
|
|
29
29
|
vendedRows: v.Optional<boolean>;
|
|
30
30
|
syncedRows: v.Optional<boolean>;
|
|
31
|
+
plannerDebug: v.Optional<boolean>;
|
|
31
32
|
}, undefined>;
|
|
32
33
|
export type AnalyzeQueryOptions = v.Infer<typeof analyzeQueryOptionsSchema>;
|
|
33
34
|
export declare const inspectAnalyzeQueryUpSchema: v.ObjectType<Omit<{
|
|
@@ -39,6 +40,7 @@ export declare const inspectAnalyzeQueryUpSchema: v.ObjectType<Omit<{
|
|
|
39
40
|
options: v.Optional<{
|
|
40
41
|
vendedRows?: boolean | undefined;
|
|
41
42
|
syncedRows?: boolean | undefined;
|
|
43
|
+
plannerDebug?: boolean | undefined;
|
|
42
44
|
}>;
|
|
43
45
|
ast: v.Optional<import("./ast.ts").AST>;
|
|
44
46
|
name: v.Optional<string>;
|
|
@@ -72,6 +74,7 @@ declare const inspectUpBodySchema: v.UnionType<[v.ObjectType<Omit<{
|
|
|
72
74
|
options: v.Optional<{
|
|
73
75
|
vendedRows?: boolean | undefined;
|
|
74
76
|
syncedRows?: boolean | undefined;
|
|
77
|
+
plannerDebug?: boolean | undefined;
|
|
75
78
|
}>;
|
|
76
79
|
ast: v.Optional<import("./ast.ts").AST>;
|
|
77
80
|
name: v.Optional<string>;
|
|
@@ -104,6 +107,7 @@ export declare const inspectUpMessageSchema: v.TupleType<[v.Type<"inspect">, v.U
|
|
|
104
107
|
options: v.Optional<{
|
|
105
108
|
vendedRows?: boolean | undefined;
|
|
106
109
|
syncedRows?: boolean | undefined;
|
|
110
|
+
plannerDebug?: boolean | undefined;
|
|
107
111
|
}>;
|
|
108
112
|
ast: v.Optional<import("./ast.ts").AST>;
|
|
109
113
|
name: v.Optional<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect-up.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/inspect-up.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAOhD,QAAA,MAAM,0BAA0B;;;;;aAG9B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,QAAA,MAAM,sBAAsB;;;;aAE1B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE1E,QAAA,MAAM,sBAAsB;;;;aAE1B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE1E,eAAO,MAAM,2BAA2B;;;;;aAGtC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,2BAA2B,CACnC,CAAC;AAEF,QAAA,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"inspect-up.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/inspect-up.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAOhD,QAAA,MAAM,0BAA0B;;;;;aAG9B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,QAAA,MAAM,sBAAsB;;;;aAE1B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE1E,QAAA,MAAM,sBAAsB;;;;aAE1B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE1E,eAAO,MAAM,2BAA2B;;;;;aAGtC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,2BAA2B,CACnC,CAAC;AAEF,QAAA,MAAM,yBAAyB;;;;aAI7B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;;IAEtC,8CAA8C;;;;;;;;;;aAM9C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,2BAA2B,CACnC,CAAC;AAEF,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;IAZvB,8CAA8C;;;;;;;;;;eAkB/C,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;IApBjC,8CAA8C;;;;;;;;;;iBAuB9C,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -21,7 +21,8 @@ const inspectAuthenticateUpSchema = inspectUpBase.extend({
|
|
|
21
21
|
});
|
|
22
22
|
const analyzeQueryOptionsSchema = object({
|
|
23
23
|
vendedRows: boolean().optional(),
|
|
24
|
-
syncedRows: boolean().optional()
|
|
24
|
+
syncedRows: boolean().optional(),
|
|
25
|
+
plannerDebug: boolean().optional()
|
|
25
26
|
});
|
|
26
27
|
const inspectAnalyzeQueryUpSchema = inspectUpBase.extend({
|
|
27
28
|
op: literal("analyze-query"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspect-up.js","sources":["../../../../zero-protocol/src/inspect-up.ts"],"sourcesContent":["import {jsonSchema} from '../../shared/src/json-schema.ts';\nimport * as v from '../../shared/src/valita.ts';\nimport {astSchema} from './ast.ts';\n\nconst inspectUpBase = v.object({\n id: v.string(),\n});\n\nconst inspectQueriesUpBodySchema = inspectUpBase.extend({\n op: v.literal('queries'),\n clientID: v.string().optional(),\n});\n\nexport type InspectQueriesUpBody = v.Infer<typeof inspectQueriesUpBodySchema>;\n\nconst inspectMetricsUpSchema = inspectUpBase.extend({\n op: v.literal('metrics'),\n});\n\nexport type InspectMetricsUpBody = v.Infer<typeof inspectMetricsUpSchema>;\n\nconst inspectVersionUpSchema = inspectUpBase.extend({\n op: v.literal('version'),\n});\n\nexport type InspectVersionUpBody = v.Infer<typeof inspectVersionUpSchema>;\n\nexport const inspectAuthenticateUpSchema = inspectUpBase.extend({\n op: v.literal('authenticate'),\n value: v.string(),\n});\n\nexport type InspectAuthenticateUpBody = v.Infer<\n typeof inspectAuthenticateUpSchema\n>;\n\nconst analyzeQueryOptionsSchema = v.object({\n vendedRows: v.boolean().optional(),\n syncedRows: v.boolean().optional(),\n});\n\nexport type AnalyzeQueryOptions = v.Infer<typeof analyzeQueryOptionsSchema>;\n\nexport const inspectAnalyzeQueryUpSchema = inspectUpBase.extend({\n op: v.literal('analyze-query'),\n /** @deprecated Use {@linkcode ast} instead */\n value: astSchema.optional(),\n options: analyzeQueryOptionsSchema.optional(),\n ast: astSchema.optional(),\n name: v.string().optional(),\n args: v.readonlyArray(jsonSchema).optional(),\n});\n\nexport type InspectAnalyzeQueryUpBody = v.Infer<\n typeof inspectAnalyzeQueryUpSchema\n>;\n\nconst inspectUpBodySchema = v.union(\n inspectQueriesUpBodySchema,\n inspectMetricsUpSchema,\n inspectVersionUpSchema,\n inspectAuthenticateUpSchema,\n inspectAnalyzeQueryUpSchema,\n);\n\nexport const inspectUpMessageSchema = v.tuple([\n v.literal('inspect'),\n inspectUpBodySchema,\n]);\n\nexport type InspectUpMessage = v.Infer<typeof inspectUpMessageSchema>;\n\nexport type InspectUpBody = v.Infer<typeof inspectUpBodySchema>;\n"],"names":["v.object","v.string","v.literal","v.boolean","v.readonlyArray","v.union","v.tuple"],"mappings":";;;;AAIA,MAAM,gBAAgBA,OAAS;AAAA,EAC7B,IAAIC,OAAE;AACR,CAAC;AAED,MAAM,6BAA6B,cAAc,OAAO;AAAA,EACtD,IAAIC,QAAU,SAAS;AAAA,EACvB,UAAUD,OAAE,EAAS,SAAA;AACvB,CAAC;AAID,MAAM,yBAAyB,cAAc,OAAO;AAAA,EAClD,IAAIC,QAAU,SAAS;AACzB,CAAC;AAID,MAAM,yBAAyB,cAAc,OAAO;AAAA,EAClD,IAAIA,QAAU,SAAS;AACzB,CAAC;AAIM,MAAM,8BAA8B,cAAc,OAAO;AAAA,EAC9D,IAAIA,QAAU,cAAc;AAAA,EAC5B,OAAOD,OAAE;AACX,CAAC;AAMD,MAAM,4BAA4BD,OAAS;AAAA,EACzC,YAAYG,QAAE,EAAU,SAAA;AAAA,EACxB,YAAYA,QAAE,EAAU,SAAA;
|
|
1
|
+
{"version":3,"file":"inspect-up.js","sources":["../../../../zero-protocol/src/inspect-up.ts"],"sourcesContent":["import {jsonSchema} from '../../shared/src/json-schema.ts';\nimport * as v from '../../shared/src/valita.ts';\nimport {astSchema} from './ast.ts';\n\nconst inspectUpBase = v.object({\n id: v.string(),\n});\n\nconst inspectQueriesUpBodySchema = inspectUpBase.extend({\n op: v.literal('queries'),\n clientID: v.string().optional(),\n});\n\nexport type InspectQueriesUpBody = v.Infer<typeof inspectQueriesUpBodySchema>;\n\nconst inspectMetricsUpSchema = inspectUpBase.extend({\n op: v.literal('metrics'),\n});\n\nexport type InspectMetricsUpBody = v.Infer<typeof inspectMetricsUpSchema>;\n\nconst inspectVersionUpSchema = inspectUpBase.extend({\n op: v.literal('version'),\n});\n\nexport type InspectVersionUpBody = v.Infer<typeof inspectVersionUpSchema>;\n\nexport const inspectAuthenticateUpSchema = inspectUpBase.extend({\n op: v.literal('authenticate'),\n value: v.string(),\n});\n\nexport type InspectAuthenticateUpBody = v.Infer<\n typeof inspectAuthenticateUpSchema\n>;\n\nconst analyzeQueryOptionsSchema = v.object({\n vendedRows: v.boolean().optional(),\n syncedRows: v.boolean().optional(),\n plannerDebug: v.boolean().optional(),\n});\n\nexport type AnalyzeQueryOptions = v.Infer<typeof analyzeQueryOptionsSchema>;\n\nexport const inspectAnalyzeQueryUpSchema = inspectUpBase.extend({\n op: v.literal('analyze-query'),\n /** @deprecated Use {@linkcode ast} instead */\n value: astSchema.optional(),\n options: analyzeQueryOptionsSchema.optional(),\n ast: astSchema.optional(),\n name: v.string().optional(),\n args: v.readonlyArray(jsonSchema).optional(),\n});\n\nexport type InspectAnalyzeQueryUpBody = v.Infer<\n typeof inspectAnalyzeQueryUpSchema\n>;\n\nconst inspectUpBodySchema = v.union(\n inspectQueriesUpBodySchema,\n inspectMetricsUpSchema,\n inspectVersionUpSchema,\n inspectAuthenticateUpSchema,\n inspectAnalyzeQueryUpSchema,\n);\n\nexport const inspectUpMessageSchema = v.tuple([\n v.literal('inspect'),\n inspectUpBodySchema,\n]);\n\nexport type InspectUpMessage = v.Infer<typeof inspectUpMessageSchema>;\n\nexport type InspectUpBody = v.Infer<typeof inspectUpBodySchema>;\n"],"names":["v.object","v.string","v.literal","v.boolean","v.readonlyArray","v.union","v.tuple"],"mappings":";;;;AAIA,MAAM,gBAAgBA,OAAS;AAAA,EAC7B,IAAIC,OAAE;AACR,CAAC;AAED,MAAM,6BAA6B,cAAc,OAAO;AAAA,EACtD,IAAIC,QAAU,SAAS;AAAA,EACvB,UAAUD,OAAE,EAAS,SAAA;AACvB,CAAC;AAID,MAAM,yBAAyB,cAAc,OAAO;AAAA,EAClD,IAAIC,QAAU,SAAS;AACzB,CAAC;AAID,MAAM,yBAAyB,cAAc,OAAO;AAAA,EAClD,IAAIA,QAAU,SAAS;AACzB,CAAC;AAIM,MAAM,8BAA8B,cAAc,OAAO;AAAA,EAC9D,IAAIA,QAAU,cAAc;AAAA,EAC5B,OAAOD,OAAE;AACX,CAAC;AAMD,MAAM,4BAA4BD,OAAS;AAAA,EACzC,YAAYG,QAAE,EAAU,SAAA;AAAA,EACxB,YAAYA,QAAE,EAAU,SAAA;AAAA,EACxB,cAAcA,QAAE,EAAU,SAAA;AAC5B,CAAC;AAIM,MAAM,8BAA8B,cAAc,OAAO;AAAA,EAC9D,IAAID,QAAU,eAAe;AAAA;AAAA,EAE7B,OAAO,UAAU,SAAA;AAAA,EACjB,SAAS,0BAA0B,SAAA;AAAA,EACnC,KAAK,UAAU,SAAA;AAAA,EACf,MAAMD,OAAE,EAAS,SAAA;AAAA,EACjB,MAAMG,cAAgB,UAAU,EAAE,SAAA;AACpC,CAAC;AAMD,MAAM,sBAAsBC;AAAAA,EAC1B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,MAAM,yBAAyBC,MAAQ;AAAA,EAC5CJ,QAAU,SAAS;AAAA,EACnB;AACF,CAAC;"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* release. The server (`zero-cache`) must be deployed before clients start
|
|
11
11
|
* running the new code.
|
|
12
12
|
*/
|
|
13
|
-
export declare const PROTOCOL_VERSION =
|
|
13
|
+
export declare const PROTOCOL_VERSION = 42;
|
|
14
14
|
/**
|
|
15
15
|
* The minimum server-supported sync protocol version (i.e. the version
|
|
16
16
|
* declared in the "/sync/v{#}/connect" URL). The contract for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol-version.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/protocol-version.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"protocol-version.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/protocol-version.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAqCH,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC;;;;;;;;;GASG;AACH,eAAO,MAAM,kCAAkC,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol-version.js","sources":["../../../../zero-protocol/src/protocol-version.ts"],"sourcesContent":["import {assert} from '../../shared/src/asserts.ts';\n\n/**\n * The current `PROTOCOL_VERSION` of the code.\n *\n * The `PROTOCOL_VERSION` encompasses both the wire-protocol of the `/sync/...`\n * connection between the browser and `zero-cache`, as well as the format of\n * the `AST` objects stored in both components (i.e. IDB and CVR).\n *\n * A change in the `AST` schema (e.g. new functionality added) must be\n * accompanied by an increment of the `PROTOCOL_VERSION` and a new major\n * release. The server (`zero-cache`) must be deployed before clients start\n * running the new code.\n */\n// History:\n// -- Version 5 adds support for `pokeEnd.cookie`. (0.14)\n// -- Version 6 makes `pokeStart.cookie` optional. (0.16)\n// -- Version 7 introduces the initConnection.clientSchema field. (0.17)\n// -- Version 8 drops support for Version 5 (0.18).\n// -- Version 11 adds inspect queries. (0.18)\n// -- Version 12 adds 'timestamp' and 'date' types to the ClientSchema ValueType. (not shipped, reversed by version 14)\n// -- Version 14 removes 'timestamp' and 'date' types from the ClientSchema ValueType. (0.18)\n// -- Version 15 adds a `userPushParams` field to `initConnection` (0.19)\n// -- Version 16 adds a new error type (alreadyProcessed) to mutation responses (0.19)\n// -- Version 17 deprecates `AST` in downstream query puts. It was never used anyway. (0.21)\n// -- Version 18 adds `name` and `args` to the `queries-patch` protocol (0.21)\n// -- Version 19 adds `activeClients` to the `initConnection` protocol (0.22)\n// -- Version 20 changes inspector down message (0.22)\n// -- Version 21 removes `AST` in downstream query puts which was deprecated in Version 17, removes support for versions < 18 (0.22)\n// -- Version 22 adds an optional 'userQueryParams' field to `initConnection` (0.22)\n// -- Version 23 add `mutationResults` to poke (0.22)\n// -- Version 24 adds `ackMutationResults` to upstream (0.22).\n// -- version 25 modifies `mutationsResults` to include `del` patches (0.22)\n// -- version 26 adds inspect/metrics and adds metrics to inspect/query (0.23)\n// -- version 27 adds inspect/version (0.23)\n// -- version 28 adds more inspect/metrics (0.23)\n// -- version 29 adds error responses for custom queries (0.23)\n// -- version 30 adds an optional primaryKey to the ClientSchema (0.24)\n// -- version 31 adds admin password authentication to inspector RPC calls (0.24)\n// -- version 32 adds analyze-query to the inspector RPC calls (0.24)\n// -- version 33 adds `flip` to CorrelatedSubquery (0.25)\n// -- version 34 moves `flip` from CorrelatedSubquery to CorrelatedSubqueryCondition (0.25)\n// -- version 35 adds `readRows`, `readRowCountsByQuery` and `readRowCount` to analyze-query result (0.25)\n// -- version 36 changes inspector analyze-query and adds error response to RPC (0.25)\n// -- version 37 adds `elapsed` to AnalyzeQueryResult (0.25)\n// -- version 38 adds structured push/transform error responses (0.25)\n// -- version 39 removes per-transform error types and adds `message` to app error (0.25)\n// -- version 40 adds `dbRowScansByQuery` to AnalyzeQueryResult (0.25)\n// -- version 41 makes ClientSchema.primaryKey required (0.25)\nexport const PROTOCOL_VERSION =
|
|
1
|
+
{"version":3,"file":"protocol-version.js","sources":["../../../../zero-protocol/src/protocol-version.ts"],"sourcesContent":["import {assert} from '../../shared/src/asserts.ts';\n\n/**\n * The current `PROTOCOL_VERSION` of the code.\n *\n * The `PROTOCOL_VERSION` encompasses both the wire-protocol of the `/sync/...`\n * connection between the browser and `zero-cache`, as well as the format of\n * the `AST` objects stored in both components (i.e. IDB and CVR).\n *\n * A change in the `AST` schema (e.g. new functionality added) must be\n * accompanied by an increment of the `PROTOCOL_VERSION` and a new major\n * release. The server (`zero-cache`) must be deployed before clients start\n * running the new code.\n */\n// History:\n// -- Version 5 adds support for `pokeEnd.cookie`. (0.14)\n// -- Version 6 makes `pokeStart.cookie` optional. (0.16)\n// -- Version 7 introduces the initConnection.clientSchema field. (0.17)\n// -- Version 8 drops support for Version 5 (0.18).\n// -- Version 11 adds inspect queries. (0.18)\n// -- Version 12 adds 'timestamp' and 'date' types to the ClientSchema ValueType. (not shipped, reversed by version 14)\n// -- Version 14 removes 'timestamp' and 'date' types from the ClientSchema ValueType. (0.18)\n// -- Version 15 adds a `userPushParams` field to `initConnection` (0.19)\n// -- Version 16 adds a new error type (alreadyProcessed) to mutation responses (0.19)\n// -- Version 17 deprecates `AST` in downstream query puts. It was never used anyway. (0.21)\n// -- Version 18 adds `name` and `args` to the `queries-patch` protocol (0.21)\n// -- Version 19 adds `activeClients` to the `initConnection` protocol (0.22)\n// -- Version 20 changes inspector down message (0.22)\n// -- Version 21 removes `AST` in downstream query puts which was deprecated in Version 17, removes support for versions < 18 (0.22)\n// -- Version 22 adds an optional 'userQueryParams' field to `initConnection` (0.22)\n// -- Version 23 add `mutationResults` to poke (0.22)\n// -- Version 24 adds `ackMutationResults` to upstream (0.22).\n// -- version 25 modifies `mutationsResults` to include `del` patches (0.22)\n// -- version 26 adds inspect/metrics and adds metrics to inspect/query (0.23)\n// -- version 27 adds inspect/version (0.23)\n// -- version 28 adds more inspect/metrics (0.23)\n// -- version 29 adds error responses for custom queries (0.23)\n// -- version 30 adds an optional primaryKey to the ClientSchema (0.24)\n// -- version 31 adds admin password authentication to inspector RPC calls (0.24)\n// -- version 32 adds analyze-query to the inspector RPC calls (0.24)\n// -- version 33 adds `flip` to CorrelatedSubquery (0.25)\n// -- version 34 moves `flip` from CorrelatedSubquery to CorrelatedSubqueryCondition (0.25)\n// -- version 35 adds `readRows`, `readRowCountsByQuery` and `readRowCount` to analyze-query result (0.25)\n// -- version 36 changes inspector analyze-query and adds error response to RPC (0.25)\n// -- version 37 adds `elapsed` to AnalyzeQueryResult (0.25)\n// -- version 38 adds structured push/transform error responses (0.25)\n// -- version 39 removes per-transform error types and adds `message` to app error (0.25)\n// -- version 40 adds `dbRowScansByQuery` to AnalyzeQueryResult (0.25)\n// -- version 41 makes ClientSchema.primaryKey required (0.25)\n// -- version 42 adds planner events to AnalyzeQueryResult (0.25)\nexport const PROTOCOL_VERSION = 42;\n\n/**\n * The minimum server-supported sync protocol version (i.e. the version\n * declared in the \"/sync/v{#}/connect\" URL). The contract for\n * backwards compatibility is that a `zero-cache` supports the current\n * `PROTOCOL_VERSION` and at least the previous one (i.e. `PROTOCOL_VERSION - 1`)\n * if not earlier ones as well. This corresponds to supporting clients running\n * the current release and the previous (major) release. Any client connections\n * from protocol versions before `MIN_SERVER_SUPPORTED_PROTOCOL_VERSION` are\n * closed with a `VersionNotSupported` error.\n */\nexport const MIN_SERVER_SUPPORTED_SYNC_PROTOCOL = 30;\n\nassert(MIN_SERVER_SUPPORTED_SYNC_PROTOCOL < PROTOCOL_VERSION);\n"],"names":[],"mappings":";AAkDO,MAAM,mBAAmB;AAYzB,MAAM,qCAAqC;AAElD,OAAO,qCAAqC,gBAAgB;"}
|
|
@@ -472,7 +472,7 @@ export declare const pushResponseSchema: v.UnionType<[v.UnionType<[v.ObjectType<
|
|
|
472
472
|
clientID: v.Type<string>;
|
|
473
473
|
}, undefined>>;
|
|
474
474
|
message: v.Type<string>;
|
|
475
|
-
}, "
|
|
475
|
+
}, "reason" | "status" | "origin" | "bodyPreview"> & {
|
|
476
476
|
origin: v.Type<"zeroCache">;
|
|
477
477
|
reason: v.Type<"http">;
|
|
478
478
|
status: v.Type<number>;
|
|
@@ -120,6 +120,7 @@ export declare const upstreamSchema: v.UnionType<[v.TupleType<[v.Type<"initConne
|
|
|
120
120
|
options: v.Optional<{
|
|
121
121
|
vendedRows?: boolean | undefined;
|
|
122
122
|
syncedRows?: boolean | undefined;
|
|
123
|
+
plannerDebug?: boolean | undefined;
|
|
123
124
|
}>;
|
|
124
125
|
ast: v.Optional<import("./ast.ts").AST>;
|
|
125
126
|
name: v.Optional<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"up.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/up.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAUhD,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"up.d.ts","sourceRoot":"","sources":["../../../../zero-protocol/src/up.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,4BAA4B,CAAC;AAUhD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAU1B,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { CustomMutatorDefs } from '../../../zero-client/src/client/custom.ts';
|
|
2
2
|
import type { Zero } from '../../../zero-client/src/client/zero.ts';
|
|
3
3
|
import type { Schema } from '../../../zero-types/src/schema.ts';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import type { AnyMutatorRegistry } from '../../../zql/src/mutate/mutator-registry.ts';
|
|
5
|
+
export default function Inspector<S extends Schema, MD extends AnyMutatorRegistry | CustomMutatorDefs | undefined = undefined, Context = unknown>({ zero, onClose }: {
|
|
6
|
+
zero: Zero<S, MD, Context>;
|
|
6
7
|
onClose: () => void;
|
|
7
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
//# sourceMappingURL=inspector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../../../../../zero-react/src/components/inspector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,yCAAyC,CAAC;AAClE,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"inspector.d.ts","sourceRoot":"","sources":["../../../../../zero-react/src/components/inspector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,2CAA2C,CAAC;AACjF,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,yCAAyC,CAAC;AAClE,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,mCAAmC,CAAC;AAC9D,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,6CAA6C,CAAC;AAGpF,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,CAAC,SAAS,MAAM,EAChB,EAAE,SAAS,kBAAkB,GAAG,iBAAiB,GAAG,SAAS,GAAG,SAAS,EACzE,OAAO,GAAG,OAAO,EACjB,EAAC,IAAI,EAAE,OAAO,EAAC,EAAE;IAAC,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAC,2CA4BnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspector.js","sources":["../../../../../zero-react/src/components/inspector.tsx"],"sourcesContent":["import type {CustomMutatorDefs} from '../../../zero-client/src/client/custom.ts';\nimport type {Zero} from '../../../zero-client/src/client/zero.ts';\nimport type {Schema} from '../../../zero-types/src/schema.ts';\nimport {MarkIcon} from './mark-icon.tsx';\n\nexport default function Inspector<\n S extends Schema,\n MD extends CustomMutatorDefs | undefined = undefined,\n>({zero, onClose}: {zero: Zero<S, MD>; onClose: () => void}) {\n return (\n <dialog\n open\n style={{\n alignItems: 'center',\n backgroundColor: 'white',\n borderRadius: '8px 0 0 0',\n bottom: 0,\n boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)',\n color: 'black',\n display: 'flex',\n height: 'fit-content',\n marginRight: 0,\n opacity: 0.95,\n padding: '0.25em 0.5em',\n position: 'fixed',\n width: 'fit-content',\n zIndex: 1000,\n }}\n >\n <MarkIcon style={{margin: '0.5em'}} />\n <div>Zero v{zero.version}</div>\n <button onClick={onClose} style={{padding: '0.5em'}}>\n ✖︎\n </button>\n </dialog>\n );\n}\n"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"inspector.js","sources":["../../../../../zero-react/src/components/inspector.tsx"],"sourcesContent":["import type {CustomMutatorDefs} from '../../../zero-client/src/client/custom.ts';\nimport type {Zero} from '../../../zero-client/src/client/zero.ts';\nimport type {Schema} from '../../../zero-types/src/schema.ts';\nimport type {AnyMutatorRegistry} from '../../../zql/src/mutate/mutator-registry.ts';\nimport {MarkIcon} from './mark-icon.tsx';\n\nexport default function Inspector<\n S extends Schema,\n MD extends AnyMutatorRegistry | CustomMutatorDefs | undefined = undefined,\n Context = unknown,\n>({zero, onClose}: {zero: Zero<S, MD, Context>; onClose: () => void}) {\n return (\n <dialog\n open\n style={{\n alignItems: 'center',\n backgroundColor: 'white',\n borderRadius: '8px 0 0 0',\n bottom: 0,\n boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)',\n color: 'black',\n display: 'flex',\n height: 'fit-content',\n marginRight: 0,\n opacity: 0.95,\n padding: '0.25em 0.5em',\n position: 'fixed',\n width: 'fit-content',\n zIndex: 1000,\n }}\n >\n <MarkIcon style={{margin: '0.5em'}} />\n <div>Zero v{zero.version}</div>\n <button onClick={onClose} style={{padding: '0.5em'}}>\n ✖︎\n </button>\n </dialog>\n );\n}\n"],"names":[],"mappings":";;AAMA,SAAwB,UAItB,EAAC,MAAM,WAA6D;AACpE,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAI;AAAA,MACJ,OAAO;AAAA,QACL,YAAY;AAAA,QACZ,iBAAiB;AAAA,QACjB,cAAc;AAAA,QACd,QAAQ;AAAA,QACR,WAAW;AAAA,QACX,OAAO;AAAA,QACP,SAAS;AAAA,QACT,QAAQ;AAAA,QACR,aAAa;AAAA,QACb,SAAS;AAAA,QACT,SAAS;AAAA,QACT,UAAU;AAAA,QACV,OAAO;AAAA,QACP,QAAQ;AAAA,MAAA;AAAA,MAGV,UAAA;AAAA,QAAA,oBAAC,UAAA,EAAS,OAAO,EAAC,QAAQ,WAAU;AAAA,6BACnC,OAAA,EAAI,UAAA;AAAA,UAAA;AAAA,UAAO,KAAK;AAAA,QAAA,GAAQ;AAAA,QACzB,oBAAC,YAAO,SAAS,SAAS,OAAO,EAAC,SAAS,QAAA,GAAU,UAAA,KAAA,CAErD;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|