Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UnregisteredAccount

Account that returned a negative result from Search.

This implies the user name hasn't been registered on the site.

Hierarchy

Index

Constructors

constructor

Properties

actionTaken

actionTaken: AutoSearchAccountAction = ...

createdAt

createdAt: Date = ...

id

id: string

matchedFirstNames

matchedFirstNames: string[] = ...

matchedLastNames

matchedLastNames: string[] = ...

matchedUserName

matchedUserName: boolean = false

rev

rev: string = ''

site

site: Site

type

type: AccountType = ...

userName

userName: string

Static accountCache

accountCache: DbCache<ThirdPartyAccount> = ...

Static resultCache

resultCache: DbCache<ThirdPartyAccount> = ...

Accessors

confidence

url

  • get url(): string

Static accounts

  • get accounts(): {}
  • Map of accounts that are an instance of this class.

    Returns {}

    • [key: string]: T

Static results

  • get results(): {}
  • Map of results that are an instance of this class.

    Returns {}

    • [key: string]: T

Methods

claim

reject

remove

  • remove(): Promise<void>

save

  • save(): Promise<Response>
  • Save/update this account in the database.

    Don't call this unless you've made changes! Each call will create a revision and take up space.

    Returns Promise<Response>

serialize

  • serialize(): UnregisteredAccountSchema

Static deserialize

Static factory

Static loadAll

  • Load all Accountss from the database into the ThirdPartyAccount.accountCache.

    Returns an array of the requested accounts. All loaded accounts (including ones not loaded by this request) can be accessed via ThirdPartyAccount.accountCache.

    Parameters

    • Optional idPrefix: string

    Returns Promise<ThirdPartyAccount[]>

Generated using TypeDoc