generators/utils.js
function buildEnumInfo(field, angularAppName, packageName, clientRootFolder) {
    const fieldType = field.fieldType;
    field.enumInstance = _.lowerFirst(fieldType);
    const enumInfo = {
        enumName: fieldType,
        enumValues: field.fieldValues.split(',').join(', '),
        enumInstance: field.enumInstance,
        enums: field.fieldValues.replace(/\s/g, '').split(','),
        angularAppName,
        packageName,
        clientRootFolder: clientRootFolder ? `${clientRootFolder}-` : ''
    };
    return enumInfo;
}
function buildEnumInfo(field, angularAppName, packageName, clientRootFolder) {
    const fieldType = field.fieldType;
    field.enumInstance = _.lowerFirst(fieldType);
    const enumInfo = {
        enumName: fieldType,
        enumValues: field.fieldValues.split(',').join(', '),
        enumInstance: field.enumInstance,
        enums: field.fieldValues.replace(/\s/g, '').split(','),
        angularAppName,
        packageName,
        clientRootFolder: clientRootFolder ? `${clientRootFolder}-` : ''
    };
    return enumInfo;
}
function buildEnumInfo ( field , angularAppName , packageName , clientRootFolder ) { const fieldType = field . fieldType ; field . enumInstance = _ . lowerFirst ( fieldType ) ; const enumInfo = { enumName : fieldType , enumValues : field . fieldValues . split ( ',' ) . join ( ', ' ) , enumInstance : field . enumInstance , enums : field . fieldValues . replace ( / \s / g , '' ) . split ( ',' ) , angularAppName , packageName , clientRootFolder : clientRootFolder ? ` ${ clientRootFolder } ` : '' } ; return enumInfo ; }
Build an enum object
@param {any} field : entity field
@param {string} angularAppName
@param {string} packageName
Build an enum object