@lpdjs/firestore-repo-service 3.0.20 → 3.0.21
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 +1 -1
- package/dist/{create-servers-DSxgSZ2p.d.cts → create-servers-TfGVAXBQ.d.cts} +2 -2
- package/dist/{create-servers-BX4FC03_.d.ts → create-servers-z-dCkmv2.d.ts} +2 -2
- package/dist/{effects-DKiDkMBB.d.ts → effects-DLBSYKuA.d.ts} +1 -1
- package/dist/{effects-BQfRbor0.d.cts → effects-DsI4cSpI.d.cts} +1 -1
- package/dist/index.cjs +35 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -6
- package/dist/index.d.ts +10 -6
- package/dist/index.js +35 -35
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +5 -5
- package/dist/llms.txt +1 -1
- package/dist/servers/admin/index.d.cts +1 -1
- package/dist/servers/admin/index.d.ts +1 -1
- package/dist/servers/crud/index.cjs +1 -1
- 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 +1 -1
- package/dist/servers/crud/index.js.map +1 -1
- package/dist/servers/index.cjs +32 -32
- package/dist/servers/index.cjs.map +1 -1
- package/dist/servers/index.d.cts +4 -4
- package/dist/servers/index.d.ts +4 -4
- package/dist/servers/index.js +32 -32
- package/dist/servers/index.js.map +1 -1
- package/dist/sync/index.cjs.map +1 -1
- package/dist/sync/index.js.map +1 -1
- package/dist/{types-DDfd7qc2.d.ts → types-6jjeTvcm.d.ts} +2 -2
- package/dist/{types-x1yAVcQa.d.cts → types-BLHo_PdM.d.cts} +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4,12 +4,12 @@ import { Query, QuerySnapshot, Firestore } from 'firebase-admin/firestore';
|
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { Q as QueryOptions, R as RepositoryConfig, a as RelationConfig, V as ValidatedPath, E as EffectiveRefCb } from './types-Dc3lX99O.cjs';
|
|
6
6
|
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-Dc3lX99O.cjs';
|
|
7
|
-
import { a4 as PaginationOptions, C as ConfiguredRepository } from './types-
|
|
8
|
-
export { b as ApiResponse, c as ApplyEffectsResult, d as CrudAfterBatchContext, e as CrudAfterBatchCreatedItem, f as CrudAfterBatchDeletedItem, g as CrudAfterBatchUpdatedItem, h as CrudAfterCreateContext, i as CrudAfterDeleteContext, j as CrudAfterUpdateContext, k as CrudBeforeCreateContext, l as CrudBeforeUpdateContext, m as CrudEffectOperation, n as CrudHookErrorCallback, o as CrudHookErrorContext, p as CrudHookName, q as CrudHooks, r as CrudRepoConfig, a as CrudServerOptions, w as CrudWriteOperation, D as DeepDiffReturn, E as EffectExecutionResult, x as EffectPredicateArgs, y as EffectsMap, F as FieldRole, a5 as GenerateGetMethods, a6 as GenerateQueryMethods, a7 as IncludeConfigTyped, L as ListResponseData, M as MutationContext, B as MutationRule, G as MutationsMap, O as OpenAPIHeaderParamSpec, H as OpenAPIHistoryHeadersConfig, a8 as PaginationResult, a9 as PaginationWithIncludeOptionsTyped, aa as PopulateOptionsTyped, P as PreWriteMutation, K as PreWriteMutationFn, Q as QueryRequestBody, R as RepoFieldPath, N as RepoRelationKeys, T as RuleEffect, ab as SystemBackfillFailure, ac as SystemBackfillOptions, ad as SystemBackfillResult, ae as UpdatableData, W as UserFieldPath, af as createPaginationIterator, ag as executePaginatedQuery } from './types-
|
|
7
|
+
import { a4 as PaginationOptions, C as ConfiguredRepository } from './types-BLHo_PdM.cjs';
|
|
8
|
+
export { b as ApiResponse, c as ApplyEffectsResult, d as CrudAfterBatchContext, e as CrudAfterBatchCreatedItem, f as CrudAfterBatchDeletedItem, g as CrudAfterBatchUpdatedItem, h as CrudAfterCreateContext, i as CrudAfterDeleteContext, j as CrudAfterUpdateContext, k as CrudBeforeCreateContext, l as CrudBeforeUpdateContext, m as CrudEffectOperation, n as CrudHookErrorCallback, o as CrudHookErrorContext, p as CrudHookName, q as CrudHooks, r as CrudRepoConfig, a as CrudServerOptions, w as CrudWriteOperation, D as DeepDiffReturn, E as EffectExecutionResult, x as EffectPredicateArgs, y as EffectsMap, F as FieldRole, a5 as GenerateGetMethods, a6 as GenerateQueryMethods, a7 as IncludeConfigTyped, L as ListResponseData, M as MutationContext, B as MutationRule, G as MutationsMap, O as OpenAPIHeaderParamSpec, H as OpenAPIHistoryHeadersConfig, a8 as PaginationResult, a9 as PaginationWithIncludeOptionsTyped, aa as PopulateOptionsTyped, P as PreWriteMutation, K as PreWriteMutationFn, Q as QueryRequestBody, R as RepoFieldPath, N as RepoRelationKeys, T as RuleEffect, ab as SystemBackfillFailure, ac as SystemBackfillOptions, ad as SystemBackfillResult, ae as UpdatableData, W as UserFieldPath, af as createPaginationIterator, ag as executePaginatedQuery } from './types-BLHo_PdM.cjs';
|
|
9
9
|
export { a as ActorResolver, b as ActorResolverFieldConfig, A as ActorResolverOption, D as DEFAULT_HISTORY_COMMENT_HEADER, f as DEFAULT_HISTORY_REASON_HEADER, H as HistoryActor, R as ResolvedHistoryHeaderNames, c as createActorContextMiddleware, d as createActorResolver, e as defaultActorResolver, h as getActorResolverHeaders, g as getCurrentActor, s as setRequestActorMeta, w as withActor } from './actor-context-zNobm6nG.cjs';
|
|
10
|
-
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-
|
|
10
|
+
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-TfGVAXBQ.cjs';
|
|
11
11
|
export { AdminRepoConfig, AdminRepoEntry, AdminServerOptions, BasicAuthConfig } from './servers/admin/index.cjs';
|
|
12
|
-
export { a as applyEffects, b as applyMutations, c as applyRules, d as computeDeepDiff, e as createAfterUpdateEffects, f as createBeforeCreateMutations, g as createBeforeRules, h as createBeforeUpdateMutations, i as createEffects, j as createMutations, k as createRules } from './effects-
|
|
12
|
+
export { a as applyEffects, b as applyMutations, c as applyRules, d as computeDeepDiff, e as createAfterUpdateEffects, f as createBeforeCreateMutations, g as createBeforeRules, h as createBeforeUpdateMutations, i as createEffects, j as createMutations, k as createRules } from './effects-DsI4cSpI.cjs';
|
|
13
13
|
export { h as MiniRouter } from './firebase-auth-nG3prKoj.cjs';
|
|
14
14
|
import 'firebase-functions/v2/firestore';
|
|
15
15
|
import './types-XvVG8_9J.cjs';
|
|
@@ -67,8 +67,12 @@ declare function buildAndExecuteQuery<T>(baseQuery: Query, options: QueryOptions
|
|
|
67
67
|
/**
|
|
68
68
|
* Build and count query using server-side aggregate count().
|
|
69
69
|
* Returns { count, isExact }.
|
|
70
|
-
* Exact for AND queries
|
|
71
|
-
*
|
|
70
|
+
* - Exact (`isExact: true`) for AND queries, split `in` queries, single-branch OR
|
|
71
|
+
* queries, and multi-branch OR queries eligible for Firestore's native `Filter.or()`
|
|
72
|
+
* (<= 30 DNF disjunctions, server-side deduplicated).
|
|
73
|
+
* - Estimated (`isExact: false`) when falling back to summing parallel branch counts
|
|
74
|
+
* (e.g. > 30 DNF disjunctions, incompatible operators, missing composite index for
|
|
75
|
+
* `Filter.or()`, or split `array-contains-any` > 30 values).
|
|
72
76
|
*/
|
|
73
77
|
declare function buildAndCountQuery<T>(baseQuery: Query, options: QueryOptions<T>): Promise<{
|
|
74
78
|
count: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ import { Query, QuerySnapshot, Firestore } from 'firebase-admin/firestore';
|
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { Q as QueryOptions, R as RepositoryConfig, a as RelationConfig, V as ValidatedPath, E as EffectiveRefCb } from './types-DgFJLwAu.js';
|
|
6
6
|
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-DgFJLwAu.js';
|
|
7
|
-
import { a4 as PaginationOptions, C as ConfiguredRepository } from './types-
|
|
8
|
-
export { b as ApiResponse, c as ApplyEffectsResult, d as CrudAfterBatchContext, e as CrudAfterBatchCreatedItem, f as CrudAfterBatchDeletedItem, g as CrudAfterBatchUpdatedItem, h as CrudAfterCreateContext, i as CrudAfterDeleteContext, j as CrudAfterUpdateContext, k as CrudBeforeCreateContext, l as CrudBeforeUpdateContext, m as CrudEffectOperation, n as CrudHookErrorCallback, o as CrudHookErrorContext, p as CrudHookName, q as CrudHooks, r as CrudRepoConfig, a as CrudServerOptions, w as CrudWriteOperation, D as DeepDiffReturn, E as EffectExecutionResult, x as EffectPredicateArgs, y as EffectsMap, F as FieldRole, a5 as GenerateGetMethods, a6 as GenerateQueryMethods, a7 as IncludeConfigTyped, L as ListResponseData, M as MutationContext, B as MutationRule, G as MutationsMap, O as OpenAPIHeaderParamSpec, H as OpenAPIHistoryHeadersConfig, a8 as PaginationResult, a9 as PaginationWithIncludeOptionsTyped, aa as PopulateOptionsTyped, P as PreWriteMutation, K as PreWriteMutationFn, Q as QueryRequestBody, R as RepoFieldPath, N as RepoRelationKeys, T as RuleEffect, ab as SystemBackfillFailure, ac as SystemBackfillOptions, ad as SystemBackfillResult, ae as UpdatableData, W as UserFieldPath, af as createPaginationIterator, ag as executePaginatedQuery } from './types-
|
|
7
|
+
import { a4 as PaginationOptions, C as ConfiguredRepository } from './types-6jjeTvcm.js';
|
|
8
|
+
export { b as ApiResponse, c as ApplyEffectsResult, d as CrudAfterBatchContext, e as CrudAfterBatchCreatedItem, f as CrudAfterBatchDeletedItem, g as CrudAfterBatchUpdatedItem, h as CrudAfterCreateContext, i as CrudAfterDeleteContext, j as CrudAfterUpdateContext, k as CrudBeforeCreateContext, l as CrudBeforeUpdateContext, m as CrudEffectOperation, n as CrudHookErrorCallback, o as CrudHookErrorContext, p as CrudHookName, q as CrudHooks, r as CrudRepoConfig, a as CrudServerOptions, w as CrudWriteOperation, D as DeepDiffReturn, E as EffectExecutionResult, x as EffectPredicateArgs, y as EffectsMap, F as FieldRole, a5 as GenerateGetMethods, a6 as GenerateQueryMethods, a7 as IncludeConfigTyped, L as ListResponseData, M as MutationContext, B as MutationRule, G as MutationsMap, O as OpenAPIHeaderParamSpec, H as OpenAPIHistoryHeadersConfig, a8 as PaginationResult, a9 as PaginationWithIncludeOptionsTyped, aa as PopulateOptionsTyped, P as PreWriteMutation, K as PreWriteMutationFn, Q as QueryRequestBody, R as RepoFieldPath, N as RepoRelationKeys, T as RuleEffect, ab as SystemBackfillFailure, ac as SystemBackfillOptions, ad as SystemBackfillResult, ae as UpdatableData, W as UserFieldPath, af as createPaginationIterator, ag as executePaginatedQuery } from './types-6jjeTvcm.js';
|
|
9
9
|
export { a as ActorResolver, b as ActorResolverFieldConfig, A as ActorResolverOption, D as DEFAULT_HISTORY_COMMENT_HEADER, f as DEFAULT_HISTORY_REASON_HEADER, H as HistoryActor, R as ResolvedHistoryHeaderNames, c as createActorContextMiddleware, d as createActorResolver, e as defaultActorResolver, h as getActorResolverHeaders, g as getCurrentActor, s as setRequestActorMeta, w as withActor } from './actor-context-zNobm6nG.js';
|
|
10
|
-
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-
|
|
10
|
+
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-z-dCkmv2.js';
|
|
11
11
|
export { AdminRepoConfig, AdminRepoEntry, AdminServerOptions, BasicAuthConfig } from './servers/admin/index.js';
|
|
12
|
-
export { a as applyEffects, b as applyMutations, c as applyRules, d as computeDeepDiff, e as createAfterUpdateEffects, f as createBeforeCreateMutations, g as createBeforeRules, h as createBeforeUpdateMutations, i as createEffects, j as createMutations, k as createRules } from './effects-
|
|
12
|
+
export { a as applyEffects, b as applyMutations, c as applyRules, d as computeDeepDiff, e as createAfterUpdateEffects, f as createBeforeCreateMutations, g as createBeforeRules, h as createBeforeUpdateMutations, i as createEffects, j as createMutations, k as createRules } from './effects-DLBSYKuA.js';
|
|
13
13
|
export { h as MiniRouter } from './firebase-auth-nG3prKoj.js';
|
|
14
14
|
import 'firebase-functions/v2/firestore';
|
|
15
15
|
import './types-BJ6MAavL.js';
|
|
@@ -67,8 +67,12 @@ declare function buildAndExecuteQuery<T>(baseQuery: Query, options: QueryOptions
|
|
|
67
67
|
/**
|
|
68
68
|
* Build and count query using server-side aggregate count().
|
|
69
69
|
* Returns { count, isExact }.
|
|
70
|
-
* Exact for AND queries
|
|
71
|
-
*
|
|
70
|
+
* - Exact (`isExact: true`) for AND queries, split `in` queries, single-branch OR
|
|
71
|
+
* queries, and multi-branch OR queries eligible for Firestore's native `Filter.or()`
|
|
72
|
+
* (<= 30 DNF disjunctions, server-side deduplicated).
|
|
73
|
+
* - Estimated (`isExact: false`) when falling back to summing parallel branch counts
|
|
74
|
+
* (e.g. > 30 DNF disjunctions, incompatible operators, missing composite index for
|
|
75
|
+
* `Filter.or()`, or split `array-contains-any` > 30 values).
|
|
72
76
|
*/
|
|
73
77
|
declare function buildAndCountQuery<T>(baseQuery: Query, options: QueryOptions<T>): Promise<{
|
|
74
78
|
count: number;
|