@spooky-sync/client-solid 0.0.1-canary.18 → 0.0.1-canary.180
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/AGENTS.md +68 -0
- package/README.md +20 -0
- package/dist/index.cjs +434 -156
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +248 -21
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +248 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +429 -157
- package/dist/index.js.map +1 -1
- package/package.json +7 -6
- package/skills/sp00ky-solid/SKILL.md +335 -0
- package/skills/{spooky-solid → sp00ky-solid}/references/file-hooks.md +34 -5
- package/src/cache/index.ts +1 -1
- package/src/cache/surrealdb-wasm-factory.ts +4 -1
- package/src/index.ts +170 -61
- package/src/lib/Sp00kyProvider.ts +104 -0
- package/src/lib/context.ts +3 -3
- package/src/lib/create-preload.ts +111 -0
- package/src/lib/models.ts +1 -1
- package/src/lib/use-app-release.ts +89 -0
- package/src/lib/use-crdt-field.ts +68 -0
- package/src/lib/use-download-file.ts +66 -110
- package/src/lib/use-feature-flag.ts +50 -0
- package/src/lib/use-file-upload.ts +2 -1
- package/src/lib/use-query.ts +168 -28
- package/src/lib/use-storage-status.ts +44 -0
- package/src/lib/use-sync-status.ts +64 -0
- package/src/types/index.ts +3 -4
- package/skills/spooky-solid/SKILL.md +0 -217
- package/src/lib/SpookyProvider.ts +0 -55
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthService, BucketHandle, RunOptions,
|
|
1
|
+
import { AppReleaseOptions, AuthService, BucketHandle, ConnectionState, ConnectionState as ConnectionState$1, CrdtField, FeatureFlagOptions, PreloadOptions, PreloadOptions as PreloadOptions$1, PreloadRefresh, ReconnectConfig, RunOptions, Sp00kyClient, Sp00kyConfig, Sp00kyQueryResultPromise, StorageHealth, StorageHealth as StorageHealth$1, StorageHealthStatus, StorageHealthStatus as StorageHealthStatus$1, SyncHealth, SyncHealth as SyncHealth$1, SyncHealthConfig, SyncHealthStatus, SyncHealthStatus as SyncHealthStatus$1, UpdateOptions } from "@spooky-sync/core";
|
|
2
2
|
import { RecordId, RecordId as RecordId$1, Surreal, Uuid } from "surrealdb";
|
|
3
3
|
import { Accessor, JSX } from "solid-js";
|
|
4
4
|
import { GenericModel, GenericSchema, SchemaStructure } from "@spooky/query-builder";
|
|
@@ -37,14 +37,22 @@ type InferRelationshipsFromConst<S extends SchemaStructure$1, Schema extends Gen
|
|
|
37
37
|
cardinality: Rel['cardinality'];
|
|
38
38
|
} } };
|
|
39
39
|
type Prettify<T> = { [K in keyof T]: T[K] } & {};
|
|
40
|
-
type SyncedDbConfig<S extends SchemaStructure$1> = Prettify<
|
|
40
|
+
type SyncedDbConfig<S extends SchemaStructure$1> = Prettify<Sp00kyConfig<S>>;
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/lib/use-query.d.ts
|
|
43
43
|
type QueryArg<S extends SchemaStructure$1, TableName extends TableNames$1<S>, T extends {
|
|
44
44
|
columns: Record<string, ColumnSchema>;
|
|
45
|
-
}, RelatedFields extends Record<string, any>, IsOne extends boolean> = FinalQuery<S, TableName, T, RelatedFields, IsOne,
|
|
45
|
+
}, RelatedFields extends Record<string, any>, IsOne extends boolean> = FinalQuery<S, TableName, T, RelatedFields, IsOne, Sp00kyQueryResultPromise> | (() => FinalQuery<S, TableName, T, RelatedFields, IsOne, Sp00kyQueryResultPromise> | null | undefined);
|
|
46
46
|
type QueryOptions = {
|
|
47
47
|
enabled?: () => boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Tear down the query (remote `_00_query` view + local WASM view) when this
|
|
50
|
+
* hook is disposed and no other subscriber remains, instead of keeping it
|
|
51
|
+
* resident for cheap re-subscription. Use for viewport-windowed lists that
|
|
52
|
+
* mount/unmount a query per scroll window and want off-screen windows
|
|
53
|
+
* cancelled. Trade-off: scrolling back to a torn-down window re-registers it.
|
|
54
|
+
*/
|
|
55
|
+
deregisterOnCleanup?: boolean;
|
|
48
56
|
};
|
|
49
57
|
declare function useQuery<S extends SchemaStructure$1, TableName extends TableNames$1<S>, T extends {
|
|
50
58
|
columns: Record<string, ColumnSchema>;
|
|
@@ -52,6 +60,8 @@ declare function useQuery<S extends SchemaStructure$1, TableName extends TableNa
|
|
|
52
60
|
data: () => TData | undefined;
|
|
53
61
|
error: () => Error | undefined;
|
|
54
62
|
isLoading: () => boolean;
|
|
63
|
+
isFetching: () => boolean;
|
|
64
|
+
isSettled: () => boolean;
|
|
55
65
|
};
|
|
56
66
|
declare function useQuery<S extends SchemaStructure$1, TableName extends TableNames$1<S>, T extends {
|
|
57
67
|
columns: Record<string, ColumnSchema>;
|
|
@@ -59,8 +69,165 @@ declare function useQuery<S extends SchemaStructure$1, TableName extends TableNa
|
|
|
59
69
|
data: () => TData | undefined;
|
|
60
70
|
error: () => Error | undefined;
|
|
61
71
|
isLoading: () => boolean;
|
|
72
|
+
isFetching: () => boolean;
|
|
73
|
+
isSettled: () => boolean;
|
|
62
74
|
};
|
|
63
75
|
//#endregion
|
|
76
|
+
//#region src/lib/create-preload.d.ts
|
|
77
|
+
type PreloadArg<S extends SchemaStructure$1, TableName extends TableNames$1<S>, T extends {
|
|
78
|
+
columns: Record<string, ColumnSchema>;
|
|
79
|
+
}, RelatedFields extends Record<string, any>, IsOne extends boolean> = FinalQuery<S, TableName, T, RelatedFields, IsOne, Sp00kyQueryResultPromise> | (() => FinalQuery<S, TableName, T, RelatedFields, IsOne, Sp00kyQueryResultPromise> | null | undefined);
|
|
80
|
+
type PreloadOptions$2 = PreloadOptions$1 & {
|
|
81
|
+
/** Only preload while this returns true (defaults to always). */
|
|
82
|
+
enabled?: () => boolean;
|
|
83
|
+
};
|
|
84
|
+
declare function createPreload<S extends SchemaStructure$1, TableName extends TableNames$1<S>, T extends {
|
|
85
|
+
columns: Record<string, ColumnSchema>;
|
|
86
|
+
}, RelatedFields extends Record<string, any>, IsOne extends boolean>(finalQuery: PreloadArg<S, TableName, T, RelatedFields, IsOne>, options?: PreloadOptions$2): void;
|
|
87
|
+
declare function createPreload<S extends SchemaStructure$1, TableName extends TableNames$1<S>, T extends {
|
|
88
|
+
columns: Record<string, ColumnSchema>;
|
|
89
|
+
}, RelatedFields extends Record<string, any>, IsOne extends boolean>(db: SyncedDb<S>, finalQuery: PreloadArg<S, TableName, T, RelatedFields, IsOne>, options?: PreloadOptions$2): void;
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/lib/use-sync-status.d.ts
|
|
92
|
+
interface UseSyncStatus {
|
|
93
|
+
/** Full health snapshot; updates reactively on every transition. */
|
|
94
|
+
health: Accessor<SyncHealth$1>;
|
|
95
|
+
/** `'healthy'` | `'degraded'`. */
|
|
96
|
+
status: Accessor<SyncHealthStatus$1>;
|
|
97
|
+
isHealthy: Accessor<boolean>;
|
|
98
|
+
/** `true` once sync has failed for a sustained run — drive a banner off this. */
|
|
99
|
+
isDegraded: Accessor<boolean>;
|
|
100
|
+
/** `true` once at least one sync round has succeeded this session. */
|
|
101
|
+
everConnected: Accessor<boolean>;
|
|
102
|
+
/**
|
|
103
|
+
* `true` only for a real lost connection: degraded AFTER a first successful
|
|
104
|
+
* sync. Stays `false` during the initial "connecting" phase (degraded but
|
|
105
|
+
* never reached the server yet), so an indicator can show nothing until the
|
|
106
|
+
* app has actually connected once.
|
|
107
|
+
*/
|
|
108
|
+
isOffline: Accessor<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* Transport state of the remote WebSocket. Flips the instant the socket
|
|
111
|
+
* drops, unlike `status`, which only degrades after a sustained run of failed
|
|
112
|
+
* sync rounds — so this is what to drive a "reconnecting…" affordance off.
|
|
113
|
+
*/
|
|
114
|
+
connection: Accessor<ConnectionState$1>;
|
|
115
|
+
/**
|
|
116
|
+
* `true` while the connection is being re-established. Usually still
|
|
117
|
+
* `isHealthy()`: a short reconnect is invisible to sync, and writes made
|
|
118
|
+
* during it are queued locally and pushed once the socket is back.
|
|
119
|
+
*/
|
|
120
|
+
isReconnecting: Accessor<boolean>;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Observe sync health for a "can't reach the server" banner / indicator.
|
|
124
|
+
*
|
|
125
|
+
* Backed by `db.subscribeToSyncHealth`. Individual sync failures (a transient
|
|
126
|
+
* remote 500 on query registration, a dropped socket) are absorbed by the
|
|
127
|
+
* retry and never flip this; `isDegraded()` only goes true once failures
|
|
128
|
+
* persist for the configured number of consecutive rounds (sp00ky core config
|
|
129
|
+
* `syncHealth.degradeAfterConsecutiveFailures`, default 3), and flips back on
|
|
130
|
+
* the next successful round. Must be used within a `<Sp00kyProvider>`.
|
|
131
|
+
*/
|
|
132
|
+
declare function useSyncStatus(): UseSyncStatus;
|
|
133
|
+
//# sourceMappingURL=use-sync-status.d.ts.map
|
|
134
|
+
//#endregion
|
|
135
|
+
//#region src/lib/use-storage-status.d.ts
|
|
136
|
+
interface UseStorageStatus {
|
|
137
|
+
/** Full durability snapshot; updates reactively. */
|
|
138
|
+
health: Accessor<StorageHealth$1>;
|
|
139
|
+
/** `'unknown'` | `'persistent'` | `'memory'`. */
|
|
140
|
+
status: Accessor<StorageHealthStatus$1>;
|
|
141
|
+
/** `true` when the local store survives a reload. */
|
|
142
|
+
isPersistent: Accessor<boolean>;
|
|
143
|
+
/**
|
|
144
|
+
* `true` only when durable storage was requested and could NOT be opened, so
|
|
145
|
+
* the dataset is sitting in RAM and local writes die on reload. Drive a
|
|
146
|
+
* warning off this, not off `status`: a store configured as in-memory reports
|
|
147
|
+
* `'memory'` too, and that is a choice rather than a problem.
|
|
148
|
+
*/
|
|
149
|
+
isMemoryFallback: Accessor<boolean>;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Observe how durable the LOCAL cache is, for a "no local storage" warning.
|
|
153
|
+
*
|
|
154
|
+
* Under `localEngine: 'sqlite'` with `store: 'indexeddb'` the durable store is
|
|
155
|
+
* the OPFS SAHPool VFS, and only ONE client per bucket can hold it open: a
|
|
156
|
+
* second tab of the same app cannot get it and runs in memory instead (the
|
|
157
|
+
* engine retries first, so a closing tab's lock is usually waited out). Must be
|
|
158
|
+
* used within a `<Sp00kyProvider>`.
|
|
159
|
+
*/
|
|
160
|
+
declare function useStorageStatus(): UseStorageStatus;
|
|
161
|
+
//# sourceMappingURL=use-storage-status.d.ts.map
|
|
162
|
+
//#endregion
|
|
163
|
+
//#region src/lib/use-crdt-field.d.ts
|
|
164
|
+
declare function useCrdtField(table: string, recordId: () => string | undefined, field: string, fallbackText?: () => string | undefined): Accessor<CrdtField | null>;
|
|
165
|
+
//# sourceMappingURL=use-crdt-field.d.ts.map
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region src/lib/use-feature-flag.d.ts
|
|
168
|
+
interface UseFeatureFlag {
|
|
169
|
+
variant: Accessor<string | undefined>;
|
|
170
|
+
payload: Accessor<unknown | undefined>;
|
|
171
|
+
enabled: Accessor<boolean>;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Subscribe to a feature flag for the currently authenticated user.
|
|
175
|
+
*
|
|
176
|
+
* Returns three Solid accessors that update reactively whenever the
|
|
177
|
+
* server-materialized assignment in `_00_user_feature` changes. Backed by
|
|
178
|
+
* the same SSP + sync pipeline that powers `useQuery`, so toggling a flag
|
|
179
|
+
* via `spky flag enable <key>` propagates to the UI without a refresh.
|
|
180
|
+
*
|
|
181
|
+
* `enabled()` is `true` when the resolved variant exists and is not 'off'.
|
|
182
|
+
* For multi-variant flags, prefer `variant()` directly.
|
|
183
|
+
*/
|
|
184
|
+
declare function useFeatureFlag(key: string, options?: FeatureFlagOptions): UseFeatureFlag;
|
|
185
|
+
//# sourceMappingURL=use-feature-flag.d.ts.map
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region src/lib/use-app-release.d.ts
|
|
188
|
+
interface UseAppReleaseOptions extends AppReleaseOptions {
|
|
189
|
+
/** App name from sp00ky.yml, e.g. `web`. */
|
|
190
|
+
app: string;
|
|
191
|
+
/**
|
|
192
|
+
* The running build's version (X.Y.Z), typically baked in at build time
|
|
193
|
+
* (e.g. a vite `define` from package.json). `updateAvailable()` is true when
|
|
194
|
+
* the announced release is semver-newer than this.
|
|
195
|
+
*/
|
|
196
|
+
currentVersion: string;
|
|
197
|
+
}
|
|
198
|
+
interface UseAppRelease {
|
|
199
|
+
/** Latest announced version for the app, or undefined when no row exists. */
|
|
200
|
+
latestVersion: Accessor<string | undefined>;
|
|
201
|
+
/** Announced version is semver-newer than the running build. */
|
|
202
|
+
updateAvailable: Accessor<boolean>;
|
|
203
|
+
/** The newer release asks clients to update/reload without prompting. */
|
|
204
|
+
mandatory: Accessor<boolean>;
|
|
205
|
+
/** The newer release asks reloads to clear service-worker caches first. */
|
|
206
|
+
cacheBust: Accessor<boolean>;
|
|
207
|
+
/**
|
|
208
|
+
* Reload onto the announced release. Plain `location.reload()` normally;
|
|
209
|
+
* when the release is flagged cache-bust, CacheStorage is cleared, the
|
|
210
|
+
* service-worker registration is nudged to update, and navigation carries a
|
|
211
|
+
* `?cb=` token to punch through intermediary caches. The service worker is
|
|
212
|
+
* deliberately NOT unregistered: navigating while still controlled by a
|
|
213
|
+
* just-unregistered worker strands subresource fetches on the dead worker
|
|
214
|
+
* and the page hangs until a manual reload.
|
|
215
|
+
*/
|
|
216
|
+
reload: () => Promise<void>;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Observe the app's announced release (`_00_app_release:<app>`, written by
|
|
220
|
+
* `spky deploy` / `spky release`) and compare it against the running build.
|
|
221
|
+
*
|
|
222
|
+
* Typical use: mount a small "new version available — Reload" notification
|
|
223
|
+
* gated on `updateAvailable()`, auto-invoking `reload()` when `mandatory()`
|
|
224
|
+
* (guard the auto path against reload loops with a per-version marker, since
|
|
225
|
+
* a client can reload while the deploy is still rolling out and land on the
|
|
226
|
+
* old bundle again).
|
|
227
|
+
*/
|
|
228
|
+
declare function useAppRelease(options: UseAppReleaseOptions): UseAppRelease;
|
|
229
|
+
//# sourceMappingURL=use-app-release.d.ts.map
|
|
230
|
+
//#endregion
|
|
64
231
|
//#region src/lib/use-file-upload.d.ts
|
|
65
232
|
interface FileUploadResult {
|
|
66
233
|
isUploading: () => boolean;
|
|
@@ -77,7 +244,27 @@ declare function useFileUpload<S extends SchemaStructure$1>(db: SyncedDb<S>, buc
|
|
|
77
244
|
//#endregion
|
|
78
245
|
//#region src/lib/use-download-file.d.ts
|
|
79
246
|
interface UseDownloadFileOptions {
|
|
247
|
+
/**
|
|
248
|
+
* Master switch, default `true`. `false` gives every hook instance its own
|
|
249
|
+
* private object URL fetched fresh from the bucket and revoked on unmount —
|
|
250
|
+
* no sharing, no persistence, no reuse.
|
|
251
|
+
*/
|
|
80
252
|
cache?: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Keep the bytes in OPFS so they survive a reload and are available offline.
|
|
255
|
+
* Default `true`. Turn off for one-shot or sensitive files; the in-tab object
|
|
256
|
+
* URL is still shared between components rendering the same path.
|
|
257
|
+
*/
|
|
258
|
+
persist?: boolean;
|
|
259
|
+
/** Exempt this file from pressure eviction. Pinned bytes never expire. */
|
|
260
|
+
pin?: boolean;
|
|
261
|
+
/**
|
|
262
|
+
* `'never'` (default) treats a bucket path as immutable, which is how paths
|
|
263
|
+
* are written (`crypto.randomUUID() + ext`). `'head'` spends a remote `head()`
|
|
264
|
+
* to compare sizes before trusting the cached copy — for paths the app
|
|
265
|
+
* overwrites in place.
|
|
266
|
+
*/
|
|
267
|
+
revalidate?: 'never' | 'head';
|
|
81
268
|
}
|
|
82
269
|
interface UseDownloadFileResult {
|
|
83
270
|
url: Accessor<string | null>;
|
|
@@ -89,16 +276,25 @@ declare function useDownloadFile<S extends SchemaStructure$1>(bucketName: Bucket
|
|
|
89
276
|
declare function useDownloadFile<S extends SchemaStructure$1>(db: SyncedDb<S>, bucketName: BucketNames<S>, path: Accessor<string | null | undefined>, options?: UseDownloadFileOptions): UseDownloadFileResult;
|
|
90
277
|
//# sourceMappingURL=use-download-file.d.ts.map
|
|
91
278
|
//#endregion
|
|
92
|
-
//#region src/lib/
|
|
93
|
-
interface
|
|
279
|
+
//#region src/lib/Sp00kyProvider.d.ts
|
|
280
|
+
interface Sp00kyProviderProps<S extends SchemaStructure> {
|
|
94
281
|
config: SyncedDbConfig<S>;
|
|
95
282
|
fallback?: JSX.Element;
|
|
96
283
|
onError?: (error: Error) => void;
|
|
97
284
|
onReady?: (db: SyncedDb<S>) => void;
|
|
285
|
+
/**
|
|
286
|
+
* Prewarm data into the local cache before revealing the UI. Runs after
|
|
287
|
+
* `init()`; the `fallback` stays visible until it resolves. Use awaitable
|
|
288
|
+
* `db.preload(...)` calls here to gate first-load on essential data (e.g.
|
|
289
|
+
* config). On warm loads preload returns instantly, so there's no perceptible
|
|
290
|
+
* gate after the first run. Best-effort: a rejection is caught and the UI is
|
|
291
|
+
* revealed anyway.
|
|
292
|
+
*/
|
|
293
|
+
preload?: (db: SyncedDb<S>) => Promise<void>;
|
|
98
294
|
children: JSX.Element;
|
|
99
295
|
}
|
|
100
|
-
declare function
|
|
101
|
-
//# sourceMappingURL=
|
|
296
|
+
declare function Sp00kyProvider<S extends SchemaStructure>(props: Sp00kyProviderProps<S>): JSX.Element;
|
|
297
|
+
//# sourceMappingURL=Sp00kyProvider.d.ts.map
|
|
102
298
|
//#endregion
|
|
103
299
|
//#region src/lib/context.d.ts
|
|
104
300
|
declare function useDb<S extends SchemaStructure>(): SyncedDb<S>;
|
|
@@ -106,13 +302,13 @@ declare function useDb<S extends SchemaStructure>(): SyncedDb<S>;
|
|
|
106
302
|
|
|
107
303
|
//#endregion
|
|
108
304
|
//#region src/index.d.ts
|
|
109
|
-
type RelationshipField<Schema extends SchemaStructure$1, TableName extends TableNames
|
|
110
|
-
type RelatedFieldsTableScoped<Schema extends SchemaStructure$1, TableName extends TableNames
|
|
305
|
+
type RelationshipField<Schema extends SchemaStructure$1, TableName extends TableNames<Schema>, Field extends RelationshipFieldsFromSchema<Schema, TableName>> = GetRelationship<Schema, TableName, Field>;
|
|
306
|
+
type RelatedFieldsTableScoped<Schema extends SchemaStructure$1, TableName extends TableNames<Schema>, RelatedFields extends RelationshipFieldsFromSchema<Schema, TableName> = RelationshipFieldsFromSchema<Schema, TableName>> = { [K in RelatedFields]: {
|
|
111
307
|
to: RelationshipField<Schema, TableName, K>['to'];
|
|
112
308
|
relatedFields: RelatedFieldsMap;
|
|
113
309
|
cardinality: RelationshipField<Schema, TableName, K>['cardinality'];
|
|
114
310
|
} };
|
|
115
|
-
type InferModel<Schema extends SchemaStructure$1, TableName extends TableNames
|
|
311
|
+
type InferModel<Schema extends SchemaStructure$1, TableName extends TableNames<Schema>, RelatedFields extends RelatedFieldsTableScoped<Schema, TableName>> = QueryResult<Schema, TableName, RelatedFields, true>;
|
|
116
312
|
type WithRelated<Field extends string, RelatedFields extends RelatedFieldsMap = {}> = { [K in Field]: Omit<RelatedFieldMapEntry, 'relatedFields'> & {
|
|
117
313
|
relatedFields: RelatedFields;
|
|
118
314
|
} };
|
|
@@ -122,19 +318,26 @@ type WithRelatedMany<Field extends string, RelatedFields extends RelatedFieldsMa
|
|
|
122
318
|
cardinality: 'many';
|
|
123
319
|
} };
|
|
124
320
|
/**
|
|
125
|
-
* SyncedDb - A thin wrapper around
|
|
126
|
-
* Delegates all logic to the underlying
|
|
321
|
+
* SyncedDb - A thin wrapper around sp00ky-ts for Solid.js integration
|
|
322
|
+
* Delegates all logic to the underlying sp00ky-ts instance
|
|
127
323
|
*/
|
|
128
324
|
declare class SyncedDb<S extends SchemaStructure$1> {
|
|
129
325
|
private config;
|
|
130
|
-
private
|
|
326
|
+
private sp00ky;
|
|
131
327
|
private _initialized;
|
|
132
328
|
constructor(config: SyncedDbConfig<S>);
|
|
133
|
-
|
|
329
|
+
getSp00ky(): Sp00kyClient<S>;
|
|
134
330
|
/**
|
|
135
|
-
* Initialize the
|
|
331
|
+
* Initialize the sp00ky-ts instance
|
|
136
332
|
*/
|
|
137
333
|
init(): Promise<void>;
|
|
334
|
+
/**
|
|
335
|
+
* Tear down the client: leaves the tabs broker, closes the local store and
|
|
336
|
+
* remote socket, and frees the wasm circuit. Without this a remounted provider
|
|
337
|
+
* (or an HMR reload) strands a whole client, and the abandoned wasm heaps stay
|
|
338
|
+
* resident because V8 cannot see how much wasm memory a dropped wrapper holds.
|
|
339
|
+
*/
|
|
340
|
+
close(): Promise<void>;
|
|
138
341
|
/**
|
|
139
342
|
* Create a new record in the database
|
|
140
343
|
*/
|
|
@@ -142,15 +345,21 @@ declare class SyncedDb<S extends SchemaStructure$1> {
|
|
|
142
345
|
/**
|
|
143
346
|
* Update an existing record in the database
|
|
144
347
|
*/
|
|
145
|
-
update<TName extends TableNames
|
|
348
|
+
update<TName extends TableNames<S>>(tableName: TName, recordId: string, payload: Partial<TableModel<GetTable<S, TName>>>, options?: UpdateOptions): Promise<void>;
|
|
146
349
|
/**
|
|
147
350
|
* Delete an existing record in the database
|
|
148
351
|
*/
|
|
149
|
-
delete<TName extends TableNames
|
|
352
|
+
delete<TName extends TableNames<S>>(tableName: TName, selector: string | RecordId | InnerQuery<GetTable<S, TName>, boolean>): Promise<void>;
|
|
353
|
+
/**
|
|
354
|
+
* Preload/prewarm a built query into the local cache without registering a
|
|
355
|
+
* live view. Fetches once and stores the rows (+ embedded related children)
|
|
356
|
+
* locally so a later `useQuery` for the same data paints instantly. Best-effort.
|
|
357
|
+
*/
|
|
358
|
+
preload(finalQuery: FinalQuery<S, any, any, any, any, Sp00kyQueryResultPromise>, options?: PreloadOptions$1): Promise<void>;
|
|
150
359
|
/**
|
|
151
360
|
* Query data from the database
|
|
152
361
|
*/
|
|
153
|
-
query<TName extends TableNames
|
|
362
|
+
query<TName extends TableNames<S>>(table: TName): QueryBuilder<S, TName, Sp00kyQueryResultPromise, {}, false>;
|
|
154
363
|
/**
|
|
155
364
|
* Run a backend operation
|
|
156
365
|
*/
|
|
@@ -175,20 +384,38 @@ declare class SyncedDb<S extends SchemaStructure$1> {
|
|
|
175
384
|
/**
|
|
176
385
|
* Access the remote database service directly
|
|
177
386
|
*/
|
|
178
|
-
get remote():
|
|
387
|
+
get remote(): Sp00kyClient<S>['remoteClient'];
|
|
179
388
|
/**
|
|
180
389
|
* Access the local database service directly
|
|
181
390
|
*/
|
|
182
|
-
get local():
|
|
391
|
+
get local(): Sp00kyClient<S>['localClient'];
|
|
183
392
|
/**
|
|
184
393
|
* Access the auth service
|
|
185
394
|
*/
|
|
186
395
|
get auth(): AuthService<S>;
|
|
187
396
|
get pendingMutationCount(): number;
|
|
397
|
+
/** Diagnostic — see `Sp00kyClient.liveRetryCount`. */
|
|
398
|
+
get liveRetryCount(): number;
|
|
188
399
|
subscribeToPendingMutations(cb: (count: number) => void): () => void;
|
|
400
|
+
/** Current sync-health snapshot. See {@link useSyncStatus}. */
|
|
401
|
+
get syncHealth(): SyncHealth$1;
|
|
402
|
+
/**
|
|
403
|
+
* Observe sync health. Fires immediately with the current status and again
|
|
404
|
+
* on every healthy↔degraded transition. Prefer the `useSyncStatus` hook in
|
|
405
|
+
* components; this is the imperative escape hatch.
|
|
406
|
+
*/
|
|
407
|
+
subscribeToSyncHealth(cb: (health: SyncHealth$1) => void): () => void;
|
|
408
|
+
/** Current local-store durability snapshot. See {@link useStorageStatus}. */
|
|
409
|
+
get storageHealth(): StorageHealth$1;
|
|
410
|
+
/**
|
|
411
|
+
* Observe local-store durability. Fires immediately with the current snapshot
|
|
412
|
+
* and again on change. Prefer the `useStorageStatus` hook in components; this
|
|
413
|
+
* is the imperative escape hatch.
|
|
414
|
+
*/
|
|
415
|
+
subscribeToStorageHealth(cb: (health: StorageHealth$1) => void): () => void;
|
|
189
416
|
bucket<B extends BucketNames<S>>(name: B): BucketHandle;
|
|
190
417
|
getBucketConfig(name: string): BucketDefinitionSchema | undefined;
|
|
191
418
|
}
|
|
192
419
|
//#endregion
|
|
193
|
-
export { CacheStrategy, type FileUploadResult, type GenericModel, type GenericSchema, type GetCardinality, type GetTable, InferModel, type InferRelatedModelFromMetadata, InferRelationshipsFromConst, InferSchemaFromConst, type Model, type ModelPayload, ProvisionOptions, type QueryInfo, type QueryModifier, type QueryModifierBuilder, type QueryResult, RecordId, RelatedFieldsTableScoped, type RelationshipDefinition, RelationshipField, type RelationshipsMetadata,
|
|
420
|
+
export { CacheStrategy, type ConnectionState, type FileUploadResult, type GenericModel, type GenericSchema, type GetCardinality, type GetTable, InferModel, type InferRelatedModelFromMetadata, InferRelationshipsFromConst, InferSchemaFromConst, type Model, type ModelPayload, type PreloadOptions, type PreloadRefresh, ProvisionOptions, type QueryInfo, type QueryModifier, type QueryModifierBuilder, type QueryResult, type ReconnectConfig, RecordId, RelatedFieldsTableScoped, type RelationshipDefinition, RelationshipField, type RelationshipsMetadata, Sp00kyProvider, type Sp00kyProviderProps, type StorageHealth, type StorageHealthStatus, type SyncHealth, type SyncHealthConfig, type SyncHealthStatus, SyncedDb, SyncedDbConfig, type TableModel, type TableNames, type UseAppRelease, type UseAppReleaseOptions, type UseDownloadFileOptions, type UseDownloadFileResult, type UseFeatureFlag, type UseStorageStatus, type UseSyncStatus, Uuid, WithRelated, WithRelatedMany, createPreload, useAppRelease, useCrdtField, useDb, useDownloadFile, useFeatureFlag, useFileUpload, useQuery, useStorageStatus, useSyncStatus };
|
|
194
421
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/lib/models.ts","../../../src/types/index.ts","../../../src/lib/use-query.ts","../../../src/lib/use-file-upload.ts","../../../src/lib/use-download-file.ts","../../../src/lib/
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/lib/models.ts","../../../src/types/index.ts","../../../src/lib/use-query.ts","../../../src/lib/create-preload.ts","../../../src/lib/use-sync-status.ts","../../../src/lib/use-storage-status.ts","../../../src/lib/use-crdt-field.ts","../../../src/lib/use-feature-flag.ts","../../../src/lib/use-app-release.ts","../../../src/lib/use-file-upload.ts","../../../src/lib/use-download-file.ts","../../../src/lib/Sp00kyProvider.ts","../../../src/lib/context.ts","../../../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;KAMY,WAAW;KACX,kBAAkB;MAAU;;;;;;;;AAD5B,UCEK,gBAAA,CDFO;EACZ;EAAY,KAAA,CAAA,EAAA,OAAA;;ACQP,UAAA,CAAA,CAAA;AAPA,KAWL,aAAA,GAXqB,QAAA,GAAA,WAAA;AAOhB;AAIjB;AAKA;AAAgC,KAApB,oBAAoB,CAAA,UAAW,iBAAX,CAAA,GAAA,QACxB,YADmC,CACxB,CADwB,CAAA,GACnB,YADmB,CACR,UADQ,CACC,CADD,EACI,CADJ,CAAA,CAAA;;;;;AACnB,KAOZ,2BAPY,CAAA,UAO0B,iBAP1B,EAAA,eAO0D,aAP1D,CAAA,GAAA,gBAQR,YARkB,CAQP,CARO,CAAA,GAAA,UAStB,OAFA,CAEQ,CAFR,CAAA,eAA2B,CAAA,CAAA,MAAA,CAAA,EAAA;EAAA,IAAA,EAEiB,SAFjB;AAAW,CAAA,CAAA,IAEsB,GAFtB,CAAA,OAAA,CAAA,GAAA;EAAgC,KAAA,EAGrE,GAHqE,CAAA,IAAA,CAAA,SAAA,MAG7C,MAH6C,GAGpC,MAHoC,CAG7B,GAH6B,CAAA,IAAA,CAAA,CAAA,GAAA,GAAA;EACvD,KAAA,EAGd,GAHc,CAAA,IAAA,CAAA;EAAX,WAAA,EAIG,GAJH,CAAA,aAAA,CAAA;AACI,CAAA;KASf,QATmE,CAAA,CAAA,CAAA,GAAA,QAC3D,MAQoB,CARpB,GAQwB,CARxB,CAQ0B,CAR1B,CAAA;AAAiC,KAUlC,cAVkC,CAAA,UAUT,iBAVS,CAAA,GAUU,QAVV,CAUmB,YAVnB,CAUgC,CAVhC,CAAA,CAAA;;;KCtBzC,mBACO,qCACQ,aAAW;WACR,eAAe;yBACd,8CAGpB,WAAW,GAAG,WAAW,GAAG,eAAe,OAAO,mCAE9C,WAAW,GAAG,WAAW,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