"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ARTIST_WEB_SITE_CALENDAR_PAGE_ARTIST_WEB_SITE_CALENDAR_SUBTYPE = exports.ARTIST_WEB_SITE_ARTIST_WEB_SITE_CALENDAR_PAGE_SUBTYPE = exports.ARTIST_WEB_SITE_IMAGE_GALLERIES_ARTIST_WEB_SITE_IMAGE_GALLERY_CONCATENATION_SUBTYPE = exports.ARTIST_WEB_SITE_IMAGE_GALLERIES_ARTIST_WEB_SITE_IMAGE_GALLERY_SUBTYPE = exports.ARTIST_WEB_SITE_WELCOME_MENU_TEXT_PARAGRAPH_SUBTYPE = exports.ARTIST_WEB_SITE_WELCOME_PAGE_ARTIST_WEB_SITE_PARAGRAPH_SUBTYPE = exports.ARTIST_WEB_SITE_WELCOME_PAGE_ARTIST_WEB_SITE_WELCOME_MENU_SUBTYPE = exports.CATEGORY_ARTIST_WEB_SITE_TEMPLATE_SUBTYPE = exports.ARTIST_WEB_SITE_EVENT_ARTIST_WEB_SITE_EVENT_SUBTYPE = exports.ARTIST_WEB_SITE_POST3_ARTIST_WEB_SITE_POST3_SUBTYPE = exports.ARTIST_WEB_SITE_POST2_ARTIST_WEB_SITE_POST2_SUBTYPE = exports.ARTIST_WEB_SITE_POST1_ARTIST_WEB_SITE_POST1_SUBTYPE = exports.ARTIST_WEB_SITE_ARTIST_WEB_SITE_EVENT_ROOT_SUBTYPE = exports.ARTIST_WEB_SITE_ARTIST_WEB_SITE_POST3_ROOT_SUBTYPE = exports.ARTIST_WEB_SITE_ARTIST_WEB_SITE_POST2_ROOT_SUBTYPE = exports.ARTIST_WEB_SITE_ARTIST_WEB_SITE_POST1_ROOT_SUBTYPE = exports.ARTIST_WEB_SITE_ARTIST_WEB_SITE_WELCOME_PAGE_SUBTYPE = exports.ARTIST_WEB_SITE_ARTIST_WEB_SITE_IMAGE_GALLERIES_SUBTYPE = exports.FOLDER_ARTIST_WEB_SITE_SUBTYPE = exports.ARTIST_WEB_SITE_EVENT_GALLERY_TEXT_PARAGRAPH_SUBTYPE = exports.ARTIST_WEB_SITE_POST_GALLERY_TEXT_PARAGRAPH_SUBTYPE = exports.ARTIST_WEB_SITE_CALENDAR_TYPE = exports.ARTIST_WEB_SITE_CALENDAR_PAGE_TYPE = exports.ARTIST_WEB_SITE_WELCOME_PARAGRAPH_TYPE = exports.ARTIST_WEB_SITE_EVENT_ROOT_TYPE = exports.ARTIST_WEB_SITE_EVENT_TYPE = exports.ARTIST_WEB_SITE_POST3_ROOT_TYPE = exports.ARTIST_WEB_SITE_POST2_ROOT_TYPE = exports.ARTIST_WEB_SITE_POST1_ROOT_TYPE = exports.ARTIST_WEB_SITE_POST_ROOT_TYPE = exports.ARTIST_WEB_SITE_POST3_TYPE = exports.ARTIST_WEB_SITE_POST2_TYPE = exports.ARTIST_WEB_SITE_POST1_TYPE = exports.ARTIST_WEB_SITE_POST_TYPE = exports.ARTIST_WEB_SITE_PARAGRAPH_TYPE = exports.ARTIST_WEB_SITE_WELCOME_PAGE_TYPE = exports.ARTIST_WEB_SITE_IMAGE_GALLERY_REFERRER_TYPE = exports.ARTIST_WEB_SITE_IMAGE_GALLERY_CONCATENATION_TYPE = exports.ARTIST_WEB_SITE_IMAGE_GALLERY_TYPE = exports.ARTIST_WEB_SITE_IMAGE_GALLERIES_TYPE = exports.ARTIST_WEB_SITE_TYPE = exports.ARTIST_WEB_SITE_TEMPLATE_TYPE = exports.ARTIST_WEB_SITE_NAME = exports.ARTIST_WEB_SITE_PROVIDER = void 0;
const application_service_1 = require("../../services/application.service");
const object_tree_const_1 = require("../../services/object-tree/object-tree.const");
const calendar_const_1 = require("../calendar/calendar.const");
const content_image_template_const_1 = require("../content-image-template/content-image-template.const");
const content_image_const_1 = require("../content-image/content-image.const");
const post_const_1 = require("../post/post.const");
const utils_common_const_1 = require("../utils-common/utils-common.const");
const web_site_const_1 = require("../web-site/web-site.const");
exports.ARTIST_WEB_SITE_PROVIDER = 'ArtistWebSiteProvider';
exports.ARTIST_WEB_SITE_NAME = 'ArtistWebSiteService';
exports.ARTIST_WEB_SITE_TEMPLATE_TYPE = {
    name: 'ArtistWebSiteTemplate',
    inheritedTypesIds: [
        web_site_const_1.WEB_SITE_WITH_MENU_TEMPLATE_TYPE.name,
        web_site_const_1.WEB_SITE_WITH_PARAGRAPHS_TEMPLATE_TYPE.name,
        web_site_const_1.WEB_SITE_WITH_LAYOUT_TEMPLATE_TYPE.name,
    ],
    definition: {
        properties: {},
    },
    contentType: '',
};
exports.ARTIST_WEB_SITE_TYPE = {
    name: 'ArtistWebSite',
    title: 'Artist web site',
    inheritedTypesIds: [
        web_site_const_1.WEB_SITE_MENU_ENTRIES_TYPE.name,
        web_site_const_1.WEB_SITE_VIEW_TYPE.name,
        calendar_const_1.CALENDAR_ENTRIES_TYPE.name,
        utils_common_const_1.HIDDEN_NAME_TYPE.name,
        web_site_const_1.WEB_SITE_WITH_LAYOUT_CONFIGURATION_TYPE.name,
    ],
    definition: {
        properties: {
            webSiteObjectTreeId: {
                type: 'string',
                oneOfTree: [
                    {
                        treeType: exports.ARTIST_WEB_SITE_TEMPLATE_TYPE.name,
                        namespaceName: object_tree_const_1.TEMPLATES_OBJECT_NAME,
                        namespaceType: application_service_1.ObjectTypeName.REPOSITORY_CATEGORY,
                        ownerName: object_tree_const_1.PUBLIC_OBJECT_NAME,
                        ownerType: application_service_1.ObjectTypeName.REPOSITORY,
                    },
                    {
                        treeType: 'ArtistWebSiteTemplate',
                    },
                ],
            },
        },
    },
    contentType: '',
};
exports.ARTIST_WEB_SITE_IMAGE_GALLERIES_TYPE = {
    name: 'ArtistWebSiteImageGalleries',
    inheritedTypesIds: [
        content_image_const_1.IMAGE_GALLERIES_TYPE.name,
        web_site_const_1.MENU_ENTRY_TYPE.name,
        web_site_const_1.PAGE_TYPE.name,
        web_site_const_1.PAGE_WITH_SUB_PAGE_TYPE.name,
        utils_common_const_1.HIDDEN_NAME_TYPE.name,
    ],
};
exports.ARTIST_WEB_SITE_IMAGE_GALLERY_TYPE = {
    name: 'ArtistWebSiteImageGallery',
    inheritedTypesIds: [
        content_image_const_1.DISPLAYED_IMAGE_GALLERY_TYPE.name,
        web_site_const_1.MENU_ENTRY_TYPE.name,
        web_site_const_1.PAGE_TYPE.name,
        web_site_const_1.PARAGRAPH_TYPE.name,
        utils_common_const_1.HIDDEN_NAME_TYPE.name,
    ],
};
exports.ARTIST_WEB_SITE_IMAGE_GALLERY_CONCATENATION_TYPE = {
    name: 'ArtistWebSiteImageGalleryConcatenation',
    inheritedTypesIds: [
        content_image_const_1.IMAGE_GALLERY_CONCATENATION_TYPE.name,
        web_site_const_1.PAGE_TYPE.name,
        web_site_const_1.PARAGRAPH_TYPE.name,
        web_site_const_1.PARAGRAPH_WITH_TEMPLATE_CHOICE_TYPE.name,
        utils_common_const_1.HIDDEN_NAME_TYPE.name,
    ],
    definition: {
        properties: {
            selectedGalleriesObjectTreeIds: {
                items: {
                    enumOfTree: [
                        {
                            treeType: exports.ARTIST_WEB_SITE_IMAGE_GALLERY_TYPE.name,
                        },
                    ],
                },
            },
        },
    },
    contentType: '',
};
exports.ARTIST_WEB_SITE_IMAGE_GALLERY_REFERRER_TYPE = {
    name: 'ArtistWebSiteImageGalleryReferrer',
    inheritedTypesIds: [content_image_const_1.IMAGE_GALLERY_REFERRER_TYPE.name, utils_common_const_1.HIDDEN_NAME_TYPE.name],
    definition: {
        properties: {
            imageGalleryObjectTreeId: {
                title: 'Image gallery',
                type: 'string',
                oneOfTree: [
                    {
                        treeType: exports.ARTIST_WEB_SITE_IMAGE_GALLERY_TYPE.name,
                    },
                ],
            },
        },
    },
    contentType: '',
};
exports.ARTIST_WEB_SITE_WELCOME_PAGE_TYPE = {
    name: 'ArtistWebSiteWelcomePage',
    inheritedTypesIds: [
        web_site_const_1.WELCOME_PAGE_TYPE.name,
        content_image_template_const_1.PAGE_WITH_GALLERY_TYPE.name,
        content_image_template_const_1.PAGE_WITH_GALLERY_TEXT_PARAGRAPH_TYPE.name,
        exports.ARTIST_WEB_SITE_IMAGE_GALLERY_REFERRER_TYPE.name,
        utils_common_const_1.HIDDEN_NAME_TYPE.name,
    ],
};
exports.ARTIST_WEB_SITE_PARAGRAPH_TYPE = {
    name: 'ArtistWebSiteParagraph',
    inheritedTypesIds: [
        content_image_template_const_1.GALLERY_TEXT_PARAGRAPH_TYPE.name,
        utils_common_const_1.OPTIONAL_LABEL_TYPE.name,
        web_site_const_1.PARAGRAPH_WITH_TEMPLATE_CHOICE_TYPE.name,
    ],
};
exports.ARTIST_WEB_SITE_POST_TYPE = {
    name: 'ArtistWebSitePost',
    title: 'Page or paragraph content',
    inheritedTypesIds: [
        web_site_const_1.MENU_ENTRY_TYPE.name,
        web_site_const_1.PARAGRAPH_TYPE.name,
        web_site_const_1.PAGE_PARAGRAPH_TYPE.name,
        web_site_const_1.PAGE_WITH_SUB_PAGE_TYPE.name,
        post_const_1.POST_TYPE.name,
        content_image_template_const_1.PAGE_WITH_GALLERY_TEXT_PARAGRAPH_TYPE.name,
        exports.ARTIST_WEB_SITE_IMAGE_GALLERY_REFERRER_TYPE.name,
        post_const_1.POST_WITH_GALLERY_TYPE.name,
        web_site_const_1.PARAGRAPH_WITH_TEMPLATE_CHOICE_TYPE.name,
        utils_common_const_1.HIDDEN_NAME_TYPE.name,
    ],
    definition: {
        properties: {},
    },
    contentType: '',
};
exports.ARTIST_WEB_SITE_POST1_TYPE = {
    name: 'ArtistWebSitePost1',
    inheritedTypesIds: [exports.ARTIST_WEB_SITE_POST_TYPE.name],
};
exports.ARTIST_WEB_SITE_POST2_TYPE = {
    name: 'ArtistWebSitePost2',
    inheritedTypesIds: [exports.ARTIST_WEB_SITE_POST_TYPE.name],
};
exports.ARTIST_WEB_SITE_POST3_TYPE = {
    name: 'ArtistWebSitePost3',
    inheritedTypesIds: [exports.ARTIST_WEB_SITE_POST_TYPE.name],
};
exports.ARTIST_WEB_SITE_POST_ROOT_TYPE = {
    name: 'ArtistWebSitePostRoot',
    title: 'Content pages',
    inheritedTypesIds: [exports.ARTIST_WEB_SITE_POST_TYPE.name, utils_common_const_1.HIDDEN_NAME_TYPE.name],
};
exports.ARTIST_WEB_SITE_POST1_ROOT_TYPE = {
    name: 'ArtistWebSitePost1Root',
    title: 'First menu content pages',
    inheritedTypesIds: [
        exports.ARTIST_WEB_SITE_POST_ROOT_TYPE.name,
        exports.ARTIST_WEB_SITE_POST1_TYPE.name,
    ],
};
exports.ARTIST_WEB_SITE_POST2_ROOT_TYPE = {
    name: 'ArtistWebSitePost2Root',
    title: 'Second menu content pages',
    inheritedTypesIds: [
        exports.ARTIST_WEB_SITE_POST_ROOT_TYPE.name,
        exports.ARTIST_WEB_SITE_POST2_TYPE.name,
    ],
};
exports.ARTIST_WEB_SITE_POST3_ROOT_TYPE = {
    name: 'ArtistWebSitePost3Root',
    title: 'Third menu content pages',
    inheritedTypesIds: [
        exports.ARTIST_WEB_SITE_POST_ROOT_TYPE.name,
        exports.ARTIST_WEB_SITE_POST3_TYPE.name,
    ],
};
exports.ARTIST_WEB_SITE_EVENT_TYPE = {
    name: 'ArtistWebSiteEvent',
    title: 'Evénement',
    inheritedTypesIds: [
        web_site_const_1.MENU_ENTRY_TYPE.name,
        web_site_const_1.PARAGRAPH_TYPE.name,
        calendar_const_1.CALENDAR_ENTRY_TYPE.name,
        web_site_const_1.PAGE_WITH_SUB_PAGE_TYPE.name,
        post_const_1.POST_TYPE.name,
        content_image_template_const_1.PAGE_WITH_GALLERY_TEXT_PARAGRAPH_TYPE.name,
        exports.ARTIST_WEB_SITE_IMAGE_GALLERY_REFERRER_TYPE.name,
        post_const_1.POST_WITH_GALLERY_TYPE.name,
        utils_common_const_1.HIDDEN_NAME_TYPE.name,
    ],
    definition: {
        properties: {},
    },
    contentType: '',
};
exports.ARTIST_WEB_SITE_EVENT_ROOT_TYPE = {
    name: 'ArtistWebSiteEventRoot',
    title: 'Evénements',
    inheritedTypesIds: [exports.ARTIST_WEB_SITE_EVENT_TYPE.name, utils_common_const_1.HIDDEN_NAME_TYPE.name],
};
exports.ARTIST_WEB_SITE_WELCOME_PARAGRAPH_TYPE = {
    name: 'ArtistWebSiteWelcomeMenuEntry',
    title: 'Menu card content',
    inheritedTypesIds: [
        content_image_template_const_1.GALLERY_TEXT_PARAGRAPH_TYPE.name,
        web_site_const_1.PARAGRAPH_WITH_PAGE_LINK.name,
        web_site_const_1.PARAGRAPH_WITH_TEMPLATE_CHOICE_TYPE.name,
        exports.ARTIST_WEB_SITE_IMAGE_GALLERY_REFERRER_TYPE.name,
        utils_common_const_1.HIDDEN_NAME_TYPE.name,
    ],
};
exports.ARTIST_WEB_SITE_CALENDAR_PAGE_TYPE = {
    name: 'ArtistWebSiteCalendarPage',
    inheritedTypesIds: [calendar_const_1.CALENDAR_PAGE_TYPE.name, utils_common_const_1.HIDDEN_NAME_TYPE.name],
};
exports.ARTIST_WEB_SITE_CALENDAR_TYPE = {
    name: 'ArtistWebSiteCalendar',
    inheritedTypesIds: [
        calendar_const_1.CALENDAR_TYPE.name,
        web_site_const_1.PARAGRAPH_WITH_TEMPLATE_CHOICE_TYPE.name,
        utils_common_const_1.HIDDEN_NAME_TYPE.name,
    ],
};
exports.ARTIST_WEB_SITE_POST_GALLERY_TEXT_PARAGRAPH_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_POST_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_PARAGRAPH_TYPE.name,
    name: content_image_template_const_1.GALLERY_TEXT_PARAGRAPH_TYPE.name,
};
exports.ARTIST_WEB_SITE_EVENT_GALLERY_TEXT_PARAGRAPH_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_EVENT_TYPE.name,
    subTypeName: content_image_template_const_1.GALLERY_TEXT_PARAGRAPH_TYPE.name,
    name: content_image_template_const_1.GALLERY_TEXT_PARAGRAPH_TYPE.name,
    max: 0,
};
exports.FOLDER_ARTIST_WEB_SITE_SUBTYPE = {
    typeName: object_tree_const_1.FOLDER_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_TYPE.name,
    name: exports.ARTIST_WEB_SITE_TYPE.name,
    acl: true,
    namespace: true,
    owner: false,
    tree: true,
};
exports.ARTIST_WEB_SITE_ARTIST_WEB_SITE_IMAGE_GALLERIES_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_IMAGE_GALLERIES_TYPE.name,
    max: 1,
    min: 1,
};
exports.ARTIST_WEB_SITE_ARTIST_WEB_SITE_WELCOME_PAGE_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_WELCOME_PAGE_TYPE.name,
    name: web_site_const_1.WELCOME_PAGE_TYPE.name,
    min: 1,
    max: 1,
};
exports.ARTIST_WEB_SITE_ARTIST_WEB_SITE_POST1_ROOT_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_POST1_ROOT_TYPE.name,
    name: exports.ARTIST_WEB_SITE_POST1_ROOT_TYPE.name,
    min: 1,
    max: 1,
};
exports.ARTIST_WEB_SITE_ARTIST_WEB_SITE_POST2_ROOT_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_POST2_ROOT_TYPE.name,
    name: exports.ARTIST_WEB_SITE_POST2_ROOT_TYPE.name,
    min: 1,
    max: 1,
};
exports.ARTIST_WEB_SITE_ARTIST_WEB_SITE_POST3_ROOT_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_POST3_ROOT_TYPE.name,
    name: exports.ARTIST_WEB_SITE_POST3_ROOT_TYPE.name,
    min: 1,
    max: 1,
};
exports.ARTIST_WEB_SITE_ARTIST_WEB_SITE_EVENT_ROOT_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_EVENT_ROOT_TYPE.name,
    name: exports.ARTIST_WEB_SITE_EVENT_ROOT_TYPE.name,
    min: 1,
    max: 1,
};
exports.ARTIST_WEB_SITE_POST1_ARTIST_WEB_SITE_POST1_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_POST1_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_POST1_TYPE.name,
};
exports.ARTIST_WEB_SITE_POST2_ARTIST_WEB_SITE_POST2_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_POST2_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_POST2_TYPE.name,
};
exports.ARTIST_WEB_SITE_POST3_ARTIST_WEB_SITE_POST3_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_POST3_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_POST3_TYPE.name,
};
exports.ARTIST_WEB_SITE_EVENT_ARTIST_WEB_SITE_EVENT_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_EVENT_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_EVENT_TYPE.name,
};
exports.CATEGORY_ARTIST_WEB_SITE_TEMPLATE_SUBTYPE = {
    typeName: object_tree_const_1.REPOSITORY_CATEGORY_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_TEMPLATE_TYPE.name,
    tree: true,
};
exports.ARTIST_WEB_SITE_WELCOME_PAGE_ARTIST_WEB_SITE_WELCOME_MENU_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_WELCOME_PAGE_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_WELCOME_PARAGRAPH_TYPE.name,
};
exports.ARTIST_WEB_SITE_WELCOME_PAGE_ARTIST_WEB_SITE_PARAGRAPH_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_WELCOME_PAGE_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_PARAGRAPH_TYPE.name,
    name: content_image_template_const_1.GALLERY_TEXT_PARAGRAPH_TYPE.name,
};
exports.ARTIST_WEB_SITE_WELCOME_MENU_TEXT_PARAGRAPH_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_WELCOME_PAGE_TYPE.name,
    subTypeName: web_site_const_1.TEXT_PARAGRAPH_TYPE.name,
    max: 0,
};
exports.ARTIST_WEB_SITE_IMAGE_GALLERIES_ARTIST_WEB_SITE_IMAGE_GALLERY_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_IMAGE_GALLERIES_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_IMAGE_GALLERY_TYPE.name,
    name: content_image_const_1.IMAGE_GALLERY_TYPE.name,
    tree: true,
};
exports.ARTIST_WEB_SITE_IMAGE_GALLERIES_ARTIST_WEB_SITE_IMAGE_GALLERY_CONCATENATION_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_IMAGE_GALLERIES_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_IMAGE_GALLERY_CONCATENATION_TYPE.name,
    name: content_image_const_1.IMAGE_GALLERY_CONCATENATION_TYPE.name,
    tree: true,
};
exports.ARTIST_WEB_SITE_ARTIST_WEB_SITE_CALENDAR_PAGE_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_CALENDAR_PAGE_TYPE.name,
    name: calendar_const_1.CALENDAR_PAGE_TYPE.name,
    min: 1,
    max: 1,
};
exports.ARTIST_WEB_SITE_CALENDAR_PAGE_ARTIST_WEB_SITE_CALENDAR_SUBTYPE = {
    typeName: exports.ARTIST_WEB_SITE_CALENDAR_PAGE_TYPE.name,
    subTypeName: exports.ARTIST_WEB_SITE_CALENDAR_TYPE.name,
    name: calendar_const_1.CALENDAR_TYPE.name,
    min: 1,
    max: 1,
};
//# sourceMappingURL=artist-web-site.const.js.map