Trait Tsify

pub trait Tsify {
    type JsType: JsCast;

    const DECL: &'static str;
    const SERIALIZATION_CONFIG: SerializationConfig = _;

    // Provided methods
    fn into_js(&self) -> Result<Self::JsType, Error>
       where Self: Serialize { ... }
    fn from_js<T>(js: T) -> Result<Self, Error>
       where T: Into<JsValue>,
             Self: DeserializeOwned { ... }
}
Expand description

Tsify is a trait that allows you to convert a type to and from JavaScript. Can be implemented manually if you need to customize the serialization or deserialization.

Required Associated Constants§

const DECL: &'static str

Provided Associated Constants§

const SERIALIZATION_CONFIG: SerializationConfig = _

Required Associated Types§

Provided Methods§

fn into_js(&self) -> Result<Self::JsType, Error>
where Self: Serialize,

fn from_js<T>(js: T) -> Result<Self, Error>
where T: Into<JsValue>, Self: DeserializeOwned,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl Tsify for I18nString

§

const DECL: &'static str = "export type I18nString = { Key: string } | { Translated: string };"

§

const SERIALIZATION_CONFIG: SerializationConfig

§

type JsType = JsType

Implementors§

Source§

impl Tsify for AbilityCaseRollType

Source§

const DECL: &'static str = "/**\n * \u{422}\u{438}\u{43f} \u{43a}\u{440}\u{443}\u{442}\u{43a}\u{438} \u{433}\u{430}\u{447}\u{438} \u{441}\u{43f}\u{43e}\u{441}\u{43e}\u{431}\u{43d}\u{43e}\u{441}\u{442}\u{435}\u{439}.\n */\ndeclare namespace AbilityCaseRollType {\n export type Small = \"Small\";\n export type Big = \"Big\";\n}\n\n/**\n * \u{422}\u{438}\u{43f} \u{43a}\u{440}\u{443}\u{442}\u{43a}\u{438} \u{433}\u{430}\u{447}\u{438} \u{441}\u{43f}\u{43e}\u{441}\u{43e}\u{431}\u{43d}\u{43e}\u{441}\u{442}\u{435}\u{439}.\n */\nexport type AbilityCaseRollType = \"Small\" | \"Big\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for AbilityCastType

Source§

const DECL: &'static str = "declare namespace AbilityCastType {\n export type NoAnimation = \"NoAnimation\";\n export type Basic = \"Basic\";\n export type Spell = \"Spell\";\n}\n\nexport type AbilityCastType = \"NoAnimation\" | \"Basic\" | \"Spell\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for AbilityFightUiVisibility

Source§

const DECL: &'static str = "declare namespace AbilityFightUiVisibility {\n export type Slotted = \"Slotted\";\n export type Class = \"Class\";\n export type Hidden = \"Hidden\";\n}\n\nexport type AbilityFightUiVisibility = \"Slotted\" | \"Class\" | \"Hidden\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for AdPlacement

Source§

const DECL: &'static str = "declare namespace AdPlacement {\n export type ChestUpgrade = \"ChestUpgrade\";\n export type TalentUpgrade = \"TalentUpgrade\";\n export type AfkInstant = \"AfkInstant\";\n export type SkillGacha = \"SkillGacha\";\n export type PetGacha = \"PetGacha\";\n export type AfkBoost = \"AfkBoost\";\n export type DungeonRaid = \"DungeonRaid\";\n export type ArenaRefresh = \"ArenaRefresh\";\n export type DailyBooster = \"DailyBooster\";\n export type Bird = \"Bird\";\n}\n\nexport type AdPlacement = \"ChestUpgrade\" | \"TalentUpgrade\" | \"AfkInstant\" | \"SkillGacha\" | \"PetGacha\" | \"AfkBoost\" | \"DungeonRaid\" | \"ArenaRefresh\" | \"DailyBooster\" | \"Bird\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ArenaLeaderboardResponse

Source§

const DECL: &'static str = "export type ArenaLeaderboardResponse = { Ok: { league: League; leaderboard: RankingItem[]; character_ranking: RankingItem } } | { Error: { code: string; message: string } };"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ArenaMatchesHistoryResponse

Source§

const DECL: &'static str = "export type ArenaMatchesHistoryResponse = { Ok: { matches: Match[] } } | { Error: { code: string; message: string } };"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ArenaPvpPlayersResponse

Source§

const DECL: &'static str = "export type ArenaPvpPlayersResponse = { Ok: { opponents: MatchmakingOpponent[] } } | { Error: { code: string; message: string } };"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for BundleClaimMode

Source§

const DECL: &'static str = "declare namespace BundleClaimMode {\n export type Sequential = \"Sequential\";\n export type AllAtOnce = \"AllAtOnce\";\n}\n\nexport type BundleClaimMode = \"Sequential\" | \"AllAtOnce\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for BundleElement

Source§

const DECL: &'static str = "export type BundleElement = { Currencies: CurrencyUnit[] } | { Abilities: BundleAbility[] } | { Items: Item[] };"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for BundleStepGeneric

Source§

const DECL: &'static str = "export type BundleStepGeneric = { Sequential: BundleStep } | { AllAtOnce: { bundle_id: BundleId; elements: BundleElement[]; has_pop_up: boolean } };"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for BundleStepType

Source§

const DECL: &'static str = "declare namespace BundleStepType {\n export type Currency = \"Currency\";\n export type Ability = \"Ability\";\n export type Item = \"Item\";\n}\n\nexport type BundleStepType = \"Currency\" | \"Ability\" | \"Item\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for GetCharacterStateResponse

Source§

const DECL: &'static str = "export type GetCharacterStateResponse = { Ok: { character_state: CharacterState } } | { Error: { code: string; message: string } };"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for FightClass

Source§

const DECL: &'static str = "export type FightClass = \"Mage\" | \"Warrior\" | \"Archer\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ChatType

Source§

const DECL: &'static str = "export type ChatType = \"Global\" | \"Private\" | \"GlobalSystem\" | \"PersonalSystem\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ClassTier

Source§

const DECL: &'static str = "declare namespace ClassTier {\n export type S = \"S\";\n export type A = \"A\";\n export type B = \"B\";\n export type C = \"C\";\n}\n\nexport type ClassTier = \"S\" | \"A\" | \"B\" | \"C\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for CurrencyConsumer

Source§

const DECL: &'static str = "export type CurrencyConsumer = \"AbilityCaseOpen\" | \"AbilityCaseSlotUpgrade\" | \"ItemCaseOpen\" | \"GiftSend\" | \"DungeonRaid\" | \"DungeonFightEnd\" | \"ClassChange\" | \"OfferBuy\" | \"ItemCaseUpgrade\" | \"CaseUpgradeSpeedUp\" | \"CaseUpgradeSkip\" | \"ArenaFight\" | \"ArenaMatchmakingRefresh\" | \"ArenaTicketBuy\" | \"SkinBuy\" | \"AfkInstantReward\" | \"StatueRoll\" | \"TalentUpgrade\" | \"TalentUpgradeSkip\" | \"PetCaseOpen\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for CurrencySource

Source§

const DECL: &'static str = "export type CurrencySource = \"EntityDeath\" | \"ItemSell\" | \"AutoItemSell\" | \"QuestClaim\" | \"QuestsTrackReward\" | \"VassalTaskCompletion\" | \"ReferralLvlUp\" | \"ReferralDailyReward\" | \"GiftClaim\" | \"ArenaTicketBuy\" | \"ClaimVassalReward\" | \"ClaimSuzerainReward\" | \"ArenaMatchmakingRefresh\" | \"GachaLevelUp\" | \"PetCaseLevelUp\" | \"BundleClaim\" | \"AdReward\" | \"Cheat\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for RewardType

Source§

const DECL: &'static str = "export type RewardType = { Currency: CurrencyId } | { Ability: AbilityId } | { Item: ItemTemplateId };"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for EntityTeam

Source§

const DECL: &'static str = "export type EntityTeam = \"Ally\" | \"Enemy\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for EntityType

Source§

const DECL: &'static str = "export type EntityType = { PVEEntity: { entity_template_id: EntityTemplateId } } | \"PVPEntity\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for FightType

Source§

const DECL: &'static str = "export type FightType = \"CampaignFight\" | \"CampaignBossFight\" | \"ArenaPVP\" | \"VassalPVP\" | \"SingleFight\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for GiftType

Source§

const DECL: &'static str = "declare namespace GiftType {\n export type VassalGift = \"VassalGift\";\n export type FollowerGift = \"FollowerGift\";\n export type GenericGift = \"GenericGift\";\n}\n\nexport type GiftType = \"VassalGift\" | \"FollowerGift\" | \"GenericGift\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ItemType

Source§

const DECL: &'static str = "declare namespace ItemType {\n export type Weapon = \"Weapon\";\n export type Torso = \"Torso\";\n export type Head = \"Head\";\n export type Legs = \"Legs\";\n export type Shoulders = \"Shoulders\";\n export type Boots = \"Boots\";\n export type Gloves = \"Gloves\";\n export type Waist = \"Waist\";\n export type Neck = \"Neck\";\n export type Ring = \"Ring\";\n}\n\nexport type ItemType = \"Weapon\" | \"Torso\" | \"Head\" | \"Legs\" | \"Shoulders\" | \"Boots\" | \"Gloves\" | \"Waist\" | \"Neck\" | \"Ring\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for MailRepeatType

Source§

const DECL: &'static str = "declare namespace MailRepeatType {\n export type Daily = \"Daily\";\n export type Weekly = \"Weekly\";\n export type Monthly = \"Monthly\";\n export type Yearly = \"Yearly\";\n}\n\nexport type MailRepeatType = \"Daily\" | \"Weekly\" | \"Monthly\" | \"Yearly\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for PaymentType

Source§

const DECL: &'static str = "export type PaymentType = \"RealMoney\" | { InGameCurrency: CurrencyUnit[] } | \"Ad\" | \"Free\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ShopTab

Source§

const DECL: &'static str = "export type ShopTab = \"DailyDeals\" | \"Diamonds\" | \"Resources\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for OpponentState

Source§

const DECL: &'static str = "export type OpponentState = { Human: OpponentStateHuman } | { Bot: OpponentStateBot };"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for PetCaseRollType

Source§

const DECL: &'static str = "/**\n * \u{422}\u{438}\u{43f} \u{43a}\u{440}\u{443}\u{442}\u{43a}\u{438} \u{433}\u{430}\u{447}\u{438} \u{43f}\u{435}\u{442}\u{43e}\u{432}.\n */\ndeclare namespace PetCaseRollType {\n export type Small = \"Small\";\n export type Big = \"Big\";\n}\n\n/**\n * \u{422}\u{438}\u{43f} \u{43a}\u{440}\u{443}\u{442}\u{43a}\u{438} \u{433}\u{430}\u{447}\u{438} \u{43f}\u{435}\u{442}\u{43e}\u{432}.\n */\nexport type PetCaseRollType = \"Small\" | \"Big\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for PetSlotType

Source§

const DECL: &'static str = "declare namespace PetSlotType {\n export type Leader = \"Leader\";\n export type Support = \"Support\";\n}\n\nexport type PetSlotType = \"Leader\" | \"Support\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for VassalPvpPlayersFindResponse

Source§

const DECL: &'static str = "export type VassalPvpPlayersFindResponse = { Ok: { opponents: VassalPvpOpponent[] } } | { Error: { code: string; message: string } };"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for QuestGroupType

Source§

const DECL: &'static str = "export type QuestGroupType = \"Daily\" | \"Weekly\" | \"Lifetime\" | \"LoopTask\" | \"PatronDaily\" | \"PatronLifetime\" | \"Hidden\" | \"Achievement\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for RatingLeaderboardResponse

Source§

const DECL: &'static str = "export type RatingLeaderboardResponse = { Ok: { leaderboard: RatingRankingItem[]; character_ranking: RatingRankingItem } } | { Error: { code: string; message: string } };"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for RatingType

Source§

const DECL: &'static str = "export type RatingType = \"Arena\" | \"Power\" | \"PvE\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for GetReferralsResponse

Source§

const DECL: &'static str = "export type GetReferralsResponse = { Ok: { patron_level: number; patron_experience: number; referrals_with_exp: ReferralWithExp[] } } | { Error: { code: string; message: string } };"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ScreenType

Source§

const DECL: &'static str = "export type ScreenType = \"Main\" | \"AbilityGacha\" | \"ArenaRating\" | \"ArenaChooseOpponent\" | \"Ratings\" | \"Mail\" | \"Skills\" | \"Dungeon\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for SkinType

Source§

const DECL: &'static str = "declare namespace SkinType {\n export type Face = \"Face\";\n export type Armor = \"Armor\";\n export type Glove = \"Glove\";\n export type Hairstyle = \"Hairstyle\";\n export type Shoulder = \"Shoulder\";\n export type Weapon = \"Weapon\";\n export type HairColor = \"HairColor\";\n export type SkinColor = \"SkinColor\";\n export type Helmet = \"Helmet\";\n}\n\nexport type SkinType = \"Face\" | \"Armor\" | \"Glove\" | \"Hairstyle\" | \"Shoulder\" | \"Weapon\" | \"HairColor\" | \"SkinColor\" | \"Helmet\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for TalentBackendModifier

Source§

const DECL: &'static str = "/**\n * \u{41c}\u{43e}\u{434}\u{438}\u{444}\u{438}\u{43a}\u{430}\u{442}\u{43e}\u{440}\u{44b}, \u{43a}\u{43e}\u{442}\u{43e}\u{440}\u{44b}\u{435} \u{431}\u{44d}\u{43a}\u{435}\u{43d}\u{434} \u{43f}\u{440}\u{438}\u{43c}\u{435}\u{43d}\u{44f}\u{435}\u{442} \u{44f}\u{432}\u{43d}\u{43e} \u{432} \u{441}\u{432}\u{43e}\u{435}\u{439} \u{43b}\u{43e}\u{433}\u{438}\u{43a}\u{435}.\n * \u{41a}\u{430}\u{436}\u{434}\u{44b}\u{439} \u{432}\u{430}\u{440}\u{438}\u{430}\u{43d}\u{442} \u{441}\u{43e}\u{43e}\u{442}\u{432}\u{435}\u{442}\u{441}\u{442}\u{432}\u{443}\u{435}\u{442} \u{43a}\u{43e}\u{43d}\u{43a}\u{440}\u{435}\u{442}\u{43d}\u{43e}\u{43c}\u{443} \u{43c}\u{435}\u{441}\u{442}\u{443} \u{432} \u{431}\u{44d}\u{43a}\u{435}\u{43d}\u{434}-\u{43a}\u{43e}\u{434}\u{435}.\n */\nexport type TalentBackendModifier = { TalentResearchSpeedPercent: number };"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for CharacterResetType

Source§

const DECL: &'static str = "declare namespace CharacterResetType {\n export type DailyQuests = \"DailyQuests\";\n export type WeeklyQuests = \"WeeklyQuests\";\n export type DungeonKeys = \"DungeonKeys\";\n export type DailyCurrencyReset = \"DailyCurrencyReset\";\n export type DailyOffers = \"DailyOffers\";\n export type InstantRewardGems = \"InstantRewardGems\";\n}\n\nexport type CharacterResetType = \"DailyQuests\" | \"WeeklyQuests\" | \"DungeonKeys\" | \"DailyCurrencyReset\" | \"DailyOffers\" | \"InstantRewardGems\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for VassalTaskStatus

Source§

const DECL: &'static str = "export type VassalTaskStatus = \"NotStarted\" | \"StartedGood\" | \"StartedBad\" | \"ChangedBadToGood\" | \"FinishedGood\" | \"FinishedBad\";"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Ability

Source§

const DECL: &'static str = "export interface Ability {\n template_id: AbilityId;\n level: number;\n shards_amount: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for AbilityDrop

Source§

const DECL: &'static str = "export interface AbilityDrop {\n template: AbilityTemplate;\n is_new: boolean;\n evolved_from: AbilityTemplate | null;\n is_checkpoint: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for AbilityRarity

Source§

const DECL: &'static str = "export interface AbilityRarity {\n id: AbilityRarityId;\n name: I18nString;\n order: number;\n color: string;\n bg_color: string;\n icon_url: string;\n icon_path: string;\n square_icon_path: string;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for AbilityTemplate

Source§

const DECL: &'static str = "export interface AbilityTemplate {\n id: AbilityId;\n is_fight_ui_visible: boolean;\n fight_ui_visibility: AbilityFightUiVisibility;\n name: I18nString;\n start_script: string;\n script: string;\n icon_url: string;\n icon_path: string;\n cooldown: number;\n is_gacha_ability: boolean;\n rarity_id: AbilityRarityId;\n description: I18nString;\n description_values_script: string | null;\n vfx_object_path: string;\n cast_type: AbilityCastType;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ActiveAbility

Source§

const DECL: &'static str = "export interface ActiveAbility {\n ability: Ability;\n deadline: DateTime<Utc> | null;\n slot_id: AbilitySlotId | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for EquippedAbilities

Source§

const DECL: &'static str = "export interface EquippedAbilities {\n slotted: Record<AbilitySlotId, Ability>;\n unslotted: Ability[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for UpgradedAbilitiesMap

Source§

const DECL: &'static str = "export type UpgradedAbilitiesMap = Record<AbilityId, [number, number]>;"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for AbilityPresetsSettings

Source§

const DECL: &'static str = "export interface AbilityPresetsSettings {\n max_presets_count: number;\n default_preset_name: I18nString;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for AdUsageData

Source§

const DECL: &'static str = "export interface AdUsageData {\n daily_count: number;\n last_reset_at: DateTime<Utc>;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Arena

Source§

const DECL: &'static str = "export interface Arena {\n matchmaking_opponents: MatchmakingOpponent[];\n is_free_refresh_available: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ArenaLeaderboardRequest

Source§

const DECL: &'static str = "export interface ArenaLeaderboardRequest {\n character_id: Uuid;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ArenaMatchesHistoryRequest

Source§

const DECL: &'static str = "export interface ArenaMatchesHistoryRequest {\n character_id: Uuid;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ArenaPvpPlayersRequest

Source§

const DECL: &'static str = "export interface ArenaPvpPlayersRequest {\n character_id: Uuid;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ArenaStars

Source§

const DECL: &'static str = "export interface ArenaStars {\n arena_stars_daily_claims: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ArenaTickets

Source§

const DECL: &'static str = "export interface ArenaTickets {\n current_count: number;\n max_count: number;\n last_restore_at: DateTime<Utc>;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for League

Source§

const DECL: &'static str = "export interface League {\n id: Uuid;\n name: I18nString;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Match

Source§

const DECL: &'static str = "export interface Match {\n id: ArenaMatchId;\n opponent: OpponentPreview;\n is_win: boolean;\n rating_change: number;\n duration_secs: number;\n is_rematch_available: boolean;\n created_at: DateTime<Utc>;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for RankingItem

Source§

const DECL: &'static str = "export interface RankingItem {\n user: User;\n character: Character;\n place: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for AutoChest

Source§

const DECL: &'static str = "export interface AutoChest {\n active_filter: AutoChestFilter | null;\n filters: AutoChestFilter[];\n power_compare_enabled: boolean;\n batch_size: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for AutoChestFilter

Source§

const DECL: &'static str = "export interface AutoChestFilter {\n id: AutoChestFilterId;\n name: string;\n rarity_id: ItemRarityId | null;\n guaranteed_attribute_enabled: boolean;\n guaranteed_attribute_id: AttributeId | null;\n additional_attribute_enabled: boolean;\n additional_attribute_ids: AttributeId[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Bot

Source§

const DECL: &'static str = "export interface Bot {\n id: BotId;\n character_id: CharacterId;\n username: string;\n photo_url: string;\n arena_rating: number;\n power: number;\n class_id: ClassId;\n level: number;\n equipped_abilities: EquippedAbilities;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ActiveBuff

Source§

const DECL: &'static str = "export interface ActiveBuff {\n template_id: BuffTemplateId;\n expires_at: DateTime<Utc>;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for BundleAbility

Source§

const DECL: &'static str = "export interface BundleAbility {\n template: AbilityTemplate;\n shards_amount: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for BundleRaw

Source§

const DECL: &'static str = "export interface BundleRaw {\n id: BundleId;\n steps: BundleRawStep[];\n claim_mode?: BundleClaimMode;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for BundleRawStep

Source§

const DECL: &'static str = "export interface BundleRawStep {\n item_type: BundleStepType;\n script: string;\n has_pop_up: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for BundleStep

Source§

const DECL: &'static str = "export interface BundleStep {\n bundle_id: BundleId;\n element: BundleElement;\n has_pop_up: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for CharacterSettings

Source§

const DECL: &'static str = "export interface CharacterSettings {\n auto_sell_enabled: boolean;\n dont_show_case_upgrade_popup_today: boolean;\n gear_override_enabled_item_types: ItemType[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for CharacterState

Source§

const DECL: &'static str = "export interface CharacterState {\n user: User;\n character: Character;\n currencies: CurrencyUnit[];\n inventory: Item[];\n all_abilities: Ability[];\n equipped_abilities: EquippedAbilities;\n all_pets: Pet[];\n equipped_pets: EquippedPets;\n suzerain: Suzerain | null;\n vassals: Vassal[];\n vassal_tasks: VassalTask[];\n player_attributes: EntityAttributes;\n bundle_step_generic: BundleStepGeneric[];\n character_settings: CharacterSettings;\n arena_stars: ArenaStars;\n character_skins: CharacterSkins;\n talent_levels: TalentLevelsMap;\n statue_state: StatueState;\n ad_usage: AdUsageMap;\n active_buffs: ActiveBuff[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for FullClearCharacterRequest

Source§

const DECL: &'static str = "export interface FullClearCharacterRequest {\n username: string;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for GetCharacterStateRequest

Source§

const DECL: &'static str = "export interface GetCharacterStateRequest {\n character_id: Uuid;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Character

Source§

const DECL: &'static str = "export interface Character {\n id: CharacterId;\n user_id: Uuid;\n created_at: DateTime<Utc>;\n class: ClassId;\n character_level: number;\n character_experience: number;\n patron_level: number;\n patron_experience: number;\n cases: number;\n current_chapter_level: number;\n current_fight_number: number;\n max_vassal_slots_count: number;\n custom_values: CustomValuesMap;\n item_case_level: number;\n /**\n * \u{422}\u{435}\u{43a}\u{443}\u{449}\u{438}\u{439} \u{443}\u{440}\u{43e}\u{432}\u{435}\u{43d}\u{44c} \u{433}\u{430}\u{447}\u{438} \u{441}\u{43f}\u{43e}\u{441}\u{43e}\u{431}\u{43d}\u{43e}\u{441}\u{442}\u{435}\u{439}.\n */\n ability_case_level: number;\n /**\n * \u{41d}\u{430}\u{43a}\u{43e}\u{43f}\u{43b}\u{435}\u{43d}\u{43d}\u{44b}\u{435} \u{43e}\u{447}\u{43a}\u{438} \u{43f}\u{440}\u{43e}\u{433}\u{440}\u{435}\u{441}\u{441}\u{430} \u{433}\u{430}\u{447}\u{438} \u{441}\u{43f}\u{43e}\u{441}\u{43e}\u{431}\u{43d}\u{43e}\u{441}\u{442}\u{435}\u{439}.\n * \u{418}\u{441}\u{442}\u{43e}\u{440}\u{438}\u{447}\u{435}\u{441}\u{43a}\u{43e}\u{435} \u{438}\u{43c}\u{44f} \u{43f}\u{43e}\u{43b}\u{44f} \u{441}\u{43e}\u{445}\u{440}\u{430}\u{43d}\u{435}\u{43d}\u{43e} \u{434}\u{43b}\u{44f} \u{43e}\u{431}\u{440}\u{430}\u{442}\u{43d}\u{43e}\u{439} \u{441}\u{43e}\u{432}\u{43c}\u{435}\u{441}\u{442}\u{438}\u{43c}\u{43e}\u{441}\u{442}\u{438}.\n */\n opened_ability_cases: number;\n /**\n * \u{412}\u{44b}\u{431}\u{440}\u{430}\u{43d}\u{43d}\u{44b}\u{435} \u{448}\u{430}\u{431}\u{43b}\u{43e}\u{43d}\u{44b} \u{441}\u{43f}\u{43e}\u{441}\u{43e}\u{431}\u{43d}\u{43e}\u{441}\u{442}\u{435}\u{439} \u{434}\u{43b}\u{44f} \u{432}\u{438}\u{448}\u{43b}\u{438}\u{441}\u{442}\u{430} \u{433}\u{430}\u{447}\u{438}.\n */\n ability_gacha_wishlist: AbilityId[];\n /**\n * \u{423}\u{440}\u{43e}\u{432}\u{43d}\u{438} \u{441}\u{43b}\u{43e}\u{442}\u{43e}\u{432} \u{441}\u{43f}\u{43e}\u{441}\u{43e}\u{431}\u{43d}\u{43e}\u{441}\u{442}\u{435}\u{439} \u{43f}\u{43e} \u{438}\u{43d}\u{434}\u{435}\u{43a}\u{441}\u{430}\u{43c} `slot_id`.\n */\n ability_slot_levels: number[];\n item_case_upgrade_finish_at: DateTime<Utc> | null;\n power: number;\n fight_class: FightClass | null;\n arena_rating: number;\n arena_stars: number;\n arena_last_pvp_at: DateTime<Utc> | null;\n last_boss_fight_won: boolean;\n auto_chest_enabled: boolean;\n last_filter_used_id: AutoChestFilterId | null;\n last_item_case_speedup_at: DateTime<Utc> | null;\n last_afk_reward_claimed_at: DateTime<Utc>;\n afk_reward_seed: number;\n last_gacha_ad_roll_at: DateTime<Utc> | null;\n /**\n * Number of chest upgrade speedups used today via watching an ad.\n */\n speedup_ad_daily_count: number;\n active_loop_task_id: Uuid | null;\n purchases_banned: boolean;\n completed_tutorials: number[];\n /**\n * \u{423}\u{440}\u{43e}\u{432}\u{43d}\u{438} \u{441}\u{43b}\u{43e}\u{442}\u{43e}\u{432} \u{43f}\u{435}\u{442}\u{43e}\u{432} \u{43f}\u{43e} \u{438}\u{43d}\u{434}\u{435}\u{43a}\u{441}\u{430}\u{43c} `slot_id`.\n */\n pet_slot_levels: number[];\n /**\n * \u{422}\u{435}\u{43a}\u{443}\u{449}\u{438}\u{439} \u{443}\u{440}\u{43e}\u{432}\u{435}\u{43d}\u{44c} \u{433}\u{430}\u{447}\u{438} \u{43f}\u{435}\u{442}\u{43e}\u{432}.\n */\n pet_case_level: number;\n /**\n * \u{41d}\u{430}\u{43a}\u{43e}\u{43f}\u{43b}\u{435}\u{43d}\u{43d}\u{44b}\u{435} \u{43e}\u{447}\u{43a}\u{438} \u{43f}\u{440}\u{43e}\u{433}\u{440}\u{435}\u{441}\u{441}\u{430} \u{433}\u{430}\u{447}\u{438} \u{43f}\u{435}\u{442}\u{43e}\u{432}.\n */\n opened_pet_cases: number;\n /**\n * \u{412}\u{44b}\u{431}\u{440}\u{430}\u{43d}\u{43d}\u{44b}\u{435} \u{448}\u{430}\u{431}\u{43b}\u{43e}\u{43d}\u{44b} \u{43f}\u{435}\u{442}\u{43e}\u{432} \u{434}\u{43b}\u{44f} \u{432}\u{438}\u{448}\u{43b}\u{438}\u{441}\u{442}\u{430} \u{433}\u{430}\u{447}\u{438}.\n */\n pet_gacha_wishlist: PetId[];\n /**\n * ID \u{43f}\u{435}\u{440}\u{441}\u{43e}\u{43d}\u{430}\u{436}\u{430}, \u{434}\u{43e}\u{431}\u{430}\u{432}\u{43b}\u{435}\u{43d}\u{43d}\u{43e}\u{433}\u{43e} \u{432} \u{43f}\u{430}\u{442}\u{438}.\n */\n party_character_id: Uuid | null;\n /**\n * ID \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{430}, \u{43a}\u{43e}\u{442}\u{43e}\u{440}\u{44b}\u{439} \u{441}\u{435}\u{439}\u{447}\u{430}\u{441} \u{438}\u{437}\u{443}\u{447}\u{430}\u{435}\u{442}\u{441}\u{44f} (\u{435}\u{441}\u{43b}\u{438} \u{435}\u{441}\u{442}\u{44c}).\n */\n talent_upgrading_id: TalentId | null;\n /**\n * \u{412}\u{440}\u{435}\u{43c}\u{44f} \u{437}\u{430}\u{432}\u{435}\u{440}\u{448}\u{435}\u{43d}\u{438}\u{44f} \u{438}\u{437}\u{443}\u{447}\u{435}\u{43d}\u{438}\u{44f} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{430}.\n */\n talent_upgrade_finish_at: DateTime<Utc> | null;\n /**\n * \u{412}\u{440}\u{435}\u{43c}\u{44f} \u{43f}\u{43e}\u{441}\u{43b}\u{435}\u{434}\u{43d}\u{435}\u{433}\u{43e} \u{430}\u{43a}\u{442}\u{438}\u{432}\u{43d}\u{43e}\u{433}\u{43e} \u{441}\u{43e}\u{435}\u{434}\u{438}\u{43d}\u{435}\u{43d}\u{438}\u{44f} \u{438}\u{433}\u{440}\u{43e}\u{43a}\u{430} (\u{43e}\u{431}\u{43d}\u{43e}\u{432}\u{43b}\u{44f}\u{435}\u{442}\u{441}\u{44f} \u{43a}\u{430}\u{436}\u{434}\u{44b}\u{439} \u{442}\u{438}\u{43a}).\n */\n last_online_at: DateTime<Utc>;\n /**\n * \u{41a}\u{43e}\u{43b}\u{438}\u{447}\u{435}\u{441}\u{442}\u{432}\u{43e} \u{43d}\u{430}\u{436}\u{430}\u{442}\u{438}\u{439} \u{43d}\u{430} \u{43c}\u{433}\u{43d}\u{43e}\u{432}\u{435}\u{43d}\u{43d}\u{443}\u{44e} \u{43d}\u{430}\u{433}\u{440}\u{430}\u{434}\u{443} AFK \u{437}\u{430} \u{433}\u{435}\u{43c}\u{44b} \u{437}\u{430} \u{441}\u{435}\u{433}\u{43e}\u{434}\u{43d}\u{44f}.\n */\n instant_reward_gems_press_count: number;\n /**\n * \u{41d}\u{430}\u{43a}\u{43e}\u{43f}\u{43b}\u{435}\u{43d}\u{43d}\u{44b}\u{435} \u{441}\u{442}\u{430}\u{43a}\u{438} \u{431}\u{443}\u{441}\u{442}\u{430} AFK-\u{43d}\u{430}\u{433}\u{440}\u{430}\u{434}\u{44b} \u{43e}\u{442} \u{43f}\u{440}\u{43e}\u{441}\u{43c}\u{43e}\u{442}\u{440}\u{430} \u{440}\u{435}\u{43a}\u{43b}\u{430}\u{43c}\u{44b}.\n * \u{41f}\u{440}\u{438}\u{43c}\u{435}\u{43d}\u{44f}\u{44e}\u{442}\u{441}\u{44f} \u{43a} \u{441}\u{43b}\u{435}\u{434}\u{443}\u{44e}\u{449}\u{435}\u{43c}\u{443} \u{43a}\u{43b}\u{435}\u{439}\u{43c}\u{443} AFK-\u{43d}\u{430}\u{433}\u{440}\u{430}\u{434}\u{44b} \u{438} \u{441}\u{431}\u{440}\u{430}\u{441}\u{44b}\u{432}\u{430}\u{44e}\u{442}\u{441}\u{44f}.\n */\n afk_boost_pending_stacks: number;\n /**\n * \u{412}\u{440}\u{435}\u{43c}\u{44f}, \u{434}\u{43e} \u{43a}\u{43e}\u{442}\u{43e}\u{440}\u{43e}\u{433}\u{43e} \u{43d}\u{435}\u{43b}\u{44c}\u{437}\u{44f} \u{43f}\u{43e}\u{43a}\u{430}\u{437}\u{44b}\u{432}\u{430}\u{442}\u{44c} \u{441}\u{43b}\u{435}\u{434}\u{443}\u{44e}\u{449}\u{443}\u{44e} \u{43f}\u{442}\u{438}\u{446}\u{443}.\n * \u{41a}\u{43e}\u{440}\u{43e}\u{442}\u{43a}\u{438}\u{439} \u{43a}\u{443}\u{43b}\u{434}\u{430}\u{443}\u{43d} \u{443}\u{441}\u{442}\u{430}\u{43d}\u{430}\u{432}\u{43b}\u{438}\u{432}\u{430}\u{435}\u{442}\u{441}\u{44f} \u{43f}\u{440}\u{438} \u{44d}\u{43c}\u{438}\u{442}\u{435} `ShowBird` \u{441}\u{435}\u{440}\u{432}\u{435}\u{440}\u{43e}\u{43c},\n * \u{43f}\u{43e}\u{43b}\u{43d}\u{44b}\u{439} \u{2014} \u{43f}\u{440}\u{438} \u{43f}\u{43e}\u{434}\u{442}\u{432}\u{435}\u{440}\u{436}\u{434}\u{435}\u{43d}\u{438}\u{438} \u{43f}\u{43e}\u{43a}\u{430}\u{437}\u{430} \u{43a}\u{43b}\u{438}\u{435}\u{43d}\u{442}\u{43e}\u{43c} (`BirdShown`).\n */\n bird_cooldown_until: DateTime<Utc> | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Chat

Source§

const DECL: &'static str = "export interface Chat {\n id: ChatId;\n chat_type: ChatType;\n messages: ChatMessage[];\n last_read_message_id: ChatMessageId | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ChatMessage

Source§

const DECL: &'static str = "export interface ChatMessage {\n id: ChatMessageId | null;\n sender_character_id: Uuid;\n recipient_character_id: Uuid | null;\n chat_id: ChatId | null;\n chat_type: ChatType;\n text: string;\n created_at: DateTime<Utc>;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ChatSettings

Source§

const DECL: &'static str = "export interface ChatSettings {\n chat_type: ChatType;\n user_allowed_to_write: boolean;\n get_notification_on_messages: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ReadMessage

Source§

const DECL: &'static str = "export interface ReadMessage {\n chat_id: ChatId;\n message_id: ChatMessageId;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ReportChatMessage

Source§

const DECL: &'static str = "export interface ReportChatMessage {\n message_id: ChatMessageId;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Class

Source§

const DECL: &'static str = "export interface Class {\n id: ClassId;\n name: I18nString;\n description: I18nString;\n icon_url: string;\n background_image_url: string;\n character_asset: string;\n cast_time: number;\n spine: string;\n basic_abilities: AbilityId[];\n starter_bundle_id: BundleId | null;\n attributes: ClassAttribute[];\n ability_rarity_id: AbilityRarityId;\n tier: ClassTier;\n transitions: ClassTransition[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ClassTransition

Source§

const DECL: &'static str = "export interface ClassTransition {\n class_id: Uuid;\n cost: CurrencyUnit[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Currency

Source§

const DECL: &'static str = "export interface Currency {\n id: CurrencyId;\n name: I18nString;\n description: I18nString;\n icon_url: string;\n icon_path: string;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for CurrencyUnit

Source§

const DECL: &'static str = "export interface CurrencyUnit {\n currency_id: CurrencyId;\n amount: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for DungeonRewards

Source§

const DECL: &'static str = "export interface DungeonRewards {\n difficulty_level: number;\n guaranteed_rewards: GuaranteedReward[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for DungeonTemplate

Source§

const DECL: &'static str = "export interface DungeonTemplate {\n id: DungeonTemplateId;\n title: I18nString;\n description: I18nString;\n key_currency_id: CurrencyId;\n max_difficulty_level: number;\n ui_banner_path: string;\n ui_background_path: string;\n tips: DungeonTip[];\n fight_template_ids: FightTemplateId[];\n rewards_by_difficulty: DungeonRewards[];\n main_reward: RewardType;\n chapter_level_unlock: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for DungeonTip

Source§

const DECL: &'static str = "export interface DungeonTip {\n difficulty_level: number;\n tip: I18nString;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Dungeons

Source§

const DECL: &'static str = "export interface Dungeons {\n completed_difficulties: Record<DungeonTemplateId, number>;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for GuaranteedReward

Source§

const DECL: &'static str = "export interface GuaranteedReward {\n reward_type: RewardType;\n count: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Effect

Source§

const DECL: &'static str = "export interface Effect {\n id: EffectId;\n name: I18nString;\n script: string;\n icon_url: string;\n icon: string;\n code: string;\n interval_ticks: number | null;\n required_attributes: string[] | null;\n events_subscribe: string[] | null;\n positive: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Coordinates

Source§

const DECL: &'static str = "export interface Coordinates {\n x: number;\n y: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Entity

Source§

const DECL: &'static str = "export interface Entity {\n id: EntityId;\n max_hp: number;\n hp: number;\n abilities: ActiveAbility[];\n actions_queue: EntityActionsQueue;\n attributes: EntityAttributes;\n effect_ids: EffectId[];\n coordinates: Coordinates;\n being_moved: boolean;\n width: number;\n rewards: EnemyReward[] | null;\n class_id: ClassId | null;\n team: EntityTeam;\n has_big_hp_bar: boolean;\n entity_template_id: EntityTemplateId | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for EntityAttributes

Source§

const DECL: &'static str = "export type EntityAttributes = Record<string, number>;"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ActiveDungeon

Source§

const DECL: &'static str = "export interface ActiveDungeon {\n id: DungeonTemplateId;\n difficulty: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ActiveFight

Source§

const DECL: &'static str = "export interface ActiveFight {\n id: Uuid;\n fight_id: FightTemplateId;\n current_wave: number;\n player_id: EntityId;\n party_player_id: EntityId | null;\n entities: Entity[];\n fight_stopped: boolean;\n fight_ended: boolean;\n max_duration_ticks: number;\n dungeon: ActiveDungeon | null;\n paused: boolean;\n pet_combat_state: ActivePetAbility | null;\n leader_pet_template_id: PetId | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ActivePetAbility

Source§

const DECL: &'static str = "export interface ActivePetAbility {\n pet_template_id: PetId;\n ability_id: AbilityId;\n charge: number;\n max_charge: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for FightEntity

Source§

const DECL: &'static str = "export interface FightEntity {\n entity_type: EntityType;\n position: Coordinates;\n has_big_hp_bar: boolean;\n team: EntityTeam;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for FightTemplate

Source§

const DECL: &'static str = "export interface FightTemplate {\n id: FightTemplateId;\n title: I18nString;\n power: number | null;\n fight_entities: FightEntity[];\n max_duration_ticks: number;\n target_width_cells: number;\n starting_fx: string;\n fight_type: FightType;\n waves_amount: number;\n prepare_fight_script: string;\n start_script: string;\n background: string;\n start_fight_delay_ticks: number | null;\n prepare_fight_win_duration_ticks: number | null;\n prepare_fight_lose_duration_ticks: number | null;\n end_fight_delay_ticks: number | null;\n bundle_reward_id: BundleId | null;\n stop_on_win: boolean;\n stop_on_lose: boolean;\n show_vs_screen: boolean;\n show_stages: boolean | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for AbilitySlotsLevel

Source§

const DECL: &'static str = "export interface AbilitySlotsLevel {\n from_chapter_level: number;\n ability_slots: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Chapter

Source§

const DECL: &'static str = "export interface Chapter {\n id: Uuid;\n level: number;\n fight_ids: FightTemplateId[];\n title: I18nString;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for CharacterLevel

Source§

const DECL: &'static str = "export interface CharacterLevel {\n level: number;\n required_experience: number;\n attributes: EntityAttribute[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for EnemyReward

Source§

const DECL: &'static str = "export interface EnemyReward {\n currency_id: CurrencyId;\n from: number;\n to: number;\n drop_chance: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for EntityAttribute

Source§

const DECL: &'static str = "export interface EntityAttribute {\n attribute_id: AttributeId;\n value: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for EntityTemplate

Source§

const DECL: &'static str = "export interface EntityTemplate {\n id: EntityTemplateId;\n name: string;\n spine: string;\n spine_skin_path: string;\n spine_scale: number;\n cast_time: number;\n attributes: EntityAttribute[];\n ability_ids: AbilityId[];\n width: number;\n rewards: EnemyReward[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for PetSlotsLevel

Source§

const DECL: &'static str = "export interface PetSlotsLevel {\n from_chapter_level: number;\n pet_slots: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for AutoChestGatings

Source§

const DECL: &'static str = "export interface AutoChestGatings {\n autochest_button_unlock_chapter: number;\n rarity_filter_unlock: number;\n guaranteed_stat_unlock: number;\n first_additional_stat_unlock: number;\n second_additional_stat_unlock: number;\n third_additional_stat_unlock: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for CastleGating

Source§

const DECL: &'static str = "export interface CastleGating {\n castle_button_unlock_chapter: number;\n talent_tree_unlock_chapter: number;\n statue_unlock_chapter: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Gatings

Source§

const DECL: &'static str = "export interface Gatings {\n navbar_navigation: NavBarNavigation;\n sidebar_navigation: SideBarNavigation;\n autochest: AutoChestGatings;\n afk_rewards_button_unlock_chapter: number;\n party_unlock_chapter: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for NavBarNavigation

Source§

const DECL: &'static str = "export interface NavBarNavigation {\n hero_button_unlock_chapter: number;\n skills_button_unlock_chapter: number;\n dungeon_button_unlock_chapter: number;\n summon_button_unlock_chapter: number;\n pets_button_unlock_chapter: number;\n castle: CastleGating;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for SideBarNavigation

Source§

const DECL: &'static str = "export interface SideBarNavigation {\n quests_button_unlock_chapter: number;\n arena_button_unlock_chapter: number;\n ratings_button_unlock_chapter: number;\n mail_button_unlock_chapter: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for BotsSettings

Source§

const DECL: &'static str = "export interface BotsSettings {\n bots_generation_script: string;\n username_generation_settings: UsernameGenerationSettings;\n photo_generation_settings: PhotoGenerationSettings;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for PhotoGenerationSettings

Source§

const DECL: &'static str = "export interface PhotoGenerationSettings {\n templates: string[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for UsernameGenerationSettings

Source§

const DECL: &'static str = "export interface UsernameGenerationSettings {\n prefixes: string[];\n suffixes: string[];\n template: string;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for UsersGeneratingSettings

Source§

const DECL: &'static str = "export interface UsersGeneratingSettings {\n username_generation_settings: UsernameGenerationSettings;\n photo_generation_settings: PhotoGenerationSettings;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Gift

Source§

const DECL: &'static str = "export interface Gift {\n id: GiftId;\n config_id: Uuid;\n sender_id: Uuid;\n receiver_id: Uuid;\n claimed: boolean;\n reward: CurrencyUnit[];\n loyalty: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for GiftTemplate

Source§

const DECL: &'static str = "export interface GiftTemplate {\n id: Uuid;\n gift_type: GiftType;\n price: CurrencyUnit[];\n reward: CurrencyUnit[];\n loyalty: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for InitParams

Source§

const DECL: &'static str = "export interface InitParams {\n user: User;\n character: Character;\n arena_tickets_unit: CurrencyUnit;\n locale: string;\n timezone: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for AutoChestSettings

Source§

const DECL: &'static str = "export interface AutoChestSettings {\n max_batch_size: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for InventoryLevel

Source§

const DECL: &'static str = "export interface InventoryLevel {\n from_chapter_level: number;\n item_types: ItemType[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ItemCaseRarityWeight

Source§

const DECL: &'static str = "export interface ItemCaseRarityWeight {\n rarity_id: ItemRarityId;\n weight: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ItemCasesSettingsByLevel

Source§

const DECL: &'static str = "export interface ItemCasesSettingsByLevel {\n level: number;\n required_chapter_level: number;\n upgrade_cost: CurrencyUnit[];\n upgrade_time_secs: number;\n rarity_weights: ItemCaseRarityWeight[];\n auto_chest_settings: AutoChestSettings;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Attribute

Source§

const DECL: &'static str = "export interface Attribute {\n id: AttributeId;\n name: I18nString;\n prefix: I18nString | null;\n suffix: I18nString | null;\n code: string;\n icon: string;\n icon_path: string;\n db_code: number;\n denominator: number | null;\n is_percent: boolean;\n calculation_script: string;\n order: number;\n is_ui_visible: boolean;\n description: I18nString;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Item

Source§

const DECL: &'static str = "export interface Item {\n id: Uuid;\n item_template_id: ItemTemplateId;\n item_type: ItemType;\n rarity: ItemRarity;\n level: number;\n name: I18nString;\n icon_url: string;\n icon_path: string;\n is_equipped: boolean;\n price: CurrencyUnit[];\n experience: number;\n attributes: ItemAttribute[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ItemAttribute

Source§

const DECL: &'static str = "export interface ItemAttribute {\n attr_id: AttributeId;\n value: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ItemAttributeSettings

Source§

const DECL: &'static str = "export interface ItemAttributeSettings {\n optional_attributes_count: number;\n optional_attributes_ids: AttributeId[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ItemRarity

Source§

const DECL: &'static str = "export interface ItemRarity {\n id: ItemRarityId;\n name: I18nString;\n text_color: string;\n rarity_icon: string;\n rarity_icon_path: string;\n ribbon_icon: string;\n ribbon_icon_path: string;\n order: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ItemTemplate

Source§

const DECL: &'static str = "export interface ItemTemplate {\n id: ItemTemplateId;\n name: I18nString;\n icon_url: string;\n icon_path: string;\n item_type: ItemType;\n rarity_id: ItemRarityId;\n attributes_settings: ItemAttributeSettings;\n skin_id: SkinId | null;\n exclude_from_mimic: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ArenaPlaceRestriction

Source§

const DECL: &'static str = "export interface ArenaPlaceRestriction {\n min_place: number | null;\n max_place: number | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ArenaRatingRestriction

Source§

const DECL: &'static str = "export interface ArenaRatingRestriction {\n min_rating: number | null;\n max_rating: number | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Mail

Source§

const DECL: &'static str = "export interface Mail {\n id: MailId;\n template_id: MailTemplateId;\n bundle: BundleStepGeneric | null;\n title: I18nString;\n message: I18nString;\n created_at: DateTime<Utc>;\n expires_at: DateTime<Utc>;\n is_read: boolean;\n is_claimed: boolean | null;\n is_deleted: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for MailRestrictions

Source§

const DECL: &'static str = "export interface MailRestrictions {\n arena_rating: ArenaRatingRestriction | null;\n power: PowerRestriction | null;\n arena_place: ArenaPlaceRestriction | null;\n pve_progress: PVEProgressRestriction | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for MailSendType

Source§

const DECL: &'static str = "export interface MailSendType {\n scheduled_at: string | null;\n repeat: MailRepeatType | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for MailTemplate

Source§

const DECL: &'static str = "export interface MailTemplate {\n id: MailTemplateId;\n title: I18nString;\n message: I18nString;\n bundle_id: BundleId | null;\n lifetime_secs: number;\n send_type: MailSendType;\n is_auto_send: boolean;\n restrictions: MailRestrictions | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for PVEProgressRestriction

Source§

const DECL: &'static str = "export interface PVEProgressRestriction {\n min_progress: number | null;\n max_progress: number | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for PowerRestriction

Source§

const DECL: &'static str = "export interface PowerRestriction {\n min_power: number | null;\n max_power: number | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for MatchmakingCache

Source§

const DECL: &'static str = "export interface MatchmakingCache {\n character_id: Uuid;\n opponent_ids: Uuid[];\n need_refresh: boolean;\n is_free_refresh_available: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Offer

Source§

const DECL: &'static str = "export interface Offer {\n id: OfferId;\n template_id: OfferTemplateId;\n created_at: DateTime<Utc>;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for OfferTemplate

Source§

const DECL: &'static str = "export interface OfferTemplate {\n id: OfferTemplateId;\n alias: string;\n title: I18nString;\n icon_path: string;\n reward_bundle_id: BundleId;\n payment_type: PaymentType;\n limit_of_buys: number | null;\n buys_reset_seconds: number | null;\n limit_buy_text: I18nString | null;\n events_subscribe: string[];\n trigger_script: string;\n shop_tab: ShopTab;\n enabled: boolean;\n flag_new: boolean;\n flag_sale: number | null;\n value: number | null;\n priority: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for OffersInfo

Source§

const DECL: &'static str = "export interface OffersInfo {\n active_offers: Offer[];\n offer_buy_counts: Record<OfferTemplateId, number>;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ShopTabConfig

Source§

const DECL: &'static str = "export interface ShopTabConfig {\n tab: ShopTab;\n name: I18nString;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for OpponentPreview

Source§

const DECL: &'static str = "export interface OpponentPreview {\n id: Uuid;\n username: string;\n photo_url: string;\n arena_rating: number;\n power: number;\n level: number;\n class_id: ClassId;\n is_bot: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for OpponentStateBot

Source§

const DECL: &'static str = "export interface OpponentStateBot {\n bot: Bot;\n inventory: Item[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for OpponentStateHuman

Source§

const DECL: &'static str = "export interface OpponentStateHuman {\n character_state: CharacterState;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for RatingCalculationData

Source§

const DECL: &'static str = "export interface RatingCalculationData {\n arena_rating: number;\n power: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for PartyMemberPreview

Source§

const DECL: &'static str = "export interface PartyMemberPreview {\n id: Uuid;\n username: string;\n photo_url: string;\n power: number;\n adjusted_power: number | null;\n class_id: ClassId;\n active_abilities: EquippedAbilities;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for EquippedPets

Source§

const DECL: &'static str = "export interface EquippedPets {\n slotted: Record<PetSlotId, Pet>;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Pet

Source§

const DECL: &'static str = "export interface Pet {\n template_id: PetId;\n name: I18nString;\n icon_path: string;\n rarity: PetRarity;\n level: number;\n shards_amount: number;\n active_ability_id: AbilityId | null;\n passive_ability_id: AbilityId | null;\n stats: PetComputedSecondaryStat[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for PetComputedSecondaryStat

Source§

const DECL: &'static str = "export interface PetComputedSecondaryStat {\n attribute_id: AttributeId;\n value: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for PetDrop

Source§

const DECL: &'static str = "export interface PetDrop {\n template: PetTemplate;\n is_new: boolean;\n is_checkpoint: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for PetRarity

Source§

const DECL: &'static str = "export interface PetRarity {\n id: PetRarityId;\n name: I18nString;\n order: number;\n color: string;\n bg_color: string;\n icon_path: string;\n square_icon_path: string;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for PetSecondaryStat

Source§

const DECL: &'static str = "export interface PetSecondaryStat {\n attribute_id: AttributeId;\n base_value: number;\n per_level_value: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for PetTemplate

Source§

const DECL: &'static str = "export interface PetTemplate {\n id: PetId;\n name: I18nString;\n icon_path: string;\n spine_path: string;\n rarity_id: PetRarityId;\n stats: PetSecondaryStat[];\n active_ability_id: AbilityId | null;\n passive_ability_id: AbilityId | null;\n charge_rate_on_damage_dealt: number;\n charge_rate_on_damage_taken: number;\n charge_rate_on_skill_use: number;\n max_charge: number;\n is_gacha_pet: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for UpgradedPetsMap

Source§

const DECL: &'static str = "export type UpgradedPetsMap = Record<PetId, [number, number]>;"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for MatchmakingData

Source§

const DECL: &'static str = "export interface MatchmakingData {\n opponents: MatchmakingOpponent[];\n is_free_refresh_available: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for MatchmakingOpponent

Source§

const DECL: &'static str = "export interface MatchmakingOpponent {\n opponent: OpponentPreview;\n win_rating_increase: number;\n lose_rating_decrease: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Opponent

Source§

const DECL: &'static str = "export interface Opponent {\n user: User;\n character: Character;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for PVPState

Source§

const DECL: &'static str = "export interface PVPState {\n opponent_state: OpponentState;\n vassal: Vassal | null;\n rating_change: RatingChange | null;\n stars_change: StarsChange | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for RatingChange

Source§

const DECL: &'static str = "export interface RatingChange {\n winner_rating_increase: number;\n loser_rating_decrease: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for VassalPvpOpponent

Source§

const DECL: &'static str = "export interface VassalPvpOpponent {\n opponent: Opponent;\n suzerain: Opponent | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for VassalPvpPlayersFindRequest

Source§

const DECL: &'static str = "export interface VassalPvpPlayersFindRequest {\n character_id: Uuid;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for QuestInstance

Source§

const DECL: &'static str = "export interface QuestInstance {\n id: QuestId;\n current: number;\n reward: BundleElement[];\n is_claimed: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for QuestTemplate

Source§

const DECL: &'static str = "export interface QuestTemplate {\n id: QuestId;\n title: I18nString;\n description: I18nString;\n progress_script: string;\n progress_target: number;\n quest_group_type: QuestGroupType;\n bundle_id: BundleId | null;\n progression_points: number;\n starting: boolean;\n next_quest_ids: QuestId[];\n events_subscribe: string[];\n additional_quests_script: string | null;\n progress_if_inactive: boolean;\n screen_reference: ScreenType | null;\n code: string | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for QuestsGroups

Source§

const DECL: &'static str = "export interface QuestsGroups {\n daily: QuestsProgressionGroup;\n weekly: QuestsProgressionGroup;\n lifetime: QuestInstance[];\n loop_tasks: QuestInstance[];\n patron_daily: QuestInstance[];\n patron_lifetime: QuestInstance[];\n hidden: QuestInstance[];\n achievements: QuestsProgressionGroup;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for QuestsProgressTrack

Source§

const DECL: &'static str = "export interface QuestsProgressTrack {\n current_points: number;\n period_end_date: DateTime<Utc>;\n rewards: QuestsTrackReward[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for QuestsProgressionGroup

Source§

const DECL: &'static str = "export interface QuestsProgressionGroup {\n progress_track: QuestsProgressTrack;\n quests: QuestInstance[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for QuestsProgressionPointSettings

Source§

const DECL: &'static str = "export interface QuestsProgressionPointSettings {\n points: number;\n reward_script: string;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for QuestsProgressionSettings

Source§

const DECL: &'static str = "export interface QuestsProgressionSettings {\n daily: QuestsProgressionPointSettings[];\n weekly: QuestsProgressionPointSettings[];\n achievement: QuestsProgressionPointSettings[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for QuestsTrackReward

Source§

const DECL: &'static str = "export interface QuestsTrackReward {\n points_required: number;\n reward: CurrencyUnit[];\n is_claimed: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for RatingLeaderboardRequest

Source§

const DECL: &'static str = "export interface RatingLeaderboardRequest {\n character_id: Uuid;\n rating_type: RatingType;\n limit: number;\n offset: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for RatingRangeReward

Source§

const DECL: &'static str = "export interface RatingRangeReward {\n mail_template_id: MailTemplateId | null;\n diapason_start: number;\n diapason_end: number | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for RatingRankingItem

Source§

const DECL: &'static str = "export interface RatingRankingItem {\n user: User;\n character: Character;\n place: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for RatingSettings

Source§

const DECL: &'static str = "export interface RatingSettings {\n id: RatingId;\n rating_type: RatingType;\n rating_range_rewards: RatingRangeReward[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for GetReferralsRequest

Source§

const DECL: &'static str = "export interface GetReferralsRequest {\n character_id: Uuid;\n offset: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Patron

Source§

const DECL: &'static str = "export interface Patron {\n character_id: Uuid;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ReferralLevelInfo

Source§

const DECL: &'static str = "export interface ReferralLevelInfo {\n level: number;\n required_experience: number;\n lvlup_reward: CurrencyUnit[];\n daily_reward: CurrencyUnit[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ReferralWithExp

Source§

const DECL: &'static str = "export interface ReferralWithExp {\n user: User;\n character: Character;\n experience: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ShareLinkParam

Source§

const DECL: &'static str = "export interface ShareLinkParam {\n character_id: Uuid;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for CharacterSkins

Source§

const DECL: &'static str = "export interface CharacterSkins {\n equipped: SkinId[];\n available: SkinId[];\n blocked: SkinId[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for ConfigSkin

Source§

const DECL: &'static str = "export interface ConfigSkin {\n id: SkinId;\n name: I18nString;\n unlock_description: I18nString | null;\n code: string;\n skin_type: SkinType;\n icon_url: string;\n icon_path: string;\n spine_path: string;\n rarity_id: ItemRarityId;\n price: CurrencyUnit[] | null;\n color: string | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for SkinsSettings

Source§

const DECL: &'static str = "export interface SkinsSettings {\n default_unlocked_skins: SkinId[];\n default_equipped_skins: SkinId[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for StatueBonusGrade

Source§

const DECL: &'static str = "/**\n * \u{413}\u{440}\u{435}\u{439}\u{434} \u{431}\u{43e}\u{43d}\u{443}\u{441}\u{430} \u{441}\u{442}\u{430}\u{442}\u{443}\u{438} (F, D, C, B, A, S, SS, SSS, SSS+)\n */\nexport interface StatueBonusGrade {\n id: StatueBonusGradeId;\n name: I18nString;\n color: string;\n order: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for StatueBonusSlot

Source§

const DECL: &'static str = "/**\n * \u{41e}\u{434}\u{438}\u{43d} \u{437}\u{430}\u{43f}\u{43e}\u{43b}\u{43d}\u{435}\u{43d}\u{43d}\u{44b}\u{439} \u{441}\u{43b}\u{43e}\u{442} \u{43d}\u{430} \u{432}\u{43a}\u{43b}\u{430}\u{434}\u{43a}\u{435} \u{441}\u{442}\u{430}\u{442}\u{443}\u{438}\n */\nexport interface StatueBonusSlot {\n attribute_id: AttributeId;\n grade_id: StatueBonusGradeId;\n is_locked: boolean;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for StatueSet

Source§

const DECL: &'static str = "/**\n * \u{41e}\u{434}\u{438}\u{43d} \u{441}\u{435}\u{442} (\u{432}\u{43a}\u{43b}\u{430}\u{434}\u{43a}\u{430}) \u{441}\u{442}\u{430}\u{442}\u{443}\u{438} \u{2014} Set 1 / Set 2 / Set 3\n */\nexport interface StatueSet {\n name: string;\n slots: StatueSlotsMap;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for StatueSlotsMap

Source§

const DECL: &'static str = "/**\n * \u{41a}\u{430}\u{440}\u{442}\u{430} \u{441}\u{43b}\u{43e}\u{442}\u{43e}\u{432} \u{441}\u{442}\u{430}\u{442}\u{443}\u{438}: \u{43a}\u{43b}\u{44e}\u{447} \u{2014} \u{438}\u{43d}\u{434}\u{435}\u{43a}\u{441} \u{441}\u{43b}\u{43e}\u{442}\u{430}, \u{437}\u{43d}\u{430}\u{447}\u{435}\u{43d}\u{438}\u{435} \u{2014} \u{437}\u{430}\u{43f}\u{43e}\u{43b}\u{43d}\u{435}\u{43d}\u{43d}\u{44b}\u{439} \u{441}\u{43b}\u{43e}\u{442}.\n * \u{41e}\u{442}\u{441}\u{443}\u{442}\u{441}\u{442}\u{432}\u{443}\u{44e}\u{449}\u{438}\u{439} \u{43a}\u{43b}\u{44e}\u{447} \u{43e}\u{437}\u{43d}\u{430}\u{447}\u{430}\u{435}\u{442}, \u{447}\u{442}\u{43e} \u{441}\u{43b}\u{43e}\u{442} \u{435}\u{449}\u{451} \u{43d}\u{435} \u{431}\u{44b}\u{43b} \u{43f}\u{440}\u{43e}\u{43a}\u{430}\u{442}\u{430}\u{43d} (pending).\n */\nexport type StatueSlotsMap = Record<number, StatueBonusSlot>;"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for StatueState

Source§

const DECL: &'static str = "/**\n * \u{41f}\u{43e}\u{43b}\u{43d}\u{43e}\u{435} \u{441}\u{43e}\u{441}\u{442}\u{43e}\u{44f}\u{43d}\u{438}\u{435} \u{441}\u{442}\u{430}\u{442}\u{443}\u{438} \u{438}\u{433}\u{440}\u{43e}\u{43a}\u{430}\n */\nexport interface StatueState {\n level: number;\n experience: number;\n /**\n * \u{418}\u{43d}\u{434}\u{435}\u{43a}\u{441} \u{430}\u{43a}\u{442}\u{438}\u{432}\u{43d}\u{43e}\u{433}\u{43e} \u{441}\u{435}\u{442}\u{430} (0\u{2013}2)\n */\n active_set_index: number;\n /**\n * \u{421}\u{435}\u{442}\u{44b} \u{441}\u{442}\u{430}\u{442}\u{443}\u{438} (1\u{2013}3 \u{432} \u{437}\u{430}\u{432}\u{438}\u{441}\u{438}\u{43c}\u{43e}\u{441}\u{442}\u{438} \u{43e}\u{442} \u{443}\u{440}\u{43e}\u{432}\u{43d}\u{44f})\n */\n sets: StatueSet[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for TalentAttributeBonus

Source§

const DECL: &'static str = "/**\n * \u{411}\u{43e}\u{43d}\u{443}\u{441} \u{430}\u{442}\u{440}\u{438}\u{431}\u{443}\u{442}\u{430} \u{441}\u{443}\u{449}\u{43d}\u{43e}\u{441}\u{442}\u{438} \u{43e}\u{442} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{430} (\u{43f}\u{43b}\u{43e}\u{441}\u{43a}\u{43e}\u{435} \u{437}\u{43d}\u{430}\u{447}\u{435}\u{43d}\u{438}\u{435})\n */\nexport interface TalentAttributeBonus {\n attribute_id: AttributeId;\n value: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for TalentLevel

Source§

const DECL: &'static str = "/**\n * \u{423}\u{440}\u{43e}\u{432}\u{435}\u{43d}\u{44c} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{430} (\u{443} \u{43a}\u{430}\u{436}\u{434}\u{43e}\u{433}\u{43e} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{430} 1-5 \u{443}\u{440}\u{43e}\u{432}\u{43d}\u{435}\u{439})\n */\nexport interface TalentLevel {\n level: number;\n cost: CurrencyUnit;\n duration_sec: number;\n /**\n * \u{411}\u{43e}\u{43d}\u{443}\u{441}\u{44b}, \u{43f}\u{440}\u{438}\u{43c}\u{435}\u{43d}\u{44f}\u{435}\u{43c}\u{44b}\u{435} \u{43a} \u{430}\u{442}\u{440}\u{438}\u{431}\u{443}\u{442}\u{430}\u{43c} \u{441}\u{443}\u{449}\u{43d}\u{43e}\u{441}\u{442}\u{438} (HP, \u{443}\u{440}\u{43e}\u{43d}, \u{437}\u{430}\u{449}\u{438}\u{442}\u{430} \u{438} \u{442}.\u{434}.)\n */\n attribute_bonuses: TalentAttributeBonus[];\n /**\n * \u{41c}\u{43e}\u{434}\u{438}\u{444}\u{438}\u{43a}\u{430}\u{442}\u{43e}\u{440}\u{44b}, \u{43e}\u{431}\u{440}\u{430}\u{431}\u{430}\u{442}\u{44b}\u{432}\u{430}\u{435}\u{43c}\u{44b}\u{435} \u{431}\u{44d}\u{43a}\u{435}\u{43d}\u{434}\u{43e}\u{43c} \u{43d}\u{430}\u{43f}\u{440}\u{44f}\u{43c}\u{443}\u{44e} (\u{43d}\u{435} \u{447}\u{435}\u{440}\u{435}\u{437} \u{430}\u{442}\u{440}\u{438}\u{431}\u{443}\u{442}\u{44b} \u{438} \u{43d}\u{435} \u{447}\u{435}\u{440}\u{435}\u{437} \u{441}\u{43a}\u{440}\u{438}\u{43f}\u{442}\u{44b})\n */\n backend_modifiers: TalentBackendModifier[];\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for TalentLevelsMap

Source§

const DECL: &'static str = "/**\n * Wrapper around talent level map for Rhai script access.\n */\nexport type TalentLevelsMap = Record<TalentId, number>;"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for TalentPosition

Source§

const DECL: &'static str = "/**\n * \u{41f}\u{43e}\u{437}\u{438}\u{446}\u{438}\u{44f} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{430} \u{432} \u{434}\u{435}\u{440}\u{435}\u{432}\u{435} (\u{434}\u{43b}\u{44f} \u{43e}\u{442}\u{440}\u{438}\u{441}\u{43e}\u{432}\u{43a}\u{438} \u{43d}\u{430} \u{43a}\u{43b}\u{438}\u{435}\u{43d}\u{442}\u{435})\n */\nexport interface TalentPosition {\n col: number;\n row: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for TalentTemplate

Source§

const DECL: &'static str = "/**\n * \u{428}\u{430}\u{431}\u{43b}\u{43e}\u{43d} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{430}\n */\nexport interface TalentTemplate {\n id: TalentId;\n name: I18nString;\n description: I18nString;\n description_values_script: string | null;\n icon_url: string;\n icon_path: string;\n levels: TalentLevel[];\n unlock_condition: TalentUnlockCondition;\n position: TalentPosition;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for TalentTreeSettings

Source§

const DECL: &'static str = "/**\n * \u{41d}\u{430}\u{441}\u{442}\u{440}\u{43e}\u{439}\u{43a}\u{438} \u{434}\u{435}\u{440}\u{435}\u{432}\u{430} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{43e}\u{432}\n */\nexport interface TalentTreeSettings {\n time_skip_ticket_skips_sec: number;\n skip_currency_id: CurrencyId;\n skip_currency_skips_sec: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for TalentUnlockCondition

Source§

const DECL: &'static str = "/**\n * \u{423}\u{441}\u{43b}\u{43e}\u{432}\u{438}\u{435} \u{440}\u{430}\u{437}\u{431}\u{43b}\u{43e}\u{43a}\u{438}\u{440}\u{43e}\u{432}\u{43a}\u{438} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{430}\n */\nexport interface TalentUnlockCondition {\n /**\n * \u{421}\u{43f}\u{438}\u{441}\u{43e}\u{43a} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{43e}\u{432}, \u{43a}\u{43e}\u{442}\u{43e}\u{440}\u{44b}\u{435} \u{434}\u{43e}\u{43b}\u{436}\u{43d}\u{44b} \u{431}\u{44b}\u{442}\u{44c} \u{43f}\u{43e}\u{43b}\u{43d}\u{43e}\u{441}\u{442}\u{44c}\u{44e} \u{438}\u{437}\u{443}\u{447}\u{435}\u{43d}\u{44b} (\u{43f}\u{443}\u{441}\u{442}\u{43e}\u{439} = \u{43d}\u{435}\u{442} \u{442}\u{440}\u{435}\u{431}\u{43e}\u{432}\u{430}\u{43d}\u{438}\u{439})\n */\n required_talents: TalentId[];\n /**\n * \u{41c}\u{438}\u{43d}\u{438}\u{43c}\u{430}\u{43b}\u{44c}\u{43d}\u{43e}\u{435} \u{441}\u{443}\u{43c}\u{43c}\u{430}\u{440}\u{43d}\u{43e}\u{435} \u{43a}\u{43e}\u{43b}\u{438}\u{447}\u{435}\u{441}\u{442}\u{432}\u{43e} \u{432}\u{43b}\u{43e}\u{436}\u{435}\u{43d}\u{43d}\u{44b}\u{445} \u{43e}\u{447}\u{43a}\u{43e}\u{432} \u{442}\u{430}\u{43b}\u{430}\u{43d}\u{442}\u{43e}\u{432} (0 = \u{43d}\u{435}\u{442} \u{442}\u{440}\u{435}\u{431}\u{43e}\u{432}\u{430}\u{43d}\u{438}\u{439})\n */\n required_points: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for CustomValuesMap

Source§

const DECL: &'static str = "export type CustomValuesMap = Record<string, number>;"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for User

Source§

const DECL: &'static str = "export interface User {\n id: Uuid;\n active_character_id: Uuid;\n tg_id: number | null;\n firebase_id: string | null;\n photo_url: string | null;\n is_premium: boolean | null;\n is_deleted: boolean;\n first_name: string | null;\n last_name: string | null;\n username: string;\n username_discriminator: number | null;\n last_username_change_at: DateTime<Utc> | null;\n language_code: string;\n allows_write_to_pm: boolean | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Suzerain

Source§

const DECL: &'static str = "export interface Suzerain {\n character_id: Uuid;\n username: string;\n photo_url: string | null;\n loyalty: number;\n last_claimed_reward_at: DateTime<Utc>;\n last_claimed_power: number;\n current_power: number;\n current_reward: CurrencyUnit[];\n created_at: DateTime<Utc>;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for Vassal

Source§

const DECL: &'static str = "export interface Vassal {\n character_id: Uuid;\n username: string;\n photo_url: string | null;\n loyalty: number;\n last_claimed_reward_at: DateTime<Utc>;\n last_claimed_power: number;\n current_power: number;\n current_reward: CurrencyUnit[];\n created_at: DateTime<Utc>;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for VassalTask

Source§

const DECL: &'static str = "/**\n * Task in state\n */\nexport interface VassalTask {\n id: Uuid;\n template_task_id: Uuid;\n suzerain_id: Uuid;\n suzerain_power: number;\n vassal_id: Uuid;\n vassal_power: number;\n good_reward: CurrencyUnit[];\n bad_reward: CurrencyUnit[];\n good_loyalty: number;\n bad_loyalty: number;\n task_status: VassalTaskStatus;\n claimed_by_suzerain: boolean;\n claimed_by_vassal: boolean;\n started_at: DateTime<Utc> | null;\n finish_at: DateTime<Utc> | null;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

Source§

impl Tsify for VassalTaskTemplate

Source§

const DECL: &'static str = "/**\n * Task in config\n */\nexport interface VassalTaskTemplate {\n id: Uuid;\n title: I18nString;\n duration_sec: number;\n reward_script: string;\n loyalty_script: string;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType