@lpdjs/firestore-repo-service 3.0.10 → 3.0.11
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-C0znL41U.d.cts → create-servers-DQBvtkBM.d.cts} +10 -9
- package/dist/{create-servers-C2mFtWXg.d.ts → create-servers-KRf2J2fi.d.ts} +10 -9
- package/dist/{firebase-auth-Ds5P0kXT.d.cts → firebase-auth-nG3prKoj.d.cts} +2 -1
- package/dist/{firebase-auth-Ds5P0kXT.d.ts → firebase-auth-nG3prKoj.d.ts} +2 -1
- package/dist/history/index.d.cts +3 -3
- package/dist/history/index.d.ts +3 -3
- package/dist/index.cjs +65 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -13
- package/dist/index.d.ts +14 -13
- package/dist/index.js +65 -65
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/{openapi-C-SpMP9f.d.cts → openapi-CzrvqcOE.d.ts} +3 -2
- package/dist/{openapi-DpMY3nFB.d.ts → openapi-DK7pS1zN.d.cts} +3 -2
- package/dist/{queue-DwazYsJW.d.cts → queue-CdmBSUNN.d.cts} +3 -2
- package/dist/{queue-DJjZ4Wp4.d.ts → queue-HoGBozpD.d.ts} +3 -2
- package/dist/{read-2sRlBd8o.d.cts → read-15-TcgCz.d.ts} +3 -2
- package/dist/{read-D9TwPubT.d.ts → read-B15YaPyR.d.cts} +3 -2
- package/dist/{rules-KFfK2bXW.d.cts → rules-Bu2WJoLI.d.cts} +2 -2
- package/dist/{rules-OTj6GamJ.d.ts → rules-gKR5VFhO.d.ts} +2 -2
- package/dist/servers/admin/index.cjs +1 -1
- package/dist/servers/admin/index.cjs.map +1 -1
- package/dist/servers/admin/index.d.cts +12 -8
- package/dist/servers/admin/index.d.ts +12 -8
- package/dist/servers/admin/index.js +1 -1
- package/dist/servers/admin/index.js.map +1 -1
- package/dist/servers/auth/index.d.cts +1 -1
- package/dist/servers/auth/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 +11 -10
- package/dist/servers/crud/index.d.ts +11 -10
- package/dist/servers/crud/index.js +2 -2
- package/dist/servers/crud/index.js.map +1 -1
- package/dist/servers/hono/index.d.cts +5 -4
- package/dist/servers/hono/index.d.ts +5 -4
- package/dist/servers/index.cjs +37 -37
- package/dist/servers/index.cjs.map +1 -1
- package/dist/servers/index.d.cts +14 -13
- package/dist/servers/index.d.ts +14 -13
- package/dist/servers/index.js +37 -37
- package/dist/servers/index.js.map +1 -1
- package/dist/sync/bigquery.d.cts +6 -5
- package/dist/sync/bigquery.d.ts +6 -5
- package/dist/sync/index.d.cts +9 -8
- package/dist/sync/index.d.ts +9 -8
- package/dist/sync/meilisearch.d.cts +6 -5
- package/dist/sync/meilisearch.d.ts +6 -5
- package/dist/{types-DS_W0yER.d.cts → types--RamYGF1.d.cts} +1 -1
- package/dist/{types-DS_W0yER.d.ts → types--RamYGF1.d.ts} +1 -1
- package/dist/{types-DGtmWhDv.d.cts → types-8Yoacm2k.d.cts} +9 -7
- package/dist/{types-DSMiiOrU.d.ts → types-D3W_RaDA.d.ts} +3 -2
- package/dist/{types-2xVljLn9.d.ts → types-DRKB8gTA.d.ts} +9 -7
- package/dist/{types-D7-lMoLj.d.cts → types-DZoEAKT7.d.cts} +24 -5
- package/dist/{types-DR1DlYio.d.ts → types-DiGFAWPA.d.ts} +24 -5
- package/dist/{types-BCb4TPJZ.d.ts → types-DzJ9WrcY.d.ts} +3 -3
- package/dist/{types-DpJMhcY_.d.cts → types-KEVZXCF4.d.cts} +3 -3
- package/dist/{types-BIZz3sxN.d.cts → types-o-9qoExc.d.cts} +3 -2
- package/package.json +20 -20
|
@@ -1,13 +1,13 @@
|
|
|
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-CdmBSUNN.cjs';
|
|
2
|
+
import { F as FirestoreSyncConfig, S as SyncEvent } from './types-KEVZXCF4.cjs';
|
|
3
|
+
import { O as OpenAPIDocument } from './openapi-DK7pS1zN.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 { DocumentOptions } from 'firebase-functions/v2/firestore';
|
|
7
|
-
import { H as HistoryTriggersConfig } from './types
|
|
8
|
-
import { C as ConfiguredRepository,
|
|
7
|
+
import { H as HistoryTriggersConfig } from './types--RamYGF1.cjs';
|
|
8
|
+
import { C as ConfiguredRepository, b as CrudRepoConfig, a as CrudServerOptions } from './types-8Yoacm2k.cjs';
|
|
9
9
|
import { MeilisearchAdapterOptions, MeilisearchAdapter } from './sync/meilisearch.cjs';
|
|
10
|
-
import {
|
|
10
|
+
import { AdminRepoConfig, AdminServerOptions } from './servers/admin/index.cjs';
|
|
11
11
|
|
|
12
12
|
/** Per-repo admin config with `repo` omitted (auto-bound from the registry key). */
|
|
13
13
|
type BoundAdminRepoConfig<TRepo extends ConfiguredRepository<any>> = Omit<AdminRepoConfig<TRepo>, "repo">;
|
|
@@ -89,9 +89,9 @@ declare function createServers<TRepos extends Record<string, ConfiguredRepositor
|
|
|
89
89
|
* Returns a Cloud Function when `onRequest` was passed to `createServers`,
|
|
90
90
|
* otherwise the raw HTTP handler.
|
|
91
91
|
*/
|
|
92
|
-
admin(options: BoundAdminServerOptions<TRepos>):
|
|
92
|
+
admin(options: BoundAdminServerOptions<TRepos>): (((req: any, res: any) => Promise<void>) & {
|
|
93
93
|
httpsOptions?: HttpsOptions;
|
|
94
|
-
});
|
|
94
|
+
}) | firebase_functions_v2_https.HttpsFunction;
|
|
95
95
|
/**
|
|
96
96
|
* Build the CRUD REST API handler with `repo` auto-injected from each
|
|
97
97
|
* registry key. Returns a Cloud Function when `onRequest` was passed to
|
|
@@ -161,4 +161,5 @@ declare function createServers<TRepos extends Record<string, ConfiguredRepositor
|
|
|
161
161
|
history(config: HistoryTriggersConfig<TRepos>): Record<string, any>;
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
export {
|
|
164
|
+
export { createServers as e };
|
|
165
|
+
export type { BoundAdminRepoConfig as B, CreateServersDeps as C, TriggerOptions as T, BoundAdminServerOptions as a, BoundCrudRepoConfig as b, BoundCrudServerOptions as c, BoundFirestoreSyncConfig as d };
|
|
@@ -1,13 +1,13 @@
|
|
|
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-HoGBozpD.js';
|
|
2
|
+
import { F as FirestoreSyncConfig, S as SyncEvent } from './types-DzJ9WrcY.js';
|
|
3
|
+
import { O as OpenAPIDocument } from './openapi-CzrvqcOE.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 { DocumentOptions } from 'firebase-functions/v2/firestore';
|
|
7
|
-
import { H as HistoryTriggersConfig } from './types
|
|
8
|
-
import { C as ConfiguredRepository,
|
|
7
|
+
import { H as HistoryTriggersConfig } from './types--RamYGF1.js';
|
|
8
|
+
import { C as ConfiguredRepository, b as CrudRepoConfig, a as CrudServerOptions } from './types-DRKB8gTA.js';
|
|
9
9
|
import { MeilisearchAdapterOptions, MeilisearchAdapter } from './sync/meilisearch.js';
|
|
10
|
-
import {
|
|
10
|
+
import { AdminRepoConfig, AdminServerOptions } from './servers/admin/index.js';
|
|
11
11
|
|
|
12
12
|
/** Per-repo admin config with `repo` omitted (auto-bound from the registry key). */
|
|
13
13
|
type BoundAdminRepoConfig<TRepo extends ConfiguredRepository<any>> = Omit<AdminRepoConfig<TRepo>, "repo">;
|
|
@@ -89,9 +89,9 @@ declare function createServers<TRepos extends Record<string, ConfiguredRepositor
|
|
|
89
89
|
* Returns a Cloud Function when `onRequest` was passed to `createServers`,
|
|
90
90
|
* otherwise the raw HTTP handler.
|
|
91
91
|
*/
|
|
92
|
-
admin(options: BoundAdminServerOptions<TRepos>):
|
|
92
|
+
admin(options: BoundAdminServerOptions<TRepos>): (((req: any, res: any) => Promise<void>) & {
|
|
93
93
|
httpsOptions?: HttpsOptions;
|
|
94
|
-
});
|
|
94
|
+
}) | firebase_functions_v2_https.HttpsFunction;
|
|
95
95
|
/**
|
|
96
96
|
* Build the CRUD REST API handler with `repo` auto-injected from each
|
|
97
97
|
* registry key. Returns a Cloud Function when `onRequest` was passed to
|
|
@@ -161,4 +161,5 @@ declare function createServers<TRepos extends Record<string, ConfiguredRepositor
|
|
|
161
161
|
history(config: HistoryTriggersConfig<TRepos>): Record<string, any>;
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
export {
|
|
164
|
+
export { createServers as e };
|
|
165
|
+
export type { BoundAdminRepoConfig as B, CreateServersDeps as C, TriggerOptions as T, BoundAdminServerOptions as a, BoundCrudRepoConfig as b, BoundCrudServerOptions as c, BoundFirestoreSyncConfig as d };
|
|
@@ -341,4 +341,5 @@ declare function isAuthExtension(value: unknown): value is AuthExtension;
|
|
|
341
341
|
*/
|
|
342
342
|
declare const allowAll: () => true;
|
|
343
343
|
|
|
344
|
-
export {
|
|
344
|
+
export { allowAll as f, firebaseAuth as g, MiniRouter as h, isAuthExtension as i };
|
|
345
|
+
export type { AuthExtension as A, DecodedIdTokenLike as D, FirebaseAdminAuthLike as F, Middleware as M, RouteHandler as R, AuthRoute as a, AuthUser as b, FirebaseAuthConfig as c, FirebaseAuthLoginPageConfig as d, FirebaseAuthMode as e };
|
|
@@ -341,4 +341,5 @@ declare function isAuthExtension(value: unknown): value is AuthExtension;
|
|
|
341
341
|
*/
|
|
342
342
|
declare const allowAll: () => true;
|
|
343
343
|
|
|
344
|
-
export {
|
|
344
|
+
export { allowAll as f, firebaseAuth as g, MiniRouter as h, isAuthExtension as i };
|
|
345
|
+
export type { AuthExtension as A, DecodedIdTokenLike as D, FirebaseAdminAuthLike as F, Middleware as M, RouteHandler as R, AuthRoute as a, AuthUser as b, FirebaseAuthConfig as c, FirebaseAuthLoginPageConfig as d, FirebaseAuthMode as e };
|
package/dist/history/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { H as HistoryTriggersConfig,
|
|
2
|
-
export { j as HistoryConfigBase, k as HistoryFirestoreTriggersDep,
|
|
3
|
-
export { H as HistoryMethods, c as createHistoryMethods } from '../read-
|
|
1
|
+
import { H as HistoryTriggersConfig, e as HistoryOperation, h as HistoryFieldChange, f as HistoryMeta, g as HistoryConfigForModel, d as V2HistoryDoc, i as HistoryValueType, V as V1HistoryDoc, b as HistoryEntry } from '../types--RamYGF1.cjs';
|
|
2
|
+
export { j as HistoryConfigBase, k as HistoryFirestoreTriggersDep, a as HistoryListOptions, c as HistoryRawListOptions, l as HistoryTriggerOptions, m as HistoryTriggerRepoOverride, T as TriggerOptions } from '../types--RamYGF1.cjs';
|
|
3
|
+
export { H as HistoryMethods, c as createHistoryMethods } from '../read-B15YaPyR.cjs';
|
|
4
4
|
import { CollectionReference } from 'firebase-admin/firestore';
|
|
5
5
|
import 'firebase-functions/v2/firestore';
|
|
6
6
|
|
package/dist/history/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { H as HistoryTriggersConfig,
|
|
2
|
-
export { j as HistoryConfigBase, k as HistoryFirestoreTriggersDep,
|
|
3
|
-
export { H as HistoryMethods, c as createHistoryMethods } from '../read-
|
|
1
|
+
import { H as HistoryTriggersConfig, e as HistoryOperation, h as HistoryFieldChange, f as HistoryMeta, g as HistoryConfigForModel, d as V2HistoryDoc, i as HistoryValueType, V as V1HistoryDoc, b as HistoryEntry } from '../types--RamYGF1.js';
|
|
2
|
+
export { j as HistoryConfigBase, k as HistoryFirestoreTriggersDep, a as HistoryListOptions, c as HistoryRawListOptions, l as HistoryTriggerOptions, m as HistoryTriggerRepoOverride, T as TriggerOptions } from '../types--RamYGF1.js';
|
|
3
|
+
export { H as HistoryMethods, c as createHistoryMethods } from '../read-15-TcgCz.js';
|
|
4
4
|
import { CollectionReference } from 'firebase-admin/firestore';
|
|
5
5
|
import 'firebase-functions/v2/firestore';
|
|
6
6
|
|