feat: fetch database connection tables in Settings/Integrations/Datab… (#4882)

…ase/Connection

Closes #4758

---------

Co-authored-by: Thomas Trompette <thomast@twenty.com>
This commit is contained in:
Thaïs
2024-04-09 14:22:15 +02:00
committed by GitHub
parent 19df43156e
commit 704f7f6d8e
21 changed files with 275 additions and 87 deletions

View File

@ -1,3 +1,5 @@
import { RemoteTableStatus } from '~/generated-metadata/graphql';
export const mockedRemoteObjectIntegrations = [
{
id: '5b717911-dc75-4876-bf33-dfdc994c88cd',
@ -5,19 +7,17 @@ export const mockedRemoteObjectIntegrations = [
connections: [
{
id: '67cbfd35-8dd4-4591-b9d4-c1906281a5da',
key: 'twenty_postgres',
name: 'Twenty_postgres',
tables: [
{ id: 'invoices', name: 'Invoices' },
{ id: 'quotes', name: 'Quotes', isSynced: true },
{ id: 'customers', name: 'Customers', isSynced: false },
{ id: 'subscriptions', name: 'Subscriptions', isSynced: true },
{ id: 'payments', name: 'Payments' },
{ name: 'Invoices', status: RemoteTableStatus.NotSynced },
{ name: 'Quotes', status: RemoteTableStatus.Synced },
{ name: 'Customers', status: RemoteTableStatus.NotSynced },
{ name: 'Subscriptions', status: RemoteTableStatus.Synced },
{ name: 'Payments', status: RemoteTableStatus.NotSynced },
],
},
{
id: '3740cd85-7a1e-45b5-8b0d-47e1921d01f3',
key: 'image_postgres',
name: 'Image_postgres',
tables: [],
},