"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TRAVEL_STORY_MAP_PAGE_TRAVEL_STORY_MAP_SUBTYPE = exports.TRAVEL_STORY_TRAVEL_STORY_MAP_PAGE_SUBTYPE = exports.TRAVEL_STORY_CALENDAR_PAGE_TRAVEL_STORY_CALENDAR_SUBTYPE = exports.TRAVEL_STORY_TRAVEL_STORY_CALENDAR_PAGE_SUBTYPE = exports.TRAVEL_STORY_IMAGE_GALLERIES_TRAVEL_STORY_IMAGE_GALLERY_SUBTYPE = exports.TRAVEL_STORY_WELCOME_MENU_TEXT_PARAGRAPH_SUBTYPE = exports.TRAVEL_STORY_WELCOME_PAGE_TRAVEL_STORY_WELCOME_MENU_SUBTYPE = exports.CATEGORY_TRAVEL_STORY_TEMPLATE_SUBTYPE = exports.TRAVEL_STORY_POST_TRAVEL_STORY_POST_SUBTYPE = exports.TRAVEL_STORY_TRAVEL_STORY_POST_ROOT_SUBTYPE = exports.TRAVEL_STORY_TRAVEL_STORY_WELCOME_PAGE_SUBTYPE = exports.TRAVEL_STORY_TRAVEL_STORY_IMAGE_GALLERIES_SUBTYPE = exports.FOLDER_TRAVEL_STORY_SUBTYPE = exports.TRAVEL_STORY_POST_TRAVEL_STORY_PARAGRAPH_SUBTYPE = exports.TRAVEL_STORY_PARAGRAPH_TYPE = exports.TRAVEL_STORY_MAP_TYPE = exports.TRAVEL_STORY_MAP_PAGE_TYPE = exports.TRAVEL_STORY_CALENDAR_TYPE = exports.TRAVEL_STORY_CALENDAR_PAGE_TYPE = exports.TRAVEL_STORY_WELCOME_PARAGRAPH_TYPE = exports.TRAVEL_STORY_POST_ROOT_TYPE = exports.TRAVEL_STORY_POST_TYPE = exports.TRAVEL_STORY_WELCOME_PAGE_TYPE = exports.TRAVEL_STORY_IMAGE_GALLERY_REFERRER_TYPE = exports.TRAVEL_STORY_IMAGE_GALLERY_TYPE = exports.TRAVEL_STORY_IMAGE_GALLERIES_TYPE = exports.TRAVEL_STORY_TYPE = exports.TRAVEL_STORY_TEMPLATE_TYPE = exports.TRAVEL_STORY_NAME = exports.TRAVEL_STORY_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 post_const_1 = require("../post/post.const");
const web_site_const_1 = require("../web-site/web-site.const");
const object_tree_const_2 = require("./../../services/object-tree/object-tree.const");
const content_image_template_const_2 = require("./../content-image-template/content-image-template.const");
const content_image_const_1 = require("./../content-image/content-image.const");
const map_const_1 = require("./../map/map.const");
const web_site_const_2 = require("./../web-site/web-site.const");
exports.TRAVEL_STORY_PROVIDER = 'TravelStoryProvider';
exports.TRAVEL_STORY_NAME = 'TravelStoryService';
exports.TRAVEL_STORY_TEMPLATE_TYPE = {
    name: 'TravelStoryTemplate',
    inheritedTypesIds: [
        web_site_const_1.WEB_SITE_WITH_MENU_TEMPLATE_TYPE.name,
        web_site_const_1.WEB_SITE_WITH_PARAGRAPHS_TEMPLATE_TYPE.name,
    ],
    definition: {
        properties: {},
    },
    contentType: '',
};
exports.TRAVEL_STORY_TYPE = {
    name: 'TravelStory',
    title: 'Travel story web site',
    inheritedTypesIds: [
        web_site_const_1.WEB_SITE_MENU_ENTRIES_TYPE.name,
        web_site_const_1.WEB_SITE_VIEW_TYPE.name,
        content_image_template_const_1.WEB_SITE_VIEW_WITH_IMAGE_IN_POPUP.name,
        calendar_const_1.CALENDAR_ENTRIES_TYPE.name,
        map_const_1.MAP_ENTRIES_TYPE.name,
    ],
    definition: {
        properties: {
            webSiteObjectTreeId: {
                type: 'string',
                oneOfTree: [
                    {
                        treeType: exports.TRAVEL_STORY_TEMPLATE_TYPE.name,
                        namespaceName: object_tree_const_2.TEMPLATES_OBJECT_NAME,
                        namespaceType: application_service_1.ObjectTypeName.REPOSITORY_CATEGORY,
                        ownerName: object_tree_const_2.PUBLIC_OBJECT_NAME,
                        ownerType: application_service_1.ObjectTypeName.REPOSITORY,
                    },
                    {
                        treeType: 'TravelStoryTemplate',
                    },
                ],
            },
        },
    },
    contentType: '',
};
exports.TRAVEL_STORY_IMAGE_GALLERIES_TYPE = {
    name: 'TravelStoryImageGalleries',
    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_2.PAGE_WITH_SUB_PAGE_TYPE.name,
    ],
};
exports.TRAVEL_STORY_IMAGE_GALLERY_TYPE = {
    name: 'TravelStoryImageGallery',
    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,
    ],
};
exports.TRAVEL_STORY_IMAGE_GALLERY_REFERRER_TYPE = {
    name: 'TravelStoryImageGalleryReferrer',
    inheritedTypesIds: [content_image_const_1.IMAGE_GALLERY_REFERRER_TYPE.name],
    definition: {
        properties: {
            imageGalleryObjectTreeId: {
                title: 'Image gallery',
                type: 'string',
                oneOfTree: [
                    {
                        treeType: exports.TRAVEL_STORY_IMAGE_GALLERY_TYPE.name,
                    },
                ],
            },
        },
    },
    contentType: '',
};
exports.TRAVEL_STORY_WELCOME_PAGE_TYPE = {
    name: 'TravelStoryWelcomePage',
    inheritedTypesIds: [
        web_site_const_1.WELCOME_PAGE_TYPE.name,
        content_image_template_const_2.PAGE_WITH_GALLERY_TYPE.name,
        content_image_template_const_1.PAGE_WITH_GALLERY_TEXT_PARAGRAPH_TYPE.name,
        exports.TRAVEL_STORY_IMAGE_GALLERY_REFERRER_TYPE.name,
    ],
};
exports.TRAVEL_STORY_POST_TYPE = {
    name: 'TravelStoryPost',
    inheritedTypesIds: [
        web_site_const_1.MENU_ENTRY_TYPE.name,
        web_site_const_1.PARAGRAPH_TYPE.name,
        calendar_const_1.CALENDAR_ENTRY_TYPE.name,
        map_const_1.MAP_ENTRY_TYPE.name,
        web_site_const_2.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.TRAVEL_STORY_IMAGE_GALLERY_REFERRER_TYPE.name,
        post_const_1.POST_WITH_GALLERY_TYPE.name,
        web_site_const_2.PARAGRAPH_WITH_TEMPLATE_CHOICE_TYPE.name,
    ],
    definition: {
        properties: {},
    },
    contentType: '',
};
exports.TRAVEL_STORY_POST_ROOT_TYPE = {
    name: 'TravelStoryPostRoot',
    title: 'Content pages',
    inheritedTypesIds: [exports.TRAVEL_STORY_POST_TYPE.name],
};
exports.TRAVEL_STORY_WELCOME_PARAGRAPH_TYPE = {
    name: 'TravelStoryWelcomeMenuEntry',
    inheritedTypesIds: [
        content_image_template_const_2.GALLERY_TEXT_PARAGRAPH_TYPE.name,
        web_site_const_1.PARAGRAPH_WITH_PAGE_LINK.name,
        web_site_const_2.PARAGRAPH_WITH_TEMPLATE_CHOICE_TYPE.name,
        exports.TRAVEL_STORY_IMAGE_GALLERY_REFERRER_TYPE.name,
    ],
};
exports.TRAVEL_STORY_CALENDAR_PAGE_TYPE = {
    name: 'TravelStoryCalendarPage',
    inheritedTypesIds: [calendar_const_1.CALENDAR_PAGE_TYPE.name],
};
exports.TRAVEL_STORY_CALENDAR_TYPE = {
    name: 'TravelStoryCalendar',
    inheritedTypesIds: [
        calendar_const_1.CALENDAR_TYPE.name,
        web_site_const_2.PARAGRAPH_WITH_TEMPLATE_CHOICE_TYPE.name,
    ],
};
exports.TRAVEL_STORY_MAP_PAGE_TYPE = {
    name: 'TravelStoryMapPage',
    inheritedTypesIds: [map_const_1.MAP_PAGE_TYPE.name],
};
exports.TRAVEL_STORY_MAP_TYPE = {
    name: 'TravelStoryMap',
    inheritedTypesIds: [map_const_1.MAP_TYPE.name, web_site_const_2.PARAGRAPH_WITH_TEMPLATE_CHOICE_TYPE.name],
};
exports.TRAVEL_STORY_PARAGRAPH_TYPE = {
    name: 'TravelStoryParagraph',
    inheritedTypesIds: [content_image_template_const_2.GALLERY_TEXT_PARAGRAPH_TYPE.name],
};
exports.TRAVEL_STORY_POST_TRAVEL_STORY_PARAGRAPH_SUBTYPE = {
    typeName: exports.TRAVEL_STORY_POST_TYPE.name,
    subTypeName: exports.TRAVEL_STORY_PARAGRAPH_TYPE.name,
    name: content_image_template_const_2.GALLERY_TEXT_PARAGRAPH_TYPE.name,
};
exports.FOLDER_TRAVEL_STORY_SUBTYPE = {
    typeName: object_tree_const_1.FOLDER_TYPE.name,
    subTypeName: exports.TRAVEL_STORY_TYPE.name,
    name: exports.TRAVEL_STORY_TYPE.name,
    acl: true,
    namespace: true,
    owner: false,
    tree: true,
};
exports.TRAVEL_STORY_TRAVEL_STORY_IMAGE_GALLERIES_SUBTYPE = {
    typeName: exports.TRAVEL_STORY_TYPE.name,
    subTypeName: exports.TRAVEL_STORY_IMAGE_GALLERIES_TYPE.name,
    max: 1,
    min: 1,
};
exports.TRAVEL_STORY_TRAVEL_STORY_WELCOME_PAGE_SUBTYPE = {
    typeName: exports.TRAVEL_STORY_TYPE.name,
    subTypeName: exports.TRAVEL_STORY_WELCOME_PAGE_TYPE.name,
    name: web_site_const_1.WELCOME_PAGE_TYPE.name,
    min: 1,
    max: 1,
};
exports.TRAVEL_STORY_TRAVEL_STORY_POST_ROOT_SUBTYPE = {
    typeName: exports.TRAVEL_STORY_TYPE.name,
    subTypeName: exports.TRAVEL_STORY_POST_ROOT_TYPE.name,
    name: exports.TRAVEL_STORY_POST_TYPE.name,
    min: 1,
    max: 1,
};
exports.TRAVEL_STORY_POST_TRAVEL_STORY_POST_SUBTYPE = {
    typeName: exports.TRAVEL_STORY_POST_TYPE.name,
    subTypeName: exports.TRAVEL_STORY_POST_TYPE.name,
};
exports.CATEGORY_TRAVEL_STORY_TEMPLATE_SUBTYPE = {
    typeName: object_tree_const_1.REPOSITORY_CATEGORY_TYPE.name,
    subTypeName: exports.TRAVEL_STORY_TEMPLATE_TYPE.name,
    tree: true,
};
exports.TRAVEL_STORY_WELCOME_PAGE_TRAVEL_STORY_WELCOME_MENU_SUBTYPE = {
    typeName: exports.TRAVEL_STORY_WELCOME_PAGE_TYPE.name,
    subTypeName: exports.TRAVEL_STORY_WELCOME_PARAGRAPH_TYPE.name,
};
exports.TRAVEL_STORY_WELCOME_MENU_TEXT_PARAGRAPH_SUBTYPE = {
    typeName: exports.TRAVEL_STORY_WELCOME_PAGE_TYPE.name,
    subTypeName: web_site_const_1.TEXT_PARAGRAPH_TYPE.name,
    max: 0,
};
exports.TRAVEL_STORY_IMAGE_GALLERIES_TRAVEL_STORY_IMAGE_GALLERY_SUBTYPE = {
    typeName: exports.TRAVEL_STORY_IMAGE_GALLERIES_TYPE.name,
    subTypeName: exports.TRAVEL_STORY_IMAGE_GALLERY_TYPE.name,
    name: content_image_const_1.IMAGE_GALLERY_TYPE.name,
    tree: true,
};
exports.TRAVEL_STORY_TRAVEL_STORY_CALENDAR_PAGE_SUBTYPE = {
    typeName: exports.TRAVEL_STORY_TYPE.name,
    subTypeName: exports.TRAVEL_STORY_CALENDAR_PAGE_TYPE.name,
    name: calendar_const_1.CALENDAR_PAGE_TYPE.name,
    min: 1,
    max: 1,
};
exports.TRAVEL_STORY_CALENDAR_PAGE_TRAVEL_STORY_CALENDAR_SUBTYPE = {
    typeName: exports.TRAVEL_STORY_CALENDAR_PAGE_TYPE.name,
    subTypeName: exports.TRAVEL_STORY_CALENDAR_TYPE.name,
    name: calendar_const_1.CALENDAR_TYPE.name,
    min: 1,
    max: 1,
};
exports.TRAVEL_STORY_TRAVEL_STORY_MAP_PAGE_SUBTYPE = {
    typeName: exports.TRAVEL_STORY_TYPE.name,
    subTypeName: exports.TRAVEL_STORY_MAP_PAGE_TYPE.name,
    name: map_const_1.MAP_PAGE_TYPE.name,
    min: 1,
    max: 1,
};
exports.TRAVEL_STORY_MAP_PAGE_TRAVEL_STORY_MAP_SUBTYPE = {
    typeName: exports.TRAVEL_STORY_MAP_PAGE_TYPE.name,
    subTypeName: exports.TRAVEL_STORY_MAP_TYPE.name,
    name: map_const_1.MAP_TYPE.name,
    min: 1,
    max: 1,
};
//# sourceMappingURL=travel-story-type.const.js.map