@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.
- package/dist/{create-servers-k4vH90mn.d.cts → create-servers-Bq9lnpg6.d.cts} +7 -7
- package/dist/{create-servers-DA8xV-aT.d.ts → create-servers-dXpZiSOT.d.ts} +7 -7
- package/dist/{firebase-auth-BTclYg-c.d.cts → firebase-auth-t1CAR-lp.d.cts} +9 -0
- package/dist/{firebase-auth-BTclYg-c.d.ts → firebase-auth-t1CAR-lp.d.ts} +9 -0
- package/dist/{index-BRjxlxWa.d.ts → index-4gzZw5m_.d.ts} +2 -2
- package/dist/{index-BOYhux7q.d.cts → index-CXWiqnFs.d.cts} +2 -2
- package/dist/index.cjs +15 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/{openapi-BnVlzg59.d.ts → openapi-Bq6KTWCR.d.ts} +1 -1
- package/dist/{openapi-Cci3oqin.d.cts → openapi-D71F-INl.d.cts} +1 -1
- package/dist/{queue-QISiqmAy.d.cts → queue-Bl-S-I-7.d.cts} +1 -1
- package/dist/{queue-B7uCIF1O.d.ts → queue-DP7t5Jp7.d.ts} +1 -1
- package/dist/servers/admin/index.cjs +4 -4
- package/dist/servers/admin/index.cjs.map +1 -1
- package/dist/servers/admin/index.d.cts +3 -3
- package/dist/servers/admin/index.d.ts +3 -3
- package/dist/servers/admin/index.js +4 -4
- package/dist/servers/admin/index.js.map +1 -1
- package/dist/servers/auth/index.cjs +10 -6
- 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 +10 -6
- 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 +5 -5
- package/dist/servers/crud/index.d.ts +5 -5
- package/dist/servers/crud/index.js +2 -2
- package/dist/servers/crud/index.js.map +1 -1
- package/dist/servers/hono/cli.cjs +187 -65
- package/dist/servers/hono/cli.cjs.map +1 -1
- package/dist/servers/hono/cli.js +187 -65
- package/dist/servers/hono/cli.js.map +1 -1
- package/dist/servers/hono/index.cjs +233 -3
- package/dist/servers/hono/index.cjs.map +1 -1
- package/dist/servers/hono/index.d.cts +188 -76
- package/dist/servers/hono/index.d.ts +188 -76
- package/dist/servers/hono/index.js +233 -3
- package/dist/servers/hono/index.js.map +1 -1
- package/dist/servers/index.cjs +1 -1
- package/dist/servers/index.cjs.map +1 -1
- package/dist/servers/index.d.cts +8 -8
- package/dist/servers/index.d.ts +8 -8
- package/dist/servers/index.js +1 -1
- package/dist/servers/index.js.map +1 -1
- package/dist/sync/bigquery.d.cts +2 -2
- package/dist/sync/bigquery.d.ts +2 -2
- package/dist/sync/index.cjs +13 -13
- 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 +13 -13
- package/dist/sync/index.js.map +1 -1
- package/dist/{types-CCREogoy.d.cts → types-BxsdnGDM.d.cts} +1 -1
- package/dist/{types-n7q6N_Zw.d.ts → types-C6I3WtJS.d.ts} +1 -1
- package/dist/{types-B7KFW9S9.d.cts → types-C_alF2Xe.d.cts} +1 -1
- package/dist/{types-CMrrjq1V.d.ts → types-CmSUreTx.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { S as SyncQueue } from './queue-
|
|
2
|
-
import { F as FirestoreSyncConfig, S as SyncEvent } from './types-
|
|
3
|
-
import { O as OpenAPIDocument } from './openapi-
|
|
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-
|
|
8
|
-
import { A as AdminServerOptions, a as AdminRepoConfig } from './index-
|
|
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>):
|
|
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-
|
|
2
|
-
import { F as FirestoreSyncConfig, S as SyncEvent } from './types-
|
|
3
|
-
import { O as OpenAPIDocument } from './openapi-
|
|
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-
|
|
8
|
-
import { A as AdminServerOptions, a as AdminRepoConfig } from './index-
|
|
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>):
|
|
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-
|
|
4
|
-
import { A as AuthExtension, h as Middleware } from './firebase-auth-
|
|
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-
|
|
4
|
-
import { A as AuthExtension, h as Middleware } from './firebase-auth-
|
|
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;
|