Created
December 21, 2022 18:50
-
-
Save mauritsl/94f62b0324a60a9293b6b8c5ecd1a372 to your computer and use it in GitHub Desktop.
Airtable webhook payloads type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type Payload = { | |
timestamp?: string; | |
baseTransactionNumber?: number; | |
actionMetadata?: { | |
source: string; | |
sourceMetadata: { | |
user: { | |
id: string; | |
email: string; | |
permissionLevel: string; | |
name: string; | |
profilePicUrl: string; | |
}; | |
}; | |
}; | |
payloadFormat?: string; | |
changedTablesById?: { | |
[tableId: string]: { | |
createdRecordsById?: { | |
[recordId: string]: { | |
createdTime: string; | |
cellValuesByFieldId: { | |
[fieldId: string]: any; | |
}; | |
}; | |
}; | |
changedRecordsById?: { | |
[recordId: string]: { | |
current: { | |
cellValuesByFieldId: { | |
[fieldId: string]: any; | |
}; | |
}; | |
}; | |
}; | |
destroyedRecordIds?: string[]; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment