Add attachment schema type

This commit is contained in:
Adria Navarro 2024-03-20 19:11:02 +01:00
parent 756970319a
commit 0b3a48b2b7
1 changed files with 6 additions and 0 deletions

View File

@ -147,6 +147,10 @@ interface BaseFieldSchema extends UIFieldMetadata {
autoReason?: AutoReason.FOREIGN_KEY
subtype?: never
}
interface AttachmentFieldMetadata extends Omit<BaseFieldSchema, "subtype"> {
type: FieldType.ATTACHMENT
subtype?: FieldSubtype.SINGLE
}
interface OtherFieldMetadata extends BaseFieldSchema {
type: Exclude<
@ -157,6 +161,7 @@ interface OtherFieldMetadata extends BaseFieldSchema {
| FieldType.FORMULA
| FieldType.NUMBER
| FieldType.LONGFORM
| FieldType.ATTACHMENT
>
}
@ -168,6 +173,7 @@ export type FieldSchema =
| FormulaFieldMetadata
| NumberFieldMetadata
| LongFormFieldMetadata
| AttachmentFieldMetadata
| BBReferenceFieldMetadata
| JsonFieldMetadata