Browse Source

feat: update api definition model in schematics

pull/5137/head
Arman Ozak 6 years ago
parent
commit
d2af128d30
  1. 12
      npm/ng-packs/packages/schematics/src/models/api-definition.ts

12
npm/ng-packs/packages/schematics/src/models/api-definition.ts

@ -1,3 +1,5 @@
import { eBindingSourceId } from '../enums';
export interface ApiDefinition { export interface ApiDefinition {
modules: Record<string, Module>; modules: Record<string, Module>;
types: Record<string, Type>; types: Record<string, Type>;
@ -41,12 +43,12 @@ export interface Action {
httpMethod: string; httpMethod: string;
url: string; url: string;
supportedVersions: string[]; supportedVersions: string[];
parametersOnMethod: ParameterOnMethod[]; parametersOnMethod: ParameterInSignature[];
parameters: Parameter[]; parameters: ParameterInBody[];
returnValue: ReturnValue; returnValue: ReturnValue;
} }
export interface ParameterOnMethod { export interface ParameterInSignature {
name: string; name: string;
typeAsString: string; typeAsString: string;
type: string; type: string;
@ -55,7 +57,7 @@ export interface ParameterOnMethod {
defaultValue: any; defaultValue: any;
} }
export interface Parameter { export interface ParameterInBody {
nameOnMethod: string; nameOnMethod: string;
name: string; name: string;
type: string; type: string;
@ -63,7 +65,7 @@ export interface Parameter {
isOptional: boolean; isOptional: boolean;
defaultValue: any; defaultValue: any;
constraintTypes: string[] | null; constraintTypes: string[] | null;
bindingSourceId: string; bindingSourceId: eBindingSourceId;
descriptorName: string; descriptorName: string;
} }

Loading…
Cancel
Save