@lpdjs/firestore-repo-service 3.0.10 → 3.0.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-C2mFtWXg.d.ts → create-servers-BaCe3x4U.d.ts} +10 -9
- package/dist/{create-servers-C0znL41U.d.cts → create-servers-C_UOfc_Z.d.cts} +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 +73 -73
- 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 +73 -73
- 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-BJdsB8kh.d.ts} +3 -2
- package/dist/{openapi-DpMY3nFB.d.ts → openapi-D4xT2ilq.d.cts} +3 -2
- package/dist/{queue-DJjZ4Wp4.d.ts → queue-CVnFz30E.d.ts} +3 -2
- package/dist/{queue-DwazYsJW.d.cts → queue-z04IR_Jq.d.cts} +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-CEYrlE4J.d.cts} +2 -2
- package/dist/{rules-OTj6GamJ.d.ts → rules-Dw-Pz8p3.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.cjs +12 -12
- package/dist/servers/hono/index.cjs.map +1 -1
- package/dist/servers/hono/index.d.cts +5 -4
- package/dist/servers/hono/index.d.ts +5 -4
- package/dist/servers/hono/index.js +12 -12
- package/dist/servers/hono/index.js.map +1 -1
- package/dist/servers/index.cjs +75 -75
- 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 +75 -75
- 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-D7-lMoLj.d.cts → types-BFbzLuFf.d.cts} +33 -6
- package/dist/{types-DSMiiOrU.d.ts → types-D3W_RaDA.d.ts} +3 -2
- package/dist/{types-DR1DlYio.d.ts → types-Ds9DUc21.d.ts} +33 -6
- package/dist/{types-DGtmWhDv.d.cts → types-DsTJZOfr.d.cts} +9 -7
- package/dist/{types-2xVljLn9.d.ts → types-YP53OtiU.d.ts} +9 -7
- package/dist/{types-DpJMhcY_.d.cts → types-_lql12Ez.d.cts} +3 -3
- package/dist/{types-BCb4TPJZ.d.ts → types-fY1XOBeT.d.ts} +3 -3
- package/dist/{types-BIZz3sxN.d.cts → types-o-9qoExc.d.cts} +3 -2
- package/package.json +21 -20
package/dist/sync/bigquery.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BigQuery } from '@google-cloud/bigquery';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import {
|
|
4
|
-
import '../firebase-auth-
|
|
3
|
+
import { SqlAdapter, SqlDialect, RepoSyncConfig, SyncHealthResult, SqlTableDef, SqlColumn } from './index.cjs';
|
|
4
|
+
import '../firebase-auth-nG3prKoj.cjs';
|
|
5
5
|
import 'firebase-functions/v2/firestore';
|
|
6
6
|
import 'firebase-functions/v2/https';
|
|
7
7
|
import 'firebase-functions/v2/pubsub';
|
|
8
|
-
import '../types-
|
|
9
|
-
import '../types
|
|
8
|
+
import '../types-BFbzLuFf.cjs';
|
|
9
|
+
import '../types--RamYGF1.cjs';
|
|
10
10
|
import 'firebase-admin/firestore';
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -224,4 +224,5 @@ declare class BigQueryAdapter implements SqlAdapter {
|
|
|
224
224
|
close(): Promise<void>;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
export { BigQueryAdapter,
|
|
227
|
+
export { BigQueryAdapter, SchemaTypeMismatchError, bigqueryDialect };
|
|
228
|
+
export type { BigQueryAdapterOptions, BigQueryLike };
|
package/dist/sync/bigquery.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BigQuery } from '@google-cloud/bigquery';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import {
|
|
4
|
-
import '../firebase-auth-
|
|
3
|
+
import { SqlAdapter, SqlDialect, RepoSyncConfig, SyncHealthResult, SqlTableDef, SqlColumn } from './index.js';
|
|
4
|
+
import '../firebase-auth-nG3prKoj.js';
|
|
5
5
|
import 'firebase-functions/v2/firestore';
|
|
6
6
|
import 'firebase-functions/v2/https';
|
|
7
7
|
import 'firebase-functions/v2/pubsub';
|
|
8
|
-
import '../types-
|
|
9
|
-
import '../types
|
|
8
|
+
import '../types-Ds9DUc21.js';
|
|
9
|
+
import '../types--RamYGF1.js';
|
|
10
10
|
import 'firebase-admin/firestore';
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -224,4 +224,5 @@ declare class BigQueryAdapter implements SqlAdapter {
|
|
|
224
224
|
close(): Promise<void>;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
export { BigQueryAdapter,
|
|
227
|
+
export { BigQueryAdapter, SchemaTypeMismatchError, bigqueryDialect };
|
|
228
|
+
export type { BigQueryAdapterOptions, BigQueryLike };
|
package/dist/sync/index.d.cts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { F as FirestoreSyncConfig, S as SyncEvent, a as SyncAdapter, g as adminsyncConfig, R as RepoSyncConfig, P as PubSubClientDep, c as SqlDialect, f as SqlColumn, e as SqlTableDef, G as GenerateDDLConfig, b as SqlAdapter, L as LogicalType, h as SyncTriggersConfig, i as SyncWorkerConfig } from '../types-
|
|
2
|
-
export { A as AdminHttpsOptions, E as ExtractRepoFieldPaths,
|
|
3
|
-
import { S as SyncQueue } from '../queue-
|
|
4
|
-
export { a as SyncQueueOptions } from '../queue-
|
|
1
|
+
import { F as FirestoreSyncConfig, S as SyncEvent, a as SyncAdapter, g as adminsyncConfig, R as RepoSyncConfig, P as PubSubClientDep, c as SqlDialect, f as SqlColumn, e as SqlTableDef, G as GenerateDDLConfig, b as SqlAdapter, L as LogicalType, h as SyncTriggersConfig, i as SyncWorkerConfig } from '../types-_lql12Ez.cjs';
|
|
2
|
+
export { A as AdminHttpsOptions, E as ExtractRepoFieldPaths, j as ExtractRepoModel, k as FirestoreTriggersDep, O as OrFactory, l as PubSubHandlerDep, m as SyncDeps, d as SyncHealthResult, n as SyncOperation, o as SyncTriggerOptions, p as SyncWorkerOptions, T as TriggerOptions, q as adminsyncBasicAuth, r as adminsyncFeaturesFlag } from '../types-_lql12Ez.cjs';
|
|
3
|
+
import { S as SyncQueue } from '../queue-z04IR_Jq.cjs';
|
|
4
|
+
export { a as SyncQueueOptions } from '../queue-z04IR_Jq.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as firebase_functions_core from 'firebase-functions/core';
|
|
7
7
|
import * as firebase_functions_pubsub from 'firebase-functions/pubsub';
|
|
8
8
|
export { BigQueryAdapter, BigQueryAdapterOptions, SchemaTypeMismatchError, bigqueryDialect } from './bigquery.cjs';
|
|
9
9
|
export { MeilisearchAdapter, MeilisearchAdapterOptions, MeilisearchIndexSettings, MeilisearchLike, TypedMeilisearchIndexesSettings, defineMeilisearchAdapter } from './meilisearch.cjs';
|
|
10
|
-
import '../firebase-auth-
|
|
10
|
+
import '../firebase-auth-nG3prKoj.cjs';
|
|
11
11
|
import 'firebase-functions/v2/firestore';
|
|
12
12
|
import 'firebase-functions/v2/https';
|
|
13
13
|
import 'firebase-functions/v2/pubsub';
|
|
14
|
-
import '../types-
|
|
15
|
-
import '../types
|
|
14
|
+
import '../types-BFbzLuFf.cjs';
|
|
15
|
+
import '../types--RamYGF1.cjs';
|
|
16
16
|
import 'firebase-admin/firestore';
|
|
17
17
|
import '@google-cloud/bigquery';
|
|
18
18
|
|
|
@@ -268,4 +268,5 @@ declare function createSyncWorker<M extends Record<string, any>>(repoMapping: M,
|
|
|
268
268
|
shutdown(): Promise<void>;
|
|
269
269
|
};
|
|
270
270
|
|
|
271
|
-
export { FirestoreSyncConfig, GenerateDDLConfig, LogicalType,
|
|
271
|
+
export { FirestoreSyncConfig, GenerateDDLConfig, LogicalType, PubSubClientDep, RepoSyncConfig, SqlAdapter, SqlColumn, SqlDialect, SqlTableDef, SyncAdapter, SyncEvent, SyncQueue, SyncTriggersConfig, SyncWorkerConfig, addColumnsDDL, adminsyncConfig, autoMigrate, createFirestoreSync, createSyncTriggers, createSyncWorker, createTableDDL, createadminsyncServer, generateDDL, serializeDocument, serializeValue, unflattenDocument, zodSchemaToColumns, zodTypeToLogical };
|
|
272
|
+
export type { MigrateResult };
|
package/dist/sync/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { F as FirestoreSyncConfig, S as SyncEvent, a as SyncAdapter, g as adminsyncConfig, R as RepoSyncConfig, P as PubSubClientDep, c as SqlDialect, f as SqlColumn, e as SqlTableDef, G as GenerateDDLConfig, b as SqlAdapter, L as LogicalType, h as SyncTriggersConfig, i as SyncWorkerConfig } from '../types-
|
|
2
|
-
export { A as AdminHttpsOptions, E as ExtractRepoFieldPaths,
|
|
3
|
-
import { S as SyncQueue } from '../queue-
|
|
4
|
-
export { a as SyncQueueOptions } from '../queue-
|
|
1
|
+
import { F as FirestoreSyncConfig, S as SyncEvent, a as SyncAdapter, g as adminsyncConfig, R as RepoSyncConfig, P as PubSubClientDep, c as SqlDialect, f as SqlColumn, e as SqlTableDef, G as GenerateDDLConfig, b as SqlAdapter, L as LogicalType, h as SyncTriggersConfig, i as SyncWorkerConfig } from '../types-fY1XOBeT.js';
|
|
2
|
+
export { A as AdminHttpsOptions, E as ExtractRepoFieldPaths, j as ExtractRepoModel, k as FirestoreTriggersDep, O as OrFactory, l as PubSubHandlerDep, m as SyncDeps, d as SyncHealthResult, n as SyncOperation, o as SyncTriggerOptions, p as SyncWorkerOptions, T as TriggerOptions, q as adminsyncBasicAuth, r as adminsyncFeaturesFlag } from '../types-fY1XOBeT.js';
|
|
3
|
+
import { S as SyncQueue } from '../queue-CVnFz30E.js';
|
|
4
|
+
export { a as SyncQueueOptions } from '../queue-CVnFz30E.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as firebase_functions_core from 'firebase-functions/core';
|
|
7
7
|
import * as firebase_functions_pubsub from 'firebase-functions/pubsub';
|
|
8
8
|
export { BigQueryAdapter, BigQueryAdapterOptions, SchemaTypeMismatchError, bigqueryDialect } from './bigquery.js';
|
|
9
9
|
export { MeilisearchAdapter, MeilisearchAdapterOptions, MeilisearchIndexSettings, MeilisearchLike, TypedMeilisearchIndexesSettings, defineMeilisearchAdapter } from './meilisearch.js';
|
|
10
|
-
import '../firebase-auth-
|
|
10
|
+
import '../firebase-auth-nG3prKoj.js';
|
|
11
11
|
import 'firebase-functions/v2/firestore';
|
|
12
12
|
import 'firebase-functions/v2/https';
|
|
13
13
|
import 'firebase-functions/v2/pubsub';
|
|
14
|
-
import '../types-
|
|
15
|
-
import '../types
|
|
14
|
+
import '../types-Ds9DUc21.js';
|
|
15
|
+
import '../types--RamYGF1.js';
|
|
16
16
|
import 'firebase-admin/firestore';
|
|
17
17
|
import '@google-cloud/bigquery';
|
|
18
18
|
|
|
@@ -268,4 +268,5 @@ declare function createSyncWorker<M extends Record<string, any>>(repoMapping: M,
|
|
|
268
268
|
shutdown(): Promise<void>;
|
|
269
269
|
};
|
|
270
270
|
|
|
271
|
-
export { FirestoreSyncConfig, GenerateDDLConfig, LogicalType,
|
|
271
|
+
export { FirestoreSyncConfig, GenerateDDLConfig, LogicalType, PubSubClientDep, RepoSyncConfig, SqlAdapter, SqlColumn, SqlDialect, SqlTableDef, SyncAdapter, SyncEvent, SyncQueue, SyncTriggersConfig, SyncWorkerConfig, addColumnsDDL, adminsyncConfig, autoMigrate, createFirestoreSync, createSyncTriggers, createSyncWorker, createTableDDL, createadminsyncServer, generateDDL, serializeDocument, serializeValue, unflattenDocument, zodSchemaToColumns, zodTypeToLogical };
|
|
272
|
+
export type { MigrateResult };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
import '../firebase-auth-
|
|
2
|
+
import { ExtractRepoFieldPaths, SyncAdapter, RepoSyncConfig, SyncHealthResult } from './index.cjs';
|
|
3
|
+
import '../firebase-auth-nG3prKoj.cjs';
|
|
4
4
|
import 'firebase-functions/v2/firestore';
|
|
5
5
|
import 'firebase-functions/v2/https';
|
|
6
6
|
import 'firebase-functions/v2/pubsub';
|
|
7
|
-
import '../types-
|
|
8
|
-
import '../types
|
|
7
|
+
import '../types-BFbzLuFf.cjs';
|
|
8
|
+
import '../types--RamYGF1.cjs';
|
|
9
9
|
import 'firebase-admin/firestore';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -220,4 +220,5 @@ declare class MeilisearchAdapter<M extends Record<string, any> = Record<string,
|
|
|
220
220
|
*/
|
|
221
221
|
declare function defineMeilisearchAdapter<M extends Record<string, any> = Record<string, any>>(options: MeilisearchAdapterOptions<M>): () => MeilisearchAdapter<M>;
|
|
222
222
|
|
|
223
|
-
export { MeilisearchAdapter,
|
|
223
|
+
export { MeilisearchAdapter, defineMeilisearchAdapter };
|
|
224
|
+
export type { MeilisearchAdapterOptions, MeilisearchIndexSettings, MeilisearchLike, TypedMeilisearchIndexesSettings };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
import '../firebase-auth-
|
|
2
|
+
import { ExtractRepoFieldPaths, SyncAdapter, RepoSyncConfig, SyncHealthResult } from './index.js';
|
|
3
|
+
import '../firebase-auth-nG3prKoj.js';
|
|
4
4
|
import 'firebase-functions/v2/firestore';
|
|
5
5
|
import 'firebase-functions/v2/https';
|
|
6
6
|
import 'firebase-functions/v2/pubsub';
|
|
7
|
-
import '../types-
|
|
8
|
-
import '../types
|
|
7
|
+
import '../types-Ds9DUc21.js';
|
|
8
|
+
import '../types--RamYGF1.js';
|
|
9
9
|
import 'firebase-admin/firestore';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -220,4 +220,5 @@ declare class MeilisearchAdapter<M extends Record<string, any> = Record<string,
|
|
|
220
220
|
*/
|
|
221
221
|
declare function defineMeilisearchAdapter<M extends Record<string, any> = Record<string, any>>(options: MeilisearchAdapterOptions<M>): () => MeilisearchAdapter<M>;
|
|
222
222
|
|
|
223
|
-
export { MeilisearchAdapter,
|
|
223
|
+
export { MeilisearchAdapter, defineMeilisearchAdapter };
|
|
224
|
+
export type { MeilisearchAdapterOptions, MeilisearchIndexSettings, MeilisearchLike, TypedMeilisearchIndexesSettings };
|
|
@@ -219,4 +219,4 @@ interface HistoryTriggersConfig<M = Record<string, any>> {
|
|
|
219
219
|
repos?: Partial<Record<keyof M & string, HistoryTriggerRepoOverride>>;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
export type { HistoryTriggersConfig as H, TriggerOptions as T, V1HistoryDoc as V,
|
|
222
|
+
export type { HistoryTriggersConfig as H, TriggerOptions as T, V1HistoryDoc as V, HistoryListOptions as a, HistoryEntry as b, HistoryRawListOptions as c, V2HistoryDoc as d, HistoryOperation as e, HistoryMeta as f, HistoryConfigForModel as g, HistoryFieldChange as h, HistoryValueType as i, HistoryConfigBase as j, HistoryFirestoreTriggersDep as k, HistoryTriggerOptions as l, HistoryTriggerRepoOverride as m };
|
|
@@ -219,4 +219,4 @@ interface HistoryTriggersConfig<M = Record<string, any>> {
|
|
|
219
219
|
repos?: Partial<Record<keyof M & string, HistoryTriggerRepoOverride>>;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
export type { HistoryTriggersConfig as H, TriggerOptions as T, V1HistoryDoc as V,
|
|
222
|
+
export type { HistoryTriggersConfig as H, TriggerOptions as T, V1HistoryDoc as V, HistoryListOptions as a, HistoryEntry as b, HistoryRawListOptions as c, V2HistoryDoc as d, HistoryOperation as e, HistoryMeta as f, HistoryConfigForModel as g, HistoryFieldChange as h, HistoryValueType as i, HistoryConfigBase as j, HistoryFirestoreTriggersDep as k, HistoryTriggerOptions as l, HistoryTriggerRepoOverride as m };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as HistoryConfigForModel } from './types--RamYGF1.cjs';
|
|
2
2
|
import * as zod from 'zod';
|
|
3
3
|
import { DocumentReference, Firestore, DocumentSnapshot, WhereFilterOp } from 'firebase-admin/firestore';
|
|
4
4
|
|
|
@@ -7,16 +7,29 @@ import { DocumentReference, Firestore, DocumentSnapshot, WhereFilterOp } from 'f
|
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
9
|
type ExtractDocumentRefSignature<T> = T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: P) => DocumentReference : never;
|
|
10
|
+
/**
|
|
11
|
+
* `true` when `T` is `any` (the `0 extends (1 & T)` trick).
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
10
15
|
/**
|
|
11
16
|
* Extract the update signature from refCb
|
|
12
17
|
* @internal
|
|
13
18
|
*/
|
|
14
|
-
type ExtractUpdateSignature<T, TType> = T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: [...P,
|
|
19
|
+
type ExtractUpdateSignature<T, TType> = T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: [...P, DeepPartial<TType> & DotNotationUpdate<TType>]) => Promise<TType> : never;
|
|
15
20
|
/**
|
|
16
|
-
* Check if
|
|
21
|
+
* Check if an object type has any method properties (e.g. Timestamp.toDate, GeoPoint.isEqual)
|
|
17
22
|
* @internal
|
|
18
23
|
*/
|
|
19
|
-
type
|
|
24
|
+
type HasMethod<T> = {
|
|
25
|
+
[K in keyof T]-?: NonNullable<T[K]> extends (...args: any[]) => any ? K : never;
|
|
26
|
+
}[keyof T] extends never ? false : true;
|
|
27
|
+
/**
|
|
28
|
+
* Check if a type is a plain data object with known static keys
|
|
29
|
+
* (excludes Date, Timestamp, GeoPoint, DocumentReference, Array, Function, Map, Set, RegExp, and Record<string, V>)
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
type IsPlainObject<T> = IsAny<T> extends true ? false : NonNullable<T> extends Date | Array<any> | ReadonlyArray<any> | Function | RegExp | Map<any, any> | Set<any> | Promise<any> ? false : NonNullable<T> extends object ? string extends keyof NonNullable<T> ? false : HasMethod<NonNullable<T>> extends true ? false : true : false;
|
|
20
33
|
/**
|
|
21
34
|
* Recursively generates dot-notation paths for nested plain objects only
|
|
22
35
|
* Stops at primitives, Date, Array, Function, etc.
|
|
@@ -44,6 +57,20 @@ type PathValue<T, Path extends string> = Path extends `${infer Key}.${infer Rest
|
|
|
44
57
|
* @template T - Data model type
|
|
45
58
|
*/
|
|
46
59
|
type FieldPath<T> = NestedPaths<T>;
|
|
60
|
+
/**
|
|
61
|
+
* Recursively makes all properties of plain objects optional while preserving null/undefined.
|
|
62
|
+
* @template T - Data model type
|
|
63
|
+
*/
|
|
64
|
+
type DeepPartial<T, Depth extends number[] = []> = IsAny<T> extends true ? Record<string, any> : Depth["length"] extends 5 ? Partial<T> : {
|
|
65
|
+
[K in keyof T]?: IsPlainObject<T[K]> extends true ? DeepPartial<NonNullable<T[K]>, [...Depth, 1]> | Extract<T[K], null | undefined> : T[K];
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Optional dot-notation key-value pairs for nested plain object fields (e.g. `{ "address.city"?: string }`).
|
|
69
|
+
* @template T - Data model type
|
|
70
|
+
*/
|
|
71
|
+
type DotNotationUpdate<T> = IsAny<T> extends true ? Record<string, any> : {
|
|
72
|
+
[P in FieldPath<T> as P extends `${string}.${string}` ? P : never]?: IsPlainObject<PathValue<T, P>> extends true ? DeepPartial<NonNullable<PathValue<T, P>>> | Extract<PathValue<T, P>, null | undefined> : PathValue<T, P>;
|
|
73
|
+
};
|
|
47
74
|
/**
|
|
48
75
|
* Type for a where condition as a tuple [field, operator, value]
|
|
49
76
|
* Supports dot-notation for nested fields with proper value typing
|
|
@@ -201,7 +228,7 @@ interface RepositoryConfig<T, TForeignKeys extends readonly (keyof T)[], TQueryK
|
|
|
201
228
|
enabled: THistoryEnabled;
|
|
202
229
|
};
|
|
203
230
|
documentRef: TRefCb extends undefined ? TIsGroup extends true ? (...pathSegments: string[]) => DocumentReference : (docId: string) => DocumentReference : ExtractDocumentRefSignature<TRefCb>;
|
|
204
|
-
update: TRefCb extends undefined ? TIsGroup extends true ? (...args: [...string[],
|
|
231
|
+
update: TRefCb extends undefined ? TIsGroup extends true ? (...args: [...string[], DeepPartial<T> & DotNotationUpdate<T>]) => Promise<T> : (docId: string, data: DeepPartial<T> & DotNotationUpdate<T>) => Promise<T> : ExtractUpdateSignature<TRefCb, T>;
|
|
205
232
|
}
|
|
206
233
|
|
|
207
|
-
export type { ExtractDocumentRefSignature as E, FieldPath as F, GetOptions as G, QueryOptions as Q, RepositoryConfig as R, WhereClause as W, RelationConfig as a,
|
|
234
|
+
export type { DeepPartial as D, ExtractDocumentRefSignature as E, FieldPath as F, GetOptions as G, QueryOptions as Q, RepositoryConfig as R, WhereClause as W, RelationConfig as a, DotNotationUpdate as b, ExtractUpdateSignature as c, GetResult as d, RelationalKeys as e, ExtractReturnDoc as f };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z, ZodError } from 'zod';
|
|
2
2
|
import { Env, Context, MiddlewareHandler } from 'hono';
|
|
3
|
-
import { F as FirebaseAdminAuthLike, D as DecodedIdTokenLike } from './firebase-auth-
|
|
3
|
+
import { F as FirebaseAdminAuthLike, D as DecodedIdTokenLike } from './firebase-auth-nG3prKoj.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Global DI services container for the Hono server.
|
|
@@ -857,4 +857,5 @@ interface HonoServerOptions<TEnv extends Env = Env> {
|
|
|
857
857
|
services?: AnyServicesContainer;
|
|
858
858
|
}
|
|
859
859
|
|
|
860
|
-
export {
|
|
860
|
+
export { basicAuth as N, createRequestContextMiddleware as Q, createServices as T, defineRoutes as U, ValidationError as V, firebaseBearerAuth as W, firebaseDocsAuth as X, isDocsAuthExtension as Y, withRequestContext as Z };
|
|
861
|
+
export type { AnyServicesContainer as A, BasicAuthOptions as B, ServiceProvider as C, DecodedBearerToken as D, ErrorHandler as E, FirebaseBearerAuthLike as F, ServiceProviderMap as G, HonoServerOptions as H, InterceptorConfig as I, ServicesContainer as J, ServicesOf as K, Logger as L, MutualTlsSecurityScheme as M, OpenAPIConfig as O, PayloadSource as P, RouteDef as R, SecurityRequirement as S, HttpMethod as a, RouteHandler as b, AnyRouteDef as c, ErrorHandlerContext as d, ApiKeySecurityScheme as e, DocsAuthExtension as f, DocsAuthRoute as g, FirebaseBearerAuthOptions as h, FirebaseDocsAuthOptions as i, HttpSecurityScheme as j, InterceptorErrorResponse as k, InterceptorOption as l, InterceptorOutput as m, OAuth2SecurityScheme as n, OAuthFlowObject as o, OAuthFlowsObject as p, OpenAPIInfo as q, OpenIdConnectSecurityScheme as r, RequestContext as s, RouteInput as t, RouteInterceptor as u, RouteModuleDefault as v, RouteOutput as w, RoutesUnion as x, SecurityScheme as y, SecuritySchemeBase as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as HistoryConfigForModel } from './types--RamYGF1.js';
|
|
2
2
|
import * as zod from 'zod';
|
|
3
3
|
import { DocumentReference, Firestore, DocumentSnapshot, WhereFilterOp } from 'firebase-admin/firestore';
|
|
4
4
|
|
|
@@ -7,16 +7,29 @@ import { DocumentReference, Firestore, DocumentSnapshot, WhereFilterOp } from 'f
|
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
9
9
|
type ExtractDocumentRefSignature<T> = T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: P) => DocumentReference : never;
|
|
10
|
+
/**
|
|
11
|
+
* `true` when `T` is `any` (the `0 extends (1 & T)` trick).
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
10
15
|
/**
|
|
11
16
|
* Extract the update signature from refCb
|
|
12
17
|
* @internal
|
|
13
18
|
*/
|
|
14
|
-
type ExtractUpdateSignature<T, TType> = T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: [...P,
|
|
19
|
+
type ExtractUpdateSignature<T, TType> = T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: [...P, DeepPartial<TType> & DotNotationUpdate<TType>]) => Promise<TType> : never;
|
|
15
20
|
/**
|
|
16
|
-
* Check if
|
|
21
|
+
* Check if an object type has any method properties (e.g. Timestamp.toDate, GeoPoint.isEqual)
|
|
17
22
|
* @internal
|
|
18
23
|
*/
|
|
19
|
-
type
|
|
24
|
+
type HasMethod<T> = {
|
|
25
|
+
[K in keyof T]-?: NonNullable<T[K]> extends (...args: any[]) => any ? K : never;
|
|
26
|
+
}[keyof T] extends never ? false : true;
|
|
27
|
+
/**
|
|
28
|
+
* Check if a type is a plain data object with known static keys
|
|
29
|
+
* (excludes Date, Timestamp, GeoPoint, DocumentReference, Array, Function, Map, Set, RegExp, and Record<string, V>)
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
type IsPlainObject<T> = IsAny<T> extends true ? false : NonNullable<T> extends Date | Array<any> | ReadonlyArray<any> | Function | RegExp | Map<any, any> | Set<any> | Promise<any> ? false : NonNullable<T> extends object ? string extends keyof NonNullable<T> ? false : HasMethod<NonNullable<T>> extends true ? false : true : false;
|
|
20
33
|
/**
|
|
21
34
|
* Recursively generates dot-notation paths for nested plain objects only
|
|
22
35
|
* Stops at primitives, Date, Array, Function, etc.
|
|
@@ -44,6 +57,20 @@ type PathValue<T, Path extends string> = Path extends `${infer Key}.${infer Rest
|
|
|
44
57
|
* @template T - Data model type
|
|
45
58
|
*/
|
|
46
59
|
type FieldPath<T> = NestedPaths<T>;
|
|
60
|
+
/**
|
|
61
|
+
* Recursively makes all properties of plain objects optional while preserving null/undefined.
|
|
62
|
+
* @template T - Data model type
|
|
63
|
+
*/
|
|
64
|
+
type DeepPartial<T, Depth extends number[] = []> = IsAny<T> extends true ? Record<string, any> : Depth["length"] extends 5 ? Partial<T> : {
|
|
65
|
+
[K in keyof T]?: IsPlainObject<T[K]> extends true ? DeepPartial<NonNullable<T[K]>, [...Depth, 1]> | Extract<T[K], null | undefined> : T[K];
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Optional dot-notation key-value pairs for nested plain object fields (e.g. `{ "address.city"?: string }`).
|
|
69
|
+
* @template T - Data model type
|
|
70
|
+
*/
|
|
71
|
+
type DotNotationUpdate<T> = IsAny<T> extends true ? Record<string, any> : {
|
|
72
|
+
[P in FieldPath<T> as P extends `${string}.${string}` ? P : never]?: IsPlainObject<PathValue<T, P>> extends true ? DeepPartial<NonNullable<PathValue<T, P>>> | Extract<PathValue<T, P>, null | undefined> : PathValue<T, P>;
|
|
73
|
+
};
|
|
47
74
|
/**
|
|
48
75
|
* Type for a where condition as a tuple [field, operator, value]
|
|
49
76
|
* Supports dot-notation for nested fields with proper value typing
|
|
@@ -201,7 +228,7 @@ interface RepositoryConfig<T, TForeignKeys extends readonly (keyof T)[], TQueryK
|
|
|
201
228
|
enabled: THistoryEnabled;
|
|
202
229
|
};
|
|
203
230
|
documentRef: TRefCb extends undefined ? TIsGroup extends true ? (...pathSegments: string[]) => DocumentReference : (docId: string) => DocumentReference : ExtractDocumentRefSignature<TRefCb>;
|
|
204
|
-
update: TRefCb extends undefined ? TIsGroup extends true ? (...args: [...string[],
|
|
231
|
+
update: TRefCb extends undefined ? TIsGroup extends true ? (...args: [...string[], DeepPartial<T> & DotNotationUpdate<T>]) => Promise<T> : (docId: string, data: DeepPartial<T> & DotNotationUpdate<T>) => Promise<T> : ExtractUpdateSignature<TRefCb, T>;
|
|
205
232
|
}
|
|
206
233
|
|
|
207
|
-
export type { ExtractDocumentRefSignature as E, FieldPath as F, GetOptions as G, QueryOptions as Q, RepositoryConfig as R, WhereClause as W, RelationConfig as a,
|
|
234
|
+
export type { DeepPartial as D, ExtractDocumentRefSignature as E, FieldPath as F, GetOptions as G, QueryOptions as Q, RepositoryConfig as R, WhereClause as W, RelationConfig as a, DotNotationUpdate as b, ExtractUpdateSignature as c, GetResult as d, RelationalKeys as e, ExtractReturnDoc as f };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { H as HonoServerOptions, O as OpenAPIConfig } from './types-
|
|
1
|
+
import { b as AuthUser } from './firebase-auth-nG3prKoj.cjs';
|
|
2
|
+
import { H as HonoServerOptions, O as OpenAPIConfig } from './types-o-9qoExc.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { HttpsOptions } from 'firebase-functions/v2/https';
|
|
5
|
-
import { H as HistoryMethods } from './read-
|
|
5
|
+
import { H as HistoryMethods } from './read-B15YaPyR.cjs';
|
|
6
6
|
import { DocumentSnapshot, Query, CollectionReference, WriteBatch, Transaction, DocumentReference } from 'firebase-admin/firestore';
|
|
7
|
-
import { Q as QueryOptions, R as RepositoryConfig, G as GetOptions,
|
|
7
|
+
import { Q as QueryOptions, R as RepositoryConfig, G as GetOptions, d as GetResult, f as ExtractReturnDoc, a as RelationConfig, D as DeepPartial, b as DotNotationUpdate, F as FieldPath } from './types-BFbzLuFf.cjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Pagination result with data and cursor information
|
|
@@ -256,10 +256,11 @@ interface PaginationWithIncludeOptionsTyped<T, TRelationalKeys, K extends keyof
|
|
|
256
256
|
*/
|
|
257
257
|
type SystemKeys<T extends RepositoryConfig<any, any, any, any, any, any, any, any, any, any, any>> = T["documentKey"] | Extract<T["pathKey"], keyof T["type"]> | Extract<T["updatedKey"], keyof T["type"]>;
|
|
258
258
|
/**
|
|
259
|
-
* Type for updatable data - excludes documentKey, pathKey and updatedKey (all auto-managed)
|
|
259
|
+
* Type for updatable data - excludes documentKey, pathKey and updatedKey (all auto-managed),
|
|
260
|
+
* and supports deep-partial nested objects as well as dot-notation paths (e.g. "address.city").
|
|
260
261
|
* @internal
|
|
261
262
|
*/
|
|
262
|
-
type UpdatableData<T extends RepositoryConfig<any, any, any, any, any, any, any, any, any, any, any>> = Omit<
|
|
263
|
+
type UpdatableData<T extends RepositoryConfig<any, any, any, any, any, any, any, any, any, any, any>> = DeepPartial<Omit<T["type"], SystemKeys<T>>> & DotNotationUpdate<Omit<T["type"], SystemKeys<T>>>;
|
|
263
264
|
/**
|
|
264
265
|
* Type for create data - excludes pathKey, createdKey and updatedKey (auto-managed), documentKey is optional
|
|
265
266
|
* @internal
|
|
@@ -1044,4 +1045,5 @@ interface QueryRequestBody {
|
|
|
1044
1045
|
withTotal?: boolean;
|
|
1045
1046
|
}
|
|
1046
1047
|
|
|
1047
|
-
export {
|
|
1048
|
+
export { createPaginationIterator as H, executePaginatedQuery as J, DEFAULT_HTML_CSP as q, securityHeaders as s };
|
|
1049
|
+
export type { ApiResponse as A, SystemBackfillResult as B, ConfiguredRepository as C, DeepDiffReturn as D, UpdatableData as E, FieldRole as F, GenerateGetMethods as G, IndexErrorCallback as I, ListResponseData as L, OpenAPISpecOptions as O, PageOptions as P, QueryRequestBody as Q, RepoFieldPath as R, SecurityHeadersOptions as S, UserFieldPath as U, CrudServerOptions as a, CrudRepoConfig as b, CrudRepoEntry as c, CrudRepoRegistry as d, CrudRules as e, CrudUpdateRuleContext as f, IndexErrorContext as g, RepoRelationKeys as h, Rule as i, RuleResult as j, RulesMap as k, RelationalFieldMeta as l, ColumnMeta as m, FilterState as n, SortState as o, QueryError as p, PaginationOptions as r, GenerateQueryMethods as t, IncludeConfigTyped as u, PaginationResult as v, PaginationWithIncludeOptionsTyped as w, PopulateOptionsTyped as x, SystemBackfillFailure as y, SystemBackfillOptions as z };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { H as HonoServerOptions, O as OpenAPIConfig } from './types-
|
|
1
|
+
import { b as AuthUser } from './firebase-auth-nG3prKoj.js';
|
|
2
|
+
import { H as HonoServerOptions, O as OpenAPIConfig } from './types-D3W_RaDA.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { HttpsOptions } from 'firebase-functions/v2/https';
|
|
5
|
-
import { H as HistoryMethods } from './read-
|
|
5
|
+
import { H as HistoryMethods } from './read-15-TcgCz.js';
|
|
6
6
|
import { DocumentSnapshot, Query, CollectionReference, WriteBatch, Transaction, DocumentReference } from 'firebase-admin/firestore';
|
|
7
|
-
import { Q as QueryOptions, R as RepositoryConfig, G as GetOptions,
|
|
7
|
+
import { Q as QueryOptions, R as RepositoryConfig, G as GetOptions, d as GetResult, f as ExtractReturnDoc, a as RelationConfig, D as DeepPartial, b as DotNotationUpdate, F as FieldPath } from './types-Ds9DUc21.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Pagination result with data and cursor information
|
|
@@ -256,10 +256,11 @@ interface PaginationWithIncludeOptionsTyped<T, TRelationalKeys, K extends keyof
|
|
|
256
256
|
*/
|
|
257
257
|
type SystemKeys<T extends RepositoryConfig<any, any, any, any, any, any, any, any, any, any, any>> = T["documentKey"] | Extract<T["pathKey"], keyof T["type"]> | Extract<T["updatedKey"], keyof T["type"]>;
|
|
258
258
|
/**
|
|
259
|
-
* Type for updatable data - excludes documentKey, pathKey and updatedKey (all auto-managed)
|
|
259
|
+
* Type for updatable data - excludes documentKey, pathKey and updatedKey (all auto-managed),
|
|
260
|
+
* and supports deep-partial nested objects as well as dot-notation paths (e.g. "address.city").
|
|
260
261
|
* @internal
|
|
261
262
|
*/
|
|
262
|
-
type UpdatableData<T extends RepositoryConfig<any, any, any, any, any, any, any, any, any, any, any>> = Omit<
|
|
263
|
+
type UpdatableData<T extends RepositoryConfig<any, any, any, any, any, any, any, any, any, any, any>> = DeepPartial<Omit<T["type"], SystemKeys<T>>> & DotNotationUpdate<Omit<T["type"], SystemKeys<T>>>;
|
|
263
264
|
/**
|
|
264
265
|
* Type for create data - excludes pathKey, createdKey and updatedKey (auto-managed), documentKey is optional
|
|
265
266
|
* @internal
|
|
@@ -1044,4 +1045,5 @@ interface QueryRequestBody {
|
|
|
1044
1045
|
withTotal?: boolean;
|
|
1045
1046
|
}
|
|
1046
1047
|
|
|
1047
|
-
export {
|
|
1048
|
+
export { createPaginationIterator as H, executePaginatedQuery as J, DEFAULT_HTML_CSP as q, securityHeaders as s };
|
|
1049
|
+
export type { ApiResponse as A, SystemBackfillResult as B, ConfiguredRepository as C, DeepDiffReturn as D, UpdatableData as E, FieldRole as F, GenerateGetMethods as G, IndexErrorCallback as I, ListResponseData as L, OpenAPISpecOptions as O, PageOptions as P, QueryRequestBody as Q, RepoFieldPath as R, SecurityHeadersOptions as S, UserFieldPath as U, CrudServerOptions as a, CrudRepoConfig as b, CrudRepoEntry as c, CrudRepoRegistry as d, CrudRules as e, CrudUpdateRuleContext as f, IndexErrorContext as g, RepoRelationKeys as h, Rule as i, RuleResult as j, RulesMap as k, RelationalFieldMeta as l, ColumnMeta as m, FilterState as n, SortState as o, QueryError as p, PaginationOptions as r, GenerateQueryMethods as t, IncludeConfigTyped as u, PaginationResult as v, PaginationWithIncludeOptionsTyped as w, PopulateOptionsTyped as x, SystemBackfillFailure as y, SystemBackfillOptions as z };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as AuthExtension } from './firebase-auth-nG3prKoj.cjs';
|
|
2
2
|
import { onDocumentWritten, DocumentOptions } from 'firebase-functions/v2/firestore';
|
|
3
3
|
import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
|
|
4
4
|
import { onMessagePublished, PubSubOptions } from 'firebase-functions/v2/pubsub';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import { F as FieldPath } from './types-
|
|
6
|
+
import { F as FieldPath } from './types-BFbzLuFf.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Cloud Functions v2 options forwarded to `onDocumentWritten()` for every
|
|
@@ -483,4 +483,4 @@ interface FirestoreSyncConfig<M = Record<string, any>> {
|
|
|
483
483
|
repos?: TypedRepoSyncConfigs<M>;
|
|
484
484
|
}
|
|
485
485
|
|
|
486
|
-
export type { AdminHttpsOptions as A, ExtractRepoFieldPaths as E, FirestoreSyncConfig as F, GenerateDDLConfig as G, LogicalType as L, OrFactory as O, PubSubClientDep as P, RepoSyncConfig as R, SyncEvent as S, TriggerOptions as T, SyncAdapter as a, SqlAdapter as b, SqlDialect as c, SyncHealthResult as d, SqlTableDef as e, SqlColumn as f, adminsyncConfig as g, SyncTriggersConfig as h, SyncWorkerConfig as i,
|
|
486
|
+
export type { AdminHttpsOptions as A, ExtractRepoFieldPaths as E, FirestoreSyncConfig as F, GenerateDDLConfig as G, LogicalType as L, OrFactory as O, PubSubClientDep as P, RepoSyncConfig as R, SyncEvent as S, TriggerOptions as T, SyncAdapter as a, SqlAdapter as b, SqlDialect as c, SyncHealthResult as d, SqlTableDef as e, SqlColumn as f, adminsyncConfig as g, SyncTriggersConfig as h, SyncWorkerConfig as i, ExtractRepoModel as j, FirestoreTriggersDep as k, PubSubHandlerDep as l, SyncDeps as m, SyncOperation as n, SyncTriggerOptions as o, SyncWorkerOptions as p, adminsyncBasicAuth as q, adminsyncFeaturesFlag as r };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as AuthExtension } from './firebase-auth-nG3prKoj.js';
|
|
2
2
|
import { onDocumentWritten, DocumentOptions } from 'firebase-functions/v2/firestore';
|
|
3
3
|
import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
|
|
4
4
|
import { onMessagePublished, PubSubOptions } from 'firebase-functions/v2/pubsub';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import { F as FieldPath } from './types-
|
|
6
|
+
import { F as FieldPath } from './types-Ds9DUc21.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Cloud Functions v2 options forwarded to `onDocumentWritten()` for every
|
|
@@ -483,4 +483,4 @@ interface FirestoreSyncConfig<M = Record<string, any>> {
|
|
|
483
483
|
repos?: TypedRepoSyncConfigs<M>;
|
|
484
484
|
}
|
|
485
485
|
|
|
486
|
-
export type { AdminHttpsOptions as A, ExtractRepoFieldPaths as E, FirestoreSyncConfig as F, GenerateDDLConfig as G, LogicalType as L, OrFactory as O, PubSubClientDep as P, RepoSyncConfig as R, SyncEvent as S, TriggerOptions as T, SyncAdapter as a, SqlAdapter as b, SqlDialect as c, SyncHealthResult as d, SqlTableDef as e, SqlColumn as f, adminsyncConfig as g, SyncTriggersConfig as h, SyncWorkerConfig as i,
|
|
486
|
+
export type { AdminHttpsOptions as A, ExtractRepoFieldPaths as E, FirestoreSyncConfig as F, GenerateDDLConfig as G, LogicalType as L, OrFactory as O, PubSubClientDep as P, RepoSyncConfig as R, SyncEvent as S, TriggerOptions as T, SyncAdapter as a, SqlAdapter as b, SqlDialect as c, SyncHealthResult as d, SqlTableDef as e, SqlColumn as f, adminsyncConfig as g, SyncTriggersConfig as h, SyncWorkerConfig as i, ExtractRepoModel as j, FirestoreTriggersDep as k, PubSubHandlerDep as l, SyncDeps as m, SyncOperation as n, SyncTriggerOptions as o, SyncWorkerOptions as p, adminsyncBasicAuth as q, adminsyncFeaturesFlag as r };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z, ZodError } from 'zod';
|
|
2
2
|
import { Env, Context, MiddlewareHandler } from 'hono';
|
|
3
|
-
import { F as FirebaseAdminAuthLike, D as DecodedIdTokenLike } from './firebase-auth-
|
|
3
|
+
import { F as FirebaseAdminAuthLike, D as DecodedIdTokenLike } from './firebase-auth-nG3prKoj.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Global DI services container for the Hono server.
|
|
@@ -857,4 +857,5 @@ interface HonoServerOptions<TEnv extends Env = Env> {
|
|
|
857
857
|
services?: AnyServicesContainer;
|
|
858
858
|
}
|
|
859
859
|
|
|
860
|
-
export {
|
|
860
|
+
export { basicAuth as N, createRequestContextMiddleware as Q, createServices as T, defineRoutes as U, ValidationError as V, firebaseBearerAuth as W, firebaseDocsAuth as X, isDocsAuthExtension as Y, withRequestContext as Z };
|
|
861
|
+
export type { AnyServicesContainer as A, BasicAuthOptions as B, ServiceProvider as C, DecodedBearerToken as D, ErrorHandler as E, FirebaseBearerAuthLike as F, ServiceProviderMap as G, HonoServerOptions as H, InterceptorConfig as I, ServicesContainer as J, ServicesOf as K, Logger as L, MutualTlsSecurityScheme as M, OpenAPIConfig as O, PayloadSource as P, RouteDef as R, SecurityRequirement as S, HttpMethod as a, RouteHandler as b, AnyRouteDef as c, ErrorHandlerContext as d, ApiKeySecurityScheme as e, DocsAuthExtension as f, DocsAuthRoute as g, FirebaseBearerAuthOptions as h, FirebaseDocsAuthOptions as i, HttpSecurityScheme as j, InterceptorErrorResponse as k, InterceptorOption as l, InterceptorOutput as m, OAuth2SecurityScheme as n, OAuthFlowObject as o, OAuthFlowsObject as p, OpenAPIInfo as q, OpenIdConnectSecurityScheme as r, RequestContext as s, RouteInput as t, RouteInterceptor as u, RouteModuleDefault as v, RouteOutput as w, RoutesUnion as x, SecurityScheme as y, SecuritySchemeBase as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lpdjs/firestore-repo-service",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
4
4
|
"workspaces": [
|
|
5
5
|
"test/functions"
|
|
6
6
|
],
|
|
@@ -208,14 +208,15 @@
|
|
|
208
208
|
},
|
|
209
209
|
"homepage": "https://frs.lpdjs.fr",
|
|
210
210
|
"peerDependencies": {
|
|
211
|
-
"@
|
|
212
|
-
"@google-cloud/bigquery
|
|
213
|
-
"@google-cloud/
|
|
211
|
+
"@asteasolutions/zod-to-openapi": "^8.0.0 || ^9.0.0",
|
|
212
|
+
"@google-cloud/bigquery": "^7.0.0 || ^8.0.0 || ^9.0.0",
|
|
213
|
+
"@google-cloud/bigquery-storage": "^4.0.0 || ^5.0.0 || ^6.0.0",
|
|
214
|
+
"@google-cloud/pubsub": "^4.0.0 || ^5.0.0 || ^6.0.0",
|
|
214
215
|
"@types/express": "^4.17.0 || ^5.0.0",
|
|
215
216
|
"firebase-admin": "^12.0.0 || ^13.0.0 || ^14.0.0",
|
|
216
217
|
"firebase-functions": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
217
|
-
"meilisearch": "
|
|
218
|
-
"typescript": "^5.0.0",
|
|
218
|
+
"meilisearch": ">=0.47.0 <1.0.0",
|
|
219
|
+
"typescript": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
219
220
|
"zod": "^4"
|
|
220
221
|
},
|
|
221
222
|
"peerDependenciesMeta": {
|
|
@@ -239,23 +240,23 @@
|
|
|
239
240
|
}
|
|
240
241
|
},
|
|
241
242
|
"devDependencies": {
|
|
242
|
-
"@
|
|
243
|
-
"@google-cloud/bigquery
|
|
244
|
-
"@google-cloud/
|
|
243
|
+
"@asteasolutions/zod-to-openapi": "^9.1.0",
|
|
244
|
+
"@google-cloud/bigquery": "^9.3.0",
|
|
245
|
+
"@google-cloud/bigquery-storage": "^6.2.0",
|
|
246
|
+
"@google-cloud/pubsub": "^6.3.0",
|
|
245
247
|
"@types/bun": "latest",
|
|
246
|
-
"@types/express": "
|
|
247
|
-
"concurrently": "^
|
|
248
|
-
"firebase-admin": "^
|
|
249
|
-
"firebase-functions": "^7.
|
|
250
|
-
"meilisearch": "^0.
|
|
251
|
-
"tsup": "^
|
|
248
|
+
"@types/express": "^5.0.6",
|
|
249
|
+
"concurrently": "^10.0.6",
|
|
250
|
+
"firebase-admin": "^14.5.0",
|
|
251
|
+
"firebase-functions": "^7.4.0",
|
|
252
|
+
"meilisearch": "^0.62.0",
|
|
253
|
+
"tsup": "^9.0.0",
|
|
252
254
|
"typescript": "^5.9.3",
|
|
253
|
-
"wait-on": "^9.
|
|
254
|
-
"zod": "^4.
|
|
255
|
+
"wait-on": "^9.5.1",
|
|
256
|
+
"zod": "^4.6.7"
|
|
255
257
|
},
|
|
256
258
|
"dependencies": {
|
|
257
|
-
"@
|
|
258
|
-
"
|
|
259
|
-
"hono": "^4.12.17"
|
|
259
|
+
"@hono/node-server": "^2.1.5",
|
|
260
|
+
"hono": "^4.13.13"
|
|
260
261
|
}
|
|
261
262
|
}
|