@lpdjs/firestore-repo-service 2.6.51 → 2.6.52

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.
@@ -1,11 +1,11 @@
1
1
  import { S as SyncQueue } from './queue-CQyWCQBk.cjs';
2
2
  import { F as FirestoreSyncConfig, S as SyncEvent } from './types-BwH1C-wi.cjs';
3
- import { O as OpenAPIDocument } from './openapi-BEBoB0y3.cjs';
3
+ import { O as OpenAPIDocument } from './openapi-DA2HQTaL.cjs';
4
4
  import * as firebase_functions_v2_https from 'firebase-functions/v2/https';
5
5
  import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
6
6
  import { H as HistoryTriggersConfig } from './read-CTWZjxyh.cjs';
7
- import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-DQwhnE4-.cjs';
8
- import { A as AdminServerOptions, a as AdminRepoConfig } from './index-CsuESJ5D.cjs';
7
+ import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-T6CFn4gs.cjs';
8
+ import { A as AdminServerOptions, a as AdminRepoConfig } from './index-DY0lmoPn.cjs';
9
9
 
10
10
  /** Per-repo admin config with `repo` omitted (auto-bound from the registry key). */
11
11
  type BoundAdminRepoConfig<TRepo extends ConfiguredRepository<any>> = Omit<AdminRepoConfig<TRepo>, "repo">;
@@ -1,11 +1,11 @@
1
1
  import { S as SyncQueue } from './queue-B4uwef6c.js';
2
2
  import { F as FirestoreSyncConfig, S as SyncEvent } from './types-DT7Nypd_.js';
3
- import { O as OpenAPIDocument } from './openapi-ltqn60oy.js';
3
+ import { O as OpenAPIDocument } from './openapi-b7qM1WGb.js';
4
4
  import * as firebase_functions_v2_https from 'firebase-functions/v2/https';
5
5
  import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
6
6
  import { H as HistoryTriggersConfig } from './read-CTWZjxyh.js';
7
- import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-DG5Ys5AM.js';
8
- import { A as AdminServerOptions, a as AdminRepoConfig } from './index-D0clYX8B.js';
7
+ import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-BBV7SbAk.js';
8
+ import { A as AdminServerOptions, a as AdminRepoConfig } from './index-BiPDgqCE.js';
9
9
 
10
10
  /** Per-repo admin config with `repo` omitted (auto-bound from the registry key). */
11
11
  type BoundAdminRepoConfig<TRepo extends ConfiguredRepository<any>> = Omit<AdminRepoConfig<TRepo>, "repo">;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { HttpsOptions } from 'firebase-functions/v2/https';
3
- import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-DG5Ys5AM.js';
3
+ import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-BBV7SbAk.js';
4
4
  import { A as AuthExtension, h as Middleware } from './firebase-auth-DZ8lb2Ec.js';
5
5
 
6
6
  interface PageOptions {
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { HttpsOptions } from 'firebase-functions/v2/https';
3
- import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-DQwhnE4-.cjs';
3
+ import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-T6CFn4gs.cjs';
4
4
  import { A as AuthExtension, h as Middleware } from './firebase-auth-DZ8lb2Ec.cjs';
5
5
 
6
6
  interface PageOptions {
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { d as HistoryConfigForModel } from './read-CTWZjxyh.cjs';
2
2
  import { Query, QuerySnapshot, Firestore } from 'firebase-admin/firestore';
3
3
  import { z } from 'zod';
4
- import { h as QueryOptions, P as PaginationOptions, f as RepositoryConfig, i as RelationConfig, C as ConfiguredRepository } from './types-DQwhnE4-.cjs';
5
- export { A as ApiResponse, b as CrudRepoConfig, a as CrudServerOptions, E as ExtractDocumentRefSignature, j as ExtractUpdateSignature, g as FieldPath, F as FieldRole, t as GenerateGetMethods, u as GenerateQueryMethods, G as GetOptions, k as GetResult, I as IncludeConfigTyped, L as ListResponseData, o as PaginationResult, v as PaginationWithIncludeOptionsTyped, w as PopulateOptionsTyped, Q as QueryRequestBody, l as RelationalKeys, R as RepoFieldPath, e as RepoRelationKeys, p as SystemBackfillFailure, q as SystemBackfillOptions, r as SystemBackfillResult, U as UserFieldPath, W as WhereClause, m as createPaginationIterator, n as executePaginatedQuery } from './types-DQwhnE4-.cjs';
6
- export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from './create-servers-rVXsgSQE.cjs';
7
- export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig } from './index-CsuESJ5D.cjs';
4
+ import { h as QueryOptions, P as PaginationOptions, f as RepositoryConfig, i as RelationConfig, C as ConfiguredRepository } from './types-T6CFn4gs.cjs';
5
+ export { A as ApiResponse, b as CrudRepoConfig, a as CrudServerOptions, E as ExtractDocumentRefSignature, j as ExtractUpdateSignature, g as FieldPath, F as FieldRole, t as GenerateGetMethods, u as GenerateQueryMethods, G as GetOptions, k as GetResult, I as IncludeConfigTyped, L as ListResponseData, o as PaginationResult, v as PaginationWithIncludeOptionsTyped, w as PopulateOptionsTyped, Q as QueryRequestBody, l as RelationalKeys, R as RepoFieldPath, e as RepoRelationKeys, p as SystemBackfillFailure, q as SystemBackfillOptions, r as SystemBackfillResult, U as UserFieldPath, W as WhereClause, m as createPaginationIterator, n as executePaginatedQuery } from './types-T6CFn4gs.cjs';
6
+ export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from './create-servers-BlkEoNpP.cjs';
7
+ export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig } from './index-DY0lmoPn.cjs';
8
8
  export { M as MiniRouter } from './firebase-auth-DZ8lb2Ec.cjs';
9
9
  import 'firebase-functions/v2/firestore';
10
10
  import './types-B4dMmfet.cjs';
@@ -13,7 +13,7 @@ import 'firebase-functions/v2/https';
13
13
  import './queue-CQyWCQBk.cjs';
14
14
  import './types-BwH1C-wi.cjs';
15
15
  import 'firebase-functions/v2/pubsub';
16
- import './openapi-BEBoB0y3.cjs';
16
+ import './openapi-DA2HQTaL.cjs';
17
17
 
18
18
  /**
19
19
  * Apply QueryOptions to a Firestore query.
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { d as HistoryConfigForModel } from './read-CTWZjxyh.js';
2
2
  import { Query, QuerySnapshot, Firestore } from 'firebase-admin/firestore';
3
3
  import { z } from 'zod';
4
- import { h as QueryOptions, P as PaginationOptions, f as RepositoryConfig, i as RelationConfig, C as ConfiguredRepository } from './types-DG5Ys5AM.js';
5
- export { A as ApiResponse, b as CrudRepoConfig, a as CrudServerOptions, E as ExtractDocumentRefSignature, j as ExtractUpdateSignature, g as FieldPath, F as FieldRole, t as GenerateGetMethods, u as GenerateQueryMethods, G as GetOptions, k as GetResult, I as IncludeConfigTyped, L as ListResponseData, o as PaginationResult, v as PaginationWithIncludeOptionsTyped, w as PopulateOptionsTyped, Q as QueryRequestBody, l as RelationalKeys, R as RepoFieldPath, e as RepoRelationKeys, p as SystemBackfillFailure, q as SystemBackfillOptions, r as SystemBackfillResult, U as UserFieldPath, W as WhereClause, m as createPaginationIterator, n as executePaginatedQuery } from './types-DG5Ys5AM.js';
6
- export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from './create-servers-CwNxQQQ1.js';
7
- export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig } from './index-D0clYX8B.js';
4
+ import { h as QueryOptions, P as PaginationOptions, f as RepositoryConfig, i as RelationConfig, C as ConfiguredRepository } from './types-BBV7SbAk.js';
5
+ export { A as ApiResponse, b as CrudRepoConfig, a as CrudServerOptions, E as ExtractDocumentRefSignature, j as ExtractUpdateSignature, g as FieldPath, F as FieldRole, t as GenerateGetMethods, u as GenerateQueryMethods, G as GetOptions, k as GetResult, I as IncludeConfigTyped, L as ListResponseData, o as PaginationResult, v as PaginationWithIncludeOptionsTyped, w as PopulateOptionsTyped, Q as QueryRequestBody, l as RelationalKeys, R as RepoFieldPath, e as RepoRelationKeys, p as SystemBackfillFailure, q as SystemBackfillOptions, r as SystemBackfillResult, U as UserFieldPath, W as WhereClause, m as createPaginationIterator, n as executePaginatedQuery } from './types-BBV7SbAk.js';
6
+ export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from './create-servers-Cj3GnkyB.js';
7
+ export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig } from './index-BiPDgqCE.js';
8
8
  export { M as MiniRouter } from './firebase-auth-DZ8lb2Ec.js';
9
9
  import 'firebase-functions/v2/firestore';
10
10
  import './types-DyKJJ9UQ.js';
@@ -13,7 +13,7 @@ import 'firebase-functions/v2/https';
13
13
  import './queue-B4uwef6c.js';
14
14
  import './types-DT7Nypd_.js';
15
15
  import 'firebase-functions/v2/pubsub';
16
- import './openapi-ltqn60oy.js';
16
+ import './openapi-b7qM1WGb.js';
17
17
 
18
18
  /**
19
19
  * Apply QueryOptions to a Firestore query.
@@ -1,4 +1,4 @@
1
- # @lpdjs/firestore-repo-service (v2.6.51) — full documentation
1
+ # @lpdjs/firestore-repo-service (v2.6.52) — full documentation
2
2
 
3
3
  > ⚡ Type-safe Firestore ORM with auto-generated repositories, advanced queries, relations with typed select, pagination with include, batch/bulk operations, aggregations and transactions.
4
4
 
package/dist/llms.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @lpdjs/firestore-repo-service (v2.6.51)
1
+ # @lpdjs/firestore-repo-service (v2.6.52)
2
2
 
3
3
  > ⚡ Type-safe Firestore ORM with auto-generated repositories, advanced queries, relations with typed select, pagination with include, batch/bulk operations, aggregations and transactions.
4
4
 
@@ -1,4 +1,4 @@
1
- import { d as CrudRepoRegistry, O as OpenAPISpecOptions } from './types-DQwhnE4-.cjs';
1
+ import { d as CrudRepoRegistry, O as OpenAPISpecOptions } from './types-T6CFn4gs.cjs';
2
2
 
3
3
  /**
4
4
  * OpenAPI 3.1 specification generator for the CRUD server.
@@ -1,4 +1,4 @@
1
- import { d as CrudRepoRegistry, O as OpenAPISpecOptions } from './types-DG5Ys5AM.js';
1
+ import { d as CrudRepoRegistry, O as OpenAPISpecOptions } from './types-BBV7SbAk.js';
2
2
 
3
3
  /**
4
4
  * OpenAPI 3.1 specification generator for the CRUD server.
@@ -1,8 +1,8 @@
1
1
  import 'zod';
2
2
  import 'firebase-functions/v2/https';
3
- import '../../types-DQwhnE4-.cjs';
3
+ import '../../types-T6CFn4gs.cjs';
4
4
  export { h as Middleware, M as MiniRouter, R as RouteHandler } from '../../firebase-auth-DZ8lb2Ec.cjs';
5
- export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig, c as RepoRegistry, d as createAdminServer } from '../../index-CsuESJ5D.cjs';
5
+ export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig, c as RepoRegistry, d as createAdminServer } from '../../index-DY0lmoPn.cjs';
6
6
  import '../../types-B4dMmfet.cjs';
7
7
  import 'hono';
8
8
  import '../../read-CTWZjxyh.cjs';
@@ -1,8 +1,8 @@
1
1
  import 'zod';
2
2
  import 'firebase-functions/v2/https';
3
- import '../../types-DG5Ys5AM.js';
3
+ import '../../types-BBV7SbAk.js';
4
4
  export { h as Middleware, M as MiniRouter, R as RouteHandler } from '../../firebase-auth-DZ8lb2Ec.js';
5
- export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig, c as RepoRegistry, d as createAdminServer } from '../../index-D0clYX8B.js';
5
+ export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig, c as RepoRegistry, d as createAdminServer } from '../../index-BiPDgqCE.js';
6
6
  import '../../types-DyKJJ9UQ.js';
7
7
  import 'hono';
8
8
  import '../../read-CTWZjxyh.js';
@@ -1,8 +1,8 @@
1
1
  import { HttpsOptions } from 'firebase-functions/v2/https';
2
- import { C as ConfiguredRepository, a as CrudServerOptions } from '../../types-DQwhnE4-.cjs';
3
- export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, F as FieldRole, L as ListResponseData, O as OpenAPISpecOptions, Q as QueryRequestBody, R as RepoFieldPath, e as RepoRelationKeys, U as UserFieldPath } from '../../types-DQwhnE4-.cjs';
4
- import { O as OpenAPIDocument } from '../../openapi-BEBoB0y3.cjs';
5
- export { g as generateOpenAPISpec } from '../../openapi-BEBoB0y3.cjs';
2
+ import { C as ConfiguredRepository, a as CrudServerOptions } from '../../types-T6CFn4gs.cjs';
3
+ export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, F as FieldRole, L as ListResponseData, O as OpenAPISpecOptions, Q as QueryRequestBody, R as RepoFieldPath, e as RepoRelationKeys, U as UserFieldPath } from '../../types-T6CFn4gs.cjs';
4
+ import { O as OpenAPIDocument } from '../../openapi-DA2HQTaL.cjs';
5
+ export { g as generateOpenAPISpec } from '../../openapi-DA2HQTaL.cjs';
6
6
  import '../../firebase-auth-DZ8lb2Ec.cjs';
7
7
  import '../../types-B4dMmfet.cjs';
8
8
  import 'zod';
@@ -1,8 +1,8 @@
1
1
  import { HttpsOptions } from 'firebase-functions/v2/https';
2
- import { C as ConfiguredRepository, a as CrudServerOptions } from '../../types-DG5Ys5AM.js';
3
- export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, F as FieldRole, L as ListResponseData, O as OpenAPISpecOptions, Q as QueryRequestBody, R as RepoFieldPath, e as RepoRelationKeys, U as UserFieldPath } from '../../types-DG5Ys5AM.js';
4
- import { O as OpenAPIDocument } from '../../openapi-ltqn60oy.js';
5
- export { g as generateOpenAPISpec } from '../../openapi-ltqn60oy.js';
2
+ import { C as ConfiguredRepository, a as CrudServerOptions } from '../../types-BBV7SbAk.js';
3
+ export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, F as FieldRole, L as ListResponseData, O as OpenAPISpecOptions, Q as QueryRequestBody, R as RepoFieldPath, e as RepoRelationKeys, U as UserFieldPath } from '../../types-BBV7SbAk.js';
4
+ import { O as OpenAPIDocument } from '../../openapi-b7qM1WGb.js';
5
+ export { g as generateOpenAPISpec } from '../../openapi-b7qM1WGb.js';
6
6
  import '../../firebase-auth-DZ8lb2Ec.js';
7
7
  import '../../types-DyKJJ9UQ.js';
8
8
  import 'zod';
@@ -1,7 +1,7 @@
1
- export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from '../create-servers-rVXsgSQE.cjs';
2
- import { P as PageOptions, C as ColumnMeta, F as FilterState, R as RelationalFieldMeta, S as SortState, Q as QueryError } from '../index-CsuESJ5D.cjs';
3
- export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig, c as RepoRegistry } from '../index-CsuESJ5D.cjs';
4
- export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, a as CrudServerOptions, D as DEFAULT_HTML_CSP, F as FieldRole, L as ListResponseData, Q as QueryRequestBody, R as RepoFieldPath, e as RepoRelationKeys, S as SecurityHeadersOptions, U as UserFieldPath, s as securityHeaders } from '../types-DQwhnE4-.cjs';
1
+ export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from '../create-servers-BlkEoNpP.cjs';
2
+ import { P as PageOptions, C as ColumnMeta, F as FilterState, R as RelationalFieldMeta, S as SortState, Q as QueryError } from '../index-DY0lmoPn.cjs';
3
+ export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig, c as RepoRegistry } from '../index-DY0lmoPn.cjs';
4
+ export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, a as CrudServerOptions, D as DEFAULT_HTML_CSP, F as FieldRole, L as ListResponseData, Q as QueryRequestBody, R as RepoFieldPath, e as RepoRelationKeys, S as SecurityHeadersOptions, U as UserFieldPath, s as securityHeaders } from '../types-T6CFn4gs.cjs';
5
5
  import { z } from 'zod';
6
6
  export { h as Middleware, M as MiniRouter, R as RouteHandler } from '../firebase-auth-DZ8lb2Ec.cjs';
7
7
  import * as hono_jsx_jsx_dev_runtime from 'hono/jsx/jsx-dev-runtime';
@@ -10,7 +10,7 @@ import '../types-BwH1C-wi.cjs';
10
10
  import 'firebase-functions/v2/firestore';
11
11
  import 'firebase-functions/v2/https';
12
12
  import 'firebase-functions/v2/pubsub';
13
- import '../openapi-BEBoB0y3.cjs';
13
+ import '../openapi-DA2HQTaL.cjs';
14
14
  import '../read-CTWZjxyh.cjs';
15
15
  import 'firebase-admin/firestore';
16
16
  import '../types-B4dMmfet.cjs';
@@ -1,7 +1,7 @@
1
- export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from '../create-servers-CwNxQQQ1.js';
2
- import { P as PageOptions, C as ColumnMeta, F as FilterState, R as RelationalFieldMeta, S as SortState, Q as QueryError } from '../index-D0clYX8B.js';
3
- export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig, c as RepoRegistry } from '../index-D0clYX8B.js';
4
- export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, a as CrudServerOptions, D as DEFAULT_HTML_CSP, F as FieldRole, L as ListResponseData, Q as QueryRequestBody, R as RepoFieldPath, e as RepoRelationKeys, S as SecurityHeadersOptions, U as UserFieldPath, s as securityHeaders } from '../types-DG5Ys5AM.js';
1
+ export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, d as BoundCrudServerOptions, e as BoundFirestoreSyncConfig, C as CreateServersDeps, c as createServers } from '../create-servers-Cj3GnkyB.js';
2
+ import { P as PageOptions, C as ColumnMeta, F as FilterState, R as RelationalFieldMeta, S as SortState, Q as QueryError } from '../index-BiPDgqCE.js';
3
+ export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig, c as RepoRegistry } from '../index-BiPDgqCE.js';
4
+ export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, a as CrudServerOptions, D as DEFAULT_HTML_CSP, F as FieldRole, L as ListResponseData, Q as QueryRequestBody, R as RepoFieldPath, e as RepoRelationKeys, S as SecurityHeadersOptions, U as UserFieldPath, s as securityHeaders } from '../types-BBV7SbAk.js';
5
5
  import { z } from 'zod';
6
6
  export { h as Middleware, M as MiniRouter, R as RouteHandler } from '../firebase-auth-DZ8lb2Ec.js';
7
7
  import * as hono_jsx_jsx_dev_runtime from 'hono/jsx/jsx-dev-runtime';
@@ -10,7 +10,7 @@ import '../types-DT7Nypd_.js';
10
10
  import 'firebase-functions/v2/firestore';
11
11
  import 'firebase-functions/v2/https';
12
12
  import 'firebase-functions/v2/pubsub';
13
- import '../openapi-ltqn60oy.js';
13
+ import '../openapi-b7qM1WGb.js';
14
14
  import '../read-CTWZjxyh.js';
15
15
  import 'firebase-admin/firestore';
16
16
  import '../types-DyKJJ9UQ.js';
@@ -20,7 +20,7 @@ type ExtractUpdateSignature<T, TType> = T extends (db: Firestore, ...args: infer
20
20
  * Check if a type is a plain object (not Date, Array, Function, etc.)
21
21
  * @internal
22
22
  */
23
- type IsPlainObject<T> = T extends Date ? false : T extends Array<any> ? false : T extends Function ? false : T extends object ? true : false;
23
+ 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
24
  /**
25
25
  * Recursively generates dot-notation paths for nested plain objects only
26
26
  * Stops at primitives, Date, Array, Function, etc.
@@ -32,7 +32,7 @@ type IsPlainObject<T> = T extends Date ? false : T extends Array<any> ? false :
32
32
  * // NestedPaths<User> = "address" | "address.city" | "address.zip" | "createdAt"
33
33
  */
34
34
  type NestedPaths<T, Prefix extends string = "", Depth extends number[] = []> = Depth["length"] extends 5 ? Prefix : {
35
- [K in keyof T & string]: IsPlainObject<T[K]> extends true ? Prefix extends "" ? K | NestedPaths<T[K], K, [...Depth, 1]> : `${Prefix}.${K}` | NestedPaths<T[K], `${Prefix}.${K}`, [...Depth, 1]> : Prefix extends "" ? K : `${Prefix}.${K}`;
35
+ [K in keyof T & string]: IsPlainObject<T[K]> extends true ? Prefix extends "" ? K | NestedPaths<NonNullable<T[K]>, K, [...Depth, 1]> : `${Prefix}.${K}` | NestedPaths<NonNullable<T[K]>, `${Prefix}.${K}`, [...Depth, 1]> : Prefix extends "" ? K : `${Prefix}.${K}`;
36
36
  }[keyof T & string];
37
37
  /**
38
38
  * Gets the type at a dot-notation path
@@ -42,7 +42,7 @@ type NestedPaths<T, Prefix extends string = "", Depth extends number[] = []> = D
42
42
  * type User = { address: { city: string } }
43
43
  * // PathValue<User, "address.city"> = string
44
44
  */
45
- type PathValue<T, Path extends string> = Path extends `${infer Key}.${infer Rest}` ? Key extends keyof T ? PathValue<T[Key], Rest> : never : Path extends keyof T ? T[Path] : never;
45
+ type PathValue<T, Path extends string> = Path extends `${infer Key}.${infer Rest}` ? Key extends keyof NonNullable<T> ? PathValue<NonNullable<T>[Key], Rest> : never : Path extends keyof T ? T[Path] : Path extends keyof NonNullable<T> ? NonNullable<T>[Path] : never;
46
46
  /**
47
47
  * All possible field paths including nested paths
48
48
  * @template T - Data model type
@@ -20,7 +20,7 @@ type ExtractUpdateSignature<T, TType> = T extends (db: Firestore, ...args: infer
20
20
  * Check if a type is a plain object (not Date, Array, Function, etc.)
21
21
  * @internal
22
22
  */
23
- type IsPlainObject<T> = T extends Date ? false : T extends Array<any> ? false : T extends Function ? false : T extends object ? true : false;
23
+ 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
24
  /**
25
25
  * Recursively generates dot-notation paths for nested plain objects only
26
26
  * Stops at primitives, Date, Array, Function, etc.
@@ -32,7 +32,7 @@ type IsPlainObject<T> = T extends Date ? false : T extends Array<any> ? false :
32
32
  * // NestedPaths<User> = "address" | "address.city" | "address.zip" | "createdAt"
33
33
  */
34
34
  type NestedPaths<T, Prefix extends string = "", Depth extends number[] = []> = Depth["length"] extends 5 ? Prefix : {
35
- [K in keyof T & string]: IsPlainObject<T[K]> extends true ? Prefix extends "" ? K | NestedPaths<T[K], K, [...Depth, 1]> : `${Prefix}.${K}` | NestedPaths<T[K], `${Prefix}.${K}`, [...Depth, 1]> : Prefix extends "" ? K : `${Prefix}.${K}`;
35
+ [K in keyof T & string]: IsPlainObject<T[K]> extends true ? Prefix extends "" ? K | NestedPaths<NonNullable<T[K]>, K, [...Depth, 1]> : `${Prefix}.${K}` | NestedPaths<NonNullable<T[K]>, `${Prefix}.${K}`, [...Depth, 1]> : Prefix extends "" ? K : `${Prefix}.${K}`;
36
36
  }[keyof T & string];
37
37
  /**
38
38
  * Gets the type at a dot-notation path
@@ -42,7 +42,7 @@ type NestedPaths<T, Prefix extends string = "", Depth extends number[] = []> = D
42
42
  * type User = { address: { city: string } }
43
43
  * // PathValue<User, "address.city"> = string
44
44
  */
45
- type PathValue<T, Path extends string> = Path extends `${infer Key}.${infer Rest}` ? Key extends keyof T ? PathValue<T[Key], Rest> : never : Path extends keyof T ? T[Path] : never;
45
+ type PathValue<T, Path extends string> = Path extends `${infer Key}.${infer Rest}` ? Key extends keyof NonNullable<T> ? PathValue<NonNullable<T>[Key], Rest> : never : Path extends keyof T ? T[Path] : Path extends keyof NonNullable<T> ? NonNullable<T>[Path] : never;
46
46
  /**
47
47
  * All possible field paths including nested paths
48
48
  * @template T - Data model type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lpdjs/firestore-repo-service",
3
- "version": "2.6.51",
3
+ "version": "2.6.52",
4
4
  "workspaces": [
5
5
  "test/functions"
6
6
  ],