app/src/app.constants.js
const RESOURCES = ['dataset', 'layer', 'widget'];
const USER_ROLES = ['USER', 'MANAGER', 'ADMIN', 'SUPERADMIN'];
const STATUS = ['published', 'unpublished'];
const METADATA_FIELDS = {
'forest-atlas': {
agol_id: {
type: 'string',
},
agol_link: {
type: 'string',
},
amazon_link: {
type: 'string',
},
sql_api: {
type: 'string',
},
carto_link: {
type: 'string',
},
map_service: {
type: 'string',
},
download_data: {
type: 'string',
},
cautions: {
type: 'string',
},
date_of_content: {
type: 'string',
},
frequency_of_updates: {
type: 'string',
},
function: {
type: 'string',
},
geographic_coverage: {
type: 'string',
},
learn_more: {
type: 'string',
},
other: {
type: 'string',
},
resolution: {
type: 'string',
},
subtitle: {
type: 'string',
},
tags: {
type: 'string',
}
},
rw: {
short_title: {
type: 'string',
},
technical_title: {
type: 'string'
},
source: {
type: 'string'
},
function: {
type: 'string'
},
description: {
type: 'string'
},
cautions: {
type: 'string'
},
geographic_coverage: {
type: 'string'
},
spatial_resolution: {
type: 'string'
},
date_of_content: {
type: 'string'
},
frequency_of_updates: {
type: 'string'
},
license_summary: {
type: 'string'
},
link_to_full_license: {
type: 'string'
},
citation: {
type: 'string'
},
published_language: {
type: 'string'
},
published_title: {
type: 'string'
}
}
};
module.exports = {
RESOURCES,
USER_ROLES,
STATUS,
METADATA_FIELDS
};