@lpdjs/firestore-repo-service 2.2.7 → 2.2.9-beta.0
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-B3Ls46bx.d.cts → create-servers-CfLtucbQ.d.cts} +27 -3
- package/dist/{create-servers-CvVZnihM.d.ts → create-servers-xx0m3wwM.d.ts} +27 -3
- package/dist/history/index.cjs +1 -1
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +3 -4
- package/dist/history/index.d.ts +3 -4
- package/dist/history/index.js +1 -1
- package/dist/history/index.js.map +1 -1
- package/dist/{index-DGB3Oemk.d.ts → index-BvKyjs6k.d.cts} +11 -3
- package/dist/{index-Cw9b1crP.d.cts → index-Njwf8jvu.d.ts} +11 -3
- package/dist/index.cjs +93 -93
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.js +93 -93
- package/dist/index.js.map +1 -1
- package/dist/{openapi-BEf4OuG9.d.ts → openapi-BHZ2XHgn.d.ts} +1 -1
- package/dist/{openapi-D8UTm0lu.d.cts → openapi-DXUE_MEP.d.cts} +1 -1
- package/dist/{read-DMvxeFCg.d.cts → read-D4xAmsbE.d.cts} +141 -13
- package/dist/{read-DMvxeFCg.d.ts → read-D4xAmsbE.d.ts} +141 -13
- package/dist/servers/admin/index.cjs +45 -45
- package/dist/servers/admin/index.cjs.map +1 -1
- package/dist/servers/admin/index.d.cts +3 -3
- package/dist/servers/admin/index.d.ts +3 -3
- package/dist/servers/admin/index.js +45 -45
- package/dist/servers/admin/index.js.map +1 -1
- package/dist/servers/crud/index.d.cts +5 -5
- package/dist/servers/crud/index.d.ts +5 -5
- package/dist/servers/index.cjs +88 -88
- package/dist/servers/index.cjs.map +1 -1
- package/dist/servers/index.d.cts +7 -7
- package/dist/servers/index.d.ts +7 -7
- package/dist/servers/index.js +88 -88
- package/dist/servers/index.js.map +1 -1
- package/dist/{types-CE1dws32.d.cts → types-C822D0dX.d.ts} +19 -18
- package/dist/{types-CjexXskS.d.ts → types-Z1Zy-2hs.d.cts} +19 -18
- package/package.json +5 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { H as HistoryConfigForModel } from './read-
|
|
1
|
+
import { H as HistoryConfigForModel } from './read-D4xAmsbE.cjs';
|
|
2
2
|
import { Query, QuerySnapshot, Firestore } from 'firebase-admin/firestore';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { Q as QueryOptions, P as PaginationOptions, R as RepositoryConfig, a as RelationConfig, C as ConfiguredRepository } from './types-
|
|
5
|
-
export { A as ApiResponse, l as CrudRepoConfig, m as CrudServerOptions, E as ExtractDocumentRefSignature, b as ExtractUpdateSignature, F as FieldPath, n as FieldRole, h as GenerateGetMethods, i as GenerateQueryMethods, G as GetOptions, c as GetResult, I as IncludeConfigTyped, L as ListResponseData, g as PaginationResult, j as PaginationWithIncludeOptionsTyped, k as PopulateOptionsTyped, o as QueryRequestBody, d as RelationalKeys, p as RepoFieldPath, q as RepoRelationKeys, U as UserFieldPath, W as WhereClause, e as createPaginationIterator, f 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, a as AdminRepoEntry, b as AdminServerOptions, B as BasicAuthConfig, M as MiniRouter } from './index-
|
|
4
|
+
import { Q as QueryOptions, P as PaginationOptions, R as RepositoryConfig, a as RelationConfig, C as ConfiguredRepository } from './types-Z1Zy-2hs.cjs';
|
|
5
|
+
export { A as ApiResponse, l as CrudRepoConfig, m as CrudServerOptions, E as ExtractDocumentRefSignature, b as ExtractUpdateSignature, F as FieldPath, n as FieldRole, h as GenerateGetMethods, i as GenerateQueryMethods, G as GetOptions, c as GetResult, I as IncludeConfigTyped, L as ListResponseData, g as PaginationResult, j as PaginationWithIncludeOptionsTyped, k as PopulateOptionsTyped, o as QueryRequestBody, d as RelationalKeys, p as RepoFieldPath, q as RepoRelationKeys, U as UserFieldPath, W as WhereClause, e as createPaginationIterator, f as executePaginatedQuery } from './types-Z1Zy-2hs.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-CfLtucbQ.cjs';
|
|
7
|
+
export { A as AdminRepoConfig, a as AdminRepoEntry, b as AdminServerOptions, B as BasicAuthConfig, M as MiniRouter } from './index-BvKyjs6k.cjs';
|
|
8
8
|
import 'firebase-functions/v2/firestore';
|
|
9
9
|
import 'firebase-functions/v2/https';
|
|
10
10
|
import './queue-Dk1Ezhkf.cjs';
|
|
11
11
|
import './types-CX5AbZWV.cjs';
|
|
12
12
|
import 'firebase-functions/v2/pubsub';
|
|
13
|
-
import './openapi-
|
|
13
|
+
import './openapi-DXUE_MEP.cjs';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Apply QueryOptions to a Firestore query.
|
|
@@ -169,9 +169,9 @@ type ResolveRelation<TMapping, TRelationConfig> = TRelationConfig extends {
|
|
|
169
169
|
* ```
|
|
170
170
|
*/
|
|
171
171
|
declare function buildRepositoryRelations<TMapping extends Record<string, any>, const TRelations extends {
|
|
172
|
-
[K in keyof TMapping]?: TMapping[K] extends RepositoryConfig<infer T, any, any, any, any, any, any, any, any, any> ? {
|
|
172
|
+
[K in keyof TMapping]?: TMapping[K] extends RepositoryConfig<infer T, any, any, any, any, any, any, any, any, any, any> ? {
|
|
173
173
|
[RK in keyof T]?: {
|
|
174
|
-
[R in keyof TMapping]: TMapping[R] extends RepositoryConfig<infer TTargetModel, infer TForeignKeys, any, any, any, any, any, any, any, any> ? {
|
|
174
|
+
[R in keyof TMapping]: TMapping[R] extends RepositoryConfig<infer TTargetModel, infer TForeignKeys, any, any, any, any, any, any, any, any, any> ? {
|
|
175
175
|
repo: R;
|
|
176
176
|
key: TForeignKeys[number];
|
|
177
177
|
type: "one" | "many";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { H as HistoryConfigForModel } from './read-
|
|
1
|
+
import { H as HistoryConfigForModel } from './read-D4xAmsbE.js';
|
|
2
2
|
import { Query, QuerySnapshot, Firestore } from 'firebase-admin/firestore';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { Q as QueryOptions, P as PaginationOptions, R as RepositoryConfig, a as RelationConfig, C as ConfiguredRepository } from './types-
|
|
5
|
-
export { A as ApiResponse, l as CrudRepoConfig, m as CrudServerOptions, E as ExtractDocumentRefSignature, b as ExtractUpdateSignature, F as FieldPath, n as FieldRole, h as GenerateGetMethods, i as GenerateQueryMethods, G as GetOptions, c as GetResult, I as IncludeConfigTyped, L as ListResponseData, g as PaginationResult, j as PaginationWithIncludeOptionsTyped, k as PopulateOptionsTyped, o as QueryRequestBody, d as RelationalKeys, p as RepoFieldPath, q as RepoRelationKeys, U as UserFieldPath, W as WhereClause, e as createPaginationIterator, f 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, a as AdminRepoEntry, b as AdminServerOptions, B as BasicAuthConfig, M as MiniRouter } from './index-
|
|
4
|
+
import { Q as QueryOptions, P as PaginationOptions, R as RepositoryConfig, a as RelationConfig, C as ConfiguredRepository } from './types-C822D0dX.js';
|
|
5
|
+
export { A as ApiResponse, l as CrudRepoConfig, m as CrudServerOptions, E as ExtractDocumentRefSignature, b as ExtractUpdateSignature, F as FieldPath, n as FieldRole, h as GenerateGetMethods, i as GenerateQueryMethods, G as GetOptions, c as GetResult, I as IncludeConfigTyped, L as ListResponseData, g as PaginationResult, j as PaginationWithIncludeOptionsTyped, k as PopulateOptionsTyped, o as QueryRequestBody, d as RelationalKeys, p as RepoFieldPath, q as RepoRelationKeys, U as UserFieldPath, W as WhereClause, e as createPaginationIterator, f as executePaginatedQuery } from './types-C822D0dX.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-xx0m3wwM.js';
|
|
7
|
+
export { A as AdminRepoConfig, a as AdminRepoEntry, b as AdminServerOptions, B as BasicAuthConfig, M as MiniRouter } from './index-Njwf8jvu.js';
|
|
8
8
|
import 'firebase-functions/v2/firestore';
|
|
9
9
|
import 'firebase-functions/v2/https';
|
|
10
10
|
import './queue-D_-aMf4H.js';
|
|
11
11
|
import './types-CX5AbZWV.js';
|
|
12
12
|
import 'firebase-functions/v2/pubsub';
|
|
13
|
-
import './openapi-
|
|
13
|
+
import './openapi-BHZ2XHgn.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Apply QueryOptions to a Firestore query.
|
|
@@ -169,9 +169,9 @@ type ResolveRelation<TMapping, TRelationConfig> = TRelationConfig extends {
|
|
|
169
169
|
* ```
|
|
170
170
|
*/
|
|
171
171
|
declare function buildRepositoryRelations<TMapping extends Record<string, any>, const TRelations extends {
|
|
172
|
-
[K in keyof TMapping]?: TMapping[K] extends RepositoryConfig<infer T, any, any, any, any, any, any, any, any, any> ? {
|
|
172
|
+
[K in keyof TMapping]?: TMapping[K] extends RepositoryConfig<infer T, any, any, any, any, any, any, any, any, any, any> ? {
|
|
173
173
|
[RK in keyof T]?: {
|
|
174
|
-
[R in keyof TMapping]: TMapping[R] extends RepositoryConfig<infer TTargetModel, infer TForeignKeys, any, any, any, any, any, any, any, any> ? {
|
|
174
|
+
[R in keyof TMapping]: TMapping[R] extends RepositoryConfig<infer TTargetModel, infer TForeignKeys, any, any, any, any, any, any, any, any, any> ? {
|
|
175
175
|
repo: R;
|
|
176
176
|
key: TForeignKeys[number];
|
|
177
177
|
type: "one" | "many";
|