@lpdjs/firestore-repo-service 2.6.51 → 2.6.53
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-CwNxQQQ1.d.ts → create-servers-B84cbslf.d.ts} +3 -3
- package/dist/{create-servers-rVXsgSQE.d.cts → create-servers-BxkVVkg9.d.cts} +3 -3
- package/dist/{index-D0clYX8B.d.ts → index-D47y5giY.d.ts} +1 -1
- package/dist/{index-CsuESJ5D.d.cts → index-dW_7jrlK.d.cts} +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/{openapi-ltqn60oy.d.ts → openapi-BpbfjSHK.d.ts} +1 -1
- package/dist/{openapi-BEBoB0y3.d.cts → openapi-DG7aQUlX.d.cts} +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.d.cts +4 -4
- package/dist/servers/crud/index.d.ts +4 -4
- package/dist/servers/index.d.cts +5 -5
- package/dist/servers/index.d.ts +5 -5
- package/dist/{types-DQwhnE4-.d.cts → types-CE-EfugW.d.cts} +16 -15
- package/dist/{types-DG5Ys5AM.d.ts → types-cY03CMya.d.ts} +16 -15
- package/package.json +1 -1
|
@@ -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-
|
|
3
|
+
import { O as OpenAPIDocument } from './openapi-BpbfjSHK.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-
|
|
8
|
-
import { A as AdminServerOptions, a as AdminRepoConfig } from './index-
|
|
7
|
+
import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-cY03CMya.js';
|
|
8
|
+
import { A as AdminServerOptions, a as AdminRepoConfig } from './index-D47y5giY.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,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-
|
|
3
|
+
import { O as OpenAPIDocument } from './openapi-DG7aQUlX.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-
|
|
8
|
-
import { A as AdminServerOptions, a as AdminRepoConfig } from './index-
|
|
7
|
+
import { C as ConfiguredRepository, a as CrudServerOptions, b as CrudRepoConfig } from './types-CE-EfugW.cjs';
|
|
8
|
+
import { A as AdminServerOptions, a as AdminRepoConfig } from './index-dW_7jrlK.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,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-
|
|
3
|
+
import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-cY03CMya.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-
|
|
3
|
+
import { C as ConfiguredRepository, f as RepositoryConfig, g as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from './types-CE-EfugW.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-
|
|
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-CE-EfugW.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-CE-EfugW.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-BxkVVkg9.cjs';
|
|
7
|
+
export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig } from './index-dW_7jrlK.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-DG7aQUlX.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-
|
|
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-cY03CMya.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-cY03CMya.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-B84cbslf.js';
|
|
7
|
+
export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig } from './index-D47y5giY.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-BpbfjSHK.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Apply QueryOptions to a Firestore query.
|
package/dist/llms-full.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @lpdjs/firestore-repo-service (v2.6.
|
|
1
|
+
# @lpdjs/firestore-repo-service (v2.6.53) — 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.
|
|
1
|
+
# @lpdjs/firestore-repo-service (v2.6.53)
|
|
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,8 +1,8 @@
|
|
|
1
1
|
import 'zod';
|
|
2
2
|
import 'firebase-functions/v2/https';
|
|
3
|
-
import '../../types-
|
|
3
|
+
import '../../types-CE-EfugW.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-
|
|
5
|
+
export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig, c as RepoRegistry, d as createAdminServer } from '../../index-dW_7jrlK.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-
|
|
3
|
+
import '../../types-cY03CMya.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-
|
|
5
|
+
export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig, c as RepoRegistry, d as createAdminServer } from '../../index-D47y5giY.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-
|
|
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-
|
|
4
|
-
import { O as OpenAPIDocument } from '../../openapi-
|
|
5
|
-
export { g as generateOpenAPISpec } from '../../openapi-
|
|
2
|
+
import { C as ConfiguredRepository, a as CrudServerOptions } from '../../types-CE-EfugW.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-CE-EfugW.cjs';
|
|
4
|
+
import { O as OpenAPIDocument } from '../../openapi-DG7aQUlX.cjs';
|
|
5
|
+
export { g as generateOpenAPISpec } from '../../openapi-DG7aQUlX.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-
|
|
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-
|
|
4
|
-
import { O as OpenAPIDocument } from '../../openapi-
|
|
5
|
-
export { g as generateOpenAPISpec } from '../../openapi-
|
|
2
|
+
import { C as ConfiguredRepository, a as CrudServerOptions } from '../../types-cY03CMya.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-cY03CMya.js';
|
|
4
|
+
import { O as OpenAPIDocument } from '../../openapi-BpbfjSHK.js';
|
|
5
|
+
export { g as generateOpenAPISpec } from '../../openapi-BpbfjSHK.js';
|
|
6
6
|
import '../../firebase-auth-DZ8lb2Ec.js';
|
|
7
7
|
import '../../types-DyKJJ9UQ.js';
|
|
8
8
|
import 'zod';
|
package/dist/servers/index.d.cts
CHANGED
|
@@ -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-
|
|
2
|
-
import { P as PageOptions, C as ColumnMeta, F as FilterState, R as RelationalFieldMeta, S as SortState, Q as QueryError } from '../index-
|
|
3
|
-
export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig, c as RepoRegistry } from '../index-
|
|
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-
|
|
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-BxkVVkg9.cjs';
|
|
2
|
+
import { P as PageOptions, C as ColumnMeta, F as FilterState, R as RelationalFieldMeta, S as SortState, Q as QueryError } from '../index-dW_7jrlK.cjs';
|
|
3
|
+
export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig, c as RepoRegistry } from '../index-dW_7jrlK.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-CE-EfugW.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-
|
|
13
|
+
import '../openapi-DG7aQUlX.cjs';
|
|
14
14
|
import '../read-CTWZjxyh.cjs';
|
|
15
15
|
import 'firebase-admin/firestore';
|
|
16
16
|
import '../types-B4dMmfet.cjs';
|
package/dist/servers/index.d.ts
CHANGED
|
@@ -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-
|
|
2
|
-
import { P as PageOptions, C as ColumnMeta, F as FilterState, R as RelationalFieldMeta, S as SortState, Q as QueryError } from '../index-
|
|
3
|
-
export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig, c as RepoRegistry } from '../index-
|
|
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-
|
|
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-B84cbslf.js';
|
|
2
|
+
import { P as PageOptions, C as ColumnMeta, F as FilterState, R as RelationalFieldMeta, S as SortState, Q as QueryError } from '../index-D47y5giY.js';
|
|
3
|
+
export { a as AdminRepoConfig, b as AdminRepoEntry, A as AdminServerOptions, B as BasicAuthConfig, c as RepoRegistry } from '../index-D47y5giY.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-cY03CMya.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-
|
|
13
|
+
import '../openapi-BpbfjSHK.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]
|
|
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
|
|
@@ -115,11 +115,18 @@ interface GetOptions<T = any> {
|
|
|
115
115
|
/** Return the raw DocumentSnapshot alongside data */
|
|
116
116
|
returnDoc?: boolean;
|
|
117
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* Extracts the boolean value from a ReturnDoc parameter or options object
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
type ExtractReturnDoc<O> = O extends true ? true : O extends {
|
|
123
|
+
returnDoc: true;
|
|
124
|
+
} ? true : false;
|
|
118
125
|
/**
|
|
119
126
|
* Result type for get operations with optional document snapshot
|
|
120
127
|
* @internal
|
|
121
128
|
*/
|
|
122
|
-
type GetResult<T,
|
|
129
|
+
type GetResult<T, O> = ExtractReturnDoc<O> extends true ? {
|
|
123
130
|
data: T;
|
|
124
131
|
doc: DocumentSnapshot;
|
|
125
132
|
} | null : T | null;
|
|
@@ -483,19 +490,13 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
|
|
|
483
490
|
* @internal
|
|
484
491
|
*/
|
|
485
492
|
type GenerateGetMethods<TConfig extends RepositoryConfig<any, any, any, any, any, any, any, any, any, any, any>> = {
|
|
486
|
-
[K in TConfig["foreignKeys"][number] as K extends string ? `by${Capitalize<K>}` : never]: K extends TConfig["documentKey"] ? <
|
|
493
|
+
[K in TConfig["foreignKeys"][number] as K extends string ? `by${Capitalize<K>}` : never]: K extends TConfig["documentKey"] ? <O extends boolean | GetOptions<TConfig["type"]> = false>(...args: [
|
|
487
494
|
...Parameters<TConfig["documentRef"]>,
|
|
488
|
-
|
|
489
|
-
returnDoc?: ReturnDoc;
|
|
490
|
-
}))?
|
|
495
|
+
O?
|
|
491
496
|
] | [
|
|
492
497
|
TConfig["type"][K extends keyof TConfig["type"] ? K : never],
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
}))?
|
|
496
|
-
]) => Promise<GetResult<TConfig["type"], ReturnDoc>> : <ReturnDoc extends boolean = false>(value: TConfig["type"][K extends keyof TConfig["type"] ? K : never], options?: ReturnDoc | (GetOptions<TConfig["type"]> & {
|
|
497
|
-
returnDoc?: ReturnDoc;
|
|
498
|
-
})) => Promise<GetResult<TConfig["type"], ReturnDoc>>;
|
|
498
|
+
O?
|
|
499
|
+
]) => Promise<GetResult<TConfig["type"], O>> : <O extends boolean | GetOptions<TConfig["type"]> = false>(value: TConfig["type"][K extends keyof TConfig["type"] ? K : never], options?: O) => Promise<GetResult<TConfig["type"], O>>;
|
|
499
500
|
};
|
|
500
501
|
/**
|
|
501
502
|
* Generates query.by* methods from query keys
|
|
@@ -514,7 +515,7 @@ type ConfiguredRepository<T extends RepositoryConfig<any, any, any, any, any, an
|
|
|
514
515
|
readonly _isGroup: T["isGroup"];
|
|
515
516
|
ref: CollectionReference | Query;
|
|
516
517
|
get: GenerateGetMethods<T> & {
|
|
517
|
-
byList: <K extends keyof T["type"],
|
|
518
|
+
byList: <K extends keyof T["type"], O extends boolean | GetOptions<T["type"]> = false>(key: K, values: T["type"][K][], operator?: "in" | "array-contains-any", options?: O) => Promise<ExtractReturnDoc<O> extends true ? Array<{
|
|
518
519
|
data: T["type"];
|
|
519
520
|
doc: DocumentSnapshot;
|
|
520
521
|
}> : T["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]
|
|
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
|
|
@@ -115,11 +115,18 @@ interface GetOptions<T = any> {
|
|
|
115
115
|
/** Return the raw DocumentSnapshot alongside data */
|
|
116
116
|
returnDoc?: boolean;
|
|
117
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* Extracts the boolean value from a ReturnDoc parameter or options object
|
|
120
|
+
* @internal
|
|
121
|
+
*/
|
|
122
|
+
type ExtractReturnDoc<O> = O extends true ? true : O extends {
|
|
123
|
+
returnDoc: true;
|
|
124
|
+
} ? true : false;
|
|
118
125
|
/**
|
|
119
126
|
* Result type for get operations with optional document snapshot
|
|
120
127
|
* @internal
|
|
121
128
|
*/
|
|
122
|
-
type GetResult<T,
|
|
129
|
+
type GetResult<T, O> = ExtractReturnDoc<O> extends true ? {
|
|
123
130
|
data: T;
|
|
124
131
|
doc: DocumentSnapshot;
|
|
125
132
|
} | null : T | null;
|
|
@@ -483,19 +490,13 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
|
|
|
483
490
|
* @internal
|
|
484
491
|
*/
|
|
485
492
|
type GenerateGetMethods<TConfig extends RepositoryConfig<any, any, any, any, any, any, any, any, any, any, any>> = {
|
|
486
|
-
[K in TConfig["foreignKeys"][number] as K extends string ? `by${Capitalize<K>}` : never]: K extends TConfig["documentKey"] ? <
|
|
493
|
+
[K in TConfig["foreignKeys"][number] as K extends string ? `by${Capitalize<K>}` : never]: K extends TConfig["documentKey"] ? <O extends boolean | GetOptions<TConfig["type"]> = false>(...args: [
|
|
487
494
|
...Parameters<TConfig["documentRef"]>,
|
|
488
|
-
|
|
489
|
-
returnDoc?: ReturnDoc;
|
|
490
|
-
}))?
|
|
495
|
+
O?
|
|
491
496
|
] | [
|
|
492
497
|
TConfig["type"][K extends keyof TConfig["type"] ? K : never],
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
}))?
|
|
496
|
-
]) => Promise<GetResult<TConfig["type"], ReturnDoc>> : <ReturnDoc extends boolean = false>(value: TConfig["type"][K extends keyof TConfig["type"] ? K : never], options?: ReturnDoc | (GetOptions<TConfig["type"]> & {
|
|
497
|
-
returnDoc?: ReturnDoc;
|
|
498
|
-
})) => Promise<GetResult<TConfig["type"], ReturnDoc>>;
|
|
498
|
+
O?
|
|
499
|
+
]) => Promise<GetResult<TConfig["type"], O>> : <O extends boolean | GetOptions<TConfig["type"]> = false>(value: TConfig["type"][K extends keyof TConfig["type"] ? K : never], options?: O) => Promise<GetResult<TConfig["type"], O>>;
|
|
499
500
|
};
|
|
500
501
|
/**
|
|
501
502
|
* Generates query.by* methods from query keys
|
|
@@ -514,7 +515,7 @@ type ConfiguredRepository<T extends RepositoryConfig<any, any, any, any, any, an
|
|
|
514
515
|
readonly _isGroup: T["isGroup"];
|
|
515
516
|
ref: CollectionReference | Query;
|
|
516
517
|
get: GenerateGetMethods<T> & {
|
|
517
|
-
byList: <K extends keyof T["type"],
|
|
518
|
+
byList: <K extends keyof T["type"], O extends boolean | GetOptions<T["type"]> = false>(key: K, values: T["type"][K][], operator?: "in" | "array-contains-any", options?: O) => Promise<ExtractReturnDoc<O> extends true ? Array<{
|
|
518
519
|
data: T["type"];
|
|
519
520
|
doc: DocumentSnapshot;
|
|
520
521
|
}> : T["type"][]>;
|