Skip to content

Commit

Permalink
run prettier format
Browse files Browse the repository at this point in the history
  • Loading branch information
RamiSouai committed Jul 26, 2023
1 parent 0bed762 commit 750aa1a
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions generators/angular/generator.mts
Original file line number Diff line number Diff line change
Expand Up @@ -335,33 +335,32 @@ export default class AngularGenerator extends BaseApplicationGenerator {
return getTestEntityId(primaryKey, index, wrapped);
}

/**
/**
* @private
* Generate Entity Client Field Default Values
*
* @param {Array|Object} fields - array of fields
* @returns {Array} defaultVariablesValues
*/
generateEntityClientFieldDefaultValues(fields) {
const defaultVariablesValues = {};
fields.forEach(field => {
const fieldType = field.fieldType;
const fieldName = field.fieldName;
if (fieldType === TYPE_BOOLEAN) {
defaultVariablesValues[fieldName] = `${fieldName}: false,`;
}
});
return defaultVariablesValues;
}

generateEntityClientFields(primaryKey, fields, relationships, dto, customDateType = 'dayjs.Dayjs', embedded = false) {
return getHydratedEntityClientFields(primaryKey, fields, relationships, dto, customDateType, embedded, ANGULAR);
}

generateEntityClientImports(relationships, dto) {
return formatEntityClientImports(relationships, dto, ANGULAR);
}
generateEntityClientFieldDefaultValues(fields) {
const defaultVariablesValues = {};
fields.forEach(field => {
const fieldType = field.fieldType;
const fieldName = field.fieldName;
if (fieldType === TYPE_BOOLEAN) {
defaultVariablesValues[fieldName] = `${fieldName}: false,`;
}
});
return defaultVariablesValues;
}

generateEntityClientFields(primaryKey, fields, relationships, dto, customDateType = 'dayjs.Dayjs', embedded = false) {
return getHydratedEntityClientFields(primaryKey, fields, relationships, dto, customDateType, embedded, ANGULAR);
}

generateEntityClientImports(relationships, dto) {
return formatEntityClientImports(relationships, dto, ANGULAR);
}

/**
* @private
Expand Down

0 comments on commit 750aa1a

Please sign in to comment.