✨ Add NocoDB block (#1365)
#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>
This commit is contained in:
committed by
GitHub
parent
3e4e7531f6
commit
a17781dfa6
@@ -20,7 +20,7 @@ export interface ZodLayoutMetadata<
|
||||
itemLabel?: T extends OptionableZodType<ZodArray<any>> ? string : never
|
||||
isOrdered?: T extends OptionableZodType<ZodArray<any>> ? boolean : never
|
||||
moreInfoTooltip?: string
|
||||
isHidden?: boolean
|
||||
isHidden?: boolean | ((currentObj: Record<string, any>) => boolean)
|
||||
isDebounceDisabled?: boolean
|
||||
hiddenItems?: string[]
|
||||
}
|
||||
|
||||
9
packages/forge/core/zod/helpers/evaluateIsHidden.ts
Normal file
9
packages/forge/core/zod/helpers/evaluateIsHidden.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export const evaluateIsHidden = (
|
||||
isHidden: boolean | ((obj: any) => boolean) | undefined,
|
||||
obj: any
|
||||
): boolean => {
|
||||
if (typeof isHidden === 'function') {
|
||||
return isHidden(obj)
|
||||
}
|
||||
return isHidden ?? false
|
||||
}
|
||||
Reference in New Issue
Block a user