Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: add logflare and airtable wrappers

Alaister Youngbd1a36dbe177
diff --git a/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts b/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts
index 610ceec29e1..618774cd858 100644
--- a/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts
+++ b/studio/components/interfaces/Database/Wrappers/Wrappers.constants.ts
@@ -9,7 +9,7 @@ export const WRAPPERS: WrapperMeta[] = [
icon: `${BASE_PATH}/img/icons/stripe-icon.svg`,
extensionName: 'StripeFdw',
label: 'Stripe',
- docsUrl: 'https://supabase.github.io/wrappers/stripe/',
+ docsUrl: 'https://supabase.com/docs/guides/database/extensions/wrappers/stripe',
server: {
options: [
{
@@ -421,7 +421,7 @@ export const WRAPPERS: WrapperMeta[] = [
icon: `${BASE_PATH}/img/icons/firebase-icon.svg`,
extensionName: 'FirebaseFdw',
label: 'Firebase',
- docsUrl: 'https://supabase.github.io/wrappers/firebase/',
+ docsUrl: 'https://supabase.com/docs/guides/database/extensions/wrappers/firebase',
server: {
options: [
{
@@ -556,7 +556,7 @@ export const WRAPPERS: WrapperMeta[] = [
icon: `${BASE_PATH}/img/icons/s3-icon.svg`,
extensionName: 'S3Fdw',
label: 'S3',
- docsUrl: 'https://supabase.github.io/wrappers/s3/',
+ docsUrl: 'https://supabase.com/docs/guides/database/extensions/wrappers/s3',
server: {
options: [
{
@@ -639,7 +639,7 @@ export const WRAPPERS: WrapperMeta[] = [
icon: `${BASE_PATH}/img/icons/clickhouse-icon.svg`,
extensionName: 'ClickHouseFdw',
label: 'ClickHouse',
- docsUrl: 'https://supabase.github.io/wrappers/clickhouse/',
+ docsUrl: 'https://supabase.com/docs/guides/database/extensions/wrappers/clickhouse',
server: {
options: [
{
@@ -683,7 +683,7 @@ export const WRAPPERS: WrapperMeta[] = [
icon: `${BASE_PATH}/img/icons/bigquery-icon.svg`,
extensionName: 'BigQueryFdw',
label: 'BigQuery',
- docsUrl: 'https://supabase.github.io/wrappers/bigquery/',
+ docsUrl: 'https://supabase.com/docs/guides/database/extensions/wrappers/bigquery',
server: {
options: [
{
@@ -750,4 +750,81 @@ export const WRAPPERS: WrapperMeta[] = [
},
],
},
+ {
+ name: 'airtable_wrapper',
+ handlerName: 'airtable_fdw_handler',
+ validatorName: 'airtable_fdw_validator',
+ icon: `${BASE_PATH}/img/icons/airtable-icon.svg`,
+ extensionName: 'airtableFdw',
+ label: 'Airtable',
+ docsUrl: 'https://supabase.com/docs/guides/database/extensions/wrappers/airtable',
+ server: {
+ options: [
+ {
+ name: 'api_key_id',
+ label: 'API Key ID',
+ required: true,
+ encrypted: true,
+ hidden: true,
+ },
+ ],
+ },
+ tables: [
+ {
+ label: 'Airtable Table',
+ description: 'Map to an Airtable Table',
+ options: [
+ {
+ name: 'base_id',
+ label: 'Base ID',
+ editable: true,
+ required: true,
+ type: 'text',
+ },
+ {
+ name: 'table_id',
+ label: 'Table ID',
+ editable: true,
+ required: true,
+ type: 'text',
+ },
+ ],
+ },
+ ],
+ },
+ {
+ name: 'logflare_wrapper',
+ handlerName: 'logflare_fdw_handler',
+ validatorName: 'logflare_fdw_validator',
+ icon: `${BASE_PATH}/img/icons/logflare-icon.svg`,
+ extensionName: 'logflareFdw',
+ label: 'Logflare',
+ docsUrl: 'https://supabase.com/docs/guides/database/extensions/wrappers/logflare',
+ server: {
+ options: [
+ {
+ name: 'api_key_id',
+ label: 'API Key ID',
+ required: true,
+ encrypted: true,
+ hidden: true,
+ },
+ ],
+ },
+ tables: [
+ {
+ label: 'Logflare Table',
+ description: 'Map to a Logflare Table',
+ options: [
+ {
+ name: 'endpoint',
+ label: 'Endpoint',
+ editable: true,
+ required: true,
+ type: 'text',
+ },
+ ],
+ },
+ ],
+ },
]
diff --git a/studio/public/img/icons/airtable-icon.svg b/studio/public/img/icons/airtable-icon.svg
new file mode 100644
index 00000000000..50c3f5ec18d
--- /dev/null
+++ b/studio/public/img/icons/airtable-icon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid" viewBox="0 -20.5 256 256"><path fill="#FFBF00" d="M114.259 2.701 18.86 42.176c-5.305 2.195-5.25 9.73.089 11.847l95.797 37.989a35.544 35.544 0 0 0 26.208 0l95.799-37.99c5.337-2.115 5.393-9.65.086-11.846L141.442 2.7a35.549 35.549 0 0 0-27.183 0"/><path fill="#26B5F8" d="M136.35 112.757v94.902c0 4.514 4.55 7.605 8.746 5.942l106.748-41.435a6.39 6.39 0 0 0 4.035-5.941V71.322c0-4.514-4.551-7.604-8.747-5.941l-106.748 41.434a6.392 6.392 0 0 0-4.035 5.942"/><path fill="#ED3049" d="m111.423 117.654-31.68 15.296-3.217 1.555L9.65 166.548C5.411 168.593 0 165.504 0 160.795V71.72c0-1.704.874-3.175 2.046-4.283a7.266 7.266 0 0 1 1.618-1.213c1.598-.959 3.878-1.215 5.816-.448l101.41 40.18c5.155 2.045 5.56 9.268.533 11.697"/><path fill-opacity=".25" d="m111.423 117.654-31.68 15.296L2.045 67.438a7.266 7.266 0 0 1 1.618-1.213c1.598-.959 3.878-1.215 5.816-.448l101.41 40.18c5.155 2.045 5.56 9.268.533 11.697"/></svg>
\ No newline at end of file
diff --git a/studio/public/img/icons/logflare-icon.svg b/studio/public/img/icons/logflare-icon.svg
new file mode 100644
index 00000000000..8e1c1f5e7b9
--- /dev/null
+++ b/studio/public/img/icons/logflare-icon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M16 128h416c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v32c0 8.84 7.16 16 16 16zm480 96H80c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-64 160H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"/></svg>
\ No newline at end of file