Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Account

Hierarchy

Accessors

contacts

  • The Accounts Contacts if they exist

    Returns Contact[]

hidden

  • get hidden(): boolean
  • Is the DataObject Hidden

    Returns boolean

internalID

  • get internalID(): number
  • The DataObject InternalID

    Returns number

name

  • get name(): string
  • The Account Name

    Returns string

parent

  • get parent(): undefined | Account
  • The Account Parent Account if it exists

    Returns undefined | Account

resource

  • get resource(): "None" | "accounts" | "transactions" | "activities" | "all_activities" | "items" | "users" | "transaction_lines" | "contacts" | "lists" | "catalogs" | "types"
  • The DataObject server type if exists

    Returns "None" | "accounts" | "transactions" | "activities" | "all_activities" | "items" | "users" | "transaction_lines" | "contacts" | "lists" | "catalogs" | "types"

typeDefinition

  • The DataObject type definition if exists

    Returns undefined | TypeDefinition

uuid

  • get uuid(): string
  • The DataObject UUID

    Returns string

Methods

availableTransitions

  • availableTransitions(): Promise<Transition[]>

getFieldValue

  • getFieldValue(fieldID: string): Promise<any>
  • Get a field value by FieldID

    Parameters

    • fieldID: string

      The field ID

    Returns Promise<any>

    undefined if no such field exists

inTransition

  • inTransition(): Promise<boolean>
  • Returns Promise<boolean>

    true if the workflow in now in the middle of a transition. otherwise, false.

setFieldValue

  • setFieldValue(fieldID: string, value: any, doCalculations?: boolean): Promise<void>
  • Set a field value by FieldID throws an exception if there is an error

    Parameters

    • fieldID: string

      The Field ID

    • value: any

      The value to set

    • doCalculations: boolean = true

      Any TSA's that depends on this Field will be recalculated

    Returns Promise<void>

toJSON

  • toJSON(): any

Static Get

  • Get(resource: "accounts", uuid: string): Promise<undefined | Account>
  • Get(resource: "contacts", uuid: string): Promise<undefined | Contact>
  • Get(resource: "activities", uuid: string): Promise<undefined | GeneralActivity>
  • Get(resource: "transactions", uuid: string): Promise<undefined | Transaction>
  • Get(resource: "transaction_lines", uuid: string): Promise<undefined | TransactionLine>
  • Get(resource: "users", uuid: string): Promise<undefined | User>
  • Get(resource: "items", uuid: string): Promise<undefined | Item>
  • Get(resource: string, uuid: string): Promise<undefined | DataObject>

Static GetAll

  • GetAll(resource: "accounts"): Promise<Account[]>
  • GetAll(resource: "contacts"): Promise<Contact[]>
  • GetAll(resource: "activities"): Promise<GeneralActivity[]>
  • GetAll(resource: "transactions"): Promise<Transaction[]>
  • GetAll(resource: "transaction_lines"): Promise<TransactionLine[]>
  • GetAll(resource: "users"): Promise<User[]>
  • GetAll(resource: "items"): Promise<Item[]>
  • GetAll(resource: string): Promise<DataObject[]>

Generated using TypeDoc