f9c19c839b
Adding stripe integration by making the server logic independent of the input fields: - query factories (remote server, foreign data wrapper, foreign table) to loop on fields and values without hardcoding the names of the fields - adding stripe input and type - add the logic to handle static schema. Simply creating a big object to store into the server Additional work: - rename username field to user. This is the input intended for postgres user mapping and we now need a matching by name --------- Co-authored-by: Thomas Trompette <thomast@twenty.com>
21 lines
557 B
TypeScript
21 lines
557 B
TypeScript
export const mockedRemoteServers = [
|
|
{
|
|
__typename: 'RemoteServer',
|
|
id: '67cbfd35-8dd4-4591-b9d4-c1906281a5da',
|
|
createdAt: '2024-04-30T13:41:25.584Z',
|
|
foreignDataWrapperId: 'b306b641-2142-4b4e-8fba-976afbc3b2bc',
|
|
foreignDataWrapperOptions: {
|
|
host: 'localhost',
|
|
port: 5432,
|
|
dbname: 'dbname_test',
|
|
},
|
|
foreignDataWrapperType: 'postgres_fdw',
|
|
userMappingOptions: {
|
|
__typename: 'UserMappingOptionsDTO',
|
|
user: 'twenty',
|
|
},
|
|
updatedAt: '2024-04-30T13:41:25.858Z',
|
|
schema: 'public',
|
|
},
|
|
];
|