type: object
description: 'Object containing the current Tracklist details'
properties:
  playlist_id:
    type: string
    nullable: false
    description: 'Playlist id with dsp prefix'
    example: 'spotify_02C8uKtc6CoBpD0IdqOZdT'
  country_code:
    $ref: '../properties/country_code.yaml'
  playlist_dates:
    $ref: './PlaylistDates.yaml'
  isrc:
    $ref: '../properties/isrc.yaml'
  track_id:
    $ref: '../properties/dsp_track_id_prefixed.yaml'
  apple_track:
    $ref: './AppleTrackInfo.yaml'
  spotify_track:
    $ref: './SpotifyTrackInfo.yaml'
  amazon_track:
    $ref: './AmazonTrackShortInfo.yaml'
  earliest_position_date_time:
    type: string
    format: date-time
    description: 'Earliest date when the track (by isrc) was firstly added to the playlist. Timestamp ideantifying when the data was updated in the data storage on that day.'
  earliest_position:
    type: integer
    example: 10
    description: 'The earliest position of a track within a playlist'
  last_added_date_time:
    type: string
    format: date-time
    description: >-
      Track added_date is equal to the date when the track (by isrc) was
      added to the playlist after the last removing (or firstly if there was no removing).
      Lifetime metric. Timestamp identifying when the data was updated in the data storage on that day
  last_date_change_14_days:
    $ref: '../properties/last_date_change_14_days.yaml'
  current:
    type: integer
    example: 15
    description: 'Current position of the track (actual from dsp) in the current tracklist By ISRC, exclude duplicates'
  is_top_track_for_isrc:
    type: boolean
    nullable: true
    description: 'Identifies if current track position has a highest position among ISRC. Makes sense when ISRC has several tracks in the playlist to identify the top track'
  previous_position_change_14_days:
    type: integer
    example: 2
    description: 'Track position that is not equal to the current_position from previous. Withing 14 days period. If the position was not changed in last 14 days, should be null'
  previous_position_date_time:
    type: string
    format: date-time
    description: 'The date time when the track position changed'
  trend_change_14_days:
    type: integer
    example: 1
    description: 'Current highest position - previous position if previous position is defined, otherwise trend = null'
  num_days_on:
    $ref: '../properties/num_days_on.yaml'
  num_tracks:
    $ref: '../properties/num_tracks.yaml'
  streaming_info:
    $ref: './StreamingInfoByCountry.yaml'