@lpdjs/firestore-repo-service 3.0.4 → 3.0.5

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.
Files changed (53) hide show
  1. package/dist/{create-servers-2Hw0pkyz.d.ts → create-servers-C-X5e62o.d.ts} +5 -5
  2. package/dist/{create-servers-ASLcxpiS.d.cts → create-servers-CRTjY8sA.d.cts} +5 -5
  3. package/dist/history/index.d.cts +3 -2
  4. package/dist/history/index.d.ts +3 -2
  5. package/dist/index.cjs +18 -18
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +10 -7
  8. package/dist/index.d.ts +10 -7
  9. package/dist/index.js +18 -18
  10. package/dist/index.js.map +1 -1
  11. package/dist/llms-full.txt +1 -1
  12. package/dist/llms.txt +1 -1
  13. package/dist/{openapi-CoKsSOIU.d.cts → openapi-Bp4vtku3.d.cts} +1 -1
  14. package/dist/{openapi-BTu_1vSc.d.ts → openapi-D6hEI2lq.d.ts} +1 -1
  15. package/dist/{queue-B9jCT62h.d.cts → queue-BYbd9y4U.d.cts} +1 -1
  16. package/dist/{queue-BWi6TBmf.d.ts → queue-I7Y1l3Wu.d.ts} +1 -1
  17. package/dist/read-DWUsiHcw.d.cts +164 -0
  18. package/dist/read-_6UEFCDw.d.ts +164 -0
  19. package/dist/{rules-BJMT0N0i.d.ts → rules-6LZ9KkR6.d.ts} +1 -1
  20. package/dist/{rules-B3b-BZLf.d.cts → rules-BB0w7PlS.d.cts} +1 -1
  21. package/dist/servers/admin/index.d.cts +4 -2
  22. package/dist/servers/admin/index.d.ts +4 -2
  23. package/dist/servers/crud/index.d.cts +8 -6
  24. package/dist/servers/crud/index.d.ts +8 -6
  25. package/dist/servers/index.cjs +30 -30
  26. package/dist/servers/index.cjs.map +1 -1
  27. package/dist/servers/index.d.cts +10 -8
  28. package/dist/servers/index.d.ts +10 -8
  29. package/dist/servers/index.js +30 -30
  30. package/dist/servers/index.js.map +1 -1
  31. package/dist/sync/bigquery.d.cts +4 -1
  32. package/dist/sync/bigquery.d.ts +4 -1
  33. package/dist/sync/index.cjs +55 -55
  34. package/dist/sync/index.cjs.map +1 -1
  35. package/dist/sync/index.d.cts +29 -13
  36. package/dist/sync/index.d.ts +29 -13
  37. package/dist/sync/index.js +55 -55
  38. package/dist/sync/index.js.map +1 -1
  39. package/dist/sync/meilisearch.cjs +2 -2
  40. package/dist/sync/meilisearch.cjs.map +1 -1
  41. package/dist/sync/meilisearch.d.cts +33 -11
  42. package/dist/sync/meilisearch.d.ts +33 -11
  43. package/dist/sync/meilisearch.js +2 -2
  44. package/dist/sync/meilisearch.js.map +1 -1
  45. package/dist/{types-LZ8dyfBz.d.cts → types-B48PI0V9.d.cts} +29 -6
  46. package/dist/{read-CTWZjxyh.d.cts → types-BwucrwN0.d.cts} +2 -162
  47. package/dist/{read-CTWZjxyh.d.ts → types-BwucrwN0.d.ts} +2 -162
  48. package/dist/{types-XRjVKN9r.d.ts → types-CXQeSrhO.d.ts} +4 -206
  49. package/dist/{types-B2e-T8EM.d.cts → types-D9Nm-4pg.d.cts} +4 -206
  50. package/dist/types-D_snvgmB.d.cts +207 -0
  51. package/dist/{types-BRPhmKFW.d.ts → types-DbtP8YCJ.d.ts} +29 -6
  52. package/dist/types-DgtfcerG.d.ts +207 -0
  53. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- # @lpdjs/firestore-repo-service (v3.0.4) — full documentation
1
+ # @lpdjs/firestore-repo-service (v3.0.5) — 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.4)
1
+ # @lpdjs/firestore-repo-service (v3.0.5)
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,4 +1,4 @@
1
- import { d as CrudRepoRegistry, O as OpenAPISpecOptions } from './types-B2e-T8EM.cjs';
1
+ import { d as CrudRepoRegistry, O as OpenAPISpecOptions } from './types-D9Nm-4pg.cjs';
2
2
 
3
3
  /**
4
4
  * OpenAPI 3.1 specification generator for the CRUD server.
@@ -1,4 +1,4 @@
1
- import { d as CrudRepoRegistry, O as OpenAPISpecOptions } from './types-XRjVKN9r.js';
1
+ import { d as CrudRepoRegistry, O as OpenAPISpecOptions } from './types-CXQeSrhO.js';
2
2
 
3
3
  /**
4
4
  * OpenAPI 3.1 specification generator for the CRUD server.
@@ -1,4 +1,4 @@
1
- import { a as SyncAdapter, S as SyncEvent } from './types-LZ8dyfBz.cjs';
1
+ import { a as SyncAdapter, S as SyncEvent } from './types-B48PI0V9.cjs';
2
2
 
3
3
  /**
4
4
  * Per-repo in-memory batch buffer.
@@ -1,4 +1,4 @@
1
- import { a as SyncAdapter, S as SyncEvent } from './types-BRPhmKFW.js';
1
+ import { a as SyncAdapter, S as SyncEvent } from './types-DbtP8YCJ.js';
2
2
 
3
3
  /**
4
4
  * Per-repo in-memory batch buffer.
@@ -0,0 +1,164 @@
1
+ import { DocumentReference } from 'firebase-admin/firestore';
2
+ import { b as HistoryListOptions, c as HistoryEntry, d as HistoryRawListOptions, V as V1HistoryDoc, e as V2HistoryDoc, f as HistoryOperation, g as HistoryMeta, a as HistoryConfigForModel } from './types-BwucrwN0.cjs';
3
+
4
+ /**
5
+ * `repo.history.*` read API.
6
+ *
7
+ * - `list(docId, opts)` → unified, paginated, normalised entries (v1 + v2).
8
+ * - `raw(docId, opts)` → raw Firestore docs (no normalisation).
9
+ * - `byField(docId, field, opts)` / `byOperation(docId, op, opts)` →
10
+ * convenience wrappers.
11
+ * - `recordManual(docId, payload)` → bypass the trigger and write a v2 entry
12
+ * synchronously (use sparingly; prefer trigger-based capture).
13
+ */
14
+
15
+ /**
16
+ * Build the `repo.history` API for a given configured repository.
17
+ * Returns `null` when history is not enabled — the factory then skips
18
+ * exposing the namespace.
19
+ */
20
+ declare function createHistoryMethods<T>(documentRef: (...args: any[]) => DocumentReference, systemKeys: string[], repoName: string, config: HistoryConfigForModel<T> & {
21
+ enabled: boolean;
22
+ }): HistoryMethods<T> | null;
23
+ /**
24
+ * Public, strongly-typed surface of the `repo.history` namespace.
25
+ *
26
+ * Exposed on a repository **only when** `history.enabled: true` is set in
27
+ * its config. Reads from the entity's `history` subcollection (or the custom
28
+ * name set via `history.subcollection`) and normalises both schema versions
29
+ * (v1 = one doc per modified field, v2 = one doc per write) into a single
30
+ * {@link HistoryEntry} shape.
31
+ *
32
+ * ### Path arguments
33
+ *
34
+ * Every method's leading positional arguments mirror
35
+ * `Parameters<repo.documentRef>`, so the call signature stays consistent with
36
+ * the rest of the repo API:
37
+ *
38
+ * - **Top-level collection** (`documentRef: (db, docId) => …`)
39
+ * → `repo.history.list("doc_42", opts?)`
40
+ * - **Subcollection** (`documentRef: (db, parentId, docId) => …`)
41
+ * → `repo.history.list("parent_1", "doc_42", opts?)`
42
+ *
43
+ * The trailing options/payload argument keeps the same position whatever the
44
+ * depth of the path.
45
+ *
46
+ * ### Pagination
47
+ *
48
+ * `list` / `byField` / `byOperation` use real Firestore cursors via the
49
+ * `cursor` + `limit` options on {@link HistoryListOptions} — no in-memory
50
+ * slicing, safe for large histories.
51
+ *
52
+ * @example Basic read
53
+ * ```ts
54
+ * const entries = await repos.residences.history!.list("residence_123", {
55
+ * limit: 50,
56
+ * direction: "desc",
57
+ * });
58
+ * for (const e of entries) {
59
+ * console.log(e.historySetAt.toDate(), e.operation, e.meta.userId);
60
+ * }
61
+ * ```
62
+ *
63
+ * @example Filter by field (autocompleted on `keyof T`)
64
+ * ```ts
65
+ * const addressChanges = await repos.residences.history!.byField(
66
+ * "residence_123",
67
+ * "address",
68
+ * );
69
+ * ```
70
+ *
71
+ * @template T - The repository's model type. Field-name parameters
72
+ * (e.g. `byField`'s `K`) and `HistoryEntry<T>` payloads
73
+ * are derived from this.
74
+ * @template PathArgs - Tuple of path-segment args inherited from the repo's
75
+ * `documentRef`. Defaults to `[string]` (a single
76
+ * `docId`) when used standalone.
77
+ *
78
+ * @see {@link createHistoryMethods} - factory used internally by `createRepository`.
79
+ * @see {@link HistoryEntry} - normalised return shape.
80
+ * @see {@link HistoryListOptions} - pagination + filter options.
81
+ */
82
+ interface HistoryMethods<T, PathArgs extends readonly unknown[] = [string]> {
83
+ /**
84
+ * List normalised history entries for a single document.
85
+ *
86
+ * Reads both v1 and v2 docs and folds v1 field-per-doc entries that share
87
+ * the same author + timestamp (±5 ms) into a single logical entry, so the
88
+ * caller never has to care about the storage version.
89
+ *
90
+ * @param args - `[...pathArgs, options?]`. `pathArgs` mirror the repo's
91
+ * `documentRef`. `options` accepts `limit`, `cursor`,
92
+ * `direction`, `fields`, `operations`.
93
+ * @returns Array of {@link HistoryEntry} ordered by `historySetAt`
94
+ * (`direction` defaults to `"desc"`).
95
+ */
96
+ list(...args: [...PathArgs, HistoryListOptions<T>?]): Promise<HistoryEntry<T>[]>;
97
+ /**
98
+ * Escape hatch returning **raw** Firestore documents (v1 or v2) without
99
+ * normalisation. Use only when {@link list} doesn't expose the field you
100
+ * need (custom legacy fields, debugging, migrations).
101
+ *
102
+ * @param args - `[...pathArgs, options?]`. Supports the same pagination
103
+ * options as `list`, minus model-aware filters.
104
+ */
105
+ raw(...args: [...PathArgs, HistoryRawListOptions?]): Promise<Array<{
106
+ id: string;
107
+ data: V1HistoryDoc | V2HistoryDoc;
108
+ }>>;
109
+ /**
110
+ * Convenience wrapper around {@link list} that only returns entries
111
+ * touching a specific field. Field name is checked against `keyof T` at
112
+ * compile time.
113
+ *
114
+ * @typeParam K - A literal key of the model `T`.
115
+ * @param args - `[...pathArgs, field, options?]`.
116
+ *
117
+ * @example
118
+ * ```ts
119
+ * await repos.users.history!.byField("user_42", "email");
120
+ * ```
121
+ */
122
+ byField<K extends keyof T & string>(...args: [...PathArgs, K, HistoryListOptions<T>?]): Promise<HistoryEntry<T>[]>;
123
+ /**
124
+ * Convenience wrapper around {@link list} filtering on the operation type.
125
+ *
126
+ * @param args - `[...pathArgs, operation, options?]` where `operation` is
127
+ * `"create" | "update" | "delete"`.
128
+ *
129
+ * @example
130
+ * ```ts
131
+ * await repos.residences.history!.byOperation("residence_123", "delete");
132
+ * ```
133
+ */
134
+ byOperation(...args: [...PathArgs, HistoryOperation, HistoryListOptions<T>?]): Promise<HistoryEntry<T>[]>;
135
+ /**
136
+ * Synchronously append a custom history entry, bypassing the trigger.
137
+ *
138
+ * Useful when:
139
+ * - You already have richer business context than the trigger can extract
140
+ * (e.g. inside an HTTP handler that knows the authenticated user).
141
+ * - You want to record an event that isn't a Firestore write (e.g.
142
+ * `meta.reason = "exported-to-pdf"`).
143
+ *
144
+ * Honours the same `include` / `exclude` / meta auto-exclusion rules as
145
+ * the trigger. Returns `null` when the diff is empty (no changes recorded).
146
+ *
147
+ * > ⚠️ Use sparingly — combining manual records with the trigger can
148
+ * > produce duplicate entries if both fire for the same write.
149
+ *
150
+ * @param args - `[...pathArgs, payload]` where `payload` is
151
+ * `{ operation, before?, after?, meta? }`.
152
+ */
153
+ recordManual(...args: [
154
+ ...PathArgs,
155
+ {
156
+ operation: HistoryOperation;
157
+ before?: T | null;
158
+ after?: T | null;
159
+ meta?: HistoryMeta;
160
+ }
161
+ ]): Promise<HistoryEntry<T> | null>;
162
+ }
163
+
164
+ export { type HistoryMethods as H, createHistoryMethods as c };
@@ -0,0 +1,164 @@
1
+ import { DocumentReference } from 'firebase-admin/firestore';
2
+ import { b as HistoryListOptions, c as HistoryEntry, d as HistoryRawListOptions, V as V1HistoryDoc, e as V2HistoryDoc, f as HistoryOperation, g as HistoryMeta, a as HistoryConfigForModel } from './types-BwucrwN0.js';
3
+
4
+ /**
5
+ * `repo.history.*` read API.
6
+ *
7
+ * - `list(docId, opts)` → unified, paginated, normalised entries (v1 + v2).
8
+ * - `raw(docId, opts)` → raw Firestore docs (no normalisation).
9
+ * - `byField(docId, field, opts)` / `byOperation(docId, op, opts)` →
10
+ * convenience wrappers.
11
+ * - `recordManual(docId, payload)` → bypass the trigger and write a v2 entry
12
+ * synchronously (use sparingly; prefer trigger-based capture).
13
+ */
14
+
15
+ /**
16
+ * Build the `repo.history` API for a given configured repository.
17
+ * Returns `null` when history is not enabled — the factory then skips
18
+ * exposing the namespace.
19
+ */
20
+ declare function createHistoryMethods<T>(documentRef: (...args: any[]) => DocumentReference, systemKeys: string[], repoName: string, config: HistoryConfigForModel<T> & {
21
+ enabled: boolean;
22
+ }): HistoryMethods<T> | null;
23
+ /**
24
+ * Public, strongly-typed surface of the `repo.history` namespace.
25
+ *
26
+ * Exposed on a repository **only when** `history.enabled: true` is set in
27
+ * its config. Reads from the entity's `history` subcollection (or the custom
28
+ * name set via `history.subcollection`) and normalises both schema versions
29
+ * (v1 = one doc per modified field, v2 = one doc per write) into a single
30
+ * {@link HistoryEntry} shape.
31
+ *
32
+ * ### Path arguments
33
+ *
34
+ * Every method's leading positional arguments mirror
35
+ * `Parameters<repo.documentRef>`, so the call signature stays consistent with
36
+ * the rest of the repo API:
37
+ *
38
+ * - **Top-level collection** (`documentRef: (db, docId) => …`)
39
+ * → `repo.history.list("doc_42", opts?)`
40
+ * - **Subcollection** (`documentRef: (db, parentId, docId) => …`)
41
+ * → `repo.history.list("parent_1", "doc_42", opts?)`
42
+ *
43
+ * The trailing options/payload argument keeps the same position whatever the
44
+ * depth of the path.
45
+ *
46
+ * ### Pagination
47
+ *
48
+ * `list` / `byField` / `byOperation` use real Firestore cursors via the
49
+ * `cursor` + `limit` options on {@link HistoryListOptions} — no in-memory
50
+ * slicing, safe for large histories.
51
+ *
52
+ * @example Basic read
53
+ * ```ts
54
+ * const entries = await repos.residences.history!.list("residence_123", {
55
+ * limit: 50,
56
+ * direction: "desc",
57
+ * });
58
+ * for (const e of entries) {
59
+ * console.log(e.historySetAt.toDate(), e.operation, e.meta.userId);
60
+ * }
61
+ * ```
62
+ *
63
+ * @example Filter by field (autocompleted on `keyof T`)
64
+ * ```ts
65
+ * const addressChanges = await repos.residences.history!.byField(
66
+ * "residence_123",
67
+ * "address",
68
+ * );
69
+ * ```
70
+ *
71
+ * @template T - The repository's model type. Field-name parameters
72
+ * (e.g. `byField`'s `K`) and `HistoryEntry<T>` payloads
73
+ * are derived from this.
74
+ * @template PathArgs - Tuple of path-segment args inherited from the repo's
75
+ * `documentRef`. Defaults to `[string]` (a single
76
+ * `docId`) when used standalone.
77
+ *
78
+ * @see {@link createHistoryMethods} - factory used internally by `createRepository`.
79
+ * @see {@link HistoryEntry} - normalised return shape.
80
+ * @see {@link HistoryListOptions} - pagination + filter options.
81
+ */
82
+ interface HistoryMethods<T, PathArgs extends readonly unknown[] = [string]> {
83
+ /**
84
+ * List normalised history entries for a single document.
85
+ *
86
+ * Reads both v1 and v2 docs and folds v1 field-per-doc entries that share
87
+ * the same author + timestamp (±5 ms) into a single logical entry, so the
88
+ * caller never has to care about the storage version.
89
+ *
90
+ * @param args - `[...pathArgs, options?]`. `pathArgs` mirror the repo's
91
+ * `documentRef`. `options` accepts `limit`, `cursor`,
92
+ * `direction`, `fields`, `operations`.
93
+ * @returns Array of {@link HistoryEntry} ordered by `historySetAt`
94
+ * (`direction` defaults to `"desc"`).
95
+ */
96
+ list(...args: [...PathArgs, HistoryListOptions<T>?]): Promise<HistoryEntry<T>[]>;
97
+ /**
98
+ * Escape hatch returning **raw** Firestore documents (v1 or v2) without
99
+ * normalisation. Use only when {@link list} doesn't expose the field you
100
+ * need (custom legacy fields, debugging, migrations).
101
+ *
102
+ * @param args - `[...pathArgs, options?]`. Supports the same pagination
103
+ * options as `list`, minus model-aware filters.
104
+ */
105
+ raw(...args: [...PathArgs, HistoryRawListOptions?]): Promise<Array<{
106
+ id: string;
107
+ data: V1HistoryDoc | V2HistoryDoc;
108
+ }>>;
109
+ /**
110
+ * Convenience wrapper around {@link list} that only returns entries
111
+ * touching a specific field. Field name is checked against `keyof T` at
112
+ * compile time.
113
+ *
114
+ * @typeParam K - A literal key of the model `T`.
115
+ * @param args - `[...pathArgs, field, options?]`.
116
+ *
117
+ * @example
118
+ * ```ts
119
+ * await repos.users.history!.byField("user_42", "email");
120
+ * ```
121
+ */
122
+ byField<K extends keyof T & string>(...args: [...PathArgs, K, HistoryListOptions<T>?]): Promise<HistoryEntry<T>[]>;
123
+ /**
124
+ * Convenience wrapper around {@link list} filtering on the operation type.
125
+ *
126
+ * @param args - `[...pathArgs, operation, options?]` where `operation` is
127
+ * `"create" | "update" | "delete"`.
128
+ *
129
+ * @example
130
+ * ```ts
131
+ * await repos.residences.history!.byOperation("residence_123", "delete");
132
+ * ```
133
+ */
134
+ byOperation(...args: [...PathArgs, HistoryOperation, HistoryListOptions<T>?]): Promise<HistoryEntry<T>[]>;
135
+ /**
136
+ * Synchronously append a custom history entry, bypassing the trigger.
137
+ *
138
+ * Useful when:
139
+ * - You already have richer business context than the trigger can extract
140
+ * (e.g. inside an HTTP handler that knows the authenticated user).
141
+ * - You want to record an event that isn't a Firestore write (e.g.
142
+ * `meta.reason = "exported-to-pdf"`).
143
+ *
144
+ * Honours the same `include` / `exclude` / meta auto-exclusion rules as
145
+ * the trigger. Returns `null` when the diff is empty (no changes recorded).
146
+ *
147
+ * > ⚠️ Use sparingly — combining manual records with the trigger can
148
+ * > produce duplicate entries if both fire for the same write.
149
+ *
150
+ * @param args - `[...pathArgs, payload]` where `payload` is
151
+ * `{ operation, before?, after?, meta? }`.
152
+ */
153
+ recordManual(...args: [
154
+ ...PathArgs,
155
+ {
156
+ operation: HistoryOperation;
157
+ before?: T | null;
158
+ after?: T | null;
159
+ meta?: HistoryMeta;
160
+ }
161
+ ]): Promise<HistoryEntry<T> | null>;
162
+ }
163
+
164
+ export { type HistoryMethods as H, createHistoryMethods as c };
@@ -1,5 +1,5 @@
1
1
  import { A as AuthUser } from './firebase-auth-Ds5P0kXT.js';
2
- import { D as DeepDiffReturn, k as RulesMap, f as CrudUpdateRuleContext } from './types-XRjVKN9r.js';
2
+ import { D as DeepDiffReturn, k as RulesMap, f as CrudUpdateRuleContext } from './types-CXQeSrhO.js';
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 { A as AuthUser } from './firebase-auth-Ds5P0kXT.cjs';
2
- import { D as DeepDiffReturn, k as RulesMap, f as CrudUpdateRuleContext } from './types-B2e-T8EM.cjs';
2
+ import { D as DeepDiffReturn, k as RulesMap, f as CrudUpdateRuleContext } from './types-D9Nm-4pg.cjs';
3
3
 
4
4
  /**
5
5
  * Computes a typed diff between the existing document (`before`) and the incoming partial changes (`changesInput`).
@@ -1,12 +1,14 @@
1
1
  import { z } from 'zod';
2
2
  import { HttpsOptions } from 'firebase-functions/v2/https';
3
- import { C as ConfiguredRepository, l as RepositoryConfig, m as RelationalFieldMeta, n as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from '../../types-B2e-T8EM.cjs';
3
+ import { C as ConfiguredRepository, l as RelationalFieldMeta, F as FieldRole, S as SecurityHeadersOptions } from '../../types-D9Nm-4pg.cjs';
4
+ import { R as RepositoryConfig, F as FieldPath } from '../../types-D_snvgmB.cjs';
4
5
  import { b as AuthExtension, M as Middleware } from '../../firebase-auth-Ds5P0kXT.cjs';
5
6
  export { h as MiniRouter, R as RouteHandler } from '../../firebase-auth-Ds5P0kXT.cjs';
6
7
  import '../../types-BIZz3sxN.cjs';
7
8
  import 'hono';
8
- import '../../read-CTWZjxyh.cjs';
9
+ import '../../read-DWUsiHcw.cjs';
9
10
  import 'firebase-admin/firestore';
11
+ import '../../types-BwucrwN0.cjs';
10
12
  import 'firebase-functions/v2/firestore';
11
13
 
12
14
  /**
@@ -1,12 +1,14 @@
1
1
  import { z } from 'zod';
2
2
  import { HttpsOptions } from 'firebase-functions/v2/https';
3
- import { C as ConfiguredRepository, l as RepositoryConfig, m as RelationalFieldMeta, n as FieldPath, F as FieldRole, S as SecurityHeadersOptions } from '../../types-XRjVKN9r.js';
3
+ import { C as ConfiguredRepository, l as RelationalFieldMeta, F as FieldRole, S as SecurityHeadersOptions } from '../../types-CXQeSrhO.js';
4
+ import { R as RepositoryConfig, F as FieldPath } from '../../types-DgtfcerG.js';
4
5
  import { b as AuthExtension, M as Middleware } from '../../firebase-auth-Ds5P0kXT.js';
5
6
  export { h as MiniRouter, R as RouteHandler } from '../../firebase-auth-Ds5P0kXT.js';
6
7
  import '../../types-DSMiiOrU.js';
7
8
  import 'hono';
8
- import '../../read-CTWZjxyh.js';
9
+ import '../../read-_6UEFCDw.js';
9
10
  import 'firebase-admin/firestore';
11
+ import '../../types-BwucrwN0.js';
10
12
  import 'firebase-functions/v2/firestore';
11
13
 
12
14
  /**
@@ -1,16 +1,18 @@
1
1
  import { HttpsOptions } from 'firebase-functions/v2/https';
2
- import { C as ConfiguredRepository, a as CrudServerOptions } from '../../types-B2e-T8EM.cjs';
3
- 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-B2e-T8EM.cjs';
4
- import { O as OpenAPIDocument } from '../../openapi-CoKsSOIU.cjs';
5
- export { g as generateOpenAPISpec } from '../../openapi-CoKsSOIU.cjs';
6
- export { a as applyRules, c as computeDeepDiff, b as createBeforeRules, d as createRules } from '../../rules-B3b-BZLf.cjs';
2
+ import { C as ConfiguredRepository, a as CrudServerOptions } from '../../types-D9Nm-4pg.cjs';
3
+ 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-D9Nm-4pg.cjs';
4
+ import { O as OpenAPIDocument } from '../../openapi-Bp4vtku3.cjs';
5
+ export { g as generateOpenAPISpec } from '../../openapi-Bp4vtku3.cjs';
6
+ export { a as applyRules, c as computeDeepDiff, b as createBeforeRules, d as createRules } from '../../rules-BB0w7PlS.cjs';
7
7
  import '../../firebase-auth-Ds5P0kXT.cjs';
8
8
  import '../../types-BIZz3sxN.cjs';
9
9
  import 'zod';
10
10
  import 'hono';
11
- import '../../read-CTWZjxyh.cjs';
11
+ import '../../read-DWUsiHcw.cjs';
12
12
  import 'firebase-admin/firestore';
13
+ import '../../types-BwucrwN0.cjs';
13
14
  import 'firebase-functions/v2/firestore';
15
+ import '../../types-D_snvgmB.cjs';
14
16
 
15
17
  /**
16
18
  * @module servers/crud
@@ -1,16 +1,18 @@
1
1
  import { HttpsOptions } from 'firebase-functions/v2/https';
2
- import { C as ConfiguredRepository, a as CrudServerOptions } from '../../types-XRjVKN9r.js';
3
- 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-XRjVKN9r.js';
4
- import { O as OpenAPIDocument } from '../../openapi-BTu_1vSc.js';
5
- export { g as generateOpenAPISpec } from '../../openapi-BTu_1vSc.js';
6
- export { a as applyRules, c as computeDeepDiff, b as createBeforeRules, d as createRules } from '../../rules-BJMT0N0i.js';
2
+ import { C as ConfiguredRepository, a as CrudServerOptions } from '../../types-CXQeSrhO.js';
3
+ 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-CXQeSrhO.js';
4
+ import { O as OpenAPIDocument } from '../../openapi-D6hEI2lq.js';
5
+ export { g as generateOpenAPISpec } from '../../openapi-D6hEI2lq.js';
6
+ export { a as applyRules, c as computeDeepDiff, b as createBeforeRules, d as createRules } from '../../rules-6LZ9KkR6.js';
7
7
  import '../../firebase-auth-Ds5P0kXT.js';
8
8
  import '../../types-DSMiiOrU.js';
9
9
  import 'zod';
10
10
  import 'hono';
11
- import '../../read-CTWZjxyh.js';
11
+ import '../../read-_6UEFCDw.js';
12
12
  import 'firebase-admin/firestore';
13
+ import '../../types-BwucrwN0.js';
13
14
  import 'firebase-functions/v2/firestore';
15
+ import '../../types-DgtfcerG.js';
14
16
 
15
17
  /**
16
18
  * @module servers/crud