local _, addon = ...
local API = addon.API;


do  --Item Upgrade Track
    local ItemUpgradeConstant = {
        BaseCurrencyID = 3008,      --Flightstones
        CatalystCurrencyID = 3269;  --Item conversion   /dump ItemInteractionFrame.currencyTypeId
        DelveWeeklyStashCurrencyID = 3290,
        RadiantEchoItemID = 246771,

        Crests = {
            --Universal Upgrade System (Crests)
            --convert to string for hybrid process
            --CategoryID ~= 142
            --From high tier to low

            --11.2.0
            3290,   --Gilded    (M, M7+)
            3288,   --Runed     (H, M2)
            3286,   --Carved    (N, M0)
            3284,   --Weathered (LFR, H)
        },

        CrestSources = {
            (PLAYER_DIFFICULTY6 or "Mythic") .. ", +7",
            (PLAYER_DIFFICULTY2 or "Heroic") .. ", +2",
            (PLAYER_DIFFICULTY1 or "Normal"),
            (PLAYER_DIFFICULTY3 or "Raid Finder"),
        };
    };


    addon.ItemUpgradeConstant = ItemUpgradeConstant;
end


do  --Weekly Caches (Meta quest rewards)
    local WeeklyRewardsConstant = {
        MajorChests = { --Change every season
            244842,     --Fabled Veteran's Cache
            244865,     --Pninnacle Cache
            245611,     --Wriggling Pinnacle Cache
        },

        MinorChests = {
            245280,     --Seasoned Khaz Algar Adventurer's Cache
            250763,     --Theater Troupe's Trove
            250764,     --Nanny's Surge Dividends
            250765,     --Awakened Mechanical Cache
            250766,     --Radiant Cache
            250767,     --The General's War Chest
            250768,     --The Vizier's Capital
            250769,     --The Weaver's Gratuity
        },

        CofferKeyFlags = {
            91175, 91176, 91177, 91178,
        },

        CofferKeyShardFlags = {
            84736, 84737, 84738, 84739,
        },

        DelvesGreatVaultItemLevel = {
            --Hardcode this because BLZ API is unreliable in 11.2.0
            668,
            671,
            675,
            678,
            681,

            688,
            691,
            694,    --Tier 8 Max
            694,
            694,

            694,
        },
    };


    addon.WeeklyRewardsConstant = WeeklyRewardsConstant;


    function API.GetDelvesGreatVaultItemLevel(tier)
        return WeeklyRewardsConstant.DelvesGreatVaultItemLevel[tier] or 0
    end
end