UNPKG

@anoki/fse-common

Version:

Common types for FSE

203 lines 8.37 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ServicePageUrlsEnum = exports.FaqTypesEnum = exports.EntitiesEnum = exports.LanguagesValues = exports.LanguagesEnum = exports.CategoriesUrlEnum = exports.EntityTypeTypesEnum = exports.ElementTypeEnum = exports.RegisterTypeEnum = exports.OrganizationStructureEnum = exports.ContestTypeEnum = exports.AnnouncementTypeEnum = exports.SectionTypeEnum = exports.PageTypeEnum = exports.AggregationPageTypeEnum = exports.ProcedureTypeEnum = exports.PublicationTypeEnum = exports.ReferenceEntityTypeEnum = exports.RenderTypeEnum = void 0; exports.RenderTypeEnum = { STATIC: 'Static', DYNAMIC: 'Dynamic', }; exports.ReferenceEntityTypeEnum = { NEWS: 'News', SERVICE: 'Service', PAGE: 'Page', AGGREGATION_PAGE: 'AggregationPage', AGGREGATION_ITEM: 'AggregationItem', EVENT: 'Event', STRUCTURE: 'Structure', DOCUMENT: 'Document', CATEGORY: 'Category', ENTITY_TYPE: 'EntityType', FAQ: 'Faq', }; exports.PublicationTypeEnum = { ANNOUNCEMENT: 'Announcement', ALERT: 'Alert', }; exports.ProcedureTypeEnum = { OPEN_PROCEDURE: 'OpenProcedure', }; exports.AggregationPageTypeEnum = { USER_TYPE: 'UserType', THEMATIC: 'Thematic', }; exports.PageTypeEnum = { HOME: 'Home', STATIC_CONTENT: 'StaticContent', SERVICES: 'Services', EVENTS: 'Events', COMMUNICATION: 'Communication', FSE_COMMUNICATION: 'FseCommunication', // Used for FSE Communication main page }; /** * These are the section types used to create section on CMS Pages * Work in progress, added day by day * * Each section that have items, used AggregationItem */ exports.SectionTypeEnum = { SERVICES: 'SectionServices', SUGGESTED_SERVICES: 'SuggestedServices', LOGIN: 'Login', // The login section used to display the authentication methods WHAT_DO_YOU_NEED: 'WhatDoYouNeed', // Used to display the section "Di cosa hai bisogno" HOME_SERVICES: 'HomeServices', // Used for home page section "Scopri cosa puoi fare" SERVICES_BY_ENTITY_TYPE: 'ServicesByEntityType', // Used to display services for specif entityType NEED_HELP: 'NeedHelp', // Used to display Need Help section RICH_TEXT: 'RichText', FOLDER: 'Folder', // Used for amministrazione-trasparente FILES: 'Files', // Used for amministrazione-trasparente ENTITY_TYPE_ID: 'EntityTypeId', // Used to display entity type id, STEPPER_ACCORDION: 'StepperAccordion', // Used to display accordion with stepper EDITORIAL_WIDGET_ALERT: 'EditorialWidgetAlert', // Used to display editorial widget alert DOCUMENTS: 'Documents', // Used to display documents EDITORIAL_WIDGET_ACTION_BANNER: 'EditorialWidgetActionBanner', // U TAGS: 'Tags', // Used to display tags EDITORIAL_WIDGET: 'EditorialWidget', // Used to display editorial widget (Light/Evidence), EDITORIAL_WIDGET_BLOCK_QUOTE: 'EditorialWidgetBlockQuote', // Used to display editorial widget (Block Quote), EDITORIAL_WIDGET_CALLOUT: 'EditorialWidgetCallout', // Used to display editorial widget (Callout), GENERIC_CAROUSEL: 'GenericCarousel', // Used to display generic carousel INSIGHTS: 'InsightsSection', // Used to display insights VIDEO: 'Video', // Used to display video IMAGES: 'Images', // Used to display images VERTICAL_STEPPER_ACCORDION: 'VerticalStepperAccordion', // Used to display vertical stepper accordion TABLE_LIST: 'TableList', // Used to display table list TABLE_CARD: 'TableCard', // Used to display table card CARD_FAQ_CTA_SECTION: 'CardFaqCtaSection', CARD_PREVIEW_SECTION: 'CardPreviewSection', CARD_FEATURED_SECTION: 'CardFeaturedSection', ACCORDION_SECTION: 'AccordionSection', FEEDBACK_SECTION: 'FeedbackSection', TASK_FORCE_FORM_SECTION: 'TaskForceFormSection', SLIDER_SECTION: 'SliderSection', // Used to display slider section in home page and communication page COMMUNICATION_TAGS_SECTION: 'CommunicationTagsSection', // Tags section included in communication page COMMUNICATION_SEARCH_SECTION: 'CommunicationSearchSection', // Search section included in communication page COMMUNICATION_CONTENTS_SECTION: 'CommunicationContentsSection', // Content section included in communication page COMMUNICATION_CONTENTS_HOME_SECTION: 'CommunicationContentsHomeSection', // Content section included in home page LATEST_CLINICAL_DATA_SECTION: 'LatestClinicalDataSection', }; exports.AnnouncementTypeEnum = { TENDER: 'Tender', CONTEST: 'Contest', PRAETORIAN_REGISTER: 'PraetorianRegister', }; exports.ContestTypeEnum = { EXTERNAL: 'External', INTERNAL: 'Internal', }; exports.OrganizationStructureEnum = { GENERAL_DIRECTION: 'GeneralDirection', UO: 'UO', PERSONNEL: 'Personnel', }; exports.RegisterTypeEnum = { DIRECTOR_DETERMINED: 'DirectorDetermined', MANAGER_DETERMINED: 'ManagerDetermined', }; exports.ElementTypeEnum = { AVATAR: 'Avatar', CARD_BASIC: 'CardBasic', CARD_EVENT: 'CardEvent', CARD_FEATURED: 'CardFeatured', CARD_LIFE: 'CardLife', CARD_FILE: 'CardFile', CARD_GHOST: 'CardGhost', CARD_GUIDE: 'CardGuide', CARD_LIST: 'CardList', CARD_NEWS: 'CardNews', CARD_PEOPLE: 'CardPeople', CARD_PLACE: 'CardPlace', CARD_SERVICE: 'CardService', CARD_USER: 'CardUser', CARD_DOCUMENT: 'CardDocument', CARD: 'Card', CHIP_LINK: 'ChipLink', ICONS: 'Icons', INDEX: 'Index', LINK: 'Link', PLACEHOLDER: 'Placeholder', TEXT: 'Text', RICH_TEXT: 'RichText', STEPPER_ITEM: 'StepperItem', EDITORIAL_WIDGET_ALERT: 'EditorialWidgetAlert', EDITORIAL_WIDGET_ACTION_BANNER: 'EditorialWidgetActionBanner', EDITORIAL_WIDGET: 'EditorialWidget', EDITORIAL_WIDGET_BLOCK_QUOTE: 'EditorialWidgetBlockQuote', EDITORIAL_WIDGET_CALLOUT: 'EditorialWidgetCallout', GENERIC_CAROUSEL_ITEM: 'GenericCarouselItem', INSIGHT_ITEM: 'InsightItem', VIDEO: 'Video', IMAGE: 'Image', VERTICAL_STEPPER_ITEM: 'VerticalStepperItem', TABLE_LIST_ITEM: 'TableListItem', TABLE_CARD_ITEM: 'TableCardItem', CARD_FAQ_CTA_ITEM: 'CardFaqCtaItem', CARD_PREVIEW_ITEM: 'CardPreviewItem', CARD_FEATURED_ITEM: 'CardFeaturedItem', ACCORDION_ITEM: 'AccordionItem', FEEDBACK_ITEM: 'FeedbackItem', TASK_FORCE_FORM_ITEM: 'TaskForceFormItem', SLIDER_ITEM: 'SliderItem', // Used to display slider section in home page and communication page COMMUNICATION_TAGS_ITEM: 'CommunicationTagsItem', // Tags section included in communication page COMMUNICATION_SEARCH_ITEM: 'CommunicationSearchItem', // Search section included in communication page COMMUNICATION_CONTENTS_ITEM: 'CommunicationContentsItem', // Content section included in communication page COMMUNICATION_CONTENTS_HOME_SECTION: 'CommunicationContentsHomeSection', // Content section included in home page LATEST_CLINICAL_DATA_SECTION: 'LatestClinicalDataSection', }; exports.EntityTypeTypesEnum = { PARENT: 'Parent', CHILD: 'Child', }; exports.CategoriesUrlEnum = { SERVIZI_E_PRESTAZIONI: 'servizi', ASL_COMUNICA: 'ast-comunica', AST_COMUNICA: 'ast-comunica', STRUTTURE: 'strutture', ORGANIZZAZIONE: 'organizzazione', COME_FARE_PER: 'come-fare-per', FAQ: 'supporto', }; exports.LanguagesEnum = { it: 'it', en: 'en', }; exports.LanguagesValues = Object.values(exports.LanguagesEnum); exports.EntitiesEnum = { AGGREGATION_ITEMS: 'aggregation-items', AGGREGATION_PAGES: 'aggregation-pages', SERVICES: 'services', STRUCTURES: 'structures', PAGES: 'pages', SECTIONS: 'sections', ELEMENTS: 'elements', NEWS: 'news', EVENTS: 'events', SETTINGS: 'settings', DOCUMENTS: 'documents', FAQS: 'faqs', DOCUMENT_FOLDERS: 'document-folders', }; exports.FaqTypesEnum = { GENERIC_FAQS: 'FAQS Generiche', PAGE_FAQS: 'FAQS Pagina', }; /** * Bind service as its own page url * This is the enum of services available on logged user. * Each of these service has itw own custom implementation page */ exports.ServicePageUrlsEnum = { DOCTOR: 'medico-di-famiglia', FIND_STRUCTURES: 'cerca-una-struttura', ARCHIVE: 'tutti-i-documenti', HEALTH_PROFILE: 'profilo-della-salute', PAYMENTS: 'pagamenti', }; //# sourceMappingURL=constants.js.map