@anoki/fse-common
Version:
Common types for FSE
217 lines (216 loc) • 8.94 kB
TypeScript
export type GetValues<T> = T[keyof T];
export declare const RenderTypeEnum: {
readonly STATIC: "Static";
readonly DYNAMIC: "Dynamic";
};
export type RenderTypes = GetValues<typeof RenderTypeEnum>;
export declare const ReferenceEntityTypeEnum: {
readonly NEWS: "News";
readonly SERVICE: "Service";
readonly PAGE: "Page";
readonly AGGREGATION_PAGE: "AggregationPage";
readonly AGGREGATION_ITEM: "AggregationItem";
readonly EVENT: "Event";
readonly STRUCTURE: "Structure";
readonly DOCUMENT: "Document";
readonly CATEGORY: "Category";
readonly ENTITY_TYPE: "EntityType";
readonly FAQ: "Faq";
};
export type ReferenceEntityTypes = GetValues<typeof ReferenceEntityTypeEnum>;
export declare const PublicationTypeEnum: {
readonly ANNOUNCEMENT: "Announcement";
readonly ALERT: "Alert";
};
export type PublicationTypes = GetValues<typeof PublicationTypeEnum>;
export declare const ProcedureTypeEnum: {
readonly OPEN_PROCEDURE: "OpenProcedure";
};
export type ProcedureTypes = GetValues<typeof ProcedureTypeEnum>;
export declare const AggregationPageTypeEnum: {
readonly USER_TYPE: "UserType";
readonly THEMATIC: "Thematic";
};
export type AggregationPageTypes = GetValues<typeof AggregationPageTypeEnum>;
export declare const PageTypeEnum: {
readonly HOME: "Home";
readonly STATIC_CONTENT: "StaticContent";
readonly SERVICES: "Services";
readonly EVENTS: "Events";
readonly COMMUNICATION: "Communication";
readonly FSE_COMMUNICATION: "FseCommunication";
};
export type PageTypes = GetValues<typeof PageTypeEnum>;
/**
* 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
*/
export declare const SectionTypeEnum: {
readonly SERVICES: "SectionServices";
readonly SUGGESTED_SERVICES: "SuggestedServices";
readonly LOGIN: "Login";
readonly WHAT_DO_YOU_NEED: "WhatDoYouNeed";
readonly HOME_SERVICES: "HomeServices";
readonly SERVICES_BY_ENTITY_TYPE: "ServicesByEntityType";
readonly NEED_HELP: "NeedHelp";
readonly RICH_TEXT: "RichText";
readonly FOLDER: "Folder";
readonly FILES: "Files";
readonly ENTITY_TYPE_ID: "EntityTypeId";
readonly STEPPER_ACCORDION: "StepperAccordion";
readonly EDITORIAL_WIDGET_ALERT: "EditorialWidgetAlert";
readonly DOCUMENTS: "Documents";
readonly EDITORIAL_WIDGET_ACTION_BANNER: "EditorialWidgetActionBanner";
readonly TAGS: "Tags";
readonly EDITORIAL_WIDGET: "EditorialWidget";
readonly EDITORIAL_WIDGET_BLOCK_QUOTE: "EditorialWidgetBlockQuote";
readonly EDITORIAL_WIDGET_CALLOUT: "EditorialWidgetCallout";
readonly GENERIC_CAROUSEL: "GenericCarousel";
readonly INSIGHTS: "InsightsSection";
readonly VIDEO: "Video";
readonly IMAGES: "Images";
readonly VERTICAL_STEPPER_ACCORDION: "VerticalStepperAccordion";
readonly TABLE_LIST: "TableList";
readonly TABLE_CARD: "TableCard";
readonly CARD_FAQ_CTA_SECTION: "CardFaqCtaSection";
readonly CARD_PREVIEW_SECTION: "CardPreviewSection";
readonly CARD_FEATURED_SECTION: "CardFeaturedSection";
readonly ACCORDION_SECTION: "AccordionSection";
readonly FEEDBACK_SECTION: "FeedbackSection";
readonly TASK_FORCE_FORM_SECTION: "TaskForceFormSection";
readonly SLIDER_SECTION: "SliderSection";
readonly COMMUNICATION_TAGS_SECTION: "CommunicationTagsSection";
readonly COMMUNICATION_SEARCH_SECTION: "CommunicationSearchSection";
readonly COMMUNICATION_CONTENTS_SECTION: "CommunicationContentsSection";
readonly COMMUNICATION_CONTENTS_HOME_SECTION: "CommunicationContentsHomeSection";
readonly LATEST_CLINICAL_DATA_SECTION: "LatestClinicalDataSection";
};
export type SectionTypes = GetValues<typeof SectionTypeEnum>;
export declare const AnnouncementTypeEnum: {
readonly TENDER: "Tender";
readonly CONTEST: "Contest";
readonly PRAETORIAN_REGISTER: "PraetorianRegister";
};
export type AnnouncementTypes = GetValues<typeof AnnouncementTypeEnum>;
export declare const ContestTypeEnum: {
readonly EXTERNAL: "External";
readonly INTERNAL: "Internal";
};
export type contestsTypes = GetValues<typeof ContestTypeEnum>;
export declare const OrganizationStructureEnum: {
readonly GENERAL_DIRECTION: "GeneralDirection";
readonly UO: "UO";
readonly PERSONNEL: "Personnel";
};
export type OrganizationStructure = GetValues<typeof OrganizationStructureEnum>;
export declare const RegisterTypeEnum: {
readonly DIRECTOR_DETERMINED: "DirectorDetermined";
readonly MANAGER_DETERMINED: "ManagerDetermined";
};
export type RegisterTypes = GetValues<typeof RegisterTypeEnum>;
export declare const ElementTypeEnum: {
readonly AVATAR: "Avatar";
readonly CARD_BASIC: "CardBasic";
readonly CARD_EVENT: "CardEvent";
readonly CARD_FEATURED: "CardFeatured";
readonly CARD_LIFE: "CardLife";
readonly CARD_FILE: "CardFile";
readonly CARD_GHOST: "CardGhost";
readonly CARD_GUIDE: "CardGuide";
readonly CARD_LIST: "CardList";
readonly CARD_NEWS: "CardNews";
readonly CARD_PEOPLE: "CardPeople";
readonly CARD_PLACE: "CardPlace";
readonly CARD_SERVICE: "CardService";
readonly CARD_USER: "CardUser";
readonly CARD_DOCUMENT: "CardDocument";
readonly CARD: "Card";
readonly CHIP_LINK: "ChipLink";
readonly ICONS: "Icons";
readonly INDEX: "Index";
readonly LINK: "Link";
readonly PLACEHOLDER: "Placeholder";
readonly TEXT: "Text";
readonly RICH_TEXT: "RichText";
readonly STEPPER_ITEM: "StepperItem";
readonly EDITORIAL_WIDGET_ALERT: "EditorialWidgetAlert";
readonly EDITORIAL_WIDGET_ACTION_BANNER: "EditorialWidgetActionBanner";
readonly EDITORIAL_WIDGET: "EditorialWidget";
readonly EDITORIAL_WIDGET_BLOCK_QUOTE: "EditorialWidgetBlockQuote";
readonly EDITORIAL_WIDGET_CALLOUT: "EditorialWidgetCallout";
readonly GENERIC_CAROUSEL_ITEM: "GenericCarouselItem";
readonly INSIGHT_ITEM: "InsightItem";
readonly VIDEO: "Video";
readonly IMAGE: "Image";
readonly VERTICAL_STEPPER_ITEM: "VerticalStepperItem";
readonly TABLE_LIST_ITEM: "TableListItem";
readonly TABLE_CARD_ITEM: "TableCardItem";
readonly CARD_FAQ_CTA_ITEM: "CardFaqCtaItem";
readonly CARD_PREVIEW_ITEM: "CardPreviewItem";
readonly CARD_FEATURED_ITEM: "CardFeaturedItem";
readonly ACCORDION_ITEM: "AccordionItem";
readonly FEEDBACK_ITEM: "FeedbackItem";
readonly TASK_FORCE_FORM_ITEM: "TaskForceFormItem";
readonly SLIDER_ITEM: "SliderItem";
readonly COMMUNICATION_TAGS_ITEM: "CommunicationTagsItem";
readonly COMMUNICATION_SEARCH_ITEM: "CommunicationSearchItem";
readonly COMMUNICATION_CONTENTS_ITEM: "CommunicationContentsItem";
readonly COMMUNICATION_CONTENTS_HOME_SECTION: "CommunicationContentsHomeSection";
readonly LATEST_CLINICAL_DATA_SECTION: "LatestClinicalDataSection";
};
export type ElementTypes = GetValues<typeof ElementTypeEnum>;
export declare const EntityTypeTypesEnum: {
readonly PARENT: "Parent";
readonly CHILD: "Child";
};
export type EntityTypeTypes = GetValues<typeof EntityTypeTypesEnum>;
export declare const CategoriesUrlEnum: {
readonly SERVIZI_E_PRESTAZIONI: "servizi";
readonly ASL_COMUNICA: "ast-comunica";
readonly AST_COMUNICA: "ast-comunica";
readonly STRUTTURE: "strutture";
readonly ORGANIZZAZIONE: "organizzazione";
readonly COME_FARE_PER: "come-fare-per";
readonly FAQ: "supporto";
};
export type CategoryUrls = GetValues<typeof CategoriesUrlEnum>;
export declare const LanguagesEnum: {
readonly it: "it";
readonly en: "en";
};
export declare const LanguagesValues: ("it" | "en")[];
export type Languages = GetValues<typeof LanguagesEnum>;
export declare const EntitiesEnum: {
readonly AGGREGATION_ITEMS: "aggregation-items";
readonly AGGREGATION_PAGES: "aggregation-pages";
readonly SERVICES: "services";
readonly STRUCTURES: "structures";
readonly PAGES: "pages";
readonly SECTIONS: "sections";
readonly ELEMENTS: "elements";
readonly NEWS: "news";
readonly EVENTS: "events";
readonly SETTINGS: "settings";
readonly DOCUMENTS: "documents";
readonly FAQS: "faqs";
readonly DOCUMENT_FOLDERS: "document-folders";
};
export declare const FaqTypesEnum: {
readonly GENERIC_FAQS: "FAQS Generiche";
readonly PAGE_FAQS: "FAQS Pagina";
};
export type FaqTypes = GetValues<typeof FaqTypesEnum>;
/**
* 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
*/
export declare const ServicePageUrlsEnum: {
readonly DOCTOR: "medico-di-famiglia";
readonly FIND_STRUCTURES: "cerca-una-struttura";
readonly ARCHIVE: "tutti-i-documenti";
readonly HEALTH_PROFILE: "profilo-della-salute";
readonly PAYMENTS: "pagamenti";
};