digitalfabrik/integreat-app

View on GitHub
shared/api/index.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { MapParamsToBodyType as ImportedMapParamsToBodyType } from './MapParamsToBody'
import { MapParamsToUrlType as ImportedMapParamsToUrlType } from './MapParamsToUrlType'
import { MapResponseType as ImportedMapResponseType } from './MapResponseType'
import {
  FeedbackRouteType as ImportedFeedbackRouteType,
  ParamsType as ImportedFeedbackParamsType,
} from './endpoints/createFeedbackEndpoint'
import { Return as ImportedReturnType } from './endpoints/hooks/useLoadAsync'

export { default as Endpoint } from './Endpoint'
export { default as EndpointBuilder } from './EndpointBuilder'
export { default as Payload } from './Payload'
export { default as mapAvailableLanguages } from './mapping/mapAvailableLanguages'
export * from './types'
export * from './endpoints/testing'
export { ErrorCode, fromError } from './ErrorCodes'
export { setUserAgent, setJpalTrackingCode, getJpalTrackingCode, request } from './request'
export type MapParamsToBodyType<P> = ImportedMapParamsToBodyType<P>
export type MapParamsToUrlType<P> = ImportedMapParamsToUrlType<P>
export type MapResponseType<P, T> = ImportedMapResponseType<P, T>
export type FeedbackParamsType = ImportedFeedbackParamsType
export type FeedbackRouteType = ImportedFeedbackRouteType
export type ReturnType<T extends object> = ImportedReturnType<T>
export { default as FetchError } from './errors/FetchError'
export { default as ResponseError } from './errors/ResponseError'
export { default as MappingError } from './errors/MappingError'
export { default as NotFoundError } from './errors/NotFoundError'
export { default as createCategoriesEndpoint, CATEGORIES_ENDPOINT_NAME } from './endpoints/createCategoriesEndpoint'
export {
  default as createCategoryContentEndpoint,
  CATEGORY_CONTENT_ENDPOINT_NAME,
} from './endpoints/createCategoryContentEndpoint'
export {
  default as createCategoryChildrenEndpoint,
  CATEGORY_CHILDREN_ENDPOINT_NAME,
} from './endpoints/createCategoryChildrenEndpoint'
export {
  default as createCategoryParentsEndpoint,
  CATEGORY_PARENTS_ENDPOINT_NAME,
} from './endpoints/createCategoryParentsEndpoint'
export { default as createSendChatMessageEndpoint, CHAT_ENDPOINT_NAME } from './endpoints/createSendChatMessageEndpoint'
export { default as createChatMessagesEndpoint } from './endpoints/createChatMessagesEndpoint'
export { default as createCitiesEndpoint, CITIES_ENDPOINT_NAME } from './endpoints/createCitiesEndpoint'
export { default as createCityEndpoint, CITY_ENDPOINT_NAME } from './endpoints/createCityEndpoint'
export { default as createDisclaimerEndpoint, DISCLAIMER_ENDPOINT_NAME } from './endpoints/createDisclaimerEndpoint'
export { default as createEventsEndpoint, EVENTS_ENDPOINT_NAME } from './endpoints/createEventsEndpoint'
export { default as createLocalNewsEndpoint, LOCAL_NEWS_ENDPOINT_NAME } from './endpoints/createLocalNewsEndpoint'
export {
  default as createLocalNewsElementEndpoint,
  LOCAL_NEWS_ELEMENT_ENDPOINT_NAME,
} from './endpoints/createLocalNewsElementEndpoint'
export { default as createTunewsEndpoint, TUNEWS_ENDPOINT_NAME } from './endpoints/createTunewsEndpoint'
export {
  default as createTunewsElementEndpoint,
  TUNEWS_ELEMENT_ENDPOINT_NAME,
} from './endpoints/createTunewsElementEndpoint'
export { default as createFeedbackEndpoint, FEEDBACK_ENDPOINT_NAME } from './endpoints/createFeedbackEndpoint'
export { default as createTrackingEndpoint, TRACKING_ENDPOINT_NAME } from './endpoints/createTrackingEndpoint'
export {
  default as submitMalteHelpForm,
  type ContactGender,
  type ContactChannel,
  InvalidEmailError,
  MALTE_HELP_FORM_MAX_COMMENT_LENGTH,
} from './endpoints/submitMalteHelpForm'
export { POSITIVE_RATING } from './endpoints/createFeedbackEndpoint'
export { NEGATIVE_RATING } from './endpoints/createFeedbackEndpoint'
export { CONTENT_FEEDBACK_CATEGORY } from './endpoints/createFeedbackEndpoint'
export {
  default as createTunewsLanguagesEndpoint,
  TUNEWS_LANGUAGES_ENDPOINT_NAME,
} from './endpoints/createTunewsLanguagesEndpoint'
export { default as createPOIsEndpoint, POIS_ENDPOINT_NAME } from './endpoints/createPOIsEndpoint'
export {
  default as createSprungbrettJobsEndpoint,
  SPRUNGBRETT_JOBS_ENDPOINT_NAME,
} from './endpoints/createSprungbrettJobsEndpoint'
export { default as useLoadFromEndpoint, loadFromEndpoint } from './endpoints/hooks/useLoadFromEndpoint'
export { default as useLoadAsync, loadAsync } from './endpoints/hooks/useLoadAsync'
export { default as CategoriesMapModel } from './models/CategoriesMapModel'
export { default as CategoryModel } from './models/CategoryModel'
export { default as CityModel } from './models/CityModel'
export { default as DateModel, type DateIcon } from './models/DateModel'
export { default as EventModel } from './models/EventModel'
export { default as LocalNewsModel } from './models/LocalNewsModel'
export { default as TunewsModel } from './models/TunewsModel'
export { default as OfferModel } from './models/OfferModel'
export { default as LanguageModel } from './models/LanguageModel'
export { default as LocationModel } from './models/LocationModel'
export { default as FeaturedImageModel } from './models/FeaturedImageModel'
export { default as PageModel } from './models/PageModel'
export { default as ExtendedPageModel } from './models/ExtendedPageModel'
export { default as PoiModel } from './models/PoiModel'
export { default as PoiCategoryModel } from './models/PoiCategoryModel'
export { default as SprungbrettJobModel } from './models/SprungbrettJobModel'
export { default as OpeningHoursModel } from './models/OpeningHoursModel'
export { default as OrganizationModel } from './models/OrganizationModel'
export { default as ChatMessageModel } from './models/ChatMessageModel'