@lpdjs/firestore-repo-service 2.2.2 → 2.2.4
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/{index-KbSSRIWJ.d.cts → index-B3-vAYx0.d.cts} +5 -2
- package/dist/{index-BnXFmcVp.d.ts → index-BiWZwHS_.d.ts} +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js.map +1 -1
- package/dist/servers/admin/index.cjs.map +1 -1
- package/dist/servers/admin/index.d.cts +2 -2
- package/dist/servers/admin/index.d.ts +2 -2
- package/dist/servers/admin/index.js.map +1 -1
- package/dist/servers/crud/index.cjs.map +1 -1
- package/dist/servers/crud/index.d.cts +69 -3
- package/dist/servers/crud/index.d.ts +69 -3
- package/dist/servers/crud/index.js.map +1 -1
- package/dist/servers/index.cjs.map +1 -1
- package/dist/servers/index.d.cts +3 -3
- package/dist/servers/index.d.ts +3 -3
- package/dist/servers/index.js.map +1 -1
- package/dist/{types-B5NdBY1Z.d.cts → types-Z9Qy8Xmx.d.cts} +12 -70
- package/dist/{types-B5NdBY1Z.d.ts → types-Z9Qy8Xmx.d.ts} +12 -70
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { HttpsOptions } from 'firebase-functions/v2/https';
|
|
3
|
-
import { C as ConfiguredRepository, R as RepositoryConfig, F as FieldPath, n as FieldRole } from './types-
|
|
3
|
+
import { C as ConfiguredRepository, R as RepositoryConfig, F as FieldPath, n as FieldRole } from './types-Z9Qy8Xmx.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Minimal zero-dependency HTTP router for Firebase Functions.
|
|
@@ -274,9 +274,12 @@ type RepoRegistry = Record<string, AdminRepoEntry>;
|
|
|
274
274
|
|
|
275
275
|
/**
|
|
276
276
|
* Extracts the model type `T` from a `ConfiguredRepository`.
|
|
277
|
+
* Two-step inference so it survives intersection types
|
|
278
|
+
* (e.g. `RepositoryConfig<...> & { schema: ZodObject }` produced by
|
|
279
|
+
* `createRepositoryConfig(schema)`).
|
|
277
280
|
* @internal
|
|
278
281
|
*/
|
|
279
|
-
type RepoModelType<TRepo> = TRepo extends ConfiguredRepository<RepositoryConfig<infer T, any, any, any, any, any, any, any, any, any
|
|
282
|
+
type RepoModelType<TRepo> = TRepo extends ConfiguredRepository<infer C> ? C extends RepositoryConfig<infer T, any, any, any, any, any, any, any, any, any> ? T : never : never;
|
|
280
283
|
/**
|
|
281
284
|
* Configuration for a single repository in the admin server.
|
|
282
285
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { HttpsOptions } from 'firebase-functions/v2/https';
|
|
3
|
-
import { C as ConfiguredRepository, R as RepositoryConfig, F as FieldPath, n as FieldRole } from './types-
|
|
3
|
+
import { C as ConfiguredRepository, R as RepositoryConfig, F as FieldPath, n as FieldRole } from './types-Z9Qy8Xmx.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Minimal zero-dependency HTTP router for Firebase Functions.
|
|
@@ -274,9 +274,12 @@ type RepoRegistry = Record<string, AdminRepoEntry>;
|
|
|
274
274
|
|
|
275
275
|
/**
|
|
276
276
|
* Extracts the model type `T` from a `ConfiguredRepository`.
|
|
277
|
+
* Two-step inference so it survives intersection types
|
|
278
|
+
* (e.g. `RepositoryConfig<...> & { schema: ZodObject }` produced by
|
|
279
|
+
* `createRepositoryConfig(schema)`).
|
|
277
280
|
* @internal
|
|
278
281
|
*/
|
|
279
|
-
type RepoModelType<TRepo> = TRepo extends ConfiguredRepository<RepositoryConfig<infer T, any, any, any, any, any, any, any, any, any
|
|
282
|
+
type RepoModelType<TRepo> = TRepo extends ConfiguredRepository<infer C> ? C extends RepositoryConfig<infer T, any, any, any, any, any, any, any, any, any> ? T : never : never;
|
|
280
283
|
/**
|
|
281
284
|
* Configuration for a single repository in the admin server.
|
|
282
285
|
*
|