@lpdjs/firestore-repo-service 2.6.17 → 2.6.18
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/llms-full.txt +1 -1
- package/dist/llms.txt +1 -1
- package/dist/servers/hono/cli.cjs +25 -25
- package/dist/servers/hono/cli.cjs.map +1 -1
- package/dist/servers/hono/cli.js +25 -25
- package/dist/servers/hono/cli.js.map +1 -1
- package/dist/servers/hono/index.cjs.map +1 -1
- package/dist/servers/hono/index.d.cts +5 -3
- package/dist/servers/hono/index.d.ts +5 -3
- package/dist/servers/hono/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1143,7 +1143,7 @@ interface ApiRegistry<TMap extends ApiConfigMap, TServices extends AnyServicesCo
|
|
|
1143
1143
|
[K in keyof TMap & string]: ReturnType<OnRequestFn>;
|
|
1144
1144
|
};
|
|
1145
1145
|
/** Build the underlying {@link HonoServer} for a given API (escape hatch). */
|
|
1146
|
-
serverFor
|
|
1146
|
+
serverFor(api: keyof TMap & string, routes: AnyRouteDef[]): HonoServer;
|
|
1147
1147
|
/**
|
|
1148
1148
|
* Build the OpenAPI 3.1 document for a given API **statically** (no server
|
|
1149
1149
|
* boot / no network) — symmetric with the CRUD server's `.spec()`. Handy for
|
|
@@ -1155,8 +1155,10 @@ interface ApiRegistry<TMap extends ApiConfigMap, TServices extends AnyServicesCo
|
|
|
1155
1155
|
* import { routes } from "./domains/__generated__/routes.js";
|
|
1156
1156
|
* export const openapi = apis.spec("v1", routes);
|
|
1157
1157
|
* ```
|
|
1158
|
+
*
|
|
1159
|
+
* The `api` argument is constrained to the registered tags.
|
|
1158
1160
|
*/
|
|
1159
|
-
spec
|
|
1161
|
+
spec(api: keyof TMap & string, routes: AnyRouteDef[]): Record<string, unknown>;
|
|
1160
1162
|
}
|
|
1161
1163
|
/**
|
|
1162
1164
|
* Factory — declare every API tag once and get back a typed `defineRoute`
|
|
@@ -1169,7 +1171,7 @@ interface ApiRegistry<TMap extends ApiConfigMap, TServices extends AnyServicesCo
|
|
|
1169
1171
|
* @param configs API-tag → per-API config (see {@link ApiConfig}).
|
|
1170
1172
|
* @param options Cross-API options (shared services container, etc).
|
|
1171
1173
|
*/
|
|
1172
|
-
declare function createApiRegistry<const TMap extends ApiConfigMap, TServices extends AnyServicesContainer = AnyServicesContainer>(configs: {
|
|
1174
|
+
declare function createApiRegistry<const TMap extends ApiConfigMap, TServices extends AnyServicesContainer = AnyServicesContainer>(configs: TMap & {
|
|
1173
1175
|
[K in keyof TMap]: StrictApiConfig<TMap[K]>;
|
|
1174
1176
|
}, options?: ApiRegistryOptions<TServices>): ApiRegistry<TMap, TServices>;
|
|
1175
1177
|
|
|
@@ -1143,7 +1143,7 @@ interface ApiRegistry<TMap extends ApiConfigMap, TServices extends AnyServicesCo
|
|
|
1143
1143
|
[K in keyof TMap & string]: ReturnType<OnRequestFn>;
|
|
1144
1144
|
};
|
|
1145
1145
|
/** Build the underlying {@link HonoServer} for a given API (escape hatch). */
|
|
1146
|
-
serverFor
|
|
1146
|
+
serverFor(api: keyof TMap & string, routes: AnyRouteDef[]): HonoServer;
|
|
1147
1147
|
/**
|
|
1148
1148
|
* Build the OpenAPI 3.1 document for a given API **statically** (no server
|
|
1149
1149
|
* boot / no network) — symmetric with the CRUD server's `.spec()`. Handy for
|
|
@@ -1155,8 +1155,10 @@ interface ApiRegistry<TMap extends ApiConfigMap, TServices extends AnyServicesCo
|
|
|
1155
1155
|
* import { routes } from "./domains/__generated__/routes.js";
|
|
1156
1156
|
* export const openapi = apis.spec("v1", routes);
|
|
1157
1157
|
* ```
|
|
1158
|
+
*
|
|
1159
|
+
* The `api` argument is constrained to the registered tags.
|
|
1158
1160
|
*/
|
|
1159
|
-
spec
|
|
1161
|
+
spec(api: keyof TMap & string, routes: AnyRouteDef[]): Record<string, unknown>;
|
|
1160
1162
|
}
|
|
1161
1163
|
/**
|
|
1162
1164
|
* Factory — declare every API tag once and get back a typed `defineRoute`
|
|
@@ -1169,7 +1171,7 @@ interface ApiRegistry<TMap extends ApiConfigMap, TServices extends AnyServicesCo
|
|
|
1169
1171
|
* @param configs API-tag → per-API config (see {@link ApiConfig}).
|
|
1170
1172
|
* @param options Cross-API options (shared services container, etc).
|
|
1171
1173
|
*/
|
|
1172
|
-
declare function createApiRegistry<const TMap extends ApiConfigMap, TServices extends AnyServicesContainer = AnyServicesContainer>(configs: {
|
|
1174
|
+
declare function createApiRegistry<const TMap extends ApiConfigMap, TServices extends AnyServicesContainer = AnyServicesContainer>(configs: TMap & {
|
|
1173
1175
|
[K in keyof TMap]: StrictApiConfig<TMap[K]>;
|
|
1174
1176
|
}, options?: ApiRegistryOptions<TServices>): ApiRegistry<TMap, TServices>;
|
|
1175
1177
|
|