@lpdjs/firestore-repo-service 2.6.27 → 2.6.30
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/dist/{create-servers-DmX0SDwc.d.cts → create-servers-C3CIViuc.d.cts} +2 -2
- package/dist/{create-servers-DWvDFvHz.d.ts → create-servers-O2stZ-yF.d.ts} +2 -2
- package/dist/index.cjs +4 -4
- 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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/servers/index.d.cts +1 -1
- package/dist/servers/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import { Query, QuerySnapshot, Firestore } from 'firebase-admin/firestore';
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { h as QueryOptions, P as PaginationOptions, f as RepositoryConfig, i as RelationConfig, C as ConfiguredRepository } from './types-Qd4tuEq9.cjs';
|
|
5
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-Qd4tuEq9.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-
|
|
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-C3CIViuc.cjs';
|
|
7
7
|
export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig } from './index-D0KRndyL.cjs';
|
|
8
8
|
export { M as MiniRouter } from './firebase-auth-DZ8lb2Ec.cjs';
|
|
9
9
|
import 'firebase-functions/v2/firestore';
|
|
@@ -171,13 +171,17 @@ type ResolveRelation<TMapping, TRelationConfig> = TRelationConfig extends {
|
|
|
171
171
|
*/
|
|
172
172
|
declare function buildRepositoryRelations<TMapping extends Record<string, any>, const TRelations extends {
|
|
173
173
|
[K in keyof TMapping]?: TMapping[K] extends RepositoryConfig<infer T, any, any, any, any, any, any, any, any, any, any> ? {
|
|
174
|
-
[RK in keyof
|
|
175
|
-
[R in keyof TMapping]: TMapping[R] extends RepositoryConfig<infer TTargetModel, infer TForeignKeys, any, any, any, any, any, any, any, any, any> ? {
|
|
174
|
+
[RK in keyof TRelations[K]]?: RK extends keyof T ? {
|
|
175
|
+
[R in keyof TMapping]: TMapping[R] extends RepositoryConfig<infer TTargetModel, infer TForeignKeys extends readonly any[], infer TQueryKeys extends readonly any[], any, any, any, any, any, any, any, any> ? ({
|
|
176
176
|
repo: R;
|
|
177
177
|
key: TForeignKeys[number];
|
|
178
|
-
type: "one"
|
|
179
|
-
}
|
|
180
|
-
|
|
178
|
+
type: "one";
|
|
179
|
+
} | {
|
|
180
|
+
repo: R;
|
|
181
|
+
key: TQueryKeys[number];
|
|
182
|
+
type: "many";
|
|
183
|
+
}) : never;
|
|
184
|
+
}[keyof TMapping] : never;
|
|
181
185
|
} : never;
|
|
182
186
|
}>(mapping: TMapping, relations: TRelations): {
|
|
183
187
|
[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, {
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Query, QuerySnapshot, Firestore } from 'firebase-admin/firestore';
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { h as QueryOptions, P as PaginationOptions, f as RepositoryConfig, i as RelationConfig, C as ConfiguredRepository } from './types-wzqw45jH.js';
|
|
5
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-wzqw45jH.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-
|
|
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-O2stZ-yF.js';
|
|
7
7
|
export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig } from './index-TTSjUi4p.js';
|
|
8
8
|
export { M as MiniRouter } from './firebase-auth-DZ8lb2Ec.js';
|
|
9
9
|
import 'firebase-functions/v2/firestore';
|
|
@@ -171,13 +171,17 @@ type ResolveRelation<TMapping, TRelationConfig> = TRelationConfig extends {
|
|
|
171
171
|
*/
|
|
172
172
|
declare function buildRepositoryRelations<TMapping extends Record<string, any>, const TRelations extends {
|
|
173
173
|
[K in keyof TMapping]?: TMapping[K] extends RepositoryConfig<infer T, any, any, any, any, any, any, any, any, any, any> ? {
|
|
174
|
-
[RK in keyof
|
|
175
|
-
[R in keyof TMapping]: TMapping[R] extends RepositoryConfig<infer TTargetModel, infer TForeignKeys, any, any, any, any, any, any, any, any, any> ? {
|
|
174
|
+
[RK in keyof TRelations[K]]?: RK extends keyof T ? {
|
|
175
|
+
[R in keyof TMapping]: TMapping[R] extends RepositoryConfig<infer TTargetModel, infer TForeignKeys extends readonly any[], infer TQueryKeys extends readonly any[], any, any, any, any, any, any, any, any> ? ({
|
|
176
176
|
repo: R;
|
|
177
177
|
key: TForeignKeys[number];
|
|
178
|
-
type: "one"
|
|
179
|
-
}
|
|
180
|
-
|
|
178
|
+
type: "one";
|
|
179
|
+
} | {
|
|
180
|
+
repo: R;
|
|
181
|
+
key: TQueryKeys[number];
|
|
182
|
+
type: "many";
|
|
183
|
+
}) : never;
|
|
184
|
+
}[keyof TMapping] : never;
|
|
181
185
|
} : never;
|
|
182
186
|
}>(mapping: TMapping, relations: TRelations): {
|
|
183
187
|
[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, {
|