Member Junction
    Preparing search index...

    Apollo.io list/search client. See the module doc, and the quirk list on apollo-lists.types.ts, for the behaviours it encodes.

    Implements

    Index

    Constructors

    Methods

    • Create a label. Master key required.

      modality is not optional to Apollo despite reading like it should be: posting without it returns HTTP 422 "Please enter a non-empty modality!". It defaults to 'contacts' here because a people list is the common case.

      The create response shape is not pinned in Apollo's docs, so a bare label object, a { label: {...} } envelope and a { labels: [...] } envelope are all accepted — mirroring how listLabels tolerates two read shapes. A shape none of those match throws rather than returning a label with an empty id, which would then be written into a membership array.

      Parameters

      • name: string
      • modality: "accounts" | "contacts" = 'contacts'

      Returns Promise<ApolloLabel>

    • Move accounts between lists. The supplied accounts must carry current labelNames from a fresh searchAccounts read — this method writes whatever it is given as the intended set, so stale labels here mean real memberships silently disappear.

      With verify, the destination list is re-read after each remove to flag silent-fail records. Never deletes, never auto-retries.

      Parameters

      • accounts: ApolloAccount[]
      • fromList: string
      • toList: string
      • Optionaloptions: { verify?: boolean }

      Returns Promise<ApolloMoveResult>