Abstract
Protected
constructorProtected
Initializes a new instance of the BaseService class. Protected constructor to prevent direct instantiation.
Protected
deleteProtected
Deletes a single record from the specified Airtable table using its record ID.
The Airtable Personal Access Token for authentication.
The ID of the target Airtable base.
The name or ID of the target table.
The object representing the record to delete. It must include the id
property.
A promise that resolves to the Airtable API response confirming the deletion.
Protected
getProtected
Retrieves multiple records from a specified Airtable table, optionally applying query parameters.
Maps the Airtable record structure to the provided generic type T
.
The Airtable Personal Access Token for authentication.
The ID of the target Airtable base.
The name or ID of the target table within the base.
Optional
options: SelectOptionsOptional parameters for filtering, sorting, pagination, etc. See Airtable API documentation for details.
A promise that resolves to an array of records matching the query, cast to type T.
Protected
saveProtected
Creates a single new record in the specified Airtable table.
The Airtable Personal Access Token for authentication.
The ID of the target Airtable base.
The name or ID of the target table.
The data object representing the record to be created. The id
property, if present, will be ignored by Airtable.
A promise that resolves to the Airtable API response for the created record.
Protected
updateProtected
Updates an existing record in the specified Airtable table using its record ID.
The Airtable Personal Access Token for authentication.
The ID of the target Airtable base.
The name or ID of the target table.
The data object containing the fields to update. It must include the id
property of the record to update.
A promise that resolves to the Airtable API response for the updated record.
Provides foundational methods for interacting with the Airtable API. This class serves as a base for more specialized Airtable service implementations. It encapsulates common operations like retrieving, creating, updating, and deleting records.
Export
BaseService