Events Datamodel changes - noi-techpark/opendatahub-docs GitHub Wiki

Removed Fields

Some fields where removed, which are not used anymore

  • Pdf not used and needed anymore
  • Ranc not used anymore, the Ranc info is Stored in the Publisher
  • PayMet not used anymore
  • Type not used anymore
  • GrpEvent not used anymore
  • LTSTags not used anymore will be included in Tags (type eventcategory)
  • Hashtag not used anymore will be included in Tags (type eventtag)
  • EventDate
    • GpsEast not used anymore
    • GpsNorth not used anymore
    • InscriptionTill not used anymore
    • EventDateAdditionalTime not used anymore
  • EventPrices use EventVariants
  • EventBenefit not used anymore
  • EventCrossSelling not used anymore
  • EventDescAdditional not used anymore
  • EventOperationScheduleOverview not used anymore
  • NextBeginDate unneded can be calculated out of EventDates / EventDatesBegin

Deprecated Fields

Deprecated fields are there for Compatibility reasons will be removed after a certain period

  • EventDate
    • EventCalculatedDay is replaced by EventCalculatedDays
  • EventPrice Obsolete, use EventVariants
  • ODHTags will be deprecated soon, switch to Tags
  • OdhActivenot used anymore, please use PublishedOn
  • EventBooking the properties BookableTo, BookableFrom, AccommodationAssignment are not provided anymore, the Booking Urls can be found in EventUrls (type bookingUrl)
  • ClassificationRID will be included in Tags (type eventclassification)
  • Topics / TopicRids will be included in Tags (type eventcategory)
  • Gpstype,Latitude,Longitude,Altitude,AltitudeUnitofMeasure on Root level are deprecated use GpsInfo
  • Ticket Obsolete, use EventProperty.TicketRequired
  • SignOn Obsolete, use EventProperty.RegistrationRequired
  • OrgRID Obsolete, use EventProperty.EventOrganizerId
  • EventAdditionalInfos
    • Mplace obsolete use Meetingpoint
    • Reg obsolete use Registration

New Fields

  • EventUrls Array Includes BookingUrls (type bookingUrl), Includes UrlAlias(type urlAlias), Includes Urls (type urls)
    • Type (string)
    • Url (Dictionary<string,string>)
    • Active (nullable bool)
  • EventAdditionalInfos Dictionary with language key Includes new Text Information like ServiceDescription, CancellationModality, WhatToBring etc...
    • WhatToBring (string)
    • MeetingPoint (string)
    • Registration (string)
    • Location (string)
    • ServiceDescription (string)
    • CancellationModality (string)
  • EventDate Array Represents the EventDate LTS Datamodel of the new Interface
    • EventVariantIDs (nullable nullable string array)
    • EventCalculatedDays Representation of EventCalculatedDay (deprecated) as List
      • EventCalculatedDay
        • SoldOut (nullable bool)
        • AvailabilityLow (nullable bool)
        • AvailabilityCalculatedValue (nullable int)
        • EventDateCalculatedDayVariant Array
          • VariantRID (string)
          • AvailabilityLow (nullable bool)
          • AvailabilityCalculatedValue (nullable int)
    • EventDateTicketInfo (nullable nullable string array)
      • Active (nullable bool)
      • OnlineSaleUntil (nullable int)
      • OnlineContingent (nullable int)
    • IsCancelled (nullable bool)
    • EventDateOpeningInfo
      • MondayOpen (nullable bool)
      • TuesdayOpen (nullable bool)
      • WednesdayOpen (nullable bool)
      • ThursdayOpen (nullable bool)
      • FridayOpen (nullable bool)
      • SaturdayOpen (nullable bool)
      • SundayOpen (nullable bool)
      • Entrance1 (nullable timespan)
      • Begin1 (nullable timespan)
      • End1 (nullable timespan)
      • Entrance2 (nullable timespan)
      • Begin2 (nullable timespan)
      • End2 (nullable timespan)
    • EventDateTicketInfo
      • Active (nullable bool)
      • OnlineSaleUntil (nullable int)
      • OnlineContingent (nullable int)
  • EventProperty Contains EventClassificationId, RegistrationRequired, EventOrganizerId, TicketRequired, IncludedInSuedtirolGuestPass Properties
    • EventClassificationId (string)
    • RegistrationRequired (nullable bool)
    • EventOrganizerId (string)
    • TicketRequired (nullable bool)
    • IncludedInSuedtirolGuestPass (nullable bool)
    • IsBookable (nullable bool)
  • EventVariants Array New Datamodel from LTS Api which contains the pricing modalities
    • Order (nullable int)
    • Price (nullable price)
    • VariantId (string)
    • VariantCategoryId (string)
    • Name (Dictionary<string,string>)

Mapping of Different LTS Description fields

  • longDescription maps to Detail.lang.BaseText

  • shortDescription maps to Detail.lang.IntroText

  • howToPark maps to Detail.lang.ParkingInfo

  • howToArrivemaps to Detail.lang.GetThereText

  • routeDescription maps to Detail.lang.AdditionalText

  • publicTransport maps to Detail.lang.PublicTransportationInfo

  • authorTip maps to Detail.lang.AuthorTip

  • safetyInstructions maps to Detail.lang.SafetyInfo

  • equipment maps to Detail.lang.EquipmentInfo

  • serviceDescription maps to EventAdditionalInfos.lang.ServiceDescription

  • whatToBring maps to EventAdditionalInfos.lang.WhatToBring

  • cancellationModality maps to EventAdditionalInfos.lang.CancellationModality

Changes

Special Logic

Date Range Synced

The api tries to sync all EventDates from 6 Months before the Sync Date up to 1 year after the Sync Date

Publisher Resorting

To have the Publisher IDM 'C9475CF585664B2887DE543481182A2D' on first position in EventPublisher a special sort is implemented