@lpdjs/firestore-repo-service 2.6.5 → 2.6.7

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 CHANGED
@@ -74,7 +74,7 @@ const mappingWithRelations = buildRepositoryRelations(repositoryMapping, {
74
74
  },
75
75
  });
76
76
 
77
- export const repos = createRepositoryMapping(db, mappingWithRelations);
77
+ export const repos = createRepositoryMapping(() => db, mappingWithRelations);
78
78
  ```
79
79
 
80
80
  ### Use the repositories
@@ -600,7 +600,7 @@ const mappingWithRelations = buildRepositoryRelations(repositoryMapping, {
600
600
  },
601
601
  });
602
602
 
603
- export const repos = createRepositoryMapping(db, mappingWithRelations);
603
+ export const repos = createRepositoryMapping(() => db, mappingWithRelations);
604
604
  ```
605
605
 
606
606
  ### Use the repositories
@@ -1,11 +1,11 @@
1
1
  import { S as SyncQueue } from './queue-B7uCIF1O.js';
2
2
  import { F as FirestoreSyncConfig, S as SyncEvent } from './types-CMrrjq1V.js';
3
- import { O as OpenAPIDocument } from './openapi-ChZojCEO.js';
3
+ import { O as OpenAPIDocument } from './openapi-BnVlzg59.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-CeyFvYXO.js';
8
- import { A as AdminServerOptions, a as AdminRepoConfig } from './index-BM1mgnpJ.js';
7
+ import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-n7q6N_Zw.js';
8
+ import { A as AdminServerOptions, a as AdminRepoConfig } from './index-BRjxlxWa.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-QISiqmAy.cjs';
2
2
  import { F as FirestoreSyncConfig, S as SyncEvent } from './types-CCREogoy.cjs';
3
- import { O as OpenAPIDocument } from './openapi-DpMtzJGo.cjs';
3
+ import { O as OpenAPIDocument } from './openapi-Cci3oqin.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-KYdNUffK.cjs';
8
- import { A as AdminServerOptions, a as AdminRepoConfig } from './index-BuxFmMV8.cjs';
7
+ import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-B7KFW9S9.cjs';
8
+ import { A as AdminServerOptions, a as AdminRepoConfig } from './index-BOYhux7q.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-KYdNUffK.cjs';
3
+ import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-B7KFW9S9.cjs';
4
4
  import { A as AuthExtension, h as Middleware } from './firebase-auth-BTclYg-c.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-CeyFvYXO.js';
3
+ import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-n7q6N_Zw.js';
4
4
  import { A as AuthExtension, h as Middleware } from './firebase-auth-BTclYg-c.js';
5
5
 
6
6
  interface PageOptions {