This repository was archived by the owner on Jun 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +18
-18
lines changed
src/api/activiti-rest-api/model Expand file tree Collapse file tree 7 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -46,32 +46,32 @@ export class FormDefinitionRepresentation {
4646 taskName ?: string ;
4747 variables ?: FormVariableRepresentation [ ] ;
4848
49- constructor ( input ?: any ) {
49+ constructor ( input ?: Partial < FormDefinitionRepresentation > ) {
5050
5151 if ( input ) {
5252 Object . assign ( this , input ) ;
5353 if ( input . fields ) {
54- this . fields = input . fields . map ( ( item : any ) => {
54+ this . fields = input . fields . map ( ( item ) => {
5555 return new FormFieldRepresentation ( item ) ;
5656 } ) ;
5757 }
5858 if ( input . javascriptEvents ) {
59- this . javascriptEvents = input . javascriptEvents . map ( ( item : any ) => {
59+ this . javascriptEvents = input . javascriptEvents . map ( ( item ) => {
6060 return new FormJavascriptEventRepresentation ( item ) ;
6161 } ) ;
6262 }
6363 if ( input . outcomes ) {
64- this . outcomes = input . outcomes . map ( ( item : any ) => {
64+ this . outcomes = input . outcomes . map ( ( item ) => {
6565 return new FormOutcomeRepresentation ( item ) ;
6666 } ) ;
6767 }
6868 if ( input . tabs ) {
69- this . tabs = input . tabs . map ( ( item : any ) => {
69+ this . tabs = input . tabs . map ( ( item ) => {
7070 return new FormTabRepresentation ( item ) ;
7171 } ) ;
7272 }
7373 if ( input . variables ) {
74- this . variables = input . variables . map ( ( item : any ) => {
74+ this . variables = input . variables . map ( ( item ) => {
7575 return new FormVariableRepresentation ( item ) ;
7676 } ) ;
7777 }
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ import { OptionRepresentation } from './optionRepresentation';
2121
2222export class FormFieldRepresentation {
2323 fieldType ?: string ;
24+ /* Child fields, when `fieldType` is set to `ContainerRepresentation` */
25+ fields ?: { [ key : string ] : Array < FormFieldRepresentation > } ;
2426 className ?: string ;
2527 col ?: number ;
2628 colspan ?: number ;
@@ -53,18 +55,17 @@ export class FormFieldRepresentation {
5355 value ?: any ;
5456 visibilityCondition ?: ConditionRepresentation ;
5557
56- constructor ( input ?: any ) {
57-
58+ constructor ( input ?: Partial < FormFieldRepresentation > ) {
5859 if ( input ) {
5960 Object . assign ( this , input ) ;
61+
6062 this . layout = input . layout ? new LayoutRepresentation ( input . layout ) : undefined ;
63+
6164 if ( input . options ) {
62- this . options = input . options . map ( ( item : any ) => {
63- return new OptionRepresentation ( item ) ;
64- } ) ;
65+ this . options = input . options . map ( ( item ) => new OptionRepresentation ( item ) ) ;
6566 }
67+
6668 this . visibilityCondition = input . visibilityCondition ? new ConditionRepresentation ( input . visibilityCondition ) : undefined ;
6769 }
6870 }
69-
7071}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export class FormJavascriptEventRepresentation {
1919 event ?: string ;
2020 javascriptLogic ?: string ;
2121
22- constructor ( input ?: any ) {
22+ constructor ( input ?: Partial < FormJavascriptEventRepresentation > ) {
2323
2424 if ( input ) {
2525 Object . assign ( this , input ) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ export class FormOutcomeRepresentation {
1919 id ?: string ;
2020 name ?: string ;
2121
22- constructor ( input ?: any ) {
22+ constructor ( input ?: Partial < FormOutcomeRepresentation > ) {
2323
2424 if ( input ) {
2525 Object . assign ( this , input ) ;
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export class FormTabRepresentation {
2222 title ?: string ;
2323 visibilityCondition ?: ConditionRepresentation ;
2424
25- constructor ( input ?: any ) {
25+ constructor ( input ?: Partial < FormTabRepresentation > ) {
2626
2727 if ( input ) {
2828 Object . assign ( this , input ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export class FormVariableRepresentation {
2020 type ?: string ;
2121 value ?: any ;
2222
23- constructor ( input ?: any ) {
23+ constructor ( input ?: Partial < FormVariableRepresentation > ) {
2424
2525 if ( input ) {
2626 Object . assign ( this , input ) ;
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ export class OptionRepresentation {
1919 id ?: string ;
2020 name ?: string ;
2121
22- constructor ( input ?: any ) {
23-
22+ constructor ( input ?: Partial < OptionRepresentation > ) {
2423 if ( input ) {
2524 Object . assign ( this , input ) ;
2625 }
You can’t perform that action at this time.
0 commit comments