import { config } from 'config/general';

const getLanguages = () => {
  const res = {};

  config.availableLanguages.map(item => {
    res[item] = true;
  });

  return res;
};

const translatableModel = {
  ...getLanguages(),
};

const addressModel = {
  street: true,
  box: true,
  number: true,
  city: true,
  country: true,
  zip: true,
};

const imageModel = {
  small: true,
  medium: true,
  large: true,
};

const seoModel = {
  title: true,
  description: true,
  keywords: true,
};

const locModel = {
  type: true,
  coordinates: true,
};

const geolocModel = {
  calculated: true,
  location: locModel,
};

const placeModel = {
  placeId: true,
  address: addressModel,
  loc: locModel,
  formattedAddress: true,
};

export { translatableModel, geolocModel, addressModel, imageModel, seoModel, placeModel, locModel };
