"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FILE_DIRECTORY_FILE_SUBTYPE = exports.FILES_DIRECTORY_FILES_DIRECTORY_SUBTYPE = exports.FILE_DIRECTORIES_FILES_DIRECTORY_SUBTYPE = exports.FILE_TYPE = exports.FILE_DIRECTORY_SELECTOR_TYPE = exports.FILE_DIRECTORY_REFERRER_TYPE = exports.FILES_DIRECTORY_TYPE = exports.FILE_DIRECTORIES_TYPE = exports.CONTENT_FILE_SERVICE = exports.CONTENT_FILE_PROVIDER = void 0;
exports.CONTENT_FILE_PROVIDER = 'ContentFileProvider';
exports.CONTENT_FILE_SERVICE = 'ContentFileService';
exports.FILE_DIRECTORIES_TYPE = {
    name: 'FileGalleries',
    title: 'File directories',
    definition: {
        properties: {},
    },
    contentType: '',
    iconView: 'fas fa-photo-video',
};
exports.FILES_DIRECTORY_TYPE = {
    name: 'FilesDirectory',
    inheritedTypesIds: [],
    title: 'Files',
    definition: {
        properties: {},
    },
    contentType: '',
    iconView: 'far fa-files',
};
exports.FILE_DIRECTORY_REFERRER_TYPE = {
    name: 'FileDirectoryReferrer',
    title: 'Files referrer',
    inheritedTypesIds: [],
    definition: {
        properties: {
            fileDirectoryObjectTreeId: {
                title: 'File directory',
                type: 'string',
                oneOfTree: [
                    {
                        treeType: exports.FILES_DIRECTORY_TYPE.name,
                    },
                ],
            },
        },
    },
    contentType: '',
};
exports.FILE_DIRECTORY_SELECTOR_TYPE = {
    name: 'FileDirectorySelector',
    inheritedTypesIds: [exports.FILE_DIRECTORY_REFERRER_TYPE.name],
    definition: {
        properties: {
            selectedFiles: {
                title: 'Selected files',
                type: 'array',
                items: {
                    type: 'string',
                },
                'x-schema-form': {
                    condition: 'undefined !== embeddedCondition',
                },
            },
        },
    },
    contentType: '',
};
exports.FILE_TYPE = {
    name: 'File',
    definition: {
        properties: {},
    },
    contentType: 'ContentFile',
    iconView: 'far fa-file',
};
exports.FILE_DIRECTORIES_FILES_DIRECTORY_SUBTYPE = {
    typeName: exports.FILE_DIRECTORIES_TYPE.name,
    subTypeName: exports.FILES_DIRECTORY_TYPE.name,
    name: exports.FILES_DIRECTORY_TYPE.name,
    acl: false,
    namespace: false,
    owner: false,
    tree: true,
};
exports.FILES_DIRECTORY_FILES_DIRECTORY_SUBTYPE = {
    typeName: exports.FILES_DIRECTORY_TYPE.name,
    subTypeName: exports.FILES_DIRECTORY_TYPE.name,
    name: exports.FILES_DIRECTORY_TYPE.name,
    acl: false,
    namespace: false,
    owner: false,
    tree: true,
};
exports.FILE_DIRECTORY_FILE_SUBTYPE = {
    typeName: exports.FILES_DIRECTORY_TYPE.name,
    subTypeName: exports.FILE_TYPE.name,
    name: exports.FILE_TYPE.name,
    acl: false,
    namespace: false,
    owner: false,
    tree: false,
};
//# sourceMappingURL=content-file.const.js.map