@lpdjs/firestore-repo-service 2.6.48 → 2.6.49

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 (34) hide show
  1. package/README.md +4 -1
  2. package/dist/{create-servers-BjhepKI6.d.ts → create-servers-CwNxQQQ1.d.ts} +3 -3
  3. package/dist/{create-servers-DSLJF9cm.d.cts → create-servers-rVXsgSQE.d.cts} +3 -3
  4. package/dist/{index-BwN1OK3P.d.cts → index-CsuESJ5D.d.cts} +1 -1
  5. package/dist/{index-Df6FAq2n.d.ts → index-D0clYX8B.d.ts} +1 -1
  6. package/dist/index.cjs +76 -76
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.d.cts +16 -6
  9. package/dist/index.d.ts +16 -6
  10. package/dist/index.js +76 -76
  11. package/dist/index.js.map +1 -1
  12. package/dist/llms-full.txt +178 -9
  13. package/dist/llms.txt +2 -1
  14. package/dist/{openapi-CC8PXZ3R.d.cts → openapi-BEBoB0y3.d.cts} +1 -1
  15. package/dist/{openapi-DuBKOatd.d.ts → openapi-ltqn60oy.d.ts} +1 -1
  16. package/dist/servers/admin/index.d.cts +2 -2
  17. package/dist/servers/admin/index.d.ts +2 -2
  18. package/dist/servers/crud/index.cjs +2 -2
  19. package/dist/servers/crud/index.cjs.map +1 -1
  20. package/dist/servers/crud/index.d.cts +4 -4
  21. package/dist/servers/crud/index.d.ts +4 -4
  22. package/dist/servers/crud/index.js +2 -2
  23. package/dist/servers/crud/index.js.map +1 -1
  24. package/dist/servers/index.cjs +55 -55
  25. package/dist/servers/index.cjs.map +1 -1
  26. package/dist/servers/index.d.cts +5 -5
  27. package/dist/servers/index.d.ts +5 -5
  28. package/dist/servers/index.js +55 -55
  29. package/dist/servers/index.js.map +1 -1
  30. package/dist/sync/index.cjs +3 -3
  31. package/dist/sync/index.js +3 -3
  32. package/dist/{types-BEel_BJZ.d.ts → types-DG5Ys5AM.d.ts} +16 -0
  33. package/dist/{types-BQKFWe40.d.cts → types-DQwhnE4-.d.cts} +16 -0
  34. package/package.json +1 -1
package/README.md CHANGED
@@ -219,11 +219,14 @@ const nextPage = await repos.users.query.by({
219
219
  limit: 10,
220
220
  });
221
221
 
222
- // Paginate with relations
222
+ // Paginate with total count (server-side .count() aggregation)
223
223
  const page = await repos.posts.query.paginate({
224
224
  pageSize: 10,
225
+ withTotal: true,
225
226
  include: [{ relation: "userId", select: ["docId", "name", "email"] }],
226
227
  });
228
+ console.log(page.totalCount); // e.g. 142
229
+ console.log(page.totalCountIsExact); // true for AND queries, false for OR queries
227
230
  ```
228
231
 
229
232
  ### Aggregations
@@ -1,11 +1,11 @@
1
1
  import { S as SyncQueue } from './queue-B4uwef6c.js';
2
2
  import { F as FirestoreSyncConfig, S as SyncEvent } from './types-DT7Nypd_.js';
3
- import { O as OpenAPIDocument } from './openapi-DuBKOatd.js';
3
+ import { O as OpenAPIDocument } from './openapi-ltqn60oy.js';
4
4
  import * as firebase_functions_v2_https from 'firebase-functions/v2/https';
5
5
  import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
6
6
  import { H as HistoryTriggersConfig } from './read-CTWZjxyh.js';
7
- import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-BEel_BJZ.js';
8
- import { A as AdminServerOptions, a as AdminRepoConfig } from './index-Df6FAq2n.js';
7
+ import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-DG5Ys5AM.js';
8
+ import { A as AdminServerOptions, a as AdminRepoConfig } from './index-D0clYX8B.js';
9
9
 
10
10
  /** Per-repo admin config with `repo` omitted (auto-bound from the registry key). */
11
11
  type BoundAdminRepoConfig<TRepo extends ConfiguredRepository<any>> = Omit<AdminRepoConfig<TRepo>, "repo">;
@@ -1,11 +1,11 @@
1
1
  import { S as SyncQueue } from './queue-CQyWCQBk.cjs';
2
2
  import { F as FirestoreSyncConfig, S as SyncEvent } from './types-BwH1C-wi.cjs';
3
- import { O as OpenAPIDocument } from './openapi-CC8PXZ3R.cjs';
3
+ import { O as OpenAPIDocument } from './openapi-BEBoB0y3.cjs';
4
4
  import * as firebase_functions_v2_https from 'firebase-functions/v2/https';
5
5
  import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
6
6
  import { H as HistoryTriggersConfig } from './read-CTWZjxyh.cjs';
7
- import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-BQKFWe40.cjs';
8
- import { A as AdminServerOptions, a as AdminRepoConfig } from './index-BwN1OK3P.cjs';
7
+ import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-DQwhnE4-.cjs';
8
+ import { A as AdminServerOptions, a as AdminRepoConfig } from './index-CsuESJ5D.cjs';
9
9
 
10
10
  /** Per-repo admin config with `repo` omitted (auto-bound from the registry key). */
11
11
  type BoundAdminRepoConfig<TRepo extends ConfiguredRepository<any>> = Omit<AdminRepoConfig<TRepo>, "repo">;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { HttpsOptions } from 'firebase-functions/v2/https';
3
- import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-BQKFWe40.cjs';
3
+ import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-DQwhnE4-.cjs';
4
4
  import { A as AuthExtension, h as Middleware } from './firebase-auth-DZ8lb2Ec.cjs';
5
5
 
6
6
  interface PageOptions {
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { HttpsOptions } from 'firebase-functions/v2/https';
3
- import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-BEel_BJZ.js';
3
+ import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-DG5Ys5AM.js';
4
4
  import { A as AuthExtension, h as Middleware } from './firebase-auth-DZ8lb2Ec.js';
5
5
 
6
6
  interface PageOptions {