#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>
25 lines
736 B
TypeScript
25 lines
736 B
TypeScript
import { option, AuthDefinition } from '@typebot.io/forge'
|
|
import { defaultBaseUrl } from './constants'
|
|
|
|
export const auth = {
|
|
type: 'encryptedCredentials',
|
|
name: 'NocoDB account',
|
|
schema: option.object({
|
|
baseUrl: option.string.layout({
|
|
label: 'Base URL',
|
|
isRequired: true,
|
|
helperText: 'Change it only if you are self-hosting NocoDB.',
|
|
withVariableButton: false,
|
|
defaultValue: defaultBaseUrl,
|
|
}),
|
|
apiKey: option.string.layout({
|
|
label: 'API Token',
|
|
isRequired: true,
|
|
helperText:
|
|
'You can generate an API token [here](https://app.nocodb.com/#/account/tokens)',
|
|
inputType: 'password',
|
|
withVariableButton: false,
|
|
}),
|
|
}),
|
|
} satisfies AuthDefinition
|