@ahoo-wang/fetcher-generator 2.10.2 → 2.10.3
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/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/client/apiClientGenerator.d.ts +1 -0
- package/dist/client/apiClientGenerator.d.ts.map +1 -1
- package/dist/client/utils.d.ts +113 -4
- package/dist/client/utils.d.ts.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +109 -94
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +2 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/naming.d.ts +18 -0
- package/dist/utils/naming.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { OpenAPI } from '@ahoo-wang/fetcher-openapi';
|
|
2
|
-
import { Project } from 'ts-morph';
|
|
2
|
+
import { Project, ProjectOptions } from 'ts-morph';
|
|
3
3
|
import { BoundedContextAggregates } from './aggregate';
|
|
4
4
|
/**
|
|
5
5
|
* Configuration options for the code generator.
|
|
6
6
|
*/
|
|
7
|
-
export interface GeneratorOptions {
|
|
7
|
+
export interface GeneratorOptions extends ProjectOptions {
|
|
8
8
|
/** Path to the input OpenAPI specification file */
|
|
9
9
|
readonly inputPath: string;
|
|
10
10
|
/** Output directory for generated files */
|
|
11
11
|
readonly outputDir: string;
|
|
12
12
|
readonly configPath?: string;
|
|
13
|
-
readonly tsConfigFilePath?: string;
|
|
14
13
|
/** Optional logger for friendly output */
|
|
15
14
|
readonly logger: Logger;
|
|
16
15
|
}
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,OAA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G;AACH,MAAM,WAAW,mBAAmB;IAClC,uCAAuC;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,oCAAoC;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,wBAAwB,CAAC;IAC5C,0CAA0C;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,sBAAsB,CAAC;CACjC;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;CACrD;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;CACjC"}
|
package/dist/utils/naming.d.ts
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Splits a name string or array of strings by common naming separators.
|
|
3
|
+
*
|
|
4
|
+
* This function takes a string or array of strings and splits them based on common naming
|
|
5
|
+
* separators including hyphens, underscores, spaces, dots, and before uppercase letters.
|
|
6
|
+
* If an array is provided, each element is split individually and the results are flattened.
|
|
7
|
+
*
|
|
8
|
+
* @param name - A string or array of strings to split by naming separators
|
|
9
|
+
* @returns An array of string parts split by naming separators
|
|
10
|
+
*/
|
|
11
|
+
export declare function splitName(name: string | string[]): string[];
|
|
12
|
+
/**
|
|
13
|
+
* Splits camelCase strings properly, keeping consecutive uppercase letters together.
|
|
14
|
+
*
|
|
15
|
+
* @param parts - Array of string parts to process
|
|
16
|
+
* @returns Array of properly split parts
|
|
17
|
+
*/
|
|
18
|
+
export declare function splitCamelCase(parts: string[]): string[];
|
|
1
19
|
/**
|
|
2
20
|
* Converts a string or array of strings to PascalCase format.
|
|
3
21
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../src/utils/naming.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../src/utils/naming.ts"],"names":[],"mappings":"AAeA;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,CAM3D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CA6BxD;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAgB1D;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAGzD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAU9D"}
|