#970 #997 Fully integrate NocoDB. Added all API Functions: - List Table Records - Create Table Records - Update Table Records - Delete Table Records - Read Table Record - Count Table Records - List Linked Records - Link Records - Unlink Records Optional Todo: - Save responses of non-get requests in a variable (error validation try-catch is added and logged so i do not think so it is much needed) You are free to implement any extra validation/function :D --------- Co-authored-by: Baptiste Arnaud <baptiste.arnaud95@gmail.com>
17 lines
550 B
TypeScript
17 lines
550 B
TypeScript
import { createBlock } from '@typebot.io/forge'
|
|
import { NocodbLogo } from './logo'
|
|
import { auth } from './auth'
|
|
import { searchRecords } from './actions/searchRecords'
|
|
import { createRecord } from './actions/createRecord'
|
|
import { updateExistingRecord } from './actions/updateExistingRecord'
|
|
|
|
export const nocodbBlock = createBlock({
|
|
id: 'nocodb',
|
|
name: 'NocoDB',
|
|
docsUrl: 'https://docs.typebot.io/forge/blocks/nocodb',
|
|
tags: ['database'],
|
|
LightLogo: NocodbLogo,
|
|
auth,
|
|
actions: [searchRecords, createRecord, updateExistingRecord],
|
|
})
|