Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AirtableClient<T>

Interferface for an Airtable client for a single table within a base.

Type parameters

  • T

Hierarchy

  • AirtableClient

Implemented by

Index

Methods

bulkCreate

  • bulkCreate(records: readonly Partial<T>[], typecast?: true): Promise<readonly AirtableRecord<T>[]>
  • Bulk creates a list of record.

    Parameters

    • records: readonly Partial<T>[]

      The records to create.

    • Optional typecast: true

      Whether to typecast the record.

    Returns Promise<readonly AirtableRecord<T>[]>

bulkDelete

bulkUpdate

  • bulkUpdate(records: readonly Pick<AirtableRecord<Partial<T>>, "id" | "fields">[], destructive?: boolean, typecast?: true): Promise<readonly AirtableRecord<T>[]>
  • Bulk updates records.

    Parameters

    • records: readonly Pick<AirtableRecord<Partial<T>>, "id" | "fields">[]

      The records to update.

    • Optional destructive: boolean

      Whether to clear unspecified fields.

    • Optional typecast: true

      Whether to typecast the record.

    Returns Promise<readonly AirtableRecord<T>[]>

create

  • create(fields: Partial<T>, typecast?: true): Promise<AirtableRecord<T>>
  • Creates a record.

    Parameters

    • fields: Partial<T>

      The fields of the record to create.

    • Optional typecast: true

      Whether to typecast the record.

    Returns Promise<AirtableRecord<T>>

delete

find

select

update

  • update(id: string, fields: Partial<T>, destructive?: boolean, typecast?: true): Promise<AirtableRecord<T>>
  • Updates a single record.

    Parameters

    • id: string

      The record ID to update.

    • fields: Partial<T>

      The fields to update.

    • Optional destructive: boolean

      Whether to clear unspecified fields.

    • Optional typecast: true

      Whether to typecast the record.

    Returns Promise<AirtableRecord<T>>

Generated using TypeDoc