import {
  ObjectSubTypeDefinition,
  ObjectTypeDefinition,
} from '../../integration/extension.provider';
import {FOLDER_TYPE} from '../../services';

export const CHOIR_PROVIDER = 'ChoirProvider';

export const CHOIR_WEB_SITE_TEMPLATE_TYPE: ObjectTypeDefinition = {
  name: 'ChoirWebSiteTemplate',
  inheritedTypesIds: [],
  definition: {
    properties: {},
  },
  contentType: '',
};

export const CHOIR_TYPE: ObjectTypeDefinition = {
  name: 'Choir',
  inheritedTypesIds: [],
  definition: {
    properties: {},
  },
  contentType: '',
  iconView: 'fas fa-music',
};

export const CHOIR_FILES_TYPE: ObjectTypeDefinition = {
  name: 'Files',
  inheritedTypesIds: [],
  definition: {
    properties: {},
  },
  contentType: '',
  iconView: 'far fa-folder-open',
};

export const CHOIR_FILE_TYPE: ObjectTypeDefinition = {
  name: 'File',
  inheritedTypesIds: [],
  definition: {
    properties: {},
  },
  contentType: '',
  iconView: 'far fa-file',
};

export const CHOIR_CHOIR_FILES_SUBTYPE: ObjectSubTypeDefinition = {
  typeName: CHOIR_TYPE.name,
  subTypeName: CHOIR_FILES_TYPE.name,
  name: CHOIR_FILES_TYPE.name,
  acl: true,
  namespace: false,
  owner: false,
  tree: true,
  min: 1,
  max: 1,
};
export const FOLDER_CHOIR_SUBTYPE: ObjectSubTypeDefinition = {
  typeName: FOLDER_TYPE.name,
  subTypeName: CHOIR_TYPE.name,
  name: CHOIR_TYPE.name,
  acl: true,
  namespace: true,
  owner: false,
  tree: true,
};
