@dudousxd/nestjs-codegen 0.29.0 → 0.30.0
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/CHANGELOG.md +24 -0
- package/dist/cli/main.cjs +711 -436
- package/dist/cli/main.cjs.map +1 -1
- package/dist/cli/main.js +862 -582
- package/dist/cli/main.js.map +1 -1
- package/dist/extension/index.d.cts +1 -1
- package/dist/extension/index.d.ts +1 -1
- package/dist/{index-Dc4s883u.d.cts → index-D4Blt-RT.d.cts} +1 -13
- package/dist/{index-Dc4s883u.d.ts → index-D4Blt-RT.d.ts} +1 -13
- package/dist/index.cjs +696 -434
- 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 +854 -587
- package/dist/index.js.map +1 -1
- package/dist/nest/index.cjs +559 -284
- package/dist/nest/index.cjs.map +1 -1
- package/dist/nest/index.d.cts +1 -1
- package/dist/nest/index.d.ts +1 -1
- package/dist/nest/index.js +369 -89
- package/dist/nest/index.js.map +1 -1
- package/package.json +9 -9
- package/skills/codegen-setup/SKILL.md +5 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { l as ApiClientLayer, m as ApiHeaderContribution, n as ApiModuleDeps, C as CodegenExtension, o as EmittedFile, E as ExtensionContext, L as LeafModel, p as RequestModel, q as RequestShape, s as defineExtension, t as requestShape } from '../index-D4Blt-RT.cjs';
|
|
2
2
|
import 'ts-morph';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { l as ApiClientLayer, m as ApiHeaderContribution, n as ApiModuleDeps, C as CodegenExtension, o as EmittedFile, E as ExtensionContext, L as LeafModel, p as RequestModel, q as RequestShape, s as defineExtension, t as requestShape } from '../index-D4Blt-RT.js';
|
|
2
2
|
import 'ts-morph';
|
|
@@ -261,12 +261,6 @@ interface UserConfig {
|
|
|
261
261
|
/** Debounce delay in ms before re-running route discovery. Default: `500` */
|
|
262
262
|
debounceMs?: number;
|
|
263
263
|
};
|
|
264
|
-
/**
|
|
265
|
-
* @deprecated Has no effect: discovery never read it. For several Inertia apps use
|
|
266
|
-
* `pages.scopes`; for several controller sets use one `contracts.glob` (brace/extglob).
|
|
267
|
-
* A config that sets it gets a warning.
|
|
268
|
-
*/
|
|
269
|
-
scopes?: Record<string, ScopeConfig>;
|
|
270
264
|
codegen?: {
|
|
271
265
|
outDir?: string;
|
|
272
266
|
cwd?: string;
|
|
@@ -362,11 +356,6 @@ interface UserConfig {
|
|
|
362
356
|
*/
|
|
363
357
|
driftGuard?: boolean;
|
|
364
358
|
}
|
|
365
|
-
/** @deprecated See `UserConfig.scopes`. */
|
|
366
|
-
interface ScopeConfig {
|
|
367
|
-
glob: string;
|
|
368
|
-
prefix?: string;
|
|
369
|
-
}
|
|
370
359
|
/** How a page file's path (relative to its glob's static base) becomes its component name. */
|
|
371
360
|
type PageNameStrategy = 'relative-no-ext' | 'kebab' | ((path: string) => string);
|
|
372
361
|
/** One more Inertia app (an `InertiaModule.forFeature({ scope })`) — see `pages.scopes`. */
|
|
@@ -430,7 +419,6 @@ interface ResolvedConfig {
|
|
|
430
419
|
validation: ValidationAdapter;
|
|
431
420
|
pages: ResolvedPagesConfig | null;
|
|
432
421
|
contracts: ResolvedContractsConfig;
|
|
433
|
-
scopes: Record<string, ScopeConfig>;
|
|
434
422
|
codegen: ResolvedCodegenConfig;
|
|
435
423
|
app: ResolvedAppConfig | null;
|
|
436
424
|
fetcher: {
|
|
@@ -877,4 +865,4 @@ declare function requestShape(route: RouteDescriptor): RequestShape;
|
|
|
877
865
|
/** Identity helper for authoring extensions with full type inference. */
|
|
878
866
|
declare function defineExtension(ext: CodegenExtension): CodegenExtension;
|
|
879
867
|
|
|
880
|
-
export { type AdapterUsage as A, type CodegenExtension as C, type ExtensionContext as E, type LeafModel as L, type NumberCheck as N, type ResolvedConfig as R, type SchemaNode as S, type TypeRef as T, type UserConfig as U, type ValidationAdapter as V, type RouteDescriptor as a, type RenderContext as b, type SchemaModule as c, type RenderedModule as d, type ResolvedFormsConfig as e, type SerializationMode as f, type ContractDescriptor as g, type ContractSource as h, type ControllerRef as i, type
|
|
868
|
+
export { type AdapterUsage as A, type CodegenExtension as C, type ExtensionContext as E, type LeafModel as L, type NumberCheck as N, type ResolvedConfig as R, type SchemaNode as S, type TypeRef as T, type UserConfig as U, type ValidationAdapter as V, type RouteDescriptor as a, type RenderContext as b, type SchemaModule as c, type RenderedModule as d, type ResolvedFormsConfig as e, type SerializationMode as f, type ContractDescriptor as g, type ContractSource as h, type ControllerRef as i, type StringCheck as j, type ValidationOption as k, type ApiClientLayer as l, type ApiHeaderContribution as m, type ApiModuleDeps as n, type EmittedFile as o, type RequestModel as p, type RequestShape as q, resolveAdapter as r, defineExtension as s, requestShape as t };
|
|
@@ -261,12 +261,6 @@ interface UserConfig {
|
|
|
261
261
|
/** Debounce delay in ms before re-running route discovery. Default: `500` */
|
|
262
262
|
debounceMs?: number;
|
|
263
263
|
};
|
|
264
|
-
/**
|
|
265
|
-
* @deprecated Has no effect: discovery never read it. For several Inertia apps use
|
|
266
|
-
* `pages.scopes`; for several controller sets use one `contracts.glob` (brace/extglob).
|
|
267
|
-
* A config that sets it gets a warning.
|
|
268
|
-
*/
|
|
269
|
-
scopes?: Record<string, ScopeConfig>;
|
|
270
264
|
codegen?: {
|
|
271
265
|
outDir?: string;
|
|
272
266
|
cwd?: string;
|
|
@@ -362,11 +356,6 @@ interface UserConfig {
|
|
|
362
356
|
*/
|
|
363
357
|
driftGuard?: boolean;
|
|
364
358
|
}
|
|
365
|
-
/** @deprecated See `UserConfig.scopes`. */
|
|
366
|
-
interface ScopeConfig {
|
|
367
|
-
glob: string;
|
|
368
|
-
prefix?: string;
|
|
369
|
-
}
|
|
370
359
|
/** How a page file's path (relative to its glob's static base) becomes its component name. */
|
|
371
360
|
type PageNameStrategy = 'relative-no-ext' | 'kebab' | ((path: string) => string);
|
|
372
361
|
/** One more Inertia app (an `InertiaModule.forFeature({ scope })`) — see `pages.scopes`. */
|
|
@@ -430,7 +419,6 @@ interface ResolvedConfig {
|
|
|
430
419
|
validation: ValidationAdapter;
|
|
431
420
|
pages: ResolvedPagesConfig | null;
|
|
432
421
|
contracts: ResolvedContractsConfig;
|
|
433
|
-
scopes: Record<string, ScopeConfig>;
|
|
434
422
|
codegen: ResolvedCodegenConfig;
|
|
435
423
|
app: ResolvedAppConfig | null;
|
|
436
424
|
fetcher: {
|
|
@@ -877,4 +865,4 @@ declare function requestShape(route: RouteDescriptor): RequestShape;
|
|
|
877
865
|
/** Identity helper for authoring extensions with full type inference. */
|
|
878
866
|
declare function defineExtension(ext: CodegenExtension): CodegenExtension;
|
|
879
867
|
|
|
880
|
-
export { type AdapterUsage as A, type CodegenExtension as C, type ExtensionContext as E, type LeafModel as L, type NumberCheck as N, type ResolvedConfig as R, type SchemaNode as S, type TypeRef as T, type UserConfig as U, type ValidationAdapter as V, type RouteDescriptor as a, type RenderContext as b, type SchemaModule as c, type RenderedModule as d, type ResolvedFormsConfig as e, type SerializationMode as f, type ContractDescriptor as g, type ContractSource as h, type ControllerRef as i, type
|
|
868
|
+
export { type AdapterUsage as A, type CodegenExtension as C, type ExtensionContext as E, type LeafModel as L, type NumberCheck as N, type ResolvedConfig as R, type SchemaNode as S, type TypeRef as T, type UserConfig as U, type ValidationAdapter as V, type RouteDescriptor as a, type RenderContext as b, type SchemaModule as c, type RenderedModule as d, type ResolvedFormsConfig as e, type SerializationMode as f, type ContractDescriptor as g, type ContractSource as h, type ControllerRef as i, type StringCheck as j, type ValidationOption as k, type ApiClientLayer as l, type ApiHeaderContribution as m, type ApiModuleDeps as n, type EmittedFile as o, type RequestModel as p, type RequestShape as q, resolveAdapter as r, defineExtension as s, requestShape as t };
|