@lpdjs/firestore-repo-service 3.0.13 → 3.0.14

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 (33) hide show
  1. package/dist/{create-servers-LyRLAOh3.d.cts → create-servers-BwbKPcBG.d.cts} +4 -4
  2. package/dist/{create-servers-Db1xUY2N.d.ts → create-servers-DVCB8BKC.d.ts} +4 -4
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +16 -12
  5. package/dist/index.d.ts +16 -12
  6. package/dist/index.js.map +1 -1
  7. package/dist/llms-full.txt +1 -1
  8. package/dist/llms.txt +1 -1
  9. package/dist/{openapi-CNIA7QRw.d.ts → openapi-B0s5qVSg.d.ts} +1 -1
  10. package/dist/{openapi-QVpqnnes.d.cts → openapi-DZp7mW-s.d.cts} +1 -1
  11. package/dist/{queue-CpHe6M5j.d.cts → queue-B0rkiPZF.d.cts} +1 -1
  12. package/dist/{queue-BEB-ujA3.d.ts → queue-aNhdaNGW.d.ts} +1 -1
  13. package/dist/{rules-Bu2NB7Eb.d.cts → rules-BV3-D08Y.d.cts} +1 -1
  14. package/dist/{rules-Cafrkb9v.d.ts → rules-DNJV8yxi.d.ts} +1 -1
  15. package/dist/servers/admin/index.d.cts +1 -1
  16. package/dist/servers/admin/index.d.ts +1 -1
  17. package/dist/servers/crud/index.d.cts +6 -6
  18. package/dist/servers/crud/index.d.ts +6 -6
  19. package/dist/servers/index.d.cts +8 -8
  20. package/dist/servers/index.d.ts +8 -8
  21. package/dist/sync/bigquery.d.cts +1 -1
  22. package/dist/sync/bigquery.d.ts +1 -1
  23. package/dist/sync/index.d.cts +5 -5
  24. package/dist/sync/index.d.ts +5 -5
  25. package/dist/sync/meilisearch.d.cts +1 -1
  26. package/dist/sync/meilisearch.d.ts +1 -1
  27. package/dist/{types-B51LYvQZ.d.cts → types-BFu2DpKn.d.cts} +19 -18
  28. package/dist/{types-DmXW_fVz.d.ts → types-BuggDko0.d.ts} +1 -1
  29. package/dist/{types-Ci0dGbuW.d.ts → types-BvJYEGa1.d.ts} +19 -18
  30. package/dist/{types-CNseHqF7.d.cts → types-Cko118ZS.d.cts} +1 -1
  31. package/dist/{types-VVuLlmfc.d.cts → types-Dvst2iLQ.d.cts} +1 -1
  32. package/dist/{types-DGQURFSq.d.ts → types-dDxiibCW.d.ts} +1 -1
  33. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { HistoryConfigForModel } from './history/index.cjs';
2
2
  import { Query, QuerySnapshot, Firestore } from 'firebase-admin/firestore';
3
3
  import { z } from 'zod';
4
- import { Q as QueryOptions, R as RepositoryConfig, a as RelationConfig, V as ValidatedPath } from './types-B51LYvQZ.cjs';
5
- export { D as DeepPartial, b as DotNotationUpdate, E as ExtractDocumentRefSignature, c as ExtractParentParams, d as ExtractPathParams, e as ExtractUpdateSignature, F as FieldPath, G as GetOptions, f as GetResult, I as InvalidPathParams, P as PathParamsToArgsTuple, g as RelationalKeys, W as WhereClause } from './types-B51LYvQZ.cjs';
6
- import { r as PaginationOptions, C as ConfiguredRepository } from './types-CNseHqF7.cjs';
7
- export { A as ApiResponse, b as CrudRepoConfig, a as CrudServerOptions, F as FieldRole, G as GenerateGetMethods, t as GenerateQueryMethods, u as IncludeConfigTyped, L as ListResponseData, v as PaginationResult, w as PaginationWithIncludeOptionsTyped, x as PopulateOptionsTyped, Q as QueryRequestBody, R as RepoFieldPath, h as RepoRelationKeys, y as SystemBackfillFailure, z as SystemBackfillOptions, B as SystemBackfillResult, E as UpdatableData, U as UserFieldPath, H as createPaginationIterator, J as executePaginatedQuery } from './types-CNseHqF7.cjs';
8
- export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, c as BoundCrudServerOptions, d as BoundFirestoreSyncConfig, C as CreateServersDeps, e as createServers } from './create-servers-LyRLAOh3.cjs';
4
+ import { Q as QueryOptions, R as RepositoryConfig, a as RelationConfig, V as ValidatedPath, E as EffectiveRefCb } from './types-BFu2DpKn.cjs';
5
+ export { D as DeepPartial, b as DotNotationUpdate, c as ExtractDocumentRefSignature, d as ExtractParentParams, e as ExtractPathParams, f as ExtractUpdateSignature, F as FieldPath, G as GetOptions, g as GetResult, I as InvalidPathParams, P as PathParamsToArgsTuple, h as RelationalKeys, S as SynthesizedRefCb, W as WhereClause } from './types-BFu2DpKn.cjs';
6
+ import { r as PaginationOptions, C as ConfiguredRepository } from './types-Cko118ZS.cjs';
7
+ export { A as ApiResponse, b as CrudRepoConfig, a as CrudServerOptions, F as FieldRole, G as GenerateGetMethods, t as GenerateQueryMethods, u as IncludeConfigTyped, L as ListResponseData, v as PaginationResult, w as PaginationWithIncludeOptionsTyped, x as PopulateOptionsTyped, Q as QueryRequestBody, R as RepoFieldPath, h as RepoRelationKeys, y as SystemBackfillFailure, z as SystemBackfillOptions, B as SystemBackfillResult, E as UpdatableData, U as UserFieldPath, H as createPaginationIterator, J as executePaginatedQuery } from './types-Cko118ZS.cjs';
8
+ export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, c as BoundCrudServerOptions, d as BoundFirestoreSyncConfig, C as CreateServersDeps, e as createServers } from './create-servers-BwbKPcBG.cjs';
9
9
  export { AdminRepoConfig, AdminRepoEntry, AdminServerOptions, BasicAuthConfig } from './servers/admin/index.cjs';
10
10
  export { h as MiniRouter } from './firebase-auth-nG3prKoj.cjs';
11
11
  import 'firebase-functions/v2/firestore';
@@ -13,10 +13,10 @@ import './types-o-9qoExc.cjs';
13
13
  import 'hono';
14
14
  import 'firebase-functions/v2/https';
15
15
  import './read-B15YaPyR.cjs';
16
- import './queue-CpHe6M5j.cjs';
17
- import './types-VVuLlmfc.cjs';
16
+ import './queue-B0rkiPZF.cjs';
17
+ import './types-Dvst2iLQ.cjs';
18
18
  import 'firebase-functions/v2/pubsub';
19
- import './openapi-QVpqnnes.cjs';
19
+ import './openapi-DZp7mW-s.cjs';
20
20
  import './sync/meilisearch.cjs';
21
21
 
22
22
  /**
@@ -151,7 +151,7 @@ declare function createRepositoryConfig<TSchema extends z.ZodObject<any>>(schema
151
151
  history?: HistoryConfigForModel<z.infer<TSchema>> & {
152
152
  enabled: THistoryEnabled;
153
153
  };
154
- }) => RepositoryConfig<z.infer<TSchema>, TForeignKeys, TQueryKeys, TIsGroup, TRefCb, {}, TDocumentKey, TPathKey, TCreatedKey, TUpdatedKey, THistoryEnabled, TPath> & {
154
+ }) => RepositoryConfig<z.infer<TSchema>, TForeignKeys, TQueryKeys, TIsGroup, EffectiveRefCb<TPath, TDocumentKey & string, TIsGroup, TRefCb>, {}, TDocumentKey, TPathKey, TCreatedKey, TUpdatedKey, THistoryEnabled> & {
155
155
  schema: TSchema;
156
156
  };
157
157
  /**
@@ -218,9 +218,13 @@ declare function buildRepositoryRelations<TMapping extends Record<string, any>,
218
218
  }[keyof TMapping];
219
219
  } : never;
220
220
  }>(mapping: TMapping, relations: TRelations): {
221
- [K in keyof TMapping]: K extends keyof TRelations ? TMapping[K] extends RepositoryConfig<infer T, infer TForeignKeys, infer TQueryKeys, infer TIsGroup, infer TRefCb, any, infer TDocumentKey, infer TPathKey, infer TCreatedKey, infer TUpdatedKey, infer THistoryEnabled, infer TPath> ? RepositoryConfig<T, TForeignKeys, TQueryKeys, TIsGroup, TRefCb, {
221
+ [K in keyof TMapping]: K extends keyof TRelations ? TMapping[K] extends RepositoryConfig<infer T, infer TForeignKeys, infer TQueryKeys, infer TIsGroup, infer TRefCb, any, infer TDocumentKey, infer TPathKey, infer TCreatedKey, infer TUpdatedKey, infer THistoryEnabled> ? RepositoryConfig<T, TForeignKeys, TQueryKeys, TIsGroup, TRefCb, {
222
222
  [RK in keyof TRelations[K]]: ResolveRelation<TMapping, TRelations[K][RK]>;
223
- }, TDocumentKey, TPathKey, TCreatedKey, TUpdatedKey, THistoryEnabled, TPath> : TMapping[K] : TMapping[K];
223
+ }, TDocumentKey, TPathKey, TCreatedKey, TUpdatedKey, THistoryEnabled> & (TMapping[K] extends {
224
+ schema: infer TSchema;
225
+ } ? {
226
+ schema: TSchema;
227
+ } : {}) : TMapping[K] : TMapping[K];
224
228
  };
225
229
  /**
226
230
  * Repository mapping class that manages Firestore repositories with type safety
@@ -307,5 +311,5 @@ declare function createRepositoryMapping<T extends Record<string, any>>(dbFactor
307
311
  [K in keyof T]: ConfiguredRepository<T[K]>;
308
312
  };
309
313
 
310
- export { ConfiguredRepository, PaginationOptions, QueryOptions, RelationConfig, RepositoryConfig, RepositoryMapping, ValidatedPath, applyQueryOptions as applyPaginationQueryOptions, buildAndCountQuery, buildAndExecuteQuery, buildRepositoryRelations, coerceToDate, createRepositoryConfig, createRepositoryMapping, getDateHandling, normalizeTimestamps, setDateHandling };
314
+ export { ConfiguredRepository, EffectiveRefCb, PaginationOptions, QueryOptions, RelationConfig, RepositoryConfig, RepositoryMapping, ValidatedPath, applyQueryOptions as applyPaginationQueryOptions, buildAndCountQuery, buildAndExecuteQuery, buildRepositoryRelations, coerceToDate, createRepositoryConfig, createRepositoryMapping, getDateHandling, normalizeTimestamps, setDateHandling };
311
315
  export type { DateHandlingMode, IncludeConfig, PaginationWithIncludeOptions, PopulateOptions };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { HistoryConfigForModel } from './history/index.js';
2
2
  import { Query, QuerySnapshot, Firestore } from 'firebase-admin/firestore';
3
3
  import { z } from 'zod';
4
- import { Q as QueryOptions, R as RepositoryConfig, a as RelationConfig, V as ValidatedPath } from './types-Ci0dGbuW.js';
5
- export { D as DeepPartial, b as DotNotationUpdate, E as ExtractDocumentRefSignature, c as ExtractParentParams, d as ExtractPathParams, e as ExtractUpdateSignature, F as FieldPath, G as GetOptions, f as GetResult, I as InvalidPathParams, P as PathParamsToArgsTuple, g as RelationalKeys, W as WhereClause } from './types-Ci0dGbuW.js';
6
- import { r as PaginationOptions, C as ConfiguredRepository } from './types-DmXW_fVz.js';
7
- export { A as ApiResponse, b as CrudRepoConfig, a as CrudServerOptions, F as FieldRole, G as GenerateGetMethods, t as GenerateQueryMethods, u as IncludeConfigTyped, L as ListResponseData, v as PaginationResult, w as PaginationWithIncludeOptionsTyped, x as PopulateOptionsTyped, Q as QueryRequestBody, R as RepoFieldPath, h as RepoRelationKeys, y as SystemBackfillFailure, z as SystemBackfillOptions, B as SystemBackfillResult, E as UpdatableData, U as UserFieldPath, H as createPaginationIterator, J as executePaginatedQuery } from './types-DmXW_fVz.js';
8
- export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, c as BoundCrudServerOptions, d as BoundFirestoreSyncConfig, C as CreateServersDeps, e as createServers } from './create-servers-Db1xUY2N.js';
4
+ import { Q as QueryOptions, R as RepositoryConfig, a as RelationConfig, V as ValidatedPath, E as EffectiveRefCb } from './types-BvJYEGa1.js';
5
+ export { D as DeepPartial, b as DotNotationUpdate, c as ExtractDocumentRefSignature, d as ExtractParentParams, e as ExtractPathParams, f as ExtractUpdateSignature, F as FieldPath, G as GetOptions, g as GetResult, I as InvalidPathParams, P as PathParamsToArgsTuple, h as RelationalKeys, S as SynthesizedRefCb, W as WhereClause } from './types-BvJYEGa1.js';
6
+ import { r as PaginationOptions, C as ConfiguredRepository } from './types-BuggDko0.js';
7
+ export { A as ApiResponse, b as CrudRepoConfig, a as CrudServerOptions, F as FieldRole, G as GenerateGetMethods, t as GenerateQueryMethods, u as IncludeConfigTyped, L as ListResponseData, v as PaginationResult, w as PaginationWithIncludeOptionsTyped, x as PopulateOptionsTyped, Q as QueryRequestBody, R as RepoFieldPath, h as RepoRelationKeys, y as SystemBackfillFailure, z as SystemBackfillOptions, B as SystemBackfillResult, E as UpdatableData, U as UserFieldPath, H as createPaginationIterator, J as executePaginatedQuery } from './types-BuggDko0.js';
8
+ export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, c as BoundCrudServerOptions, d as BoundFirestoreSyncConfig, C as CreateServersDeps, e as createServers } from './create-servers-DVCB8BKC.js';
9
9
  export { AdminRepoConfig, AdminRepoEntry, AdminServerOptions, BasicAuthConfig } from './servers/admin/index.js';
10
10
  export { h as MiniRouter } from './firebase-auth-nG3prKoj.js';
11
11
  import 'firebase-functions/v2/firestore';
@@ -13,10 +13,10 @@ import './types-D3W_RaDA.js';
13
13
  import 'hono';
14
14
  import 'firebase-functions/v2/https';
15
15
  import './read-15-TcgCz.js';
16
- import './queue-BEB-ujA3.js';
17
- import './types-DGQURFSq.js';
16
+ import './queue-aNhdaNGW.js';
17
+ import './types-dDxiibCW.js';
18
18
  import 'firebase-functions/v2/pubsub';
19
- import './openapi-CNIA7QRw.js';
19
+ import './openapi-B0s5qVSg.js';
20
20
  import './sync/meilisearch.js';
21
21
 
22
22
  /**
@@ -151,7 +151,7 @@ declare function createRepositoryConfig<TSchema extends z.ZodObject<any>>(schema
151
151
  history?: HistoryConfigForModel<z.infer<TSchema>> & {
152
152
  enabled: THistoryEnabled;
153
153
  };
154
- }) => RepositoryConfig<z.infer<TSchema>, TForeignKeys, TQueryKeys, TIsGroup, TRefCb, {}, TDocumentKey, TPathKey, TCreatedKey, TUpdatedKey, THistoryEnabled, TPath> & {
154
+ }) => RepositoryConfig<z.infer<TSchema>, TForeignKeys, TQueryKeys, TIsGroup, EffectiveRefCb<TPath, TDocumentKey & string, TIsGroup, TRefCb>, {}, TDocumentKey, TPathKey, TCreatedKey, TUpdatedKey, THistoryEnabled> & {
155
155
  schema: TSchema;
156
156
  };
157
157
  /**
@@ -218,9 +218,13 @@ declare function buildRepositoryRelations<TMapping extends Record<string, any>,
218
218
  }[keyof TMapping];
219
219
  } : never;
220
220
  }>(mapping: TMapping, relations: TRelations): {
221
- [K in keyof TMapping]: K extends keyof TRelations ? TMapping[K] extends RepositoryConfig<infer T, infer TForeignKeys, infer TQueryKeys, infer TIsGroup, infer TRefCb, any, infer TDocumentKey, infer TPathKey, infer TCreatedKey, infer TUpdatedKey, infer THistoryEnabled, infer TPath> ? RepositoryConfig<T, TForeignKeys, TQueryKeys, TIsGroup, TRefCb, {
221
+ [K in keyof TMapping]: K extends keyof TRelations ? TMapping[K] extends RepositoryConfig<infer T, infer TForeignKeys, infer TQueryKeys, infer TIsGroup, infer TRefCb, any, infer TDocumentKey, infer TPathKey, infer TCreatedKey, infer TUpdatedKey, infer THistoryEnabled> ? RepositoryConfig<T, TForeignKeys, TQueryKeys, TIsGroup, TRefCb, {
222
222
  [RK in keyof TRelations[K]]: ResolveRelation<TMapping, TRelations[K][RK]>;
223
- }, TDocumentKey, TPathKey, TCreatedKey, TUpdatedKey, THistoryEnabled, TPath> : TMapping[K] : TMapping[K];
223
+ }, TDocumentKey, TPathKey, TCreatedKey, TUpdatedKey, THistoryEnabled> & (TMapping[K] extends {
224
+ schema: infer TSchema;
225
+ } ? {
226
+ schema: TSchema;
227
+ } : {}) : TMapping[K] : TMapping[K];
224
228
  };
225
229
  /**
226
230
  * Repository mapping class that manages Firestore repositories with type safety
@@ -307,5 +311,5 @@ declare function createRepositoryMapping<T extends Record<string, any>>(dbFactor
307
311
  [K in keyof T]: ConfiguredRepository<T[K]>;
308
312
  };
309
313
 
310
- export { ConfiguredRepository, PaginationOptions, QueryOptions, RelationConfig, RepositoryConfig, RepositoryMapping, ValidatedPath, applyQueryOptions as applyPaginationQueryOptions, buildAndCountQuery, buildAndExecuteQuery, buildRepositoryRelations, coerceToDate, createRepositoryConfig, createRepositoryMapping, getDateHandling, normalizeTimestamps, setDateHandling };
314
+ export { ConfiguredRepository, EffectiveRefCb, PaginationOptions, QueryOptions, RelationConfig, RepositoryConfig, RepositoryMapping, ValidatedPath, applyQueryOptions as applyPaginationQueryOptions, buildAndCountQuery, buildAndExecuteQuery, buildRepositoryRelations, coerceToDate, createRepositoryConfig, createRepositoryMapping, getDateHandling, normalizeTimestamps, setDateHandling };
311
315
  export type { DateHandlingMode, IncludeConfig, PaginationWithIncludeOptions, PopulateOptions };