@lpdjs/firestore-repo-service 3.0.13 → 3.0.14
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-LyRLAOh3.d.cts → create-servers-BwbKPcBG.d.cts} +4 -4
- package/dist/{create-servers-Db1xUY2N.d.ts → create-servers-DVCB8BKC.d.ts} +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -12
- package/dist/index.d.ts +16 -12
- package/dist/index.js.map +1 -1
- package/dist/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/{openapi-CNIA7QRw.d.ts → openapi-B0s5qVSg.d.ts} +1 -1
- package/dist/{openapi-QVpqnnes.d.cts → openapi-DZp7mW-s.d.cts} +1 -1
- package/dist/{queue-CpHe6M5j.d.cts → queue-B0rkiPZF.d.cts} +1 -1
- package/dist/{queue-BEB-ujA3.d.ts → queue-aNhdaNGW.d.ts} +1 -1
- package/dist/{rules-Bu2NB7Eb.d.cts → rules-BV3-D08Y.d.cts} +1 -1
- package/dist/{rules-Cafrkb9v.d.ts → rules-DNJV8yxi.d.ts} +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.d.cts +6 -6
- package/dist/servers/crud/index.d.ts +6 -6
- package/dist/servers/index.d.cts +8 -8
- package/dist/servers/index.d.ts +8 -8
- package/dist/sync/bigquery.d.cts +1 -1
- package/dist/sync/bigquery.d.ts +1 -1
- package/dist/sync/index.d.cts +5 -5
- package/dist/sync/index.d.ts +5 -5
- package/dist/sync/meilisearch.d.cts +1 -1
- package/dist/sync/meilisearch.d.ts +1 -1
- package/dist/{types-B51LYvQZ.d.cts → types-BFu2DpKn.d.cts} +19 -18
- package/dist/{types-DmXW_fVz.d.ts → types-BuggDko0.d.ts} +1 -1
- package/dist/{types-Ci0dGbuW.d.ts → types-BvJYEGa1.d.ts} +19 -18
- package/dist/{types-CNseHqF7.d.cts → types-Cko118ZS.d.cts} +1 -1
- package/dist/{types-VVuLlmfc.d.cts → types-Dvst2iLQ.d.cts} +1 -1
- package/dist/{types-DGQURFSq.d.ts → types-dDxiibCW.d.ts} +1 -1
- package/package.json +1 -1
package/dist/llms-full.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @lpdjs/firestore-repo-service (v3.0.
|
|
1
|
+
# @lpdjs/firestore-repo-service (v3.0.14) — 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 (v3.0.
|
|
1
|
+
# @lpdjs/firestore-repo-service (v3.0.14)
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { b as AuthUser } from './firebase-auth-nG3prKoj.cjs';
|
|
2
|
-
import { D as DeepDiffReturn, k as RulesMap, f as CrudUpdateRuleContext } from './types-
|
|
2
|
+
import { D as DeepDiffReturn, k as RulesMap, f as CrudUpdateRuleContext } from './types-Cko118ZS.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Computes a typed diff between the existing document (`before`) and the incoming partial changes (`changesInput`).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as AuthUser } from './firebase-auth-nG3prKoj.js';
|
|
2
|
-
import { D as DeepDiffReturn, k as RulesMap, f as CrudUpdateRuleContext } from './types-
|
|
2
|
+
import { D as DeepDiffReturn, k as RulesMap, f as CrudUpdateRuleContext } from './types-BuggDko0.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Computes a typed diff between the existing document (`before`) and the incoming partial changes (`changesInput`).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { HttpsOptions } from 'firebase-functions/v2/https';
|
|
3
|
-
import { l as RelationalFieldMeta } from '../../types-
|
|
3
|
+
import { l as RelationalFieldMeta } from '../../types-Cko118ZS.cjs';
|
|
4
4
|
import { ConfiguredRepository, FieldRole } from '../../index.cjs';
|
|
5
5
|
import { SecurityHeadersOptions } from '../index.cjs';
|
|
6
6
|
import { RepositoryConfig, FieldPath } from '../../index.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { HttpsOptions } from 'firebase-functions/v2/https';
|
|
3
|
-
import { l as RelationalFieldMeta } from '../../types-
|
|
3
|
+
import { l as RelationalFieldMeta } from '../../types-BuggDko0.js';
|
|
4
4
|
import { ConfiguredRepository, FieldRole } from '../../index.js';
|
|
5
5
|
import { SecurityHeadersOptions } from '../index.js';
|
|
6
6
|
import { RepositoryConfig, FieldPath } from '../../index.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HttpsOptions } from 'firebase-functions/v2/https';
|
|
2
|
-
import { a as CrudServerOptions } from '../../types-
|
|
2
|
+
import { a as CrudServerOptions } from '../../types-Cko118ZS.cjs';
|
|
3
3
|
import { ConfiguredRepository } from '../../index.cjs';
|
|
4
|
-
export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, e as CrudRules, f as CrudUpdateRuleContext, D as DeepDiffReturn, F as FieldRole, I as IndexErrorCallback, g as IndexErrorContext, L as ListResponseData, O as OpenAPISpecOptions, Q as QueryRequestBody, R as RepoFieldPath, h as RepoRelationKeys, i as Rule, j as RuleResult, k as RulesMap, U as UserFieldPath } from '../../types-
|
|
5
|
-
import { O as OpenAPIDocument } from '../../openapi-
|
|
6
|
-
export { g as generateOpenAPISpec } from '../../openapi-
|
|
7
|
-
export { a as applyRules, c as computeDeepDiff, b as createBeforeRules, d as createRules } from '../../rules-
|
|
4
|
+
export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, e as CrudRules, f as CrudUpdateRuleContext, D as DeepDiffReturn, F as FieldRole, I as IndexErrorCallback, g as IndexErrorContext, L as ListResponseData, O as OpenAPISpecOptions, Q as QueryRequestBody, R as RepoFieldPath, h as RepoRelationKeys, i as Rule, j as RuleResult, k as RulesMap, U as UserFieldPath } from '../../types-Cko118ZS.cjs';
|
|
5
|
+
import { O as OpenAPIDocument } from '../../openapi-DZp7mW-s.cjs';
|
|
6
|
+
export { g as generateOpenAPISpec } from '../../openapi-DZp7mW-s.cjs';
|
|
7
|
+
export { a as applyRules, c as computeDeepDiff, b as createBeforeRules, d as createRules } from '../../rules-BV3-D08Y.cjs';
|
|
8
8
|
import '../../firebase-auth-nG3prKoj.cjs';
|
|
9
9
|
import '../../types-o-9qoExc.cjs';
|
|
10
10
|
import 'zod';
|
|
@@ -13,7 +13,7 @@ import '../../read-B15YaPyR.cjs';
|
|
|
13
13
|
import 'firebase-admin/firestore';
|
|
14
14
|
import '../../types--RamYGF1.cjs';
|
|
15
15
|
import 'firebase-functions/v2/firestore';
|
|
16
|
-
import '../../types-
|
|
16
|
+
import '../../types-BFu2DpKn.cjs';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @module servers/crud
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HttpsOptions } from 'firebase-functions/v2/https';
|
|
2
|
-
import { a as CrudServerOptions } from '../../types-
|
|
2
|
+
import { a as CrudServerOptions } from '../../types-BuggDko0.js';
|
|
3
3
|
import { ConfiguredRepository } from '../../index.js';
|
|
4
|
-
export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, e as CrudRules, f as CrudUpdateRuleContext, D as DeepDiffReturn, F as FieldRole, I as IndexErrorCallback, g as IndexErrorContext, L as ListResponseData, O as OpenAPISpecOptions, Q as QueryRequestBody, R as RepoFieldPath, h as RepoRelationKeys, i as Rule, j as RuleResult, k as RulesMap, U as UserFieldPath } from '../../types-
|
|
5
|
-
import { O as OpenAPIDocument } from '../../openapi-
|
|
6
|
-
export { g as generateOpenAPISpec } from '../../openapi-
|
|
7
|
-
export { a as applyRules, c as computeDeepDiff, b as createBeforeRules, d as createRules } from '../../rules-
|
|
4
|
+
export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, e as CrudRules, f as CrudUpdateRuleContext, D as DeepDiffReturn, F as FieldRole, I as IndexErrorCallback, g as IndexErrorContext, L as ListResponseData, O as OpenAPISpecOptions, Q as QueryRequestBody, R as RepoFieldPath, h as RepoRelationKeys, i as Rule, j as RuleResult, k as RulesMap, U as UserFieldPath } from '../../types-BuggDko0.js';
|
|
5
|
+
import { O as OpenAPIDocument } from '../../openapi-B0s5qVSg.js';
|
|
6
|
+
export { g as generateOpenAPISpec } from '../../openapi-B0s5qVSg.js';
|
|
7
|
+
export { a as applyRules, c as computeDeepDiff, b as createBeforeRules, d as createRules } from '../../rules-DNJV8yxi.js';
|
|
8
8
|
import '../../firebase-auth-nG3prKoj.js';
|
|
9
9
|
import '../../types-D3W_RaDA.js';
|
|
10
10
|
import 'zod';
|
|
@@ -13,7 +13,7 @@ import '../../read-15-TcgCz.js';
|
|
|
13
13
|
import 'firebase-admin/firestore';
|
|
14
14
|
import '../../types--RamYGF1.js';
|
|
15
15
|
import 'firebase-functions/v2/firestore';
|
|
16
|
-
import '../../types-
|
|
16
|
+
import '../../types-BvJYEGa1.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @module servers/crud
|
package/dist/servers/index.d.cts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, c as BoundCrudServerOptions, d as BoundFirestoreSyncConfig, C as CreateServersDeps, T as TriggerOptions, e as createServers } from '../create-servers-
|
|
1
|
+
export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, c as BoundCrudServerOptions, d as BoundFirestoreSyncConfig, C as CreateServersDeps, T as TriggerOptions, e as createServers } from '../create-servers-BwbKPcBG.cjs';
|
|
2
2
|
export { AdminRepoConfig, AdminRepoEntry, AdminServerOptions, BasicAuthConfig, RepoRegistry } from './admin/index.cjs';
|
|
3
|
-
import { P as PageOptions, m as ColumnMeta, n as FilterState, l as RelationalFieldMeta, o as SortState, p as QueryError } from '../types-
|
|
4
|
-
export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, e as CrudRules, a as CrudServerOptions, f as CrudUpdateRuleContext, q as DEFAULT_HTML_CSP, D as DeepDiffReturn, F as FieldRole, I as IndexErrorCallback, g as IndexErrorContext, L as ListResponseData, Q as QueryRequestBody, R as RepoFieldPath, h as RepoRelationKeys, i as Rule, j as RuleResult, k as RulesMap, S as SecurityHeadersOptions, U as UserFieldPath, s as securityHeaders } from '../types-
|
|
5
|
-
export { a as applyRules, c as computeDeepDiff, b as createBeforeRules, d as createRules } from '../rules-
|
|
3
|
+
import { P as PageOptions, m as ColumnMeta, n as FilterState, l as RelationalFieldMeta, o as SortState, p as QueryError } from '../types-Cko118ZS.cjs';
|
|
4
|
+
export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, e as CrudRules, a as CrudServerOptions, f as CrudUpdateRuleContext, q as DEFAULT_HTML_CSP, D as DeepDiffReturn, F as FieldRole, I as IndexErrorCallback, g as IndexErrorContext, L as ListResponseData, Q as QueryRequestBody, R as RepoFieldPath, h as RepoRelationKeys, i as Rule, j as RuleResult, k as RulesMap, S as SecurityHeadersOptions, U as UserFieldPath, s as securityHeaders } from '../types-Cko118ZS.cjs';
|
|
5
|
+
export { a as applyRules, c as computeDeepDiff, b as createBeforeRules, d as createRules } from '../rules-BV3-D08Y.cjs';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import * as hono_jsx_jsx_dev_runtime from 'hono/jsx/jsx-dev-runtime';
|
|
8
8
|
export { M as Middleware, h as MiniRouter, R as RouteHandler } from '../firebase-auth-nG3prKoj.cjs';
|
|
9
|
-
import '../queue-
|
|
10
|
-
import '../types-
|
|
9
|
+
import '../queue-B0rkiPZF.cjs';
|
|
10
|
+
import '../types-Dvst2iLQ.cjs';
|
|
11
11
|
import 'firebase-functions/v2/firestore';
|
|
12
12
|
import 'firebase-functions/v2/https';
|
|
13
13
|
import 'firebase-functions/v2/pubsub';
|
|
14
|
-
import '../types-
|
|
14
|
+
import '../types-BFu2DpKn.cjs';
|
|
15
15
|
import '../types--RamYGF1.cjs';
|
|
16
16
|
import 'firebase-admin/firestore';
|
|
17
|
-
import '../openapi-
|
|
17
|
+
import '../openapi-DZp7mW-s.cjs';
|
|
18
18
|
import '../sync/meilisearch.cjs';
|
|
19
19
|
import '../types-o-9qoExc.cjs';
|
|
20
20
|
import 'hono';
|
package/dist/servers/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, c as BoundCrudServerOptions, d as BoundFirestoreSyncConfig, C as CreateServersDeps, T as TriggerOptions, e as createServers } from '../create-servers-
|
|
1
|
+
export { B as BoundAdminRepoConfig, a as BoundAdminServerOptions, b as BoundCrudRepoConfig, c as BoundCrudServerOptions, d as BoundFirestoreSyncConfig, C as CreateServersDeps, T as TriggerOptions, e as createServers } from '../create-servers-DVCB8BKC.js';
|
|
2
2
|
export { AdminRepoConfig, AdminRepoEntry, AdminServerOptions, BasicAuthConfig, RepoRegistry } from './admin/index.js';
|
|
3
|
-
import { P as PageOptions, m as ColumnMeta, n as FilterState, l as RelationalFieldMeta, o as SortState, p as QueryError } from '../types-
|
|
4
|
-
export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, e as CrudRules, a as CrudServerOptions, f as CrudUpdateRuleContext, q as DEFAULT_HTML_CSP, D as DeepDiffReturn, F as FieldRole, I as IndexErrorCallback, g as IndexErrorContext, L as ListResponseData, Q as QueryRequestBody, R as RepoFieldPath, h as RepoRelationKeys, i as Rule, j as RuleResult, k as RulesMap, S as SecurityHeadersOptions, U as UserFieldPath, s as securityHeaders } from '../types-
|
|
5
|
-
export { a as applyRules, c as computeDeepDiff, b as createBeforeRules, d as createRules } from '../rules-
|
|
3
|
+
import { P as PageOptions, m as ColumnMeta, n as FilterState, l as RelationalFieldMeta, o as SortState, p as QueryError } from '../types-BuggDko0.js';
|
|
4
|
+
export { A as ApiResponse, b as CrudRepoConfig, c as CrudRepoEntry, d as CrudRepoRegistry, e as CrudRules, a as CrudServerOptions, f as CrudUpdateRuleContext, q as DEFAULT_HTML_CSP, D as DeepDiffReturn, F as FieldRole, I as IndexErrorCallback, g as IndexErrorContext, L as ListResponseData, Q as QueryRequestBody, R as RepoFieldPath, h as RepoRelationKeys, i as Rule, j as RuleResult, k as RulesMap, S as SecurityHeadersOptions, U as UserFieldPath, s as securityHeaders } from '../types-BuggDko0.js';
|
|
5
|
+
export { a as applyRules, c as computeDeepDiff, b as createBeforeRules, d as createRules } from '../rules-DNJV8yxi.js';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import * as hono_jsx_jsx_dev_runtime from 'hono/jsx/jsx-dev-runtime';
|
|
8
8
|
export { M as Middleware, h as MiniRouter, R as RouteHandler } from '../firebase-auth-nG3prKoj.js';
|
|
9
|
-
import '../queue-
|
|
10
|
-
import '../types-
|
|
9
|
+
import '../queue-aNhdaNGW.js';
|
|
10
|
+
import '../types-dDxiibCW.js';
|
|
11
11
|
import 'firebase-functions/v2/firestore';
|
|
12
12
|
import 'firebase-functions/v2/https';
|
|
13
13
|
import 'firebase-functions/v2/pubsub';
|
|
14
|
-
import '../types-
|
|
14
|
+
import '../types-BvJYEGa1.js';
|
|
15
15
|
import '../types--RamYGF1.js';
|
|
16
16
|
import 'firebase-admin/firestore';
|
|
17
|
-
import '../openapi-
|
|
17
|
+
import '../openapi-B0s5qVSg.js';
|
|
18
18
|
import '../sync/meilisearch.js';
|
|
19
19
|
import '../types-D3W_RaDA.js';
|
|
20
20
|
import 'hono';
|
package/dist/sync/bigquery.d.cts
CHANGED
|
@@ -5,7 +5,7 @@ import '../firebase-auth-nG3prKoj.cjs';
|
|
|
5
5
|
import 'firebase-functions/v2/firestore';
|
|
6
6
|
import 'firebase-functions/v2/https';
|
|
7
7
|
import 'firebase-functions/v2/pubsub';
|
|
8
|
-
import '../types-
|
|
8
|
+
import '../types-BFu2DpKn.cjs';
|
|
9
9
|
import '../types--RamYGF1.cjs';
|
|
10
10
|
import 'firebase-admin/firestore';
|
|
11
11
|
|
package/dist/sync/bigquery.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import '../firebase-auth-nG3prKoj.js';
|
|
|
5
5
|
import 'firebase-functions/v2/firestore';
|
|
6
6
|
import 'firebase-functions/v2/https';
|
|
7
7
|
import 'firebase-functions/v2/pubsub';
|
|
8
|
-
import '../types-
|
|
8
|
+
import '../types-BvJYEGa1.js';
|
|
9
9
|
import '../types--RamYGF1.js';
|
|
10
10
|
import 'firebase-admin/firestore';
|
|
11
11
|
|
package/dist/sync/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as FirestoreSyncConfig, S as SyncEvent, a as SyncAdapter, g as adminsyncConfig, R as RepoSyncConfig, P as PubSubClientDep, c as SqlDialect, f as SqlColumn, e as SqlTableDef, G as GenerateDDLConfig, b as SqlAdapter, L as LogicalType, h as SyncTriggersConfig, i as SyncWorkerConfig } from '../types-
|
|
2
|
-
export { A as AdminHttpsOptions, E as ExtractRepoFieldPaths, j as ExtractRepoModel, k as FirestoreTriggersDep, O as OrFactory, l as PubSubHandlerDep, m as SyncDeps, d as SyncHealthResult, n as SyncOperation, o as SyncTriggerOptions, p as SyncWorkerOptions, T as TriggerOptions, q as adminsyncBasicAuth, r as adminsyncFeaturesFlag } from '../types-
|
|
3
|
-
import { S as SyncQueue } from '../queue-
|
|
4
|
-
export { a as SyncQueueOptions } from '../queue-
|
|
1
|
+
import { F as FirestoreSyncConfig, S as SyncEvent, a as SyncAdapter, g as adminsyncConfig, R as RepoSyncConfig, P as PubSubClientDep, c as SqlDialect, f as SqlColumn, e as SqlTableDef, G as GenerateDDLConfig, b as SqlAdapter, L as LogicalType, h as SyncTriggersConfig, i as SyncWorkerConfig } from '../types-Dvst2iLQ.cjs';
|
|
2
|
+
export { A as AdminHttpsOptions, E as ExtractRepoFieldPaths, j as ExtractRepoModel, k as FirestoreTriggersDep, O as OrFactory, l as PubSubHandlerDep, m as SyncDeps, d as SyncHealthResult, n as SyncOperation, o as SyncTriggerOptions, p as SyncWorkerOptions, T as TriggerOptions, q as adminsyncBasicAuth, r as adminsyncFeaturesFlag } from '../types-Dvst2iLQ.cjs';
|
|
3
|
+
import { S as SyncQueue } from '../queue-B0rkiPZF.cjs';
|
|
4
|
+
export { a as SyncQueueOptions } from '../queue-B0rkiPZF.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as firebase_functions_core from 'firebase-functions/core';
|
|
7
7
|
import * as firebase_functions_pubsub from 'firebase-functions/pubsub';
|
|
@@ -11,7 +11,7 @@ import '../firebase-auth-nG3prKoj.cjs';
|
|
|
11
11
|
import 'firebase-functions/v2/firestore';
|
|
12
12
|
import 'firebase-functions/v2/https';
|
|
13
13
|
import 'firebase-functions/v2/pubsub';
|
|
14
|
-
import '../types-
|
|
14
|
+
import '../types-BFu2DpKn.cjs';
|
|
15
15
|
import '../types--RamYGF1.cjs';
|
|
16
16
|
import 'firebase-admin/firestore';
|
|
17
17
|
import '@google-cloud/bigquery';
|
package/dist/sync/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { F as FirestoreSyncConfig, S as SyncEvent, a as SyncAdapter, g as adminsyncConfig, R as RepoSyncConfig, P as PubSubClientDep, c as SqlDialect, f as SqlColumn, e as SqlTableDef, G as GenerateDDLConfig, b as SqlAdapter, L as LogicalType, h as SyncTriggersConfig, i as SyncWorkerConfig } from '../types-
|
|
2
|
-
export { A as AdminHttpsOptions, E as ExtractRepoFieldPaths, j as ExtractRepoModel, k as FirestoreTriggersDep, O as OrFactory, l as PubSubHandlerDep, m as SyncDeps, d as SyncHealthResult, n as SyncOperation, o as SyncTriggerOptions, p as SyncWorkerOptions, T as TriggerOptions, q as adminsyncBasicAuth, r as adminsyncFeaturesFlag } from '../types-
|
|
3
|
-
import { S as SyncQueue } from '../queue-
|
|
4
|
-
export { a as SyncQueueOptions } from '../queue-
|
|
1
|
+
import { F as FirestoreSyncConfig, S as SyncEvent, a as SyncAdapter, g as adminsyncConfig, R as RepoSyncConfig, P as PubSubClientDep, c as SqlDialect, f as SqlColumn, e as SqlTableDef, G as GenerateDDLConfig, b as SqlAdapter, L as LogicalType, h as SyncTriggersConfig, i as SyncWorkerConfig } from '../types-dDxiibCW.js';
|
|
2
|
+
export { A as AdminHttpsOptions, E as ExtractRepoFieldPaths, j as ExtractRepoModel, k as FirestoreTriggersDep, O as OrFactory, l as PubSubHandlerDep, m as SyncDeps, d as SyncHealthResult, n as SyncOperation, o as SyncTriggerOptions, p as SyncWorkerOptions, T as TriggerOptions, q as adminsyncBasicAuth, r as adminsyncFeaturesFlag } from '../types-dDxiibCW.js';
|
|
3
|
+
import { S as SyncQueue } from '../queue-aNhdaNGW.js';
|
|
4
|
+
export { a as SyncQueueOptions } from '../queue-aNhdaNGW.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as firebase_functions_core from 'firebase-functions/core';
|
|
7
7
|
import * as firebase_functions_pubsub from 'firebase-functions/pubsub';
|
|
@@ -11,7 +11,7 @@ import '../firebase-auth-nG3prKoj.js';
|
|
|
11
11
|
import 'firebase-functions/v2/firestore';
|
|
12
12
|
import 'firebase-functions/v2/https';
|
|
13
13
|
import 'firebase-functions/v2/pubsub';
|
|
14
|
-
import '../types-
|
|
14
|
+
import '../types-BvJYEGa1.js';
|
|
15
15
|
import '../types--RamYGF1.js';
|
|
16
16
|
import 'firebase-admin/firestore';
|
|
17
17
|
import '@google-cloud/bigquery';
|
|
@@ -4,7 +4,7 @@ import '../firebase-auth-nG3prKoj.cjs';
|
|
|
4
4
|
import 'firebase-functions/v2/firestore';
|
|
5
5
|
import 'firebase-functions/v2/https';
|
|
6
6
|
import 'firebase-functions/v2/pubsub';
|
|
7
|
-
import '../types-
|
|
7
|
+
import '../types-BFu2DpKn.cjs';
|
|
8
8
|
import '../types--RamYGF1.cjs';
|
|
9
9
|
import 'firebase-admin/firestore';
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ import '../firebase-auth-nG3prKoj.js';
|
|
|
4
4
|
import 'firebase-functions/v2/firestore';
|
|
5
5
|
import 'firebase-functions/v2/https';
|
|
6
6
|
import 'firebase-functions/v2/pubsub';
|
|
7
|
-
import '../types-
|
|
7
|
+
import '../types-BvJYEGa1.js';
|
|
8
8
|
import '../types--RamYGF1.js';
|
|
9
9
|
import 'firebase-admin/firestore';
|
|
10
10
|
|
|
@@ -2,11 +2,16 @@ import { g as HistoryConfigForModel } from './types--RamYGF1.cjs';
|
|
|
2
2
|
import * as zod from 'zod';
|
|
3
3
|
import { DocumentReference, Firestore, DocumentSnapshot, WhereFilterOp } from 'firebase-admin/firestore';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* `true` when `T` is `any` (the `0 extends (1 & T)` trick).
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
5
10
|
/**
|
|
6
11
|
* Extract the documentRef signature from refCb (without the db parameter)
|
|
7
12
|
* @internal
|
|
8
13
|
*/
|
|
9
|
-
type ExtractDocumentRefSignature<T> = T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: P) => DocumentReference : never;
|
|
14
|
+
type ExtractDocumentRefSignature<T> = IsAny<T> extends true ? (...args: any[]) => DocumentReference : T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: P) => DocumentReference : never;
|
|
10
15
|
/**
|
|
11
16
|
* Extract all `{param}` names from a path template string in left-to-right order.
|
|
12
17
|
* @example ExtractPathParams<"prevention/prev_rules/prev_workshops/{workshopId}/prev_events"> // ["workshopId"]
|
|
@@ -38,15 +43,20 @@ type PathParamsToArgsTuple<TParams extends readonly string[]> = [
|
|
|
38
43
|
docId: string
|
|
39
44
|
];
|
|
40
45
|
/**
|
|
41
|
-
*
|
|
46
|
+
* Synthesize a `refCb` function signature from a `TPath` template when `refCb` is omitted.
|
|
42
47
|
* @internal
|
|
43
48
|
*/
|
|
44
|
-
type
|
|
49
|
+
type SynthesizedRefCb<TPath extends string, TDocumentKey extends string, TIsGroup extends boolean> = ExtractParentParams<TPath, TDocumentKey> extends [string, ...string[]] ? (db: Firestore, ...args: PathParamsToArgsTuple<ExtractParentParams<TPath, TDocumentKey>>) => DocumentReference : TIsGroup extends true ? (db: Firestore, ...pathSegments: string[]) => DocumentReference : (db: Firestore, docId: string) => DocumentReference;
|
|
50
|
+
/**
|
|
51
|
+
* Resolve the effective `refCb` signature: either the user-provided `TRefCb` or the synthesized signature from `TPath`.
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
type EffectiveRefCb<TPath extends string, TDocumentKey extends string, TIsGroup extends boolean, TRefCb> = IsAny<TRefCb> extends true ? any : [TRefCb] extends [undefined] ? SynthesizedRefCb<TPath, TDocumentKey, TIsGroup> : TRefCb;
|
|
45
55
|
/**
|
|
46
56
|
* Extract the update signature from refCb
|
|
47
57
|
* @internal
|
|
48
58
|
*/
|
|
49
|
-
type ExtractUpdateSignature<T, TType> = T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: [...P, DeepPartial<TType> & DotNotationUpdate<TType>]) => Promise<TType> : never;
|
|
59
|
+
type ExtractUpdateSignature<T, TType> = IsAny<T> extends true ? (...args: any[]) => Promise<TType> : T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: [...P, DeepPartial<TType> & DotNotationUpdate<TType>]) => Promise<TType> : never;
|
|
50
60
|
/**
|
|
51
61
|
* Check if an object type has any method properties (e.g. Timestamp.toDate, GeoPoint.isEqual)
|
|
52
62
|
* @internal
|
|
@@ -233,8 +243,8 @@ type RelationalKeys<T = any, TMapping = any> = {
|
|
|
233
243
|
* @template TCreatedKey - The field name to store the creation timestamp (optional)
|
|
234
244
|
* @template TUpdatedKey - The field name to store the update timestamp (optional)
|
|
235
245
|
*/
|
|
236
|
-
interface RepositoryConfig<T, TForeignKeys extends readonly (keyof T)[], TQueryKeys extends readonly (keyof T)[], TIsGroup extends boolean = boolean, TRefCb = any, TRelationalKeys = {}, TDocumentKey extends keyof T = keyof T, TPathKey extends keyof T | undefined = undefined, TCreatedKey extends keyof T | undefined = undefined, TUpdatedKey extends keyof T | undefined = undefined, THistoryEnabled extends boolean = false
|
|
237
|
-
path:
|
|
246
|
+
interface RepositoryConfig<T, TForeignKeys extends readonly (keyof T)[], TQueryKeys extends readonly (keyof T)[], TIsGroup extends boolean = boolean, TRefCb = any, TRelationalKeys = {}, TDocumentKey extends keyof T = keyof T, TPathKey extends keyof T | undefined = undefined, TCreatedKey extends keyof T | undefined = undefined, TUpdatedKey extends keyof T | undefined = undefined, THistoryEnabled extends boolean = false> {
|
|
247
|
+
path: string;
|
|
238
248
|
isGroup: TIsGroup;
|
|
239
249
|
foreignKeys: TForeignKeys;
|
|
240
250
|
queryKeys: TQueryKeys;
|
|
@@ -261,17 +271,8 @@ interface RepositoryConfig<T, TForeignKeys extends readonly (keyof T)[], TQueryK
|
|
|
261
271
|
history?: HistoryConfigForModel<T> & {
|
|
262
272
|
enabled: THistoryEnabled;
|
|
263
273
|
};
|
|
264
|
-
documentRef: TRefCb extends undefined ?
|
|
265
|
-
|
|
266
|
-
...string[]
|
|
267
|
-
] ? (...args: PathParamsToArgsTuple<ExtractParentParams<TPath, TDocumentKey & string>>) => DocumentReference : TIsGroup extends true ? (...pathSegments: string[]) => DocumentReference : (docId: string) => DocumentReference : ExtractDocumentRefSignature<TRefCb>;
|
|
268
|
-
update: TRefCb extends undefined ? ExtractParentParams<TPath, TDocumentKey & string> extends [
|
|
269
|
-
string,
|
|
270
|
-
...string[]
|
|
271
|
-
] ? (...args: [
|
|
272
|
-
...PathParamsToArgsTuple<ExtractParentParams<TPath, TDocumentKey & string>>,
|
|
273
|
-
DeepPartial<T> & DotNotationUpdate<T>
|
|
274
|
-
]) => Promise<T> : TIsGroup extends true ? (...args: [...string[], DeepPartial<T> & DotNotationUpdate<T>]) => Promise<T> : (docId: string, data: DeepPartial<T> & DotNotationUpdate<T>) => Promise<T> : ExtractUpdateSignature<TRefCb, T>;
|
|
274
|
+
documentRef: IsAny<TRefCb> extends true ? (...args: any[]) => DocumentReference : [TRefCb] extends [undefined] ? TIsGroup extends true ? (...pathSegments: string[]) => DocumentReference : (docId: string) => DocumentReference : ExtractDocumentRefSignature<TRefCb>;
|
|
275
|
+
update: IsAny<TRefCb> extends true ? (...args: any[]) => Promise<T> : [TRefCb] extends [undefined] ? TIsGroup extends true ? (...args: [...string[], DeepPartial<T> & DotNotationUpdate<T>]) => Promise<T> : (docId: string, data: DeepPartial<T> & DotNotationUpdate<T>) => Promise<T> : ExtractUpdateSignature<TRefCb, T>;
|
|
275
276
|
}
|
|
276
277
|
|
|
277
|
-
export type { DeepPartial as D,
|
|
278
|
+
export type { DeepPartial as D, EffectiveRefCb as E, FieldPath as F, GetOptions as G, InvalidPathParams as I, PathParamsToArgsTuple as P, QueryOptions as Q, RepositoryConfig as R, SynthesizedRefCb as S, ValidatedPath as V, WhereClause as W, RelationConfig as a, DotNotationUpdate as b, ExtractDocumentRefSignature as c, ExtractParentParams as d, ExtractPathParams as e, ExtractUpdateSignature as f, GetResult as g, RelationalKeys as h, ExtractReturnDoc as i };
|
|
@@ -4,7 +4,7 @@ import { z } from 'zod';
|
|
|
4
4
|
import { HttpsOptions } from 'firebase-functions/v2/https';
|
|
5
5
|
import { H as HistoryMethods } from './read-15-TcgCz.js';
|
|
6
6
|
import { DocumentSnapshot, Query, CollectionReference, WriteBatch, Transaction, DocumentReference } from 'firebase-admin/firestore';
|
|
7
|
-
import { Q as QueryOptions, R as RepositoryConfig, G as GetOptions,
|
|
7
|
+
import { Q as QueryOptions, R as RepositoryConfig, G as GetOptions, g as GetResult, i as ExtractReturnDoc, a as RelationConfig, D as DeepPartial, b as DotNotationUpdate, F as FieldPath } from './types-BvJYEGa1.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Pagination result with data and cursor information
|
|
@@ -2,11 +2,16 @@ import { g as HistoryConfigForModel } from './types--RamYGF1.js';
|
|
|
2
2
|
import * as zod from 'zod';
|
|
3
3
|
import { DocumentReference, Firestore, DocumentSnapshot, WhereFilterOp } from 'firebase-admin/firestore';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* `true` when `T` is `any` (the `0 extends (1 & T)` trick).
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
5
10
|
/**
|
|
6
11
|
* Extract the documentRef signature from refCb (without the db parameter)
|
|
7
12
|
* @internal
|
|
8
13
|
*/
|
|
9
|
-
type ExtractDocumentRefSignature<T> = T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: P) => DocumentReference : never;
|
|
14
|
+
type ExtractDocumentRefSignature<T> = IsAny<T> extends true ? (...args: any[]) => DocumentReference : T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: P) => DocumentReference : never;
|
|
10
15
|
/**
|
|
11
16
|
* Extract all `{param}` names from a path template string in left-to-right order.
|
|
12
17
|
* @example ExtractPathParams<"prevention/prev_rules/prev_workshops/{workshopId}/prev_events"> // ["workshopId"]
|
|
@@ -38,15 +43,20 @@ type PathParamsToArgsTuple<TParams extends readonly string[]> = [
|
|
|
38
43
|
docId: string
|
|
39
44
|
];
|
|
40
45
|
/**
|
|
41
|
-
*
|
|
46
|
+
* Synthesize a `refCb` function signature from a `TPath` template when `refCb` is omitted.
|
|
42
47
|
* @internal
|
|
43
48
|
*/
|
|
44
|
-
type
|
|
49
|
+
type SynthesizedRefCb<TPath extends string, TDocumentKey extends string, TIsGroup extends boolean> = ExtractParentParams<TPath, TDocumentKey> extends [string, ...string[]] ? (db: Firestore, ...args: PathParamsToArgsTuple<ExtractParentParams<TPath, TDocumentKey>>) => DocumentReference : TIsGroup extends true ? (db: Firestore, ...pathSegments: string[]) => DocumentReference : (db: Firestore, docId: string) => DocumentReference;
|
|
50
|
+
/**
|
|
51
|
+
* Resolve the effective `refCb` signature: either the user-provided `TRefCb` or the synthesized signature from `TPath`.
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
type EffectiveRefCb<TPath extends string, TDocumentKey extends string, TIsGroup extends boolean, TRefCb> = IsAny<TRefCb> extends true ? any : [TRefCb] extends [undefined] ? SynthesizedRefCb<TPath, TDocumentKey, TIsGroup> : TRefCb;
|
|
45
55
|
/**
|
|
46
56
|
* Extract the update signature from refCb
|
|
47
57
|
* @internal
|
|
48
58
|
*/
|
|
49
|
-
type ExtractUpdateSignature<T, TType> = T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: [...P, DeepPartial<TType> & DotNotationUpdate<TType>]) => Promise<TType> : never;
|
|
59
|
+
type ExtractUpdateSignature<T, TType> = IsAny<T> extends true ? (...args: any[]) => Promise<TType> : T extends (db: Firestore, ...args: infer P) => DocumentReference ? (...args: [...P, DeepPartial<TType> & DotNotationUpdate<TType>]) => Promise<TType> : never;
|
|
50
60
|
/**
|
|
51
61
|
* Check if an object type has any method properties (e.g. Timestamp.toDate, GeoPoint.isEqual)
|
|
52
62
|
* @internal
|
|
@@ -233,8 +243,8 @@ type RelationalKeys<T = any, TMapping = any> = {
|
|
|
233
243
|
* @template TCreatedKey - The field name to store the creation timestamp (optional)
|
|
234
244
|
* @template TUpdatedKey - The field name to store the update timestamp (optional)
|
|
235
245
|
*/
|
|
236
|
-
interface RepositoryConfig<T, TForeignKeys extends readonly (keyof T)[], TQueryKeys extends readonly (keyof T)[], TIsGroup extends boolean = boolean, TRefCb = any, TRelationalKeys = {}, TDocumentKey extends keyof T = keyof T, TPathKey extends keyof T | undefined = undefined, TCreatedKey extends keyof T | undefined = undefined, TUpdatedKey extends keyof T | undefined = undefined, THistoryEnabled extends boolean = false
|
|
237
|
-
path:
|
|
246
|
+
interface RepositoryConfig<T, TForeignKeys extends readonly (keyof T)[], TQueryKeys extends readonly (keyof T)[], TIsGroup extends boolean = boolean, TRefCb = any, TRelationalKeys = {}, TDocumentKey extends keyof T = keyof T, TPathKey extends keyof T | undefined = undefined, TCreatedKey extends keyof T | undefined = undefined, TUpdatedKey extends keyof T | undefined = undefined, THistoryEnabled extends boolean = false> {
|
|
247
|
+
path: string;
|
|
238
248
|
isGroup: TIsGroup;
|
|
239
249
|
foreignKeys: TForeignKeys;
|
|
240
250
|
queryKeys: TQueryKeys;
|
|
@@ -261,17 +271,8 @@ interface RepositoryConfig<T, TForeignKeys extends readonly (keyof T)[], TQueryK
|
|
|
261
271
|
history?: HistoryConfigForModel<T> & {
|
|
262
272
|
enabled: THistoryEnabled;
|
|
263
273
|
};
|
|
264
|
-
documentRef: TRefCb extends undefined ?
|
|
265
|
-
|
|
266
|
-
...string[]
|
|
267
|
-
] ? (...args: PathParamsToArgsTuple<ExtractParentParams<TPath, TDocumentKey & string>>) => DocumentReference : TIsGroup extends true ? (...pathSegments: string[]) => DocumentReference : (docId: string) => DocumentReference : ExtractDocumentRefSignature<TRefCb>;
|
|
268
|
-
update: TRefCb extends undefined ? ExtractParentParams<TPath, TDocumentKey & string> extends [
|
|
269
|
-
string,
|
|
270
|
-
...string[]
|
|
271
|
-
] ? (...args: [
|
|
272
|
-
...PathParamsToArgsTuple<ExtractParentParams<TPath, TDocumentKey & string>>,
|
|
273
|
-
DeepPartial<T> & DotNotationUpdate<T>
|
|
274
|
-
]) => Promise<T> : TIsGroup extends true ? (...args: [...string[], DeepPartial<T> & DotNotationUpdate<T>]) => Promise<T> : (docId: string, data: DeepPartial<T> & DotNotationUpdate<T>) => Promise<T> : ExtractUpdateSignature<TRefCb, T>;
|
|
274
|
+
documentRef: IsAny<TRefCb> extends true ? (...args: any[]) => DocumentReference : [TRefCb] extends [undefined] ? TIsGroup extends true ? (...pathSegments: string[]) => DocumentReference : (docId: string) => DocumentReference : ExtractDocumentRefSignature<TRefCb>;
|
|
275
|
+
update: IsAny<TRefCb> extends true ? (...args: any[]) => Promise<T> : [TRefCb] extends [undefined] ? TIsGroup extends true ? (...args: [...string[], DeepPartial<T> & DotNotationUpdate<T>]) => Promise<T> : (docId: string, data: DeepPartial<T> & DotNotationUpdate<T>) => Promise<T> : ExtractUpdateSignature<TRefCb, T>;
|
|
275
276
|
}
|
|
276
277
|
|
|
277
|
-
export type { DeepPartial as D,
|
|
278
|
+
export type { DeepPartial as D, EffectiveRefCb as E, FieldPath as F, GetOptions as G, InvalidPathParams as I, PathParamsToArgsTuple as P, QueryOptions as Q, RepositoryConfig as R, SynthesizedRefCb as S, ValidatedPath as V, WhereClause as W, RelationConfig as a, DotNotationUpdate as b, ExtractDocumentRefSignature as c, ExtractParentParams as d, ExtractPathParams as e, ExtractUpdateSignature as f, GetResult as g, RelationalKeys as h, ExtractReturnDoc as i };
|
|
@@ -4,7 +4,7 @@ import { z } from 'zod';
|
|
|
4
4
|
import { HttpsOptions } from 'firebase-functions/v2/https';
|
|
5
5
|
import { H as HistoryMethods } from './read-B15YaPyR.cjs';
|
|
6
6
|
import { DocumentSnapshot, Query, CollectionReference, WriteBatch, Transaction, DocumentReference } from 'firebase-admin/firestore';
|
|
7
|
-
import { Q as QueryOptions, R as RepositoryConfig, G as GetOptions,
|
|
7
|
+
import { Q as QueryOptions, R as RepositoryConfig, G as GetOptions, g as GetResult, i as ExtractReturnDoc, a as RelationConfig, D as DeepPartial, b as DotNotationUpdate, F as FieldPath } from './types-BFu2DpKn.cjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Pagination result with data and cursor information
|
|
@@ -3,7 +3,7 @@ import { onDocumentWritten, DocumentOptions } from 'firebase-functions/v2/firest
|
|
|
3
3
|
import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
|
|
4
4
|
import { onMessagePublished, PubSubOptions } from 'firebase-functions/v2/pubsub';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import { F as FieldPath } from './types-
|
|
6
|
+
import { F as FieldPath } from './types-BFu2DpKn.cjs';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Cloud Functions v2 options forwarded to `onDocumentWritten()` for every
|
|
@@ -3,7 +3,7 @@ import { onDocumentWritten, DocumentOptions } from 'firebase-functions/v2/firest
|
|
|
3
3
|
import { onRequest, HttpsOptions } from 'firebase-functions/v2/https';
|
|
4
4
|
import { onMessagePublished, PubSubOptions } from 'firebase-functions/v2/pubsub';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import { F as FieldPath } from './types-
|
|
6
|
+
import { F as FieldPath } from './types-BvJYEGa1.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Cloud Functions v2 options forwarded to `onDocumentWritten()` for every
|