@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.
Files changed (65) hide show
  1. package/dist/{create-servers-C2mFtWXg.d.ts → create-servers-BaCe3x4U.d.ts} +10 -9
  2. package/dist/{create-servers-C0znL41U.d.cts → create-servers-C_UOfc_Z.d.cts} +10 -9
  3. package/dist/{firebase-auth-Ds5P0kXT.d.cts → firebase-auth-nG3prKoj.d.cts} +2 -1
  4. package/dist/{firebase-auth-Ds5P0kXT.d.ts → firebase-auth-nG3prKoj.d.ts} +2 -1
  5. package/dist/history/index.d.cts +3 -3
  6. package/dist/history/index.d.ts +3 -3
  7. package/dist/index.cjs +73 -73
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +14 -13
  10. package/dist/index.d.ts +14 -13
  11. package/dist/index.js +73 -73
  12. package/dist/index.js.map +1 -1
  13. package/dist/llms-full.txt +1 -1
  14. package/dist/llms.txt +1 -1
  15. package/dist/{openapi-C-SpMP9f.d.cts → openapi-BJdsB8kh.d.ts} +3 -2
  16. package/dist/{openapi-DpMY3nFB.d.ts → openapi-D4xT2ilq.d.cts} +3 -2
  17. package/dist/{queue-DJjZ4Wp4.d.ts → queue-CVnFz30E.d.ts} +3 -2
  18. package/dist/{queue-DwazYsJW.d.cts → queue-z04IR_Jq.d.cts} +3 -2
  19. package/dist/{read-2sRlBd8o.d.cts → read-15-TcgCz.d.ts} +3 -2
  20. package/dist/{read-D9TwPubT.d.ts → read-B15YaPyR.d.cts} +3 -2
  21. package/dist/{rules-KFfK2bXW.d.cts → rules-CEYrlE4J.d.cts} +2 -2
  22. package/dist/{rules-OTj6GamJ.d.ts → rules-Dw-Pz8p3.d.ts} +2 -2
  23. package/dist/servers/admin/index.cjs +1 -1
  24. package/dist/servers/admin/index.cjs.map +1 -1
  25. package/dist/servers/admin/index.d.cts +12 -8
  26. package/dist/servers/admin/index.d.ts +12 -8
  27. package/dist/servers/admin/index.js +1 -1
  28. package/dist/servers/admin/index.js.map +1 -1
  29. package/dist/servers/auth/index.d.cts +1 -1
  30. package/dist/servers/auth/index.d.ts +1 -1
  31. package/dist/servers/crud/index.cjs +2 -2
  32. package/dist/servers/crud/index.cjs.map +1 -1
  33. package/dist/servers/crud/index.d.cts +11 -10
  34. package/dist/servers/crud/index.d.ts +11 -10
  35. package/dist/servers/crud/index.js +2 -2
  36. package/dist/servers/crud/index.js.map +1 -1
  37. package/dist/servers/hono/index.cjs +12 -12
  38. package/dist/servers/hono/index.cjs.map +1 -1
  39. package/dist/servers/hono/index.d.cts +5 -4
  40. package/dist/servers/hono/index.d.ts +5 -4
  41. package/dist/servers/hono/index.js +12 -12
  42. package/dist/servers/hono/index.js.map +1 -1
  43. package/dist/servers/index.cjs +75 -75
  44. package/dist/servers/index.cjs.map +1 -1
  45. package/dist/servers/index.d.cts +14 -13
  46. package/dist/servers/index.d.ts +14 -13
  47. package/dist/servers/index.js +75 -75
  48. package/dist/servers/index.js.map +1 -1
  49. package/dist/sync/bigquery.d.cts +6 -5
  50. package/dist/sync/bigquery.d.ts +6 -5
  51. package/dist/sync/index.d.cts +9 -8
  52. package/dist/sync/index.d.ts +9 -8
  53. package/dist/sync/meilisearch.d.cts +6 -5
  54. package/dist/sync/meilisearch.d.ts +6 -5
  55. package/dist/{types-DS_W0yER.d.cts → types--RamYGF1.d.cts} +1 -1
  56. package/dist/{types-DS_W0yER.d.ts → types--RamYGF1.d.ts} +1 -1
  57. package/dist/{types-D7-lMoLj.d.cts → types-BFbzLuFf.d.cts} +33 -6
  58. package/dist/{types-DSMiiOrU.d.ts → types-D3W_RaDA.d.ts} +3 -2
  59. package/dist/{types-DR1DlYio.d.ts → types-Ds9DUc21.d.ts} +33 -6
  60. package/dist/{types-DGtmWhDv.d.cts → types-DsTJZOfr.d.cts} +9 -7
  61. package/dist/{types-2xVljLn9.d.ts → types-YP53OtiU.d.ts} +9 -7
  62. package/dist/{types-DpJMhcY_.d.cts → types-_lql12Ez.d.cts} +3 -3
  63. package/dist/{types-BCb4TPJZ.d.ts → types-fY1XOBeT.d.ts} +3 -3
  64. package/dist/{types-BIZz3sxN.d.cts → types-o-9qoExc.d.cts} +3 -2
  65. package/package.json +21 -20
@@ -1,12 +1,12 @@
1
1
  import { BigQuery } from '@google-cloud/bigquery';
2
2
  import { z } from 'zod';
3
- import { b as SqlAdapter, c as SqlDialect, R as RepoSyncConfig, d as SyncHealthResult, e as SqlTableDef, f as SqlColumn } from '../types-DpJMhcY_.cjs';
4
- import '../firebase-auth-Ds5P0kXT.cjs';
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-D7-lMoLj.cjs';
9
- import '../types-DS_W0yER.cjs';
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, type BigQueryAdapterOptions, type BigQueryLike, SchemaTypeMismatchError, bigqueryDialect };
227
+ export { BigQueryAdapter, SchemaTypeMismatchError, bigqueryDialect };
228
+ export type { BigQueryAdapterOptions, BigQueryLike };
@@ -1,12 +1,12 @@
1
1
  import { BigQuery } from '@google-cloud/bigquery';
2
2
  import { z } from 'zod';
3
- import { b as SqlAdapter, c as SqlDialect, R as RepoSyncConfig, d as SyncHealthResult, e as SqlTableDef, f as SqlColumn } from '../types-BCb4TPJZ.js';
4
- import '../firebase-auth-Ds5P0kXT.js';
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-DR1DlYio.js';
9
- import '../types-DS_W0yER.js';
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, type BigQueryAdapterOptions, type BigQueryLike, SchemaTypeMismatchError, bigqueryDialect };
227
+ export { BigQueryAdapter, SchemaTypeMismatchError, bigqueryDialect };
228
+ export type { BigQueryAdapterOptions, BigQueryLike };
@@ -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-DpJMhcY_.cjs';
2
- export { A as AdminHttpsOptions, E as ExtractRepoFieldPaths, r as ExtractRepoModel, j as FirestoreTriggersDep, O as OrFactory, k as PubSubHandlerDep, l as SyncDeps, d as SyncHealthResult, m as SyncOperation, n as SyncTriggerOptions, o as SyncWorkerOptions, T as TriggerOptions, p as adminsyncBasicAuth, q as adminsyncFeaturesFlag } from '../types-DpJMhcY_.cjs';
3
- import { S as SyncQueue } from '../queue-DwazYsJW.cjs';
4
- export { a as SyncQueueOptions } from '../queue-DwazYsJW.cjs';
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-Ds5P0kXT.cjs';
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-D7-lMoLj.cjs';
15
- import '../types-DS_W0yER.cjs';
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, type MigrateResult, 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 };
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,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-BCb4TPJZ.js';
2
- export { A as AdminHttpsOptions, E as ExtractRepoFieldPaths, r as ExtractRepoModel, j as FirestoreTriggersDep, O as OrFactory, k as PubSubHandlerDep, l as SyncDeps, d as SyncHealthResult, m as SyncOperation, n as SyncTriggerOptions, o as SyncWorkerOptions, T as TriggerOptions, p as adminsyncBasicAuth, q as adminsyncFeaturesFlag } from '../types-BCb4TPJZ.js';
3
- import { S as SyncQueue } from '../queue-DJjZ4Wp4.js';
4
- export { a as SyncQueueOptions } from '../queue-DJjZ4Wp4.js';
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-Ds5P0kXT.js';
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-DR1DlYio.js';
15
- import '../types-DS_W0yER.js';
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, type MigrateResult, 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 };
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 { E as ExtractRepoFieldPaths, a as SyncAdapter, R as RepoSyncConfig, d as SyncHealthResult } from '../types-DpJMhcY_.cjs';
3
- import '../firebase-auth-Ds5P0kXT.cjs';
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-D7-lMoLj.cjs';
8
- import '../types-DS_W0yER.cjs';
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, type MeilisearchAdapterOptions, type MeilisearchIndexSettings, type MeilisearchLike, type TypedMeilisearchIndexesSettings, defineMeilisearchAdapter };
223
+ export { MeilisearchAdapter, defineMeilisearchAdapter };
224
+ export type { MeilisearchAdapterOptions, MeilisearchIndexSettings, MeilisearchLike, TypedMeilisearchIndexesSettings };
@@ -1,11 +1,11 @@
1
1
  import { z } from 'zod';
2
- import { E as ExtractRepoFieldPaths, a as SyncAdapter, R as RepoSyncConfig, d as SyncHealthResult } from '../types-BCb4TPJZ.js';
3
- import '../firebase-auth-Ds5P0kXT.js';
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-DR1DlYio.js';
8
- import '../types-DS_W0yER.js';
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, type MeilisearchAdapterOptions, type MeilisearchIndexSettings, type MeilisearchLike, type TypedMeilisearchIndexesSettings, defineMeilisearchAdapter };
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, HistoryConfigForModel as a, HistoryListOptions as b, HistoryEntry as c, HistoryRawListOptions as d, V2HistoryDoc as e, HistoryOperation as f, HistoryMeta as g, HistoryFieldChange as h, HistoryValueType as i, HistoryConfigBase as j, HistoryFirestoreTriggersDep as k, HistoryTriggerOptions as l, HistoryTriggerRepoOverride as m };
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, HistoryConfigForModel as a, HistoryListOptions as b, HistoryEntry as c, HistoryRawListOptions as d, V2HistoryDoc as e, HistoryOperation as f, HistoryMeta as g, HistoryFieldChange as h, HistoryValueType as i, HistoryConfigBase as j, HistoryFirestoreTriggersDep as k, HistoryTriggerOptions as l, HistoryTriggerRepoOverride as m };
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 { a as HistoryConfigForModel } from './types-DS_W0yER.cjs';
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, Partial<TType>]) => Promise<TType> : never;
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 a type is a plain object (not Date, Array, Function, etc.)
21
+ * Check if an object type has any method properties (e.g. Timestamp.toDate, GeoPoint.isEqual)
17
22
  * @internal
18
23
  */
19
- type IsPlainObject<T> = NonNullable<T> extends Date ? false : NonNullable<T> extends Array<any> ? false : NonNullable<T> extends Function ? false : NonNullable<T> extends object ? true : false;
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[], Partial<T>]) => Promise<T> : (docId: string, data: Partial<T>) => Promise<T> : ExtractUpdateSignature<TRefCb, T>;
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, ExtractUpdateSignature as b, GetResult as c, RelationalKeys as d, ExtractReturnDoc as e };
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-Ds5P0kXT.js';
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 { type AnyServicesContainer as A, type BasicAuthOptions as B, type OAuthFlowObject as C, type DecodedBearerToken as D, type ErrorHandler as E, type FirebaseBearerAuthOptions as F, type OAuthFlowsObject as G, type HonoServerOptions as H, type InterceptorConfig as I, type OpenAPIInfo as J, type OpenIdConnectSecurityScheme as K, type Logger as L, type MutualTlsSecurityScheme as M, type RouteInput as N, type OpenAPIConfig as O, type PayloadSource as P, type RouteInterceptor as Q, type RouteDef as R, type ServicesOf as S, type RouteModuleDefault as T, type RouteOutput as U, ValidationError as V, type RoutesUnion as W, type SecurityRequirement as X, type SecurityScheme as Y, type SecuritySchemeBase as Z, type HttpMethod as a, type RouteHandler as b, type AnyRouteDef as c, type ErrorHandlerContext as d, basicAuth as e, firebaseBearerAuth as f, firebaseDocsAuth as g, type FirebaseBearerAuthLike as h, isDocsAuthExtension as i, type FirebaseDocsAuthOptions as j, type DocsAuthExtension as k, type DocsAuthRoute as l, defineRoutes as m, createServices as n, createRequestContextMiddleware as o, type RequestContext as p, type ServiceProvider as q, type ServiceProviderMap as r, type ServicesContainer as s, type ApiKeySecurityScheme as t, type HttpSecurityScheme as u, type InterceptorErrorResponse as v, withRequestContext as w, type InterceptorOption as x, type InterceptorOutput as y, type OAuth2SecurityScheme as z };
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 { a as HistoryConfigForModel } from './types-DS_W0yER.js';
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, Partial<TType>]) => Promise<TType> : never;
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 a type is a plain object (not Date, Array, Function, etc.)
21
+ * Check if an object type has any method properties (e.g. Timestamp.toDate, GeoPoint.isEqual)
17
22
  * @internal
18
23
  */
19
- type IsPlainObject<T> = NonNullable<T> extends Date ? false : NonNullable<T> extends Array<any> ? false : NonNullable<T> extends Function ? false : NonNullable<T> extends object ? true : false;
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[], Partial<T>]) => Promise<T> : (docId: string, data: Partial<T>) => Promise<T> : ExtractUpdateSignature<TRefCb, T>;
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, ExtractUpdateSignature as b, GetResult as c, RelationalKeys as d, ExtractReturnDoc as e };
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 { A as AuthUser } from './firebase-auth-Ds5P0kXT.cjs';
2
- import { H as HonoServerOptions, O as OpenAPIConfig } from './types-BIZz3sxN.cjs';
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-2sRlBd8o.cjs';
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, c as GetResult, e as ExtractReturnDoc, a as RelationConfig, F as FieldPath } from './types-D7-lMoLj.cjs';
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<Partial<T["type"]>, SystemKeys<T>>;
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 { type ApiResponse as A, type IncludeConfigTyped as B, type ConfiguredRepository as C, type DeepDiffReturn as D, type PaginationWithIncludeOptionsTyped as E, type FieldRole as F, type GenerateGetMethods as G, type PopulateOptionsTyped as H, type IndexErrorCallback as I, type ListResponseData as L, type OpenAPISpecOptions as O, type PageOptions as P, type QueryRequestBody as Q, type RepoFieldPath as R, type SecurityHeadersOptions as S, type UserFieldPath as U, type CrudServerOptions as a, type CrudRepoConfig as b, type CrudRepoEntry as c, type CrudRepoRegistry as d, type CrudRules as e, type CrudUpdateRuleContext as f, type IndexErrorContext as g, type RepoRelationKeys as h, type Rule as i, type RuleResult as j, type RulesMap as k, type RelationalFieldMeta as l, type ColumnMeta as m, type FilterState as n, type SortState as o, type QueryError as p, DEFAULT_HTML_CSP as q, type PaginationOptions as r, securityHeaders as s, createPaginationIterator as t, executePaginatedQuery as u, type PaginationResult as v, type SystemBackfillFailure as w, type SystemBackfillOptions as x, type SystemBackfillResult as y, type GenerateQueryMethods as z };
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 { A as AuthUser } from './firebase-auth-Ds5P0kXT.js';
2
- import { H as HonoServerOptions, O as OpenAPIConfig } from './types-DSMiiOrU.js';
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-D9TwPubT.js';
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, c as GetResult, e as ExtractReturnDoc, a as RelationConfig, F as FieldPath } from './types-DR1DlYio.js';
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<Partial<T["type"]>, SystemKeys<T>>;
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 { type ApiResponse as A, type IncludeConfigTyped as B, type ConfiguredRepository as C, type DeepDiffReturn as D, type PaginationWithIncludeOptionsTyped as E, type FieldRole as F, type GenerateGetMethods as G, type PopulateOptionsTyped as H, type IndexErrorCallback as I, type ListResponseData as L, type OpenAPISpecOptions as O, type PageOptions as P, type QueryRequestBody as Q, type RepoFieldPath as R, type SecurityHeadersOptions as S, type UserFieldPath as U, type CrudServerOptions as a, type CrudRepoConfig as b, type CrudRepoEntry as c, type CrudRepoRegistry as d, type CrudRules as e, type CrudUpdateRuleContext as f, type IndexErrorContext as g, type RepoRelationKeys as h, type Rule as i, type RuleResult as j, type RulesMap as k, type RelationalFieldMeta as l, type ColumnMeta as m, type FilterState as n, type SortState as o, type QueryError as p, DEFAULT_HTML_CSP as q, type PaginationOptions as r, securityHeaders as s, createPaginationIterator as t, executePaginatedQuery as u, type PaginationResult as v, type SystemBackfillFailure as w, type SystemBackfillOptions as x, type SystemBackfillResult as y, type GenerateQueryMethods as z };
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 { b as AuthExtension } from './firebase-auth-Ds5P0kXT.cjs';
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-D7-lMoLj.cjs';
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, FirestoreTriggersDep as j, PubSubHandlerDep as k, SyncDeps as l, SyncOperation as m, SyncTriggerOptions as n, SyncWorkerOptions as o, adminsyncBasicAuth as p, adminsyncFeaturesFlag as q, ExtractRepoModel as r };
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 { b as AuthExtension } from './firebase-auth-Ds5P0kXT.js';
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-DR1DlYio.js';
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, FirestoreTriggersDep as j, PubSubHandlerDep as k, SyncDeps as l, SyncOperation as m, SyncTriggerOptions as n, SyncWorkerOptions as o, adminsyncBasicAuth as p, adminsyncFeaturesFlag as q, ExtractRepoModel as r };
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-Ds5P0kXT.cjs';
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 { type AnyServicesContainer as A, type BasicAuthOptions as B, type OAuthFlowObject as C, type DecodedBearerToken as D, type ErrorHandler as E, type FirebaseBearerAuthOptions as F, type OAuthFlowsObject as G, type HonoServerOptions as H, type InterceptorConfig as I, type OpenAPIInfo as J, type OpenIdConnectSecurityScheme as K, type Logger as L, type MutualTlsSecurityScheme as M, type RouteInput as N, type OpenAPIConfig as O, type PayloadSource as P, type RouteInterceptor as Q, type RouteDef as R, type ServicesOf as S, type RouteModuleDefault as T, type RouteOutput as U, ValidationError as V, type RoutesUnion as W, type SecurityRequirement as X, type SecurityScheme as Y, type SecuritySchemeBase as Z, type HttpMethod as a, type RouteHandler as b, type AnyRouteDef as c, type ErrorHandlerContext as d, basicAuth as e, firebaseBearerAuth as f, firebaseDocsAuth as g, type FirebaseBearerAuthLike as h, isDocsAuthExtension as i, type FirebaseDocsAuthOptions as j, type DocsAuthExtension as k, type DocsAuthRoute as l, defineRoutes as m, createServices as n, createRequestContextMiddleware as o, type RequestContext as p, type ServiceProvider as q, type ServiceProviderMap as r, type ServicesContainer as s, type ApiKeySecurityScheme as t, type HttpSecurityScheme as u, type InterceptorErrorResponse as v, withRequestContext as w, type InterceptorOption as x, type InterceptorOutput as y, type OAuth2SecurityScheme as z };
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.10",
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
- "@google-cloud/bigquery": "^7.0.0 || ^8.0.0",
212
- "@google-cloud/bigquery-storage": "^4.0.0 || ^5.0.0",
213
- "@google-cloud/pubsub": "^4.0.0 || ^5.0.0",
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": "^0.47.0 || ^0.48.0 || ^0.49.0",
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
- "@google-cloud/bigquery": "^8.3.0",
243
- "@google-cloud/bigquery-storage": "^5.1.0",
244
- "@google-cloud/pubsub": "^5.3.0",
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": "latest",
247
- "concurrently": "^9.2.1",
248
- "firebase-admin": "^13.8.0",
249
- "firebase-functions": "^7.2.5",
250
- "meilisearch": "^0.47.0",
251
- "tsup": "^8.5.1",
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.0.5",
254
- "zod": "^4.4.3"
255
+ "wait-on": "^9.5.1",
256
+ "zod": "^4.6.7"
255
257
  },
256
258
  "dependencies": {
257
- "@asteasolutions/zod-to-openapi": "^8.5.0",
258
- "@hono/node-server": "^1.19.14",
259
- "hono": "^4.12.17"
259
+ "@hono/node-server": "^2.1.5",
260
+ "hono": "^4.13.13"
260
261
  }
261
262
  }