import BaseAPI from "./BaseAPI"; import Client from "../Client"; import { UpdateUserPromotionChannelsOptions as AccountInformationUpdateUserPromotionChannelsOptions } from "./AccountInformationAPI"; export type GetSettingsGroups = { title: string; url: string; suffix: string; }[]; export type GetAppChatPrivacy = { appChatPrivacy: string; }; export type UpdateAppChatPrivacyOptions = { appChatPrivacy: string; }; export type UpdateAppChatPrivacy = boolean; export type GetGameChatPrivacy = { gameChatPrivacy: string; }; export type UpdateGameChatPrivacyOptions = { gameChatPrivacy: string; }; export type UpdateGameChatPrivacy = boolean; export type GetInventoryPrivacy = { inventoryPrivacy: string; }; export type UpdateInventoryPrivacyOptions = { inventoryPrivacy: string; }; export type UpdateInventoryPrivacy = { inventoryPrivacy: string; tradePrivacy: string; privacySettingResponse: string; }; export type GetUserPrivacy = { phoneDiscovery: string; }; export type UpdateUserPrivacyOptions = { phoneDiscovery: string; }; export type UpdateUserPrivacy = { phoneDiscovery: string; }; export type GetUserPrivacySettingsInfo = { isPhoneDiscoveryEnabled: boolean; }; export type GetUserPrivateMessagePrivacy = { privateMessagePrivacy: string; }; export type UpdateUserPrivateMessagePrivacyOptions = { privateMessagePrivacy: string; }; export type UpdateUserPrivateMessagePrivacy = boolean; export type GetUserEmailStatus = { email: string; verified: boolean; }; export type UpdateUserEmailOptions = { password: string; emailAddress: string; }; export type UpdateUserEmail = boolean; export type SendEmailVerification = boolean; export type GetWebsiteTheme = { themeType: string; }; export type UpdateWebsiteThemeOptions = { themeType: string; }; export type UpdateWebsiteTheme = boolean; export type GetWebsiteThemes = { data: string[]; }; export type GetUserTradePrivacy = { tradePrivacy: string; }; export type UpdateUserTradePrivacyOptions = { tradePrivacy: string; }; export type UpdateUserTradePrivacy = { tradePrivacy: string; inventoryPrivacy: string; privacySettingResponse: string; }; export type GetUserTradeQualityFilter = { tradeValue: string; }; export type UpdateUserTradeQualityFilterOptions = { tradeValue: string; }; export type UpdateUserTradeQualityFilter = boolean; export type UpdateTwoStepStatusOptions = { enabled: boolean; password: string; }; export type UpdateTwoStepStatus = { enabled: boolean; password: string; }; export type GetContactUpsell = { upsellScreenType: string; }; export type UpdateContactUpsellSuppressionOptions = { suppress: boolean; }; export type UpdateContactUpsellSuppression = boolean; export type GetIsXboxUsernameValidOptions = { authorization: string; signature: string; username: string; }; export type GetIsXboxUsernameValid = { isValid: boolean; errorMessage?: string; errorCode?: string; }; export type UpdateUserPromotionChannelsOptions = AccountInformationUpdateUserPromotionChannelsOptions; export type UpdateUserPromotionChannels = boolean; export default class AccountSettingsAPI extends BaseAPI { constructor(client: Client); getSettingsGroups(): Promise; getAppChatPrivacy(): Promise; updateAppChatPrivacy(options: UpdateAppChatPrivacyOptions): Promise; getGameChatPrivacy(): Promise; updateGameChatPrivacy(options: UpdateGameChatPrivacyOptions): Promise; getInventoryPrivacy(): Promise; updateInventoryPrivacy(options: UpdateInventoryPrivacyOptions): Promise; getUserPrivacy(): Promise; updateUserPrivacy(options: UpdateUserPrivacyOptions): Promise; getUserPrivacySettingsInfo(): Promise; getUserPrivateMessagePrivacy(): Promise; updateUserPrivateMessagePrivacy(options: UpdateUserPrivateMessagePrivacyOptions): Promise; getUserEmailStatus(): Promise; updateUserEmail(options: UpdateUserEmailOptions): Promise; sendEmailVerification(): Promise; getWebsiteTheme(): Promise; updateWebsiteTheme(options: UpdateWebsiteThemeOptions): Promise; getWebsiteThemes(): Promise; getUserTradePrivacy(): Promise; updateUserTradePrivacy(options: UpdateUserTradePrivacyOptions): Promise; getUserTradeQualityFilter(): Promise; updateUserTradeQualityFilter(options: UpdateUserTradeQualityFilterOptions): Promise; updateTwoStepStatus(options: UpdateTwoStepStatusOptions): Promise; getContactUpsell(): Promise; updateContactUpsellSuppression(options: UpdateContactUpsellSuppressionOptions): Promise; getIsXboxUsernameValid(options: GetIsXboxUsernameValidOptions): Promise; updateUserPromotionChannels(options: UpdateUserPromotionChannelsOptions): Promise; }