@lpdjs/firestore-repo-service 3.0.9 → 3.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/README.md +3 -0
  2. package/dist/{create-servers-6tpqVsSh.d.cts → create-servers-DQBvtkBM.d.cts} +26 -14
  3. package/dist/{create-servers-U8q943yf.d.ts → create-servers-KRf2J2fi.d.ts} +26 -14
  4. package/dist/{firebase-auth-Ds5P0kXT.d.cts → firebase-auth-nG3prKoj.d.cts} +2 -1
  5. package/dist/{firebase-auth-Ds5P0kXT.d.ts → firebase-auth-nG3prKoj.d.ts} +2 -1
  6. package/dist/history/index.cjs +1 -1
  7. package/dist/history/index.cjs.map +1 -1
  8. package/dist/history/index.d.cts +3 -3
  9. package/dist/history/index.d.ts +3 -3
  10. package/dist/history/index.js +1 -1
  11. package/dist/history/index.js.map +1 -1
  12. package/dist/index.cjs +71 -71
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +14 -13
  15. package/dist/index.d.ts +14 -13
  16. package/dist/index.js +71 -71
  17. package/dist/index.js.map +1 -1
  18. package/dist/llms-full.txt +30 -15
  19. package/dist/llms.txt +1 -1
  20. package/dist/{openapi-Bp4vtku3.d.cts → openapi-CzrvqcOE.d.ts} +3 -2
  21. package/dist/{openapi-D6hEI2lq.d.ts → openapi-DK7pS1zN.d.cts} +3 -2
  22. package/dist/{queue-CrH-eNEN.d.ts → queue-CdmBSUNN.d.cts} +3 -2
  23. package/dist/{queue-CiZNShPZ.d.cts → queue-HoGBozpD.d.ts} +3 -2
  24. package/dist/{read-DWUsiHcw.d.cts → read-15-TcgCz.d.ts} +3 -2
  25. package/dist/{read-_6UEFCDw.d.ts → read-B15YaPyR.d.cts} +3 -2
  26. package/dist/{rules-BB0w7PlS.d.cts → rules-Bu2WJoLI.d.cts} +2 -2
  27. package/dist/{rules-6LZ9KkR6.d.ts → rules-gKR5VFhO.d.ts} +2 -2
  28. package/dist/servers/admin/index.cjs +1 -1
  29. package/dist/servers/admin/index.cjs.map +1 -1
  30. package/dist/servers/admin/index.d.cts +12 -8
  31. package/dist/servers/admin/index.d.ts +12 -8
  32. package/dist/servers/admin/index.js +1 -1
  33. package/dist/servers/admin/index.js.map +1 -1
  34. package/dist/servers/auth/index.d.cts +1 -1
  35. package/dist/servers/auth/index.d.ts +1 -1
  36. package/dist/servers/crud/index.cjs +2 -2
  37. package/dist/servers/crud/index.cjs.map +1 -1
  38. package/dist/servers/crud/index.d.cts +11 -10
  39. package/dist/servers/crud/index.d.ts +11 -10
  40. package/dist/servers/crud/index.js +2 -2
  41. package/dist/servers/crud/index.js.map +1 -1
  42. package/dist/servers/hono/index.d.cts +5 -4
  43. package/dist/servers/hono/index.d.ts +5 -4
  44. package/dist/servers/index.cjs +41 -41
  45. package/dist/servers/index.cjs.map +1 -1
  46. package/dist/servers/index.d.cts +14 -13
  47. package/dist/servers/index.d.ts +14 -13
  48. package/dist/servers/index.js +41 -41
  49. package/dist/servers/index.js.map +1 -1
  50. package/dist/sync/bigquery.d.cts +6 -5
  51. package/dist/sync/bigquery.d.ts +6 -5
  52. package/dist/sync/index.cjs +45 -45
  53. package/dist/sync/index.cjs.map +1 -1
  54. package/dist/sync/index.d.cts +9 -8
  55. package/dist/sync/index.d.ts +9 -8
  56. package/dist/sync/index.js +45 -45
  57. package/dist/sync/index.js.map +1 -1
  58. package/dist/sync/meilisearch.d.cts +6 -5
  59. package/dist/sync/meilisearch.d.ts +6 -5
  60. package/dist/{types-BwucrwN0.d.cts → types--RamYGF1.d.cts} +24 -2
  61. package/dist/{types-BwucrwN0.d.ts → types--RamYGF1.d.ts} +24 -2
  62. package/dist/{types-D9Nm-4pg.d.cts → types-8Yoacm2k.d.cts} +9 -7
  63. package/dist/{types-DSMiiOrU.d.ts → types-D3W_RaDA.d.ts} +3 -2
  64. package/dist/{types-CXQeSrhO.d.ts → types-DRKB8gTA.d.ts} +9 -7
  65. package/dist/{types-D_snvgmB.d.cts → types-DZoEAKT7.d.cts} +24 -5
  66. package/dist/{types-DgtfcerG.d.ts → types-DiGFAWPA.d.ts} +24 -5
  67. package/dist/{types-HZG1KlML.d.ts → types-DzJ9WrcY.d.ts} +28 -4
  68. package/dist/{types-C5qxru8j.d.cts → types-KEVZXCF4.d.cts} +28 -4
  69. package/dist/{types-BIZz3sxN.d.cts → types-o-9qoExc.d.cts} +3 -2
  70. package/package.json +20 -20
@@ -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-C5qxru8j.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-D_snvgmB.cjs';
8
- import '../types-BwucrwN0.cjs';
7
+ import '../types-DZoEAKT7.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-HZG1KlML.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-DgtfcerG.js';
8
- import '../types-BwucrwN0.js';
7
+ import '../types-DiGFAWPA.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 };
@@ -1,5 +1,5 @@
1
1
  import { Timestamp } from 'firebase-admin/firestore';
2
- import { onDocumentWritten } from 'firebase-functions/v2/firestore';
2
+ import { DocumentOptions, onDocumentWritten } from 'firebase-functions/v2/firestore';
3
3
 
4
4
  /**
5
5
  * Types and interfaces for the history (change-log) module.
@@ -10,6 +10,12 @@ import { onDocumentWritten } from 'firebase-functions/v2/firestore';
10
10
  * normalising them into a unified {@link HistoryEntry} shape.
11
11
  */
12
12
 
13
+ /**
14
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for history triggers.
15
+ * The `document` field is omitted because the library sets it itself from the collection path.
16
+ */
17
+ type TriggerOptions = Omit<DocumentOptions, "document">;
18
+ type HistoryTriggerOptions = TriggerOptions;
13
19
  type HistoryOperation = "create" | "update" | "delete";
14
20
  /**
15
21
  * Detected JS/Firestore type of a value as stored in a history entry.
@@ -117,6 +123,11 @@ interface HistoryConfigBase {
117
123
  ttl?: {
118
124
  days: number;
119
125
  };
126
+ /**
127
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for this
128
+ * repository's history trigger (e.g. `region`, `vpcConnector`, `memory`, etc.).
129
+ */
130
+ triggerOptions?: HistoryTriggerOptions;
120
131
  }
121
132
  /**
122
133
  * Strongly-typed history config bound to a model `T`.
@@ -184,6 +195,11 @@ interface HistoryTriggerRepoOverride {
184
195
  * @example "residences/{residenceId}/workshops/{docId}"
185
196
  */
186
197
  triggerPath?: string;
198
+ /**
199
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for this
200
+ * repository's history trigger. Overrides global `triggerOptions`.
201
+ */
202
+ triggerOptions?: HistoryTriggerOptions;
187
203
  }
188
204
  interface HistoryTriggersConfig<M = Record<string, any>> {
189
205
  deps: HistoryFirestoreTriggersDep;
@@ -193,8 +209,14 @@ interface HistoryTriggersConfig<M = Record<string, any>> {
193
209
  days: number;
194
210
  };
195
211
  };
212
+ /**
213
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for every
214
+ * history trigger handler. Use to configure `region`, `vpcConnector`,
215
+ * `memory`, `cpu`, `timeoutSeconds`, `maxInstances`, `secrets`, etc.
216
+ */
217
+ triggerOptions?: HistoryTriggerOptions;
196
218
  /** Per-repo overrides keyed by repo name in the mapping. */
197
219
  repos?: Partial<Record<keyof M & string, HistoryTriggerRepoOverride>>;
198
220
  }
199
221
 
200
- export type { HistoryTriggersConfig as H, 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, HistoryTriggerRepoOverride as l };
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,5 +1,5 @@
1
1
  import { Timestamp } from 'firebase-admin/firestore';
2
- import { onDocumentWritten } from 'firebase-functions/v2/firestore';
2
+ import { DocumentOptions, onDocumentWritten } from 'firebase-functions/v2/firestore';
3
3
 
4
4
  /**
5
5
  * Types and interfaces for the history (change-log) module.
@@ -10,6 +10,12 @@ import { onDocumentWritten } from 'firebase-functions/v2/firestore';
10
10
  * normalising them into a unified {@link HistoryEntry} shape.
11
11
  */
12
12
 
13
+ /**
14
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for history triggers.
15
+ * The `document` field is omitted because the library sets it itself from the collection path.
16
+ */
17
+ type TriggerOptions = Omit<DocumentOptions, "document">;
18
+ type HistoryTriggerOptions = TriggerOptions;
13
19
  type HistoryOperation = "create" | "update" | "delete";
14
20
  /**
15
21
  * Detected JS/Firestore type of a value as stored in a history entry.
@@ -117,6 +123,11 @@ interface HistoryConfigBase {
117
123
  ttl?: {
118
124
  days: number;
119
125
  };
126
+ /**
127
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for this
128
+ * repository's history trigger (e.g. `region`, `vpcConnector`, `memory`, etc.).
129
+ */
130
+ triggerOptions?: HistoryTriggerOptions;
120
131
  }
121
132
  /**
122
133
  * Strongly-typed history config bound to a model `T`.
@@ -184,6 +195,11 @@ interface HistoryTriggerRepoOverride {
184
195
  * @example "residences/{residenceId}/workshops/{docId}"
185
196
  */
186
197
  triggerPath?: string;
198
+ /**
199
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for this
200
+ * repository's history trigger. Overrides global `triggerOptions`.
201
+ */
202
+ triggerOptions?: HistoryTriggerOptions;
187
203
  }
188
204
  interface HistoryTriggersConfig<M = Record<string, any>> {
189
205
  deps: HistoryFirestoreTriggersDep;
@@ -193,8 +209,14 @@ interface HistoryTriggersConfig<M = Record<string, any>> {
193
209
  days: number;
194
210
  };
195
211
  };
212
+ /**
213
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for every
214
+ * history trigger handler. Use to configure `region`, `vpcConnector`,
215
+ * `memory`, `cpu`, `timeoutSeconds`, `maxInstances`, `secrets`, etc.
216
+ */
217
+ triggerOptions?: HistoryTriggerOptions;
196
218
  /** Per-repo overrides keyed by repo name in the mapping. */
197
219
  repos?: Partial<Record<keyof M & string, HistoryTriggerRepoOverride>>;
198
220
  }
199
221
 
200
- export type { HistoryTriggersConfig as H, 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, HistoryTriggerRepoOverride as l };
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,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-DWUsiHcw.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-D_snvgmB.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-DZoEAKT7.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,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,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-_6UEFCDw.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-DgtfcerG.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-DiGFAWPA.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,4 +1,4 @@
1
- import { a as HistoryConfigForModel } from './types-BwucrwN0.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,21 @@ 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
21
  * Check if a type is a plain object (not Date, Array, Function, etc.)
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 IsPlainObject<T> = IsAny<T> extends true ? false : NonNullable<T> extends Date ? false : NonNullable<T> extends Array<any> ? false : NonNullable<T> extends Function ? false : NonNullable<T> extends object ? true : false;
20
25
  /**
21
26
  * Recursively generates dot-notation paths for nested plain objects only
22
27
  * Stops at primitives, Date, Array, Function, etc.
@@ -44,6 +49,20 @@ type PathValue<T, Path extends string> = Path extends `${infer Key}.${infer Rest
44
49
  * @template T - Data model type
45
50
  */
46
51
  type FieldPath<T> = NestedPaths<T>;
52
+ /**
53
+ * Recursively makes all properties of plain objects optional while preserving null/undefined.
54
+ * @template T - Data model type
55
+ */
56
+ type DeepPartial<T, Depth extends number[] = []> = IsAny<T> extends true ? Record<string, any> : Depth["length"] extends 5 ? Partial<T> : {
57
+ [K in keyof T]?: IsPlainObject<T[K]> extends true ? DeepPartial<NonNullable<T[K]>, [...Depth, 1]> | Extract<T[K], null | undefined> : T[K];
58
+ };
59
+ /**
60
+ * Optional dot-notation key-value pairs for nested plain object fields (e.g. `{ "address.city"?: string }`).
61
+ * @template T - Data model type
62
+ */
63
+ type DotNotationUpdate<T> = IsAny<T> extends true ? Record<string, any> : {
64
+ [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>;
65
+ };
47
66
  /**
48
67
  * Type for a where condition as a tuple [field, operator, value]
49
68
  * Supports dot-notation for nested fields with proper value typing
@@ -201,7 +220,7 @@ interface RepositoryConfig<T, TForeignKeys extends readonly (keyof T)[], TQueryK
201
220
  enabled: THistoryEnabled;
202
221
  };
203
222
  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>;
223
+ 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
224
  }
206
225
 
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 };
226
+ 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,4 +1,4 @@
1
- import { a as HistoryConfigForModel } from './types-BwucrwN0.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,21 @@ 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
21
  * Check if a type is a plain object (not Date, Array, Function, etc.)
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 IsPlainObject<T> = IsAny<T> extends true ? false : NonNullable<T> extends Date ? false : NonNullable<T> extends Array<any> ? false : NonNullable<T> extends Function ? false : NonNullable<T> extends object ? true : false;
20
25
  /**
21
26
  * Recursively generates dot-notation paths for nested plain objects only
22
27
  * Stops at primitives, Date, Array, Function, etc.
@@ -44,6 +49,20 @@ type PathValue<T, Path extends string> = Path extends `${infer Key}.${infer Rest
44
49
  * @template T - Data model type
45
50
  */
46
51
  type FieldPath<T> = NestedPaths<T>;
52
+ /**
53
+ * Recursively makes all properties of plain objects optional while preserving null/undefined.
54
+ * @template T - Data model type
55
+ */
56
+ type DeepPartial<T, Depth extends number[] = []> = IsAny<T> extends true ? Record<string, any> : Depth["length"] extends 5 ? Partial<T> : {
57
+ [K in keyof T]?: IsPlainObject<T[K]> extends true ? DeepPartial<NonNullable<T[K]>, [...Depth, 1]> | Extract<T[K], null | undefined> : T[K];
58
+ };
59
+ /**
60
+ * Optional dot-notation key-value pairs for nested plain object fields (e.g. `{ "address.city"?: string }`).
61
+ * @template T - Data model type
62
+ */
63
+ type DotNotationUpdate<T> = IsAny<T> extends true ? Record<string, any> : {
64
+ [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>;
65
+ };
47
66
  /**
48
67
  * Type for a where condition as a tuple [field, operator, value]
49
68
  * Supports dot-notation for nested fields with proper value typing
@@ -201,7 +220,7 @@ interface RepositoryConfig<T, TForeignKeys extends readonly (keyof T)[], TQueryK
201
220
  enabled: THistoryEnabled;
202
221
  };
203
222
  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>;
223
+ 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
224
  }
206
225
 
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 };
226
+ 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,17 @@
1
- import { b as AuthExtension } from './firebase-auth-Ds5P0kXT.js';
2
- import { onDocumentWritten } from 'firebase-functions/v2/firestore';
1
+ import { A as AuthExtension } from './firebase-auth-nG3prKoj.js';
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-DgtfcerG.js';
6
+ import { F as FieldPath } from './types-DiGFAWPA.js';
7
7
 
8
+ /**
9
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for every
10
+ * sync trigger handler. The `document` field is omitted because the library sets
11
+ * it itself from `triggerPath` or the repository collection path.
12
+ */
13
+ type TriggerOptions = Omit<DocumentOptions, "document">;
14
+ type SyncTriggerOptions = TriggerOptions;
8
15
  /**
9
16
  * Cloud Functions v2 options forwarded to `onMessagePublished()` for every
10
17
  * sync worker handler. The `topic` field is omitted because the library sets
@@ -231,6 +238,11 @@ interface RepoSyncConfig<F extends string = string> {
231
238
  * Optional custom document transformation function applied after serialization.
232
239
  */
233
240
  transformDoc?: (doc: Record<string, unknown>) => Record<string, unknown>;
241
+ /**
242
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for this
243
+ * repository's sync trigger. Overrides global `triggerOptions`.
244
+ */
245
+ triggerOptions?: SyncTriggerOptions;
234
246
  }
235
247
 
236
248
  /**
@@ -317,6 +329,12 @@ interface SyncTriggersConfig<M = Record<string, any>> {
317
329
  deps: Pick<SyncDeps, "firestoreTriggers" | "pubsub">;
318
330
  /** PubSub topic name prefix (topics will be `{prefix}-{repoName}`) */
319
331
  topicPrefix?: string;
332
+ /**
333
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for every
334
+ * sync trigger handler. Use to configure `region`, `vpcConnector`,
335
+ * `memory`, `cpu`, `timeoutSeconds`, `maxInstances`, `secrets`, etc.
336
+ */
337
+ triggerOptions?: SyncTriggerOptions;
320
338
  /** Per-repo overrides */
321
339
  repos?: TypedRepoSyncConfigs<M>;
322
340
  }
@@ -449,6 +467,12 @@ interface FirestoreSyncConfig<M = Record<string, any>> {
449
467
  * `memory`, `timeoutSeconds`, `region`, `cpu`, etc.
450
468
  */
451
469
  workerOptions?: SyncWorkerOptions;
470
+ /**
471
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for every
472
+ * sync trigger handler. Use to tune `region`, `vpcConnector`, `memory`,
473
+ * `timeoutSeconds`, `maxInstances`, `secrets`, etc.
474
+ */
475
+ triggerOptions?: SyncTriggerOptions;
452
476
  /**
453
477
  * Optional sync admin endpoint. When provided, an `adminsync` handler is
454
478
  * added to `sync.functions` exposing health-check, force-sync, and queue
@@ -459,4 +483,4 @@ interface FirestoreSyncConfig<M = Record<string, any>> {
459
483
  repos?: TypedRepoSyncConfigs<M>;
460
484
  }
461
485
 
462
- 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, 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, SyncWorkerOptions as n, adminsyncBasicAuth as o, adminsyncFeaturesFlag as p, ExtractRepoModel as q };
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,10 +1,17 @@
1
- import { b as AuthExtension } from './firebase-auth-Ds5P0kXT.cjs';
2
- import { onDocumentWritten } from 'firebase-functions/v2/firestore';
1
+ import { A as AuthExtension } from './firebase-auth-nG3prKoj.cjs';
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-D_snvgmB.cjs';
6
+ import { F as FieldPath } from './types-DZoEAKT7.cjs';
7
7
 
8
+ /**
9
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for every
10
+ * sync trigger handler. The `document` field is omitted because the library sets
11
+ * it itself from `triggerPath` or the repository collection path.
12
+ */
13
+ type TriggerOptions = Omit<DocumentOptions, "document">;
14
+ type SyncTriggerOptions = TriggerOptions;
8
15
  /**
9
16
  * Cloud Functions v2 options forwarded to `onMessagePublished()` for every
10
17
  * sync worker handler. The `topic` field is omitted because the library sets
@@ -231,6 +238,11 @@ interface RepoSyncConfig<F extends string = string> {
231
238
  * Optional custom document transformation function applied after serialization.
232
239
  */
233
240
  transformDoc?: (doc: Record<string, unknown>) => Record<string, unknown>;
241
+ /**
242
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for this
243
+ * repository's sync trigger. Overrides global `triggerOptions`.
244
+ */
245
+ triggerOptions?: SyncTriggerOptions;
234
246
  }
235
247
 
236
248
  /**
@@ -317,6 +329,12 @@ interface SyncTriggersConfig<M = Record<string, any>> {
317
329
  deps: Pick<SyncDeps, "firestoreTriggers" | "pubsub">;
318
330
  /** PubSub topic name prefix (topics will be `{prefix}-{repoName}`) */
319
331
  topicPrefix?: string;
332
+ /**
333
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for every
334
+ * sync trigger handler. Use to configure `region`, `vpcConnector`,
335
+ * `memory`, `cpu`, `timeoutSeconds`, `maxInstances`, `secrets`, etc.
336
+ */
337
+ triggerOptions?: SyncTriggerOptions;
320
338
  /** Per-repo overrides */
321
339
  repos?: TypedRepoSyncConfigs<M>;
322
340
  }
@@ -449,6 +467,12 @@ interface FirestoreSyncConfig<M = Record<string, any>> {
449
467
  * `memory`, `timeoutSeconds`, `region`, `cpu`, etc.
450
468
  */
451
469
  workerOptions?: SyncWorkerOptions;
470
+ /**
471
+ * Cloud Functions v2 options forwarded to `onDocumentWritten()` for every
472
+ * sync trigger handler. Use to tune `region`, `vpcConnector`, `memory`,
473
+ * `timeoutSeconds`, `maxInstances`, `secrets`, etc.
474
+ */
475
+ triggerOptions?: SyncTriggerOptions;
452
476
  /**
453
477
  * Optional sync admin endpoint. When provided, an `adminsync` handler is
454
478
  * added to `sync.functions` exposing health-check, force-sync, and queue
@@ -459,4 +483,4 @@ interface FirestoreSyncConfig<M = Record<string, any>> {
459
483
  repos?: TypedRepoSyncConfigs<M>;
460
484
  }
461
485
 
462
- 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, 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, SyncWorkerOptions as n, adminsyncBasicAuth as o, adminsyncFeaturesFlag as p, ExtractRepoModel as q };
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.9",
3
+ "version": "3.0.11",
4
4
  "workspaces": [
5
5
  "test/functions"
6
6
  ],
@@ -208,14 +208,14 @@
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
+ "@google-cloud/bigquery": "^7.0.0 || ^8.0.0 || ^9.0.0",
212
+ "@google-cloud/bigquery-storage": "^4.0.0 || ^5.0.0 || ^6.0.0",
213
+ "@google-cloud/pubsub": "^4.0.0 || ^5.0.0 || ^6.0.0",
214
214
  "@types/express": "^4.17.0 || ^5.0.0",
215
215
  "firebase-admin": "^12.0.0 || ^13.0.0 || ^14.0.0",
216
216
  "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",
217
+ "meilisearch": ">=0.47.0 <1.0.0",
218
+ "typescript": "^5.0.0 || ^6.0.0 || ^7.0.0",
219
219
  "zod": "^4"
220
220
  },
221
221
  "peerDependenciesMeta": {
@@ -239,23 +239,23 @@
239
239
  }
240
240
  },
241
241
  "devDependencies": {
242
- "@google-cloud/bigquery": "^8.3.0",
243
- "@google-cloud/bigquery-storage": "^5.1.0",
244
- "@google-cloud/pubsub": "^5.3.0",
242
+ "@google-cloud/bigquery": "^9.3.0",
243
+ "@google-cloud/bigquery-storage": "^6.2.0",
244
+ "@google-cloud/pubsub": "^6.3.0",
245
245
  "@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",
246
+ "@types/express": "^5.0.6",
247
+ "concurrently": "^10.0.6",
248
+ "firebase-admin": "^14.5.0",
249
+ "firebase-functions": "^7.4.0",
250
+ "meilisearch": "^0.62.0",
251
+ "tsup": "^9.0.0",
252
252
  "typescript": "^5.9.3",
253
- "wait-on": "^9.0.5",
254
- "zod": "^4.4.3"
253
+ "wait-on": "^9.5.1",
254
+ "zod": "^4.6.7"
255
255
  },
256
256
  "dependencies": {
257
- "@asteasolutions/zod-to-openapi": "^8.5.0",
258
- "@hono/node-server": "^1.19.14",
259
- "hono": "^4.12.17"
257
+ "@asteasolutions/zod-to-openapi": "^9.1.0",
258
+ "@hono/node-server": "^2.1.5",
259
+ "hono": "^4.13.13"
260
260
  }
261
261
  }