@lpdjs/firestore-repo-service 2.6.48 → 2.6.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/{create-servers-BjhepKI6.d.ts → create-servers-CwNxQQQ1.d.ts} +3 -3
- package/dist/{create-servers-DSLJF9cm.d.cts → create-servers-rVXsgSQE.d.cts} +3 -3
- package/dist/{index-BwN1OK3P.d.cts → index-CsuESJ5D.d.cts} +1 -1
- package/dist/{index-Df6FAq2n.d.ts → index-D0clYX8B.d.ts} +1 -1
- package/dist/index.cjs +76 -76
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -6
- package/dist/index.d.ts +16 -6
- package/dist/index.js +76 -76
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +178 -9
- package/dist/llms.txt +2 -1
- package/dist/{openapi-CC8PXZ3R.d.cts → openapi-BEBoB0y3.d.cts} +1 -1
- package/dist/{openapi-DuBKOatd.d.ts → openapi-ltqn60oy.d.ts} +1 -1
- package/dist/servers/admin/index.d.cts +2 -2
- package/dist/servers/admin/index.d.ts +2 -2
- package/dist/servers/crud/index.cjs +2 -2
- package/dist/servers/crud/index.cjs.map +1 -1
- package/dist/servers/crud/index.d.cts +4 -4
- package/dist/servers/crud/index.d.ts +4 -4
- package/dist/servers/crud/index.js +2 -2
- package/dist/servers/crud/index.js.map +1 -1
- package/dist/servers/index.cjs +55 -55
- package/dist/servers/index.cjs.map +1 -1
- package/dist/servers/index.d.cts +5 -5
- package/dist/servers/index.d.ts +5 -5
- package/dist/servers/index.js +55 -55
- package/dist/servers/index.js.map +1 -1
- package/dist/sync/index.cjs +3 -3
- package/dist/sync/index.js +3 -3
- package/dist/{types-BEel_BJZ.d.ts → types-DG5Ys5AM.d.ts} +16 -0
- package/dist/{types-BQKFWe40.d.cts → types-DQwhnE4-.d.cts} +16 -0
- package/package.json +1 -1
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-
|
|
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-
|
|
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-
|
|
7
|
-
export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig } from './index-
|
|
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';
|
|
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-
|
|
16
|
+
import './openapi-BEBoB0y3.cjs';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Apply QueryOptions to a Firestore query.
|
|
@@ -58,6 +58,16 @@ type PopulateOptions<TRelationKey = string> = {
|
|
|
58
58
|
* Handles both simple AND conditions and complex OR conditions
|
|
59
59
|
*/
|
|
60
60
|
declare function buildAndExecuteQuery<T>(baseQuery: Query, options: QueryOptions<T>): Promise<QuerySnapshot>;
|
|
61
|
+
/**
|
|
62
|
+
* Build and count query using server-side aggregate count().
|
|
63
|
+
* Returns { count, isExact }.
|
|
64
|
+
* Exact for AND queries and split IN queries.
|
|
65
|
+
* Estimated for OR queries due to potential overlapping documents across branches.
|
|
66
|
+
*/
|
|
67
|
+
declare function buildAndCountQuery<T>(baseQuery: Query, options: QueryOptions<T>): Promise<{
|
|
68
|
+
count: number;
|
|
69
|
+
isExact: boolean;
|
|
70
|
+
}>;
|
|
61
71
|
|
|
62
72
|
type DateHandlingMode = "preserve" | "normalize";
|
|
63
73
|
declare function setDateHandling(mode: DateHandlingMode): void;
|
|
@@ -289,4 +299,4 @@ declare function createRepositoryMapping<T extends Record<string, any>>(dbFactor
|
|
|
289
299
|
[K in keyof T]: ConfiguredRepository<T[K]>;
|
|
290
300
|
};
|
|
291
301
|
|
|
292
|
-
export { ConfiguredRepository, type DateHandlingMode, type IncludeConfig, PaginationOptions, type PaginationWithIncludeOptions, type PopulateOptions, QueryOptions, RelationConfig, RepositoryConfig, RepositoryMapping, applyQueryOptions as applyPaginationQueryOptions, buildAndExecuteQuery, buildRepositoryRelations, coerceToDate, createRepositoryConfig, createRepositoryMapping, getDateHandling, normalizeTimestamps, setDateHandling };
|
|
302
|
+
export { ConfiguredRepository, type DateHandlingMode, type IncludeConfig, PaginationOptions, type PaginationWithIncludeOptions, type PopulateOptions, QueryOptions, RelationConfig, RepositoryConfig, RepositoryMapping, applyQueryOptions as applyPaginationQueryOptions, buildAndCountQuery, buildAndExecuteQuery, buildRepositoryRelations, coerceToDate, createRepositoryConfig, createRepositoryMapping, getDateHandling, normalizeTimestamps, setDateHandling };
|
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-
|
|
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-
|
|
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-
|
|
7
|
-
export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig } from './index-
|
|
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';
|
|
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-
|
|
16
|
+
import './openapi-ltqn60oy.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Apply QueryOptions to a Firestore query.
|
|
@@ -58,6 +58,16 @@ type PopulateOptions<TRelationKey = string> = {
|
|
|
58
58
|
* Handles both simple AND conditions and complex OR conditions
|
|
59
59
|
*/
|
|
60
60
|
declare function buildAndExecuteQuery<T>(baseQuery: Query, options: QueryOptions<T>): Promise<QuerySnapshot>;
|
|
61
|
+
/**
|
|
62
|
+
* Build and count query using server-side aggregate count().
|
|
63
|
+
* Returns { count, isExact }.
|
|
64
|
+
* Exact for AND queries and split IN queries.
|
|
65
|
+
* Estimated for OR queries due to potential overlapping documents across branches.
|
|
66
|
+
*/
|
|
67
|
+
declare function buildAndCountQuery<T>(baseQuery: Query, options: QueryOptions<T>): Promise<{
|
|
68
|
+
count: number;
|
|
69
|
+
isExact: boolean;
|
|
70
|
+
}>;
|
|
61
71
|
|
|
62
72
|
type DateHandlingMode = "preserve" | "normalize";
|
|
63
73
|
declare function setDateHandling(mode: DateHandlingMode): void;
|
|
@@ -289,4 +299,4 @@ declare function createRepositoryMapping<T extends Record<string, any>>(dbFactor
|
|
|
289
299
|
[K in keyof T]: ConfiguredRepository<T[K]>;
|
|
290
300
|
};
|
|
291
301
|
|
|
292
|
-
export { ConfiguredRepository, type DateHandlingMode, type IncludeConfig, PaginationOptions, type PaginationWithIncludeOptions, type PopulateOptions, QueryOptions, RelationConfig, RepositoryConfig, RepositoryMapping, applyQueryOptions as applyPaginationQueryOptions, buildAndExecuteQuery, buildRepositoryRelations, coerceToDate, createRepositoryConfig, createRepositoryMapping, getDateHandling, normalizeTimestamps, setDateHandling };
|
|
302
|
+
export { ConfiguredRepository, type DateHandlingMode, type IncludeConfig, PaginationOptions, type PaginationWithIncludeOptions, type PopulateOptions, QueryOptions, RelationConfig, RepositoryConfig, RepositoryMapping, applyQueryOptions as applyPaginationQueryOptions, buildAndCountQuery, buildAndExecuteQuery, buildRepositoryRelations, coerceToDate, createRepositoryConfig, createRepositoryMapping, getDateHandling, normalizeTimestamps, setDateHandling };
|