@lpdjs/firestore-repo-service 3.0.21 → 3.0.22
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/dist/{create-servers-z-dCkmv2.d.ts → create-servers-C2-N5z8x.d.ts} +2 -2
- package/dist/{create-servers-TfGVAXBQ.d.cts → create-servers-CJoYVtqw.d.cts} +2 -2
- package/dist/{effects-DLBSYKuA.d.ts → effects-C9u6LnP4.d.ts} +1 -1
- package/dist/{effects-DsI4cSpI.d.cts → effects-DIzixoqH.d.cts} +1 -1
- package/dist/index.cjs +78 -78
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +78 -78
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/servers/admin/index.d.cts +1 -1
- package/dist/servers/admin/index.d.ts +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 +4 -4
- package/dist/servers/crud/index.d.ts +4 -4
- package/dist/servers/crud/index.js +2 -2
- package/dist/servers/crud/index.js.map +1 -1
- package/dist/servers/index.cjs +87 -87
- package/dist/servers/index.cjs.map +1 -1
- package/dist/servers/index.d.cts +4 -4
- package/dist/servers/index.d.ts +4 -4
- package/dist/servers/index.js +87 -87
- package/dist/servers/index.js.map +1 -1
- package/dist/{types-BLHo_PdM.d.cts → types-CbSUjxFr.d.cts} +12 -0
- package/dist/{types-6jjeTvcm.d.ts → types-Cf6FbzmZ.d.ts} +12 -0
- package/package.json +1 -1
|
@@ -42,6 +42,12 @@ interface PaginationOptions<T> extends Omit<QueryOptions<T>, "limit"> {
|
|
|
42
42
|
direction?: "next" | "prev";
|
|
43
43
|
/** Whether to calculate and return total count of matching items */
|
|
44
44
|
withTotal?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Optional callback invoked if Firestore's native `Filter.or().count()`
|
|
47
|
+
* encounters a missing composite index (`FAILED_PRECONDITION`) and safely
|
|
48
|
+
* falls back to summing per-branch counts (`totalCountIsExact: false`).
|
|
49
|
+
*/
|
|
50
|
+
onCountIndexError?: (error: unknown) => void;
|
|
45
51
|
}
|
|
46
52
|
/**
|
|
47
53
|
* Executes a paginated query and returns results with pagination info.
|
|
@@ -1298,6 +1304,12 @@ interface IndexErrorContext {
|
|
|
1298
1304
|
error: unknown;
|
|
1299
1305
|
/** Hono Context (provides access to req, headers, auth user, etc.) */
|
|
1300
1306
|
c?: any;
|
|
1307
|
+
/**
|
|
1308
|
+
* `true` when the missing index only affected the native `Filter.or().count()`
|
|
1309
|
+
* optimization and the request still succeeded (`200 OK`) via the branch-sum
|
|
1310
|
+
* fallback (`totalCountIsExact: false`). `undefined` for fatal `424` index errors.
|
|
1311
|
+
*/
|
|
1312
|
+
nonFatal?: boolean;
|
|
1301
1313
|
}
|
|
1302
1314
|
/**
|
|
1303
1315
|
* Callback invoked when a missing Firestore index error occurs.
|
|
@@ -42,6 +42,12 @@ interface PaginationOptions<T> extends Omit<QueryOptions<T>, "limit"> {
|
|
|
42
42
|
direction?: "next" | "prev";
|
|
43
43
|
/** Whether to calculate and return total count of matching items */
|
|
44
44
|
withTotal?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Optional callback invoked if Firestore's native `Filter.or().count()`
|
|
47
|
+
* encounters a missing composite index (`FAILED_PRECONDITION`) and safely
|
|
48
|
+
* falls back to summing per-branch counts (`totalCountIsExact: false`).
|
|
49
|
+
*/
|
|
50
|
+
onCountIndexError?: (error: unknown) => void;
|
|
45
51
|
}
|
|
46
52
|
/**
|
|
47
53
|
* Executes a paginated query and returns results with pagination info.
|
|
@@ -1298,6 +1304,12 @@ interface IndexErrorContext {
|
|
|
1298
1304
|
error: unknown;
|
|
1299
1305
|
/** Hono Context (provides access to req, headers, auth user, etc.) */
|
|
1300
1306
|
c?: any;
|
|
1307
|
+
/**
|
|
1308
|
+
* `true` when the missing index only affected the native `Filter.or().count()`
|
|
1309
|
+
* optimization and the request still succeeded (`200 OK`) via the branch-sum
|
|
1310
|
+
* fallback (`totalCountIsExact: false`). `undefined` for fatal `424` index errors.
|
|
1311
|
+
*/
|
|
1312
|
+
nonFatal?: boolean;
|
|
1301
1313
|
}
|
|
1302
1314
|
/**
|
|
1303
1315
|
* Callback invoked when a missing Firestore index error occurs.
|