@lpdjs/firestore-repo-service 2.4.3 → 2.6.2-beta.0
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/README.md +92 -50
- package/dist/{create-servers-B9dTUhvR.d.cts → create-servers-B4GrBqdA.d.cts} +6 -6
- package/dist/{create-servers-BFhdPPeo.d.ts → create-servers-CVudVM8e.d.ts} +6 -6
- package/dist/{firebase-auth-D1APf9PA.d.cts → firebase-auth-Dpvrd8MP.d.cts} +13 -0
- package/dist/{firebase-auth-D1APf9PA.d.ts → firebase-auth-Dpvrd8MP.d.ts} +13 -0
- package/dist/history/index.cjs +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +10 -4
- package/dist/history/index.d.ts +10 -4
- package/dist/history/index.js +1 -1
- package/dist/history/index.js.map +1 -1
- package/dist/{index-BxurOEz1.d.ts → index-DzO9MfNI.d.cts} +9 -2
- package/dist/{index-BmagC7uw.d.cts → index-oFhGCBrY.d.ts} +9 -2
- package/dist/index.cjs +84 -84
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +84 -84
- package/dist/index.js.map +1 -1
- package/dist/{openapi-ML_1hTx2.d.cts → openapi-B2w5tVRR.d.cts} +1 -1
- package/dist/{openapi-DIoQV_yQ.d.ts → openapi-DB8bXZB-.d.ts} +1 -1
- package/dist/{queue-xMOZxY0M.d.cts → queue-B8YUTnBT.d.cts} +20 -5
- package/dist/{queue-CVchaGAh.d.ts → queue-DYmbVDu5.d.ts} +20 -5
- package/dist/{read-BSyLao3I.d.cts → read-CTWZjxyh.d.cts} +1 -1
- package/dist/{read-BSyLao3I.d.ts → read-CTWZjxyh.d.ts} +1 -1
- package/dist/servers/admin/index.cjs +48 -48
- package/dist/servers/admin/index.cjs.map +1 -1
- package/dist/servers/admin/index.d.cts +4 -4
- package/dist/servers/admin/index.d.ts +4 -4
- package/dist/servers/admin/index.js +48 -48
- package/dist/servers/admin/index.js.map +1 -1
- package/dist/servers/auth/index.cjs +25 -12
- package/dist/servers/auth/index.cjs.map +1 -1
- package/dist/servers/auth/index.d.cts +1 -1
- package/dist/servers/auth/index.d.ts +1 -1
- package/dist/servers/auth/index.js +25 -12
- package/dist/servers/auth/index.js.map +1 -1
- package/dist/servers/crud/index.cjs +2 -2
- package/dist/servers/crud/index.cjs.map +1 -1
- package/dist/servers/crud/index.d.cts +6 -6
- package/dist/servers/crud/index.d.ts +6 -6
- package/dist/servers/crud/index.js +2 -2
- package/dist/servers/crud/index.js.map +1 -1
- package/dist/servers/hono/cli.cjs +142 -53
- package/dist/servers/hono/cli.cjs.map +1 -1
- package/dist/servers/hono/cli.js +142 -53
- package/dist/servers/hono/cli.js.map +1 -1
- package/dist/servers/hono/index.cjs +5 -5
- package/dist/servers/hono/index.cjs.map +1 -1
- package/dist/servers/hono/index.d.cts +241 -24
- package/dist/servers/hono/index.d.ts +241 -24
- package/dist/servers/hono/index.js +5 -5
- package/dist/servers/hono/index.js.map +1 -1
- package/dist/servers/index.cjs +98 -98
- package/dist/servers/index.cjs.map +1 -1
- package/dist/servers/index.d.cts +9 -9
- package/dist/servers/index.d.ts +9 -9
- package/dist/servers/index.js +98 -98
- package/dist/servers/index.js.map +1 -1
- package/dist/sync/bigquery.cjs +3 -3
- package/dist/sync/bigquery.cjs.map +1 -1
- package/dist/sync/bigquery.d.cts +18 -2
- package/dist/sync/bigquery.d.ts +18 -2
- package/dist/sync/bigquery.js +3 -3
- package/dist/sync/bigquery.js.map +1 -1
- package/dist/sync/index.cjs +37 -37
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.d.cts +5 -5
- package/dist/sync/index.d.ts +5 -5
- package/dist/sync/index.js +37 -37
- package/dist/sync/index.js.map +1 -1
- package/dist/{types-5vgXdUM2.d.ts → types-BHZ-Gk-s.d.ts} +71 -4
- package/dist/{types-ChzVPw4k.d.ts → types-FLGn8CAI.d.ts} +15 -1
- package/dist/{types-BtdC0Qhu.d.cts → types-GvexCqrq.d.cts} +71 -4
- package/dist/{types-BgIGWlR1.d.cts → types-wcX7xfdo.d.cts} +15 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as SqlAdapter, S as SyncEvent } from './types-
|
|
1
|
+
import { a as SqlAdapter, S as SyncEvent } from './types-wcX7xfdo.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Per-repo in-memory batch buffer.
|
|
@@ -47,12 +47,27 @@ declare class SyncQueue {
|
|
|
47
47
|
*
|
|
48
48
|
* Concurrent callers (e.g. several PubSub messages handled in parallel
|
|
49
49
|
* inside the same Cloud Function instance with `concurrency > 1`) all
|
|
50
|
-
* await the same in-flight
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* which is required for safe PubSub
|
|
50
|
+
* await the same in-flight drain cycle. A drain cycle empties the buffer
|
|
51
|
+
* completely (see {@link _drain}), so by the time `await flush()` resolves
|
|
52
|
+
* every event that was buffered when the call started has been persisted
|
|
53
|
+
* (or handed to `onFlushError`) — which is required for safe PubSub
|
|
54
|
+
* at-least-once ack semantics.
|
|
54
55
|
*/
|
|
55
56
|
flush(): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Drain the buffer to empty. A single {@link _doFlush} only removes up to
|
|
59
|
+
* `batchSize` events, so loop until nothing remains. Without this loop,
|
|
60
|
+
* bursts larger than `batchSize` would leave events buffered after
|
|
61
|
+
* `flush()` resolved — and a container shutdown before the next interval
|
|
62
|
+
* would lose them permanently (breaking at-least-once).
|
|
63
|
+
*/
|
|
64
|
+
private _drain;
|
|
65
|
+
/**
|
|
66
|
+
* Flush a single batch (up to `batchSize` events) to the adapter.
|
|
67
|
+
* @returns `true` when the batch was processed (or routed to the error
|
|
68
|
+
* handler) and the loop may continue; `false` when the batch was
|
|
69
|
+
* re-buffered after a failure with no `onFlushError` handler.
|
|
70
|
+
*/
|
|
56
71
|
private _doFlush;
|
|
57
72
|
/** Stop the auto-flush timer and flush remaining events. */
|
|
58
73
|
shutdown(): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as SqlAdapter, S as SyncEvent } from './types-
|
|
1
|
+
import { a as SqlAdapter, S as SyncEvent } from './types-FLGn8CAI.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Per-repo in-memory batch buffer.
|
|
@@ -47,12 +47,27 @@ declare class SyncQueue {
|
|
|
47
47
|
*
|
|
48
48
|
* Concurrent callers (e.g. several PubSub messages handled in parallel
|
|
49
49
|
* inside the same Cloud Function instance with `concurrency > 1`) all
|
|
50
|
-
* await the same in-flight
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* which is required for safe PubSub
|
|
50
|
+
* await the same in-flight drain cycle. A drain cycle empties the buffer
|
|
51
|
+
* completely (see {@link _drain}), so by the time `await flush()` resolves
|
|
52
|
+
* every event that was buffered when the call started has been persisted
|
|
53
|
+
* (or handed to `onFlushError`) — which is required for safe PubSub
|
|
54
|
+
* at-least-once ack semantics.
|
|
54
55
|
*/
|
|
55
56
|
flush(): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Drain the buffer to empty. A single {@link _doFlush} only removes up to
|
|
59
|
+
* `batchSize` events, so loop until nothing remains. Without this loop,
|
|
60
|
+
* bursts larger than `batchSize` would leave events buffered after
|
|
61
|
+
* `flush()` resolved — and a container shutdown before the next interval
|
|
62
|
+
* would lose them permanently (breaking at-least-once).
|
|
63
|
+
*/
|
|
64
|
+
private _drain;
|
|
65
|
+
/**
|
|
66
|
+
* Flush a single batch (up to `batchSize` events) to the adapter.
|
|
67
|
+
* @returns `true` when the batch was processed (or routed to the error
|
|
68
|
+
* handler) and the loop may continue; `false` when the batch was
|
|
69
|
+
* re-buffered after a failure with no `onFlushError` handler.
|
|
70
|
+
*/
|
|
56
71
|
private _doFlush;
|
|
57
72
|
/** Stop the auto-flush timer and flush remaining events. */
|
|
58
73
|
shutdown(): Promise<void>;
|
|
@@ -357,4 +357,4 @@ interface HistoryMethods<T, PathArgs extends readonly unknown[] = [string]> {
|
|
|
357
357
|
]): Promise<HistoryEntry<T> | null>;
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
-
export { type HistoryTriggersConfig as H, type V2HistoryDoc as V, type
|
|
360
|
+
export { type HistoryTriggersConfig as H, type V2HistoryDoc as V, type HistoryOperation as a, type HistoryFieldChange as b, type HistoryMeta as c, type HistoryConfigForModel as d, type HistoryValueType as e, type V1HistoryDoc as f, type HistoryEntry as g, createHistoryMethods as h, type HistoryMethods as i, type HistoryConfigBase as j, type HistoryFirestoreTriggersDep as k, type HistoryListOptions as l, type HistoryRawListOptions as m, type HistoryTriggerRepoOverride as n };
|
|
@@ -357,4 +357,4 @@ interface HistoryMethods<T, PathArgs extends readonly unknown[] = [string]> {
|
|
|
357
357
|
]): Promise<HistoryEntry<T> | null>;
|
|
358
358
|
}
|
|
359
359
|
|
|
360
|
-
export { type HistoryTriggersConfig as H, type V2HistoryDoc as V, type
|
|
360
|
+
export { type HistoryTriggersConfig as H, type V2HistoryDoc as V, type HistoryOperation as a, type HistoryFieldChange as b, type HistoryMeta as c, type HistoryConfigForModel as d, type HistoryValueType as e, type V1HistoryDoc as f, type HistoryEntry as g, createHistoryMethods as h, type HistoryMethods as i, type HistoryConfigBase as j, type HistoryFirestoreTriggersDep as k, type HistoryListOptions as l, type HistoryRawListOptions as m, type HistoryTriggerRepoOverride as n };
|