lib/parsers.js
function parseRemoteApplication(entity) {
  return {
    life: entity.life,
    modelUUID: entity['model-uuid'],
    name: entity.name,
    offerURL: entity['offer-url'],
    offerUUID: entity['offer-uuid'],
    status: entity.status ? {
      current: entity.status.current,
      message: entity.status.message,
      since: entity.status.since,
      version: entity.status.version
    } : undefined
  };
}
function parseRemoteApplication(entity) {
  return {
    life: entity.life,
    modelUUID: entity['model-uuid'],
    name: entity.name,
    offerURL: entity['offer-url'],
    offerUUID: entity['offer-uuid'],
    status: entity.status ? {
      current: entity.status.current,
      message: entity.status.message,
      since: entity.status.since,
      version: entity.status.version
    } : undefined
  };
}
function parseRemoteApplication ( entity ) { return { life : entity . life , modelUUID : entity [ 'model-uuid' ] , name : entity . name , offerURL : entity [ 'offer-url' ] , offerUUID : entity [ 'offer-uuid' ] , status : entity . status ? { current : entity . status . current , message : entity . status . message , since : entity . status . since , version : entity . status . version } : undefined } ; }
Parse a remote application.
@param {Object} entity - The entity details.
@param {String} entity.life - The lifecycle status of the entity.
@param {String} entity.model-uuid - The model uuid this entity belongs to.
@param {String} entity.name - The entity name.
@param {String} entity.offer-url - The offer URL.
@param {String} entity.offer-uuid - The offer UUID.
@param {Object} entity.status - The status.
@param {String} entity.status.current - The current status.
@param {String} entity.status.message - The status message.
@param {String} entity.status.since - The datetime for when the status was set.
@param {String} entity.status.version - The status version.
@returns {Object} return - The parsed entity.
@returns {String} return.life - The lifecycle status of the entity.
@returns {String} return.modelUUID - The model uuid this entity belongs to.
@returns {String} return.name - The entity name.
@returns {String} return.offerURL - The offer URL.
@returns {String} return.offerUUID - The offer UUID.
@returns {Object} return.status - The status.
@returns {String} return.status.current - The current status.
@returns {String} return.status.message - The status message.
@returns {String} return.status.since - The datetime for when the status was set.
@returns {String} return.status.version - The status version.
Parse a remote application .