-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for all airtable field types (#234)
* add 'key' and 'path' properties to table in airtable config * refactor: AirtableDataSource output query mappings to improve path handling * feat: add support for all airtable field types - Automatically assign output mapping types to airtable fields - Improved field mapping logic to filter unsupported fields and handle selected table fields more effectively. * refactor: update field type handling to use 'currency' instead of 'price'
- Loading branch information
1 parent
4e1031d
commit 78e3755
Showing
12 changed files
with
254 additions
and
35 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
export const AIRTABLE_STRING_TYPES = Object.freeze( | ||
new Set( [ | ||
'singleLineText', | ||
'multilineText', | ||
'email', | ||
'phoneNumber', | ||
'richText', | ||
'barcode', | ||
'singleSelect', | ||
'date', | ||
'dateTime', | ||
'lastModifiedTime', | ||
'createdTime', | ||
'multipleRecordLinks', | ||
'rollup', | ||
'externalSyncSource', | ||
] ) | ||
); | ||
|
||
export const AIRTABLE_NUMBER_TYPES = Object.freeze( | ||
new Set( [ 'number', 'autoNumber', 'rating', 'duration', 'count', 'percent' ] ) | ||
); | ||
|
||
export const AIRTABLE_USER_TYPES = Object.freeze( | ||
new Set( [ 'createdBy', 'lastModifiedBy', 'singleCollaborator' ] ) | ||
); | ||
|
||
export const SUPPORTED_AIRTABLE_TYPES = Object.freeze( [ | ||
// String types | ||
'singleLineText', | ||
'multilineText', | ||
'email', | ||
'phoneNumber', | ||
'richText', | ||
'barcode', | ||
'singleSelect', | ||
'multipleSelects', | ||
'date', | ||
'dateTime', | ||
'lastModifiedTime', | ||
'createdTime', | ||
'multipleRecordLinks', | ||
'rollup', | ||
'externalSyncSource', | ||
// Number types | ||
'number', | ||
'autoNumber', | ||
'rating', | ||
'duration', | ||
'count', | ||
'percent', | ||
// User types | ||
'createdBy', | ||
'lastModifiedBy', | ||
'singleCollaborator', | ||
// Other types | ||
'multipleCollaborator', | ||
'url', | ||
'button', | ||
'currency', | ||
'checkbox', | ||
'multipleAttachments', | ||
'formula', | ||
'lookup', | ||
] ); |
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
Oops, something went wrong.