diff --git a/npm/packs/client-generator/src/types/api-defination.ts b/npm/packs/client-generator/src/types/api-defination.ts index 83783efdc0..4d75663cba 100644 --- a/npm/packs/client-generator/src/types/api-defination.ts +++ b/npm/packs/client-generator/src/types/api-defination.ts @@ -9,6 +9,45 @@ export namespace APIDefination { export interface Module { rootPath: string; - controllers: { [key: string]: any }; + controllers: { [key: string]: Controller }; + } + + export interface Controller { + controllerName: string; + interfaces: { typeAsString: string }[]; + typeAsString: string; + actions: { [key: string]: Action }; + } + + export interface Action { + uniqueName: string; + name: string; + httpMethod: string; + url: string; + supportedVersions: any[]; + parametersOnMethod: ParametersOnMethod[]; + parameters: Parameter[]; + returnValue: ReturnValue; + } + + export interface Parameter { + nameOnMethod: string; + name: string; + typeAsString: string; + isOptional: boolean; + defaultValue: null; + constraintTypes: null; + bindingSourceId: string; + } + + export interface ParametersOnMethod { + name: string; + typeAsString: string; + isOptional: boolean; + defaultValue: null; + } + + export interface ReturnValue { + typeAsString: string; } }