ng-openapi 0.0.24 → 0.0.25-alpha.1
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/cli.cjs +417 -226
- package/index.d.ts +9 -1
- package/index.js +422 -222
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ParameterType, XML, ExternalDocs, Info, Path, BodyParameter, QueryParameter, Security, Tag } from 'swagger-schema-official';
|
|
2
2
|
import { ScriptTarget, ModuleKind } from 'ts-morph';
|
|
3
|
+
import { HttpInterceptor } from '@angular/common/http';
|
|
3
4
|
|
|
4
5
|
interface MethodGenerationContext {
|
|
5
6
|
pathParams: Array<{
|
|
@@ -28,6 +29,7 @@ interface TypeSchema {
|
|
|
28
29
|
interface GeneratorConfig {
|
|
29
30
|
input: string;
|
|
30
31
|
output: string;
|
|
32
|
+
clientName?: string;
|
|
31
33
|
options: {
|
|
32
34
|
dateType: "string" | "Date";
|
|
33
35
|
enumStyle: "enum" | "union";
|
|
@@ -46,6 +48,12 @@ interface GeneratorConfig {
|
|
|
46
48
|
strict?: boolean;
|
|
47
49
|
};
|
|
48
50
|
}
|
|
51
|
+
interface NgOpenapiClientConfig {
|
|
52
|
+
clientName: string;
|
|
53
|
+
basePath: string;
|
|
54
|
+
enableDateTransform?: boolean;
|
|
55
|
+
interceptors?: HttpInterceptor[];
|
|
56
|
+
}
|
|
49
57
|
|
|
50
58
|
interface Parameter {
|
|
51
59
|
name: string;
|
|
@@ -167,4 +175,4 @@ declare class SwaggerParser {
|
|
|
167
175
|
*/
|
|
168
176
|
declare function generateFromConfig(config: GeneratorConfig): Promise<void>;
|
|
169
177
|
|
|
170
|
-
export { type EnumValueObject, type GeneratorConfig, type MethodGenerationContext, type Parameter, type PathInfo, type RequestBody, type SwaggerDefinition, SwaggerParser, type SwaggerResponse, type SwaggerSpec, type TypeSchema, generateFromConfig };
|
|
178
|
+
export { type EnumValueObject, type GeneratorConfig, type MethodGenerationContext, type NgOpenapiClientConfig, type Parameter, type PathInfo, type RequestBody, type SwaggerDefinition, SwaggerParser, type SwaggerResponse, type SwaggerSpec, type TypeSchema, generateFromConfig };
|