Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AutoSearchAccount

An account on which we attempted Search.

Search may have returned positive, negative, or failed.

This has not been claimed or rejected yet.

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(): AutoSearchAccountSchema

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