warframe-worldstate-parser
    Preparing search index...

    Represents a daily deal

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • data: RawDailyDeal

        The deal data

      • deps: default = ...

        The dependencies object

        Dependency Object

        • Optionalcharacter?: string

          Character name for traders

        • OptionalkuvaData?: KuvaLogEntry[]

          Kuva data for parsing

        • locale: Locale

          Locale to use for translations

        • Optionallogger?: { debug: (message: string) => void }

          Generic logger to use if needed

        • OptionalsentientData?: { end: number; start: number }

          Sentint Data for parsing

        • OptionalsortieData?: SortieData

          Sortie data for parsing

      Returns default

    Properties

    activation?: Date

    The date and time at which the WorldstateObject started

    discount: number

    Percent discount

    expiry?: Date

    The date and time at which the WorldstateObject ends

    id: string

    Unique identifier for this deal built from the end time and item

    item: string

    The item that is being offered in the sale

    originalPrice: number

    The item's original price

    salePrice: number

    The item's discounted price

    sold: number

    The number of items that have already been sold

    total: number

    The number of available items on sale

    uniqueName: string

    The uniqueName for the item on sale

    Accessors

    • get active(): boolean

      Whether the void trader is active (at time of object creation)

      Returns boolean

    • get endString(): undefined | string

      Time delta string from now to the end

      Returns undefined | string

    • get eta(): string

      Get a string indicating how much time is left before the deal expires

      Returns string

    • get startString(): undefined | string

      A string indicating how long it will take for the trader to arrive (at time of object creation)

      Returns undefined | string