@effect/platform-browser 4.0.0-beta.8 → 4.0.0-beta.81

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.
Files changed (91) hide show
  1. package/dist/BrowserCrypto.d.ts +49 -0
  2. package/dist/BrowserCrypto.d.ts.map +1 -0
  3. package/dist/BrowserCrypto.js +87 -0
  4. package/dist/BrowserCrypto.js.map +1 -0
  5. package/dist/BrowserHttpClient.d.ts +48 -19
  6. package/dist/BrowserHttpClient.d.ts.map +1 -1
  7. package/dist/BrowserHttpClient.js +62 -21
  8. package/dist/BrowserHttpClient.js.map +1 -1
  9. package/dist/BrowserKeyValueStore.d.ts +37 -14
  10. package/dist/BrowserKeyValueStore.d.ts.map +1 -1
  11. package/dist/BrowserKeyValueStore.js +144 -10
  12. package/dist/BrowserKeyValueStore.js.map +1 -1
  13. package/dist/BrowserPersistence.d.ts +40 -0
  14. package/dist/BrowserPersistence.d.ts.map +1 -0
  15. package/dist/BrowserPersistence.js +207 -0
  16. package/dist/BrowserPersistence.js.map +1 -0
  17. package/dist/BrowserRuntime.d.ts +64 -4
  18. package/dist/BrowserRuntime.d.ts.map +1 -1
  19. package/dist/BrowserRuntime.js +19 -1
  20. package/dist/BrowserRuntime.js.map +1 -1
  21. package/dist/BrowserSocket.d.ts +33 -6
  22. package/dist/BrowserSocket.d.ts.map +1 -1
  23. package/dist/BrowserSocket.js +33 -6
  24. package/dist/BrowserSocket.js.map +1 -1
  25. package/dist/BrowserStream.d.ts +19 -7
  26. package/dist/BrowserStream.d.ts.map +1 -1
  27. package/dist/BrowserStream.js +19 -7
  28. package/dist/BrowserStream.js.map +1 -1
  29. package/dist/BrowserWorker.d.ts +25 -4
  30. package/dist/BrowserWorker.d.ts.map +1 -1
  31. package/dist/BrowserWorker.js +34 -6
  32. package/dist/BrowserWorker.js.map +1 -1
  33. package/dist/BrowserWorkerRunner.d.ts +31 -6
  34. package/dist/BrowserWorkerRunner.d.ts.map +1 -1
  35. package/dist/BrowserWorkerRunner.js +43 -10
  36. package/dist/BrowserWorkerRunner.js.map +1 -1
  37. package/dist/Clipboard.d.ts +59 -14
  38. package/dist/Clipboard.d.ts.map +1 -1
  39. package/dist/Clipboard.js +34 -12
  40. package/dist/Clipboard.js.map +1 -1
  41. package/dist/Geolocation.d.ts +80 -25
  42. package/dist/Geolocation.d.ts.map +1 -1
  43. package/dist/Geolocation.js +48 -17
  44. package/dist/Geolocation.js.map +1 -1
  45. package/dist/IndexedDb.d.ts +75 -0
  46. package/dist/IndexedDb.d.ts.map +1 -0
  47. package/dist/IndexedDb.js +85 -0
  48. package/dist/IndexedDb.js.map +1 -0
  49. package/dist/IndexedDbDatabase.d.ts +153 -0
  50. package/dist/IndexedDbDatabase.d.ts.map +1 -0
  51. package/dist/IndexedDbDatabase.js +327 -0
  52. package/dist/IndexedDbDatabase.js.map +1 -0
  53. package/dist/IndexedDbQueryBuilder.d.ts +422 -0
  54. package/dist/IndexedDbQueryBuilder.d.ts.map +1 -0
  55. package/dist/IndexedDbQueryBuilder.js +935 -0
  56. package/dist/IndexedDbQueryBuilder.js.map +1 -0
  57. package/dist/IndexedDbTable.d.ts +166 -0
  58. package/dist/IndexedDbTable.d.ts.map +1 -0
  59. package/dist/IndexedDbTable.js +71 -0
  60. package/dist/IndexedDbTable.js.map +1 -0
  61. package/dist/IndexedDbVersion.d.ts +99 -0
  62. package/dist/IndexedDbVersion.d.ts.map +1 -0
  63. package/dist/IndexedDbVersion.js +44 -0
  64. package/dist/IndexedDbVersion.js.map +1 -0
  65. package/dist/Permissions.d.ts +52 -16
  66. package/dist/Permissions.d.ts.map +1 -1
  67. package/dist/Permissions.js +42 -11
  68. package/dist/Permissions.js.map +1 -1
  69. package/dist/index.d.ts +38 -10
  70. package/dist/index.d.ts.map +1 -1
  71. package/dist/index.js +38 -10
  72. package/dist/index.js.map +1 -1
  73. package/package.json +4 -3
  74. package/src/BrowserCrypto.ts +97 -0
  75. package/src/BrowserHttpClient.ts +72 -27
  76. package/src/BrowserKeyValueStore.ts +160 -12
  77. package/src/BrowserPersistence.ts +334 -0
  78. package/src/BrowserRuntime.ts +64 -4
  79. package/src/BrowserSocket.ts +33 -6
  80. package/src/BrowserStream.ts +19 -7
  81. package/src/BrowserWorker.ts +34 -6
  82. package/src/BrowserWorkerRunner.ts +43 -10
  83. package/src/Clipboard.ts +56 -14
  84. package/src/Geolocation.ts +76 -21
  85. package/src/IndexedDb.ts +113 -0
  86. package/src/IndexedDbDatabase.ts +648 -0
  87. package/src/IndexedDbQueryBuilder.ts +2032 -0
  88. package/src/IndexedDbTable.ts +260 -0
  89. package/src/IndexedDbVersion.ts +138 -0
  90. package/src/Permissions.ts +47 -14
  91. package/src/index.ts +45 -10
@@ -0,0 +1,422 @@
1
+ /**
2
+ * Builds effectful, schema-aware queries for typed browser IndexedDB versions.
3
+ *
4
+ * An `IndexedDbQueryBuilder` is created from an open database and a version's
5
+ * table descriptors, then exposes `from(tableName)` as the entry point for
6
+ * table operations. Query objects can select, count, delete, insert, upsert,
7
+ * clear tables, stream paged reads, react to invalidations, and run multiple
8
+ * effects in a shared `IDBTransaction` with `withTransaction`. Reads decode
9
+ * stored rows with the table schema, and writes encode input values before
10
+ * sending them to IndexedDB.
11
+ *
12
+ * @since 4.0.0
13
+ */
14
+ import type { NonEmptyReadonlyArray } from "effect/Array";
15
+ import * as Cause from "effect/Cause";
16
+ import * as Context from "effect/Context";
17
+ import * as Effect from "effect/Effect";
18
+ import type { Inspectable } from "effect/Inspectable";
19
+ import type * as MutableRef from "effect/MutableRef";
20
+ import * as Pipeable from "effect/Pipeable";
21
+ import type * as Queue from "effect/Queue";
22
+ import type * as Record from "effect/Record";
23
+ import * as Schema from "effect/Schema";
24
+ import type * as Scope from "effect/Scope";
25
+ import * as Stream from "effect/Stream";
26
+ import type * as Reactivity from "effect/unstable/reactivity/Reactivity";
27
+ import type * as IndexedDb from "./IndexedDb.ts";
28
+ import type * as IndexedDbDatabase from "./IndexedDbDatabase.ts";
29
+ import type * as IndexedDbTable from "./IndexedDbTable.ts";
30
+ import type * as IndexedDbVersion from "./IndexedDbVersion.ts";
31
+ declare const ErrorTypeId = "~@effect/platform-browser/IndexedDbQueryBuilder/IndexedDbQueryError";
32
+ /**
33
+ * String union describing IndexedDB query failure categories such as decoding, encoding, and transaction errors.
34
+ *
35
+ * @category errors
36
+ * @since 4.0.0
37
+ */
38
+ export type ErrorReason = "UnknownError" | "DecodeError" | "EncodeError" | "TransactionError";
39
+ declare const IndexedDbQueryError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => Cause.YieldableError & {
40
+ readonly _tag: "IndexedDbQueryError";
41
+ } & Readonly<A>;
42
+ /**
43
+ * Tagged error for IndexedDB query operations, carrying a query error reason and the original cause.
44
+ *
45
+ * **Details**
46
+ *
47
+ * `reason` is the query failure category, `cause` preserves the underlying
48
+ * schema, IndexedDB request, transaction, or user callback failure, and
49
+ * `message` is set to the reason.
50
+ *
51
+ * @see {@link ErrorReason} for the supported failure categories
52
+ *
53
+ * @category errors
54
+ * @since 4.0.0
55
+ */
56
+ export declare class IndexedDbQueryError extends IndexedDbQueryError_base<{
57
+ reason: ErrorReason;
58
+ cause: unknown;
59
+ }> {
60
+ /**
61
+ * Marks this value as an IndexedDB query builder error for runtime guards.
62
+ *
63
+ * @since 4.0.0
64
+ */
65
+ readonly [ErrorTypeId]: typeof ErrorTypeId;
66
+ readonly message: ErrorReason;
67
+ }
68
+ /**
69
+ * Typed query builder for an IndexedDB version, with helpers for table queries, database access, clearing data, and running effects in a shared transaction.
70
+ *
71
+ * @category models
72
+ * @since 4.0.0
73
+ */
74
+ export interface IndexedDbQueryBuilder<Source extends IndexedDbVersion.AnyWithProps> extends Pipeable.Pipeable, Inspectable {
75
+ readonly tables: ReadonlyMap<string, IndexedDbVersion.Tables<Source>>;
76
+ readonly database: MutableRef.MutableRef<globalThis.IDBDatabase>;
77
+ readonly reactivity: Reactivity.Reactivity["Service"];
78
+ readonly IDBKeyRange: typeof globalThis.IDBKeyRange;
79
+ readonly IDBTransaction: globalThis.IDBTransaction | undefined;
80
+ readonly use: <A = unknown>(f: (database: globalThis.IDBDatabase) => A) => Effect.Effect<A, IndexedDbQueryError>;
81
+ readonly from: <const Name extends IndexedDbTable.TableName<IndexedDbVersion.Tables<Source>>>(table: Name) => IndexedDbQuery.From<IndexedDbVersion.TableWithName<Source, Name>>;
82
+ readonly clearAll: Effect.Effect<void, IndexedDbQueryError>;
83
+ readonly withTransaction: <Tables extends NonEmptyReadonlyArray<IndexedDbTable.TableName<IndexedDbVersion.Tables<Source>>>, Mode extends "readonly" | "readwrite">(options: {
84
+ readonly tables: Tables;
85
+ readonly mode: Mode;
86
+ readonly durability?: IDBTransactionDurability;
87
+ }) => <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, IndexedDbTransaction>>;
88
+ }
89
+ /**
90
+ * Valid key-path type for a table schema, using encoded fields whose values are IndexedDB-valid keys.
91
+ *
92
+ * @category models
93
+ * @since 4.0.0
94
+ */
95
+ export type KeyPath<TableSchema extends IndexedDbTable.AnySchemaStruct> = IndexedDbValidKeys<TableSchema> | NonEmptyReadonlyArray<IndexedDbValidKeys<TableSchema>>;
96
+ /**
97
+ * Valid numeric key-path type for a table schema, used for auto-increment key paths.
98
+ *
99
+ * @category models
100
+ * @since 4.0.0
101
+ */
102
+ export type KeyPathNumber<TableSchema extends IndexedDbTable.AnySchemaStruct> = IndexedDbValidNumberKeys<TableSchema> | NonEmptyReadonlyArray<IndexedDbValidNumberKeys<TableSchema>>;
103
+ /**
104
+ * Namespace containing the typed IndexedDB query model interfaces and helper types.
105
+ *
106
+ * @since 4.0.0
107
+ */
108
+ export declare namespace IndexedDbQuery {
109
+ /**
110
+ * Decoded row type returned by select queries, adding a `key` field when the table does not define a key path.
111
+ *
112
+ * @category models
113
+ * @since 4.0.0
114
+ */
115
+ type SelectType<Table extends IndexedDbTable.AnyWithProps> = [IndexedDbTable.KeyPath<Table>] extends [undefined] ? IndexedDbTable.TableSchema<Table>["Type"] & {
116
+ readonly key: (typeof IndexedDb.IDBValidKey)["Type"];
117
+ } : IndexedDbTable.TableSchema<Table>["Type"];
118
+ /**
119
+ * Input type for insert and upsert operations, adjusted for auto-increment keys and out-of-line keys.
120
+ *
121
+ * @category models
122
+ * @since 4.0.0
123
+ */
124
+ type ModifyType<Table extends IndexedDbTable.AnyWithProps> = (IndexedDbTable.AutoIncrement<Table> extends true ? {
125
+ [key in keyof Schema.Struct.MakeIn<Omit<IndexedDbTable.TableSchema<Table>["fields"], IndexedDbTable.KeyPath<Table>>>]: key extends keyof Schema.Struct.MakeIn<IndexedDbTable.TableSchema<Table>["fields"]> ? Schema.Struct.MakeIn<IndexedDbTable.TableSchema<Table>["fields"]>[key] : never;
126
+ } & {
127
+ [key in IndexedDbTable.KeyPath<Table>]?: number | undefined;
128
+ } : Schema.Struct.MakeIn<IndexedDbTable.TableSchema<Table>["fields"]>) & ([IndexedDbTable.KeyPath<Table>] extends [undefined] ? {
129
+ key: IDBValidKey;
130
+ } : {});
131
+ /**
132
+ * Value type accepted by `equals` comparisons for a table key path or index.
133
+ *
134
+ * @category models
135
+ * @since 4.0.0
136
+ */
137
+ type EqualsType<Table extends IndexedDbTable.AnyWithProps, Index extends keyof Table["indexes"], KeyPath = [Index] extends [never] ? Table["keyPath"] : Table["indexes"][Index], Type = Table["tableSchema"]["Encoded"]> = KeyPath extends keyof Type ? Type[KeyPath] : {
138
+ [I in keyof KeyPath]: KeyPath[I] extends keyof Type ? Type[KeyPath[I]] | [] : never;
139
+ };
140
+ /**
141
+ * Value type accepted by range comparisons for a table key path or index, including partial tuples for compound indexes.
142
+ *
143
+ * @category models
144
+ * @since 4.0.0
145
+ */
146
+ type ExtractIndexType<Table extends IndexedDbTable.AnyWithProps, Index extends keyof Table["indexes"], KeyPath = [Index] extends [never] ? Table["keyPath"] : Table["indexes"][Index], Type = Table["tableSchema"]["Encoded"]> = KeyPath extends keyof Type ? Type[KeyPath] : KeyPath extends readonly [infer K, ...infer Rest] ? K extends keyof Type ? [
147
+ Type[K],
148
+ ...{
149
+ [P in keyof Rest]?: Rest[P] extends keyof Type ? Type[Rest[P]] | [] : never;
150
+ }
151
+ ] : never : never;
152
+ /**
153
+ * Mutation input type for insert and upsert operations, including any required key fields.
154
+ *
155
+ * @category models
156
+ * @since 4.0.0
157
+ */
158
+ type ModifyWithKey<Table extends IndexedDbTable.AnyWithProps> = ModifyType<Table>;
159
+ /**
160
+ * Query entry point for a table, exposing clear, select, count, delete, insert, and upsert operations.
161
+ *
162
+ * @category models
163
+ * @since 4.0.0
164
+ */
165
+ interface From<Table extends IndexedDbTable.AnyWithProps> {
166
+ readonly table: Table;
167
+ readonly database: MutableRef.MutableRef<globalThis.IDBDatabase>;
168
+ readonly IDBKeyRange: typeof globalThis.IDBKeyRange;
169
+ readonly reactivity: Reactivity.Reactivity["Service"];
170
+ readonly clear: Effect.Effect<void, IndexedDbQueryError>;
171
+ readonly select: {
172
+ <Index extends IndexedDbDatabase.IndexFromTable<Table>>(index: Index): Select<Table, Index>;
173
+ (): Select<Table, never>;
174
+ };
175
+ readonly count: {
176
+ <Index extends IndexedDbDatabase.IndexFromTable<Table>>(index: Index): Count<Table, Index>;
177
+ (): Count<Table, never>;
178
+ };
179
+ readonly delete: {
180
+ <Index extends IndexedDbDatabase.IndexFromTable<Table>>(index: Index): DeletePartial<Table, Index>;
181
+ (): DeletePartial<Table, never>;
182
+ };
183
+ readonly insert: (value: ModifyWithKey<Table>) => Modify<Table>;
184
+ readonly insertAll: (values: Array<ModifyWithKey<Table>>) => ModifyAll<Table>;
185
+ readonly upsert: (value: ModifyWithKey<Table>) => Modify<Table>;
186
+ readonly upsertAll: (values: Array<ModifyWithKey<Table>>) => ModifyAll<Table>;
187
+ }
188
+ /**
189
+ * Effect model for clearing all rows from a table.
190
+ *
191
+ * @category models
192
+ * @since 4.0.0
193
+ */
194
+ interface Clear<Table extends IndexedDbTable.AnyWithProps> extends Effect.Effect<void, IndexedDbQueryError> {
195
+ readonly from: From<Table>;
196
+ }
197
+ type ComparisonKeys = "equals" | "gte" | "lte" | "gt" | "lt" | "between";
198
+ /**
199
+ * Effect model for counting table rows, optionally constrained by an index and key-range comparisons.
200
+ *
201
+ * @category models
202
+ * @since 4.0.0
203
+ */
204
+ interface Count<Table extends IndexedDbTable.AnyWithProps, Index extends IndexedDbDatabase.IndexFromTable<Table>> extends Effect.Effect<number, IndexedDbQueryError> {
205
+ readonly from: From<Table>;
206
+ readonly index?: Index;
207
+ readonly only?: ExtractIndexType<Table, Index>;
208
+ readonly lowerBound?: ExtractIndexType<Table, Index>;
209
+ readonly upperBound?: ExtractIndexType<Table, Index>;
210
+ readonly excludeLowerBound?: boolean;
211
+ readonly excludeUpperBound?: boolean;
212
+ readonly equals: (value: EqualsType<Table, Index>) => Omit<Count<Table, Index>, ComparisonKeys>;
213
+ readonly gte: (value: ExtractIndexType<Table, Index>) => Omit<Count<Table, Index>, ComparisonKeys>;
214
+ readonly lte: (value: ExtractIndexType<Table, Index>) => Omit<Count<Table, Index>, ComparisonKeys>;
215
+ readonly gt: (value: ExtractIndexType<Table, Index>) => Omit<Count<Table, Index>, ComparisonKeys>;
216
+ readonly lt: (value: ExtractIndexType<Table, Index>) => Omit<Count<Table, Index>, ComparisonKeys>;
217
+ readonly between: (lowerBound: ExtractIndexType<Table, Index>, upperBound: ExtractIndexType<Table, Index>, options?: {
218
+ excludeLowerBound?: boolean;
219
+ excludeUpperBound?: boolean;
220
+ }) => Omit<Count<Table, Index>, ComparisonKeys>;
221
+ }
222
+ /**
223
+ * Intermediate delete builder used to choose a key range or limit before producing an executable delete query.
224
+ *
225
+ * @category models
226
+ * @since 4.0.0
227
+ */
228
+ interface DeletePartial<Table extends IndexedDbTable.AnyWithProps, Index extends IndexedDbDatabase.IndexFromTable<Table>> {
229
+ readonly from: From<Table>;
230
+ readonly index?: Index;
231
+ readonly equals: (value: EqualsType<Table, Index>) => Delete<Table, Index>;
232
+ readonly gte: (value: ExtractIndexType<Table, Index>) => Delete<Table, Index>;
233
+ readonly lte: (value: ExtractIndexType<Table, Index>) => Delete<Table, Index>;
234
+ readonly gt: (value: ExtractIndexType<Table, Index>) => Delete<Table, Index>;
235
+ readonly lt: (value: ExtractIndexType<Table, Index>) => Delete<Table, Index>;
236
+ readonly between: (lowerBound: ExtractIndexType<Table, Index>, upperBound: ExtractIndexType<Table, Index>, options?: {
237
+ excludeLowerBound?: boolean;
238
+ excludeUpperBound?: boolean;
239
+ }) => Delete<Table, Index>;
240
+ readonly limit: (limit: number) => DeleteWithout<Table, Index, "limit">;
241
+ }
242
+ type DeleteWithout<Table extends IndexedDbTable.AnyWithProps, Index extends IndexedDbDatabase.IndexFromTable<Table>, ExcludedKeys extends string> = Omit<Delete<Table, Index, ExcludedKeys>, ExcludedKeys>;
243
+ /**
244
+ * Effect model for deleting rows from a table, with optional key-range, limit, filter, and reactivity invalidation helpers.
245
+ *
246
+ * @category models
247
+ * @since 4.0.0
248
+ */
249
+ interface Delete<Table extends IndexedDbTable.AnyWithProps, Index extends IndexedDbDatabase.IndexFromTable<Table>, ExcludedKeys extends string = never> extends Effect.Effect<void, IndexedDbQueryError> {
250
+ readonly delete: DeletePartial<Table, Index>;
251
+ readonly index?: Index;
252
+ readonly limitValue?: number;
253
+ readonly only?: ExtractIndexType<Table, Index>;
254
+ readonly lowerBound?: ExtractIndexType<Table, Index>;
255
+ readonly upperBound?: ExtractIndexType<Table, Index>;
256
+ readonly excludeLowerBound?: boolean;
257
+ readonly excludeUpperBound?: boolean;
258
+ readonly predicate?: (item: IndexedDbTable.Encoded<Table>) => boolean;
259
+ readonly limit: (limit: number) => DeleteWithout<Table, Index, ExcludedKeys | "limit">;
260
+ readonly filter: (f: (value: IndexedDbTable.Encoded<Table>) => boolean) => DeleteWithout<Table, Index, ExcludedKeys>;
261
+ /**
262
+ * Invalidate any queries using Reactivity service with the provided keys.
263
+ *
264
+ * **Details**
265
+ *
266
+ * If no keys are provided, the table name is used as the reactivity key.
267
+ */
268
+ readonly invalidate: (keys?: ReadonlyArray<unknown> | Record.ReadonlyRecord<string, ReadonlyArray<unknown>> | undefined) => Effect.Effect<void, IndexedDbQueryError, IndexedDbTable.Context<Table>>;
269
+ }
270
+ type SelectWithout<Table extends IndexedDbTable.AnyWithProps, Index extends IndexedDbDatabase.IndexFromTable<Table>, ExcludedKeys extends string> = Omit<Select<Table, Index, ExcludedKeys>, ExcludedKeys>;
271
+ /**
272
+ * Effect model for selecting rows from a table, with chainable range, paging, filtering, streaming, and reactive query helpers.
273
+ *
274
+ * @category models
275
+ * @since 4.0.0
276
+ */
277
+ interface Select<Table extends IndexedDbTable.AnyWithProps, Index extends IndexedDbDatabase.IndexFromTable<Table>, ExcludedKeys extends string = never> extends Effect.Effect<Array<SelectType<Table>>, IndexedDbQueryError, IndexedDbTable.Context<Table>> {
278
+ readonly from: From<Table>;
279
+ readonly index?: Index;
280
+ readonly limitValue?: number;
281
+ readonly offsetValue?: number;
282
+ readonly reverseValue?: boolean;
283
+ readonly only?: ExtractIndexType<Table, Index>;
284
+ readonly lowerBound?: ExtractIndexType<Table, Index>;
285
+ readonly upperBound?: ExtractIndexType<Table, Index>;
286
+ readonly excludeLowerBound?: boolean;
287
+ readonly excludeUpperBound?: boolean;
288
+ readonly predicate?: (item: IndexedDbTable.Encoded<Table>) => boolean;
289
+ readonly equals: (value: EqualsType<Table, Index>) => SelectWithout<Table, Index, ExcludedKeys | ComparisonKeys>;
290
+ readonly gte: (value: ExtractIndexType<Table, Index>) => SelectWithout<Table, Index, ExcludedKeys | ComparisonKeys>;
291
+ readonly lte: (value: ExtractIndexType<Table, Index>) => SelectWithout<Table, Index, ExcludedKeys | ComparisonKeys>;
292
+ readonly gt: (value: ExtractIndexType<Table, Index>) => SelectWithout<Table, Index, ExcludedKeys | ComparisonKeys>;
293
+ readonly lt: (value: ExtractIndexType<Table, Index>) => SelectWithout<Table, Index, ExcludedKeys | ComparisonKeys>;
294
+ readonly between: (lowerBound: ExtractIndexType<Table, Index>, upperBound: ExtractIndexType<Table, Index>, options?: {
295
+ excludeLowerBound?: boolean;
296
+ excludeUpperBound?: boolean;
297
+ }) => SelectWithout<Table, Index, ExcludedKeys | ComparisonKeys>;
298
+ readonly limit: (limit: number) => SelectWithout<Table, Index, ExcludedKeys | "limit" | "first">;
299
+ readonly offset: (offset: number) => SelectWithout<Table, Index, ExcludedKeys | "offset" | "first">;
300
+ readonly reverse: () => SelectWithout<Table, Index, ExcludedKeys | "reverse" | "first">;
301
+ readonly filter: (f: (value: IndexedDbTable.Encoded<Table>) => boolean) => SelectWithout<Table, Index, ExcludedKeys | "first">;
302
+ readonly first: () => First<Table, Index>;
303
+ /**
304
+ * Stream the selected data.
305
+ *
306
+ * **Details**
307
+ *
308
+ * The default chunk size is 100.
309
+ */
310
+ readonly stream: (options?: {
311
+ readonly chunkSize?: number | undefined;
312
+ }) => Stream.Stream<SelectType<Table>, IndexedDbQueryError, IndexedDbTable.Context<Table>>;
313
+ /**
314
+ * Use the Reactivity service to react to changes to the selected data.
315
+ *
316
+ * **Details**
317
+ *
318
+ * By default, the table name is used as the reactivity key.
319
+ */
320
+ readonly reactive: (keys?: ReadonlyArray<unknown> | Record.ReadonlyRecord<string, ReadonlyArray<unknown>> | undefined) => Stream.Stream<Array<SelectType<Table>>, IndexedDbQueryError, IndexedDbTable.Context<Table>>;
321
+ readonly reactiveQueue: (keys?: ReadonlyArray<unknown> | Record.ReadonlyRecord<string, ReadonlyArray<unknown>> | undefined) => Effect.Effect<Queue.Dequeue<Array<SelectType<Table>>, IndexedDbQueryError>, never, Scope.Scope | IndexedDbTable.Context<Table>>;
322
+ }
323
+ /**
324
+ * Effect model for selecting the first matching row, failing with `NoSuchElementError` when no row is found.
325
+ *
326
+ * @category models
327
+ * @since 4.0.0
328
+ */
329
+ interface First<Table extends IndexedDbTable.AnyWithProps, Index extends IndexedDbDatabase.IndexFromTable<Table>> extends Effect.Effect<SelectType<Table>, IndexedDbQueryError | Cause.NoSuchElementError, IndexedDbTable.Context<Table>> {
330
+ readonly select: Select<Table, Index>;
331
+ /**
332
+ * Use the Reactivity service to react to changes to the selected data.
333
+ *
334
+ * **Details**
335
+ *
336
+ * By default, the table name is used as the reactivity key.
337
+ */
338
+ readonly reactive: (keys?: ReadonlyArray<unknown> | Record.ReadonlyRecord<string, ReadonlyArray<unknown>> | undefined) => Stream.Stream<SelectType<Table>, IndexedDbQueryError | Cause.NoSuchElementError, IndexedDbTable.Context<Table>>;
339
+ /**
340
+ * Use the Reactivity service to react to changes to the selected data.
341
+ *
342
+ * **Details**
343
+ *
344
+ * By default, the table name is used as the reactivity key.
345
+ */
346
+ readonly reactiveQueue: (keys: ReadonlyArray<unknown> | Record.ReadonlyRecord<string, ReadonlyArray<unknown>>) => Effect.Effect<Queue.Dequeue<SelectType<Table>, IndexedDbQueryError | Cause.NoSuchElementError>, never, Scope.Scope | IndexedDbTable.Context<Table>>;
347
+ }
348
+ /**
349
+ * Effect model for a select query filtered by one or more predicates over encoded table rows.
350
+ *
351
+ * @category models
352
+ * @since 4.0.0
353
+ */
354
+ interface Filter<Table extends IndexedDbTable.AnyWithProps, Index extends IndexedDbDatabase.IndexFromTable<Table>> extends Effect.Effect<Array<SelectType<Table>>, IndexedDbQueryError, IndexedDbTable.Context<Table>> {
355
+ readonly select: Select<Table, Index>;
356
+ readonly predicate: (item: IndexedDbTable.Encoded<Table>) => boolean;
357
+ readonly filter: (f: (value: IndexedDbTable.Encoded<Table>) => boolean) => Filter<Table, Index>;
358
+ }
359
+ /**
360
+ * Effect model for inserting or upserting one row, returning the resulting IndexedDB key and supporting reactivity invalidation.
361
+ *
362
+ * @category models
363
+ * @since 4.0.0
364
+ */
365
+ interface Modify<Table extends IndexedDbTable.AnyWithProps> extends Effect.Effect<globalThis.IDBValidKey, IndexedDbQueryError, IndexedDbTable.Context<Table>> {
366
+ readonly operation: "add" | "put";
367
+ readonly from: From<Table>;
368
+ readonly value: ModifyWithKey<Table>;
369
+ /**
370
+ * Invalidate any queries using Reactivity service with the provided keys.
371
+ *
372
+ * **Details**
373
+ *
374
+ * If no keys are provided, the table name is used as the reactivity key.
375
+ */
376
+ readonly invalidate: (keys?: ReadonlyArray<unknown> | Record.ReadonlyRecord<string, ReadonlyArray<unknown>> | undefined) => Effect.Effect<globalThis.IDBValidKey, IndexedDbQueryError, IndexedDbTable.Context<Table>>;
377
+ }
378
+ /**
379
+ * Effect model for inserting or upserting multiple rows, returning the resulting IndexedDB keys and supporting reactivity invalidation.
380
+ *
381
+ * @category models
382
+ * @since 4.0.0
383
+ */
384
+ interface ModifyAll<Table extends IndexedDbTable.AnyWithProps> extends Effect.Effect<Array<globalThis.IDBValidKey>, IndexedDbQueryError, IndexedDbTable.Context<Table>> {
385
+ readonly operation: "add" | "put";
386
+ readonly from: From<Table>;
387
+ readonly values: Array<ModifyWithKey<Table>>;
388
+ /**
389
+ * Invalidate any queries using Reactivity service with the provided keys.
390
+ *
391
+ * **Details**
392
+ *
393
+ * If no keys are provided, the table name is used as the reactivity key.
394
+ */
395
+ readonly invalidate: (keys?: ReadonlyArray<unknown> | Record.ReadonlyRecord<string, ReadonlyArray<unknown>> | undefined) => Effect.Effect<globalThis.IDBValidKey, IndexedDbQueryError, IndexedDbTable.Context<Table>>;
396
+ }
397
+ }
398
+ declare const IndexedDbTransaction_base: Context.ServiceClass<IndexedDbTransaction, "@effect/platform-browser/IndexedDbQueryBuilder/IndexedDbTransaction", IDBTransaction>;
399
+ /**
400
+ * Service tag for the active `IDBTransaction` used to share a transaction across IndexedDB query effects.
401
+ *
402
+ * @category models
403
+ * @since 4.0.0
404
+ */
405
+ export declare class IndexedDbTransaction extends IndexedDbTransaction_base {
406
+ }
407
+ type IndexedDbValidKeys<TableSchema extends IndexedDbTable.AnySchemaStruct> = keyof TableSchema["Encoded"] extends infer K ? K extends keyof TableSchema["Encoded"] ? TableSchema["Encoded"][K] extends Readonly<IDBValidKey> ? K : never : never : never;
408
+ type IndexedDbValidNumberKeys<TableSchema extends IndexedDbTable.AnySchemaStruct> = keyof TableSchema["Encoded"] extends infer K ? K extends keyof TableSchema["Encoded"] ? [TableSchema["Encoded"][K]] extends [number | undefined] ? K : never : never : never;
409
+ /**
410
+ * Creates an `IndexedDbQueryBuilder` from an open database reference, key-range constructor, table map, and reactivity service.
411
+ *
412
+ * @category constructors
413
+ * @since 4.0.0
414
+ */
415
+ export declare const make: <Source extends IndexedDbVersion.AnyWithProps>({ IDBKeyRange, database, tables, reactivity }: {
416
+ readonly database: MutableRef.MutableRef<globalThis.IDBDatabase>;
417
+ readonly IDBKeyRange: typeof globalThis.IDBKeyRange;
418
+ readonly tables: ReadonlyMap<string, IndexedDbVersion.Tables<Source>>;
419
+ readonly reactivity: Reactivity.Reactivity["Service"];
420
+ }) => IndexedDbQueryBuilder<Source>;
421
+ export {};
422
+ //# sourceMappingURL=IndexedDbQueryBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IndexedDbQueryBuilder.d.ts","sourceRoot":"","sources":["../src/IndexedDbQueryBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAGvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAA;AAEpD,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,MAAM,eAAe,CAAA;AAE5C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAG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