@@ -152,7 +152,7 @@ private <T> TsBeanModel processBean(SymbolTable symbolTable, Model model, Map<Ty
152152 properties .add (0 , new TsPropertyModel (bean .getDiscriminantProperty (), discriminantType , settings .declarePropertiesAsReadOnly , null ));
153153 }
154154
155- return new TsBeanModel (bean .getOrigin (), isClass , beanIdentifier , typeParameters , parentType , bean .getTaggedUnionClasses (), interfaces , properties , null , null , bean .getComments ());
155+ return new TsBeanModel (bean .getOrigin (), TsBeanCategory . Data , isClass , beanIdentifier , typeParameters , parentType , bean .getTaggedUnionClasses (), interfaces , properties , null , null , bean .getComments ());
156156 }
157157
158158 private List <TsPropertyModel > processProperties (SymbolTable symbolTable , Model model , BeanModel bean , String prefix , String suffix ) {
@@ -318,7 +318,7 @@ private Symbol createJaxrsResponseType(SymbolTable symbolTable, TsModel tsModel)
318318 private TsModel createJaxrsInterface (SymbolTable symbolTable , TsModel tsModel , JaxrsApplicationModel jaxrsApplication , Symbol responseSymbol , TsType optionsType ) {
319319 final List <TsMethodModel > methods = processJaxrsMethods (jaxrsApplication , symbolTable , responseSymbol , optionsType , false );
320320 final String applicationName = getApplicationName (jaxrsApplication );
321- final TsBeanModel interfaceModel = new TsBeanModel (Application .class , false , symbolTable .getSyntheticSymbol (applicationName ), null , null , null , null , null , null , methods , null );
321+ final TsBeanModel interfaceModel = new TsBeanModel (Application .class , TsBeanCategory . Service , false , symbolTable .getSyntheticSymbol (applicationName ), null , null , null , null , null , null , methods , null );
322322 tsModel .getBeans ().add (interfaceModel );
323323 return tsModel ;
324324 }
@@ -327,7 +327,7 @@ private TsModel createJaxrsClient(SymbolTable symbolTable, TsModel tsModel, Jaxr
327327 final Symbol httpClientSymbol = symbolTable .getSyntheticSymbol ("HttpClient" );
328328
329329 // HttpClient interface
330- tsModel .getBeans ().add (new TsBeanModel (null , false , httpClientSymbol , null , null , null , null , null , null , Arrays .asList (
330+ tsModel .getBeans ().add (new TsBeanModel (null , TsBeanCategory . Service , false , httpClientSymbol , null , null , null , null , null , null , Arrays .asList (
331331 new TsMethodModel ("request" , new TsType .GenericReferenceType (responseSymbol , TsType .Any ), Arrays .asList (
332332 new TsParameterModel ("requestConfig" , new TsType .ObjectType (
333333 new TsProperty ("method" , TsType .String ),
@@ -349,7 +349,7 @@ private TsModel createJaxrsClient(SymbolTable symbolTable, TsModel tsModel, Jaxr
349349 final String applicationName = getApplicationName (jaxrsApplication );
350350 final String applicationClientName = applicationName + "Client" ;
351351 final TsType interfaceType = settings .generateJaxrsApplicationInterface ? new TsType .ReferenceType (symbolTable .getSyntheticSymbol (applicationName )) : null ;
352- final TsBeanModel clientModel = new TsBeanModel (Application .class , true , symbolTable .getSyntheticSymbol (applicationClientName ), null , null , null , Utils .listFromNullable (interfaceType ), null , constructor , methods , null );
352+ final TsBeanModel clientModel = new TsBeanModel (Application .class , TsBeanCategory . Service , true , symbolTable .getSyntheticSymbol (applicationClientName ), null , null , null , Utils .listFromNullable (interfaceType ), null , constructor , methods , null );
353353 tsModel .getBeans ().add (clientModel );
354354 return tsModel ;
355355 }
0 commit comments