@lpdjs/firestore-repo-service 2.6.10 → 2.6.12

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 (63) hide show
  1. package/dist/{create-servers-k4vH90mn.d.cts → create-servers-Bq9lnpg6.d.cts} +7 -7
  2. package/dist/{create-servers-DA8xV-aT.d.ts → create-servers-dXpZiSOT.d.ts} +7 -7
  3. package/dist/{firebase-auth-BTclYg-c.d.cts → firebase-auth-t1CAR-lp.d.cts} +9 -0
  4. package/dist/{firebase-auth-BTclYg-c.d.ts → firebase-auth-t1CAR-lp.d.ts} +9 -0
  5. package/dist/{index-BRjxlxWa.d.ts → index-4gzZw5m_.d.ts} +2 -2
  6. package/dist/{index-BOYhux7q.d.cts → index-CXWiqnFs.d.cts} +2 -2
  7. package/dist/index.cjs +15 -15
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +8 -8
  10. package/dist/index.d.ts +8 -8
  11. package/dist/index.js +15 -15
  12. package/dist/index.js.map +1 -1
  13. package/dist/{openapi-BnVlzg59.d.ts → openapi-Bq6KTWCR.d.ts} +1 -1
  14. package/dist/{openapi-Cci3oqin.d.cts → openapi-D71F-INl.d.cts} +1 -1
  15. package/dist/{queue-QISiqmAy.d.cts → queue-Bl-S-I-7.d.cts} +1 -1
  16. package/dist/{queue-B7uCIF1O.d.ts → queue-DP7t5Jp7.d.ts} +1 -1
  17. package/dist/servers/admin/index.cjs +4 -4
  18. package/dist/servers/admin/index.cjs.map +1 -1
  19. package/dist/servers/admin/index.d.cts +3 -3
  20. package/dist/servers/admin/index.d.ts +3 -3
  21. package/dist/servers/admin/index.js +4 -4
  22. package/dist/servers/admin/index.js.map +1 -1
  23. package/dist/servers/auth/index.cjs +10 -6
  24. package/dist/servers/auth/index.cjs.map +1 -1
  25. package/dist/servers/auth/index.d.cts +1 -1
  26. package/dist/servers/auth/index.d.ts +1 -1
  27. package/dist/servers/auth/index.js +10 -6
  28. package/dist/servers/auth/index.js.map +1 -1
  29. package/dist/servers/crud/index.cjs +2 -2
  30. package/dist/servers/crud/index.cjs.map +1 -1
  31. package/dist/servers/crud/index.d.cts +5 -5
  32. package/dist/servers/crud/index.d.ts +5 -5
  33. package/dist/servers/crud/index.js +2 -2
  34. package/dist/servers/crud/index.js.map +1 -1
  35. package/dist/servers/hono/cli.cjs +187 -65
  36. package/dist/servers/hono/cli.cjs.map +1 -1
  37. package/dist/servers/hono/cli.js +187 -65
  38. package/dist/servers/hono/cli.js.map +1 -1
  39. package/dist/servers/hono/index.cjs +233 -3
  40. package/dist/servers/hono/index.cjs.map +1 -1
  41. package/dist/servers/hono/index.d.cts +188 -76
  42. package/dist/servers/hono/index.d.ts +188 -76
  43. package/dist/servers/hono/index.js +233 -3
  44. package/dist/servers/hono/index.js.map +1 -1
  45. package/dist/servers/index.cjs +1 -1
  46. package/dist/servers/index.cjs.map +1 -1
  47. package/dist/servers/index.d.cts +8 -8
  48. package/dist/servers/index.d.ts +8 -8
  49. package/dist/servers/index.js +1 -1
  50. package/dist/servers/index.js.map +1 -1
  51. package/dist/sync/bigquery.d.cts +2 -2
  52. package/dist/sync/bigquery.d.ts +2 -2
  53. package/dist/sync/index.cjs +13 -13
  54. package/dist/sync/index.cjs.map +1 -1
  55. package/dist/sync/index.d.cts +5 -5
  56. package/dist/sync/index.d.ts +5 -5
  57. package/dist/sync/index.js +13 -13
  58. package/dist/sync/index.js.map +1 -1
  59. package/dist/{types-CCREogoy.d.cts → types-BxsdnGDM.d.cts} +1 -1
  60. package/dist/{types-n7q6N_Zw.d.ts → types-C6I3WtJS.d.ts} +1 -1
  61. package/dist/{types-B7KFW9S9.d.cts → types-C_alF2Xe.d.cts} +1 -1
  62. package/dist/{types-CMrrjq1V.d.ts → types-CmSUreTx.d.ts} +1 -1
  63. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- import { S as SyncQueue } from './queue-QISiqmAy.cjs';
2
- import { F as FirestoreSyncConfig, S as SyncEvent } from './types-CCREogoy.cjs';
3
- import { O as OpenAPIDocument } from './openapi-Cci3oqin.cjs';
1
+ import { S as SyncQueue } from './queue-Bl-S-I-7.cjs';
2
+ import { F as FirestoreSyncConfig, S as SyncEvent } from './types-BxsdnGDM.cjs';
3
+ import { O as OpenAPIDocument } from './openapi-D71F-INl.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-B7KFW9S9.cjs';
8
- import { A as AdminServerOptions, a as AdminRepoConfig } from './index-BOYhux7q.cjs';
7
+ import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-C_alF2Xe.cjs';
8
+ import { A as AdminServerOptions, a as AdminRepoConfig } from './index-CXWiqnFs.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">;
@@ -76,9 +76,9 @@ declare function createServers<TRepos extends Record<string, ConfiguredRepositor
76
76
  * Returns a Cloud Function when `onRequest` was passed to `createServers`,
77
77
  * otherwise the raw HTTP handler.
78
78
  */
79
- admin(options: BoundAdminServerOptions<TRepos>): firebase_functions_v2_https.HttpsFunction | (((req: any, res: any) => Promise<void>) & {
79
+ admin(options: BoundAdminServerOptions<TRepos>): (((req: any, res: any) => Promise<void>) & {
80
80
  httpsOptions?: HttpsOptions;
81
- });
81
+ }) | firebase_functions_v2_https.HttpsFunction;
82
82
  /**
83
83
  * Build the CRUD REST API handler with `repo` auto-injected from each
84
84
  * registry key. Returns a Cloud Function when `onRequest` was passed to
@@ -1,11 +1,11 @@
1
- import { S as SyncQueue } from './queue-B7uCIF1O.js';
2
- import { F as FirestoreSyncConfig, S as SyncEvent } from './types-CMrrjq1V.js';
3
- import { O as OpenAPIDocument } from './openapi-BnVlzg59.js';
1
+ import { S as SyncQueue } from './queue-DP7t5Jp7.js';
2
+ import { F as FirestoreSyncConfig, S as SyncEvent } from './types-CmSUreTx.js';
3
+ import { O as OpenAPIDocument } from './openapi-Bq6KTWCR.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-n7q6N_Zw.js';
8
- import { A as AdminServerOptions, a as AdminRepoConfig } from './index-BRjxlxWa.js';
7
+ import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-C6I3WtJS.js';
8
+ import { A as AdminServerOptions, a as AdminRepoConfig } from './index-4gzZw5m_.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">;
@@ -76,9 +76,9 @@ declare function createServers<TRepos extends Record<string, ConfiguredRepositor
76
76
  * Returns a Cloud Function when `onRequest` was passed to `createServers`,
77
77
  * otherwise the raw HTTP handler.
78
78
  */
79
- admin(options: BoundAdminServerOptions<TRepos>): firebase_functions_v2_https.HttpsFunction | (((req: any, res: any) => Promise<void>) & {
79
+ admin(options: BoundAdminServerOptions<TRepos>): (((req: any, res: any) => Promise<void>) & {
80
80
  httpsOptions?: HttpsOptions;
81
- });
81
+ }) | firebase_functions_v2_https.HttpsFunction;
82
82
  /**
83
83
  * Build the CRUD REST API handler with `repo` auto-injected from each
84
84
  * registry key. Returns a Cloud Function when `onRequest` was passed to
@@ -272,6 +272,15 @@ interface FirebaseAuthConfig<TContext = unknown> {
272
272
  secureCookie?: boolean;
273
273
  /** Cookie `SameSite`. Default: `"Lax"`. */
274
274
  sameSite?: "Strict" | "Lax" | "None";
275
+ /**
276
+ * Firebase Auth emulator host (e.g. `127.0.0.1:9099`). When set, the login
277
+ * page's client SDK is pointed at the emulator via `connectAuthEmulator`,
278
+ * matching the Admin SDK (which already targets the emulator when
279
+ * `FIREBASE_AUTH_EMULATOR_HOST` is set). Defaults to that env var, so local
280
+ * `firebase emulators:start` runs work out of the box; pass `""` to force it
281
+ * off.
282
+ */
283
+ authEmulatorHost?: string;
275
284
  /**
276
285
  * Enable the built-in CSRF defense: state-changing requests
277
286
  * (`POST`/`PUT`/`PATCH`/`DELETE`) authenticated by **session cookie** must
@@ -272,6 +272,15 @@ interface FirebaseAuthConfig<TContext = unknown> {
272
272
  secureCookie?: boolean;
273
273
  /** Cookie `SameSite`. Default: `"Lax"`. */
274
274
  sameSite?: "Strict" | "Lax" | "None";
275
+ /**
276
+ * Firebase Auth emulator host (e.g. `127.0.0.1:9099`). When set, the login
277
+ * page's client SDK is pointed at the emulator via `connectAuthEmulator`,
278
+ * matching the Admin SDK (which already targets the emulator when
279
+ * `FIREBASE_AUTH_EMULATOR_HOST` is set). Defaults to that env var, so local
280
+ * `firebase emulators:start` runs work out of the box; pass `""` to force it
281
+ * off.
282
+ */
283
+ authEmulatorHost?: string;
275
284
  /**
276
285
  * Enable the built-in CSRF defense: state-changing requests
277
286
  * (`POST`/`PUT`/`PATCH`/`DELETE`) authenticated by **session cookie** must
@@ -1,7 +1,7 @@
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-n7q6N_Zw.js';
4
- import { A as AuthExtension, h as Middleware } from './firebase-auth-BTclYg-c.js';
3
+ import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-C6I3WtJS.js';
4
+ import { A as AuthExtension, h as Middleware } from './firebase-auth-t1CAR-lp.js';
5
5
 
6
6
  interface PageOptions {
7
7
  title: string;
@@ -1,7 +1,7 @@
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-B7KFW9S9.cjs';
4
- import { A as AuthExtension, h as Middleware } from './firebase-auth-BTclYg-c.cjs';
3
+ import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-C_alF2Xe.cjs';
4
+ import { A as AuthExtension, h as Middleware } from './firebase-auth-t1CAR-lp.cjs';
5
5
 
6
6
  interface PageOptions {
7
7
  title: string;