1212 */
1313
1414
15- import {
16- Group ,
17- transformGroupToJSON ,
18- transformJSONToGroup
19- } from './group' ;
20- import {
21- Mode ,
22- transformModeToJSON ,
23- transformJSONToMode
24- } from './mode' ;
2515import {
2616 ResourceSource ,
2717 transformResourceSourceToJSON ,
2818 transformJSONToResourceSource
2919} from './resource-source' ;
20+ import {
21+ VariableGroup ,
22+ transformVariableGroupToJSON ,
23+ transformJSONToVariableGroup
24+ } from './variable-group' ;
25+ import {
26+ VariableMode ,
27+ transformVariableModeToJSON ,
28+ transformJSONToVariableMode
29+ } from './variable-mode' ;
3030
3131
3232export const transformVariableCollectionToJSON = function ( value : VariableCollection ) : any {
@@ -35,8 +35,8 @@ export const transformVariableCollectionToJSON = function (value: VariableCollec
3535 created : value . created ,
3636 name : value . name ,
3737 description : value . description ,
38- modes : value . modes . map ( transformModeToJSON ) ,
39- groups : value . groups . map ( transformGroupToJSON ) ,
38+ modes : value . modes . map ( transformVariableModeToJSON ) ,
39+ groups : value . groups . map ( transformVariableGroupToJSON ) ,
4040 source_id : value . sourceId ,
4141 source : value . source && transformResourceSourceToJSON ( value . source )
4242 }
@@ -48,8 +48,8 @@ export const transformJSONToVariableCollection = function (value: any): Variable
4848 created : value . created ,
4949 name : value . name ,
5050 description : value . description ,
51- modes : value . modes . map ( transformJSONToMode ) ,
52- groups : value . groups . map ( transformJSONToGroup ) ,
51+ modes : value . modes . map ( transformJSONToVariableMode ) ,
52+ groups : value . groups . map ( transformJSONToVariableGroup ) ,
5353 sourceId : value . source_id ,
5454 source : value . source && transformJSONToResourceSource ( value . source )
5555 }
@@ -87,16 +87,16 @@ export interface VariableCollection {
8787 description ?: string ;
8888 /**
8989 *
90- * @type {Array<Mode > }
90+ * @type {Array<VariableMode > }
9191 * @memberof VariableCollection
9292 */
93- modes : Array < Mode > ;
93+ modes : Array < VariableMode > ;
9494 /**
9595 *
96- * @type {Array<Group > }
96+ * @type {Array<VariableGroup > }
9797 * @memberof VariableCollection
9898 */
99- groups : Array < Group > ;
99+ groups : Array < VariableGroup > ;
100100 /**
101101 * Variable collection\'s identifier in the design tool
102102 * @type {string }
0 commit comments