Admit defeat.

This commit is contained in:
Sam Rose 2025-01-08 17:03:40 +00:00
parent 7d6b822b8a
commit 68c2b29e62
No known key found for this signature in database
2 changed files with 8 additions and 51 deletions

@ -1 +1 @@
Subproject commit 788173a024fd5ef98d3122b26dbc06d39fb51349
Subproject commit 71922a7d979ddca6f51d9e450abcd81ba9a5b6fa

View File

@ -118,59 +118,16 @@ export interface FormulaFieldMetadata extends BaseFieldSchema {
responseType?: FormulaResponseType
}
interface AITranslateFieldMetadata extends BaseFieldSchema {
export interface AIFieldMetadata extends BaseFieldSchema {
type: FieldType.AI
operation: AIOperationEnum.TRANSLATE
column: string
language: string
operation: AIOperationEnum
columns?: string[]
column?: string
categories?: string
prompt?: string
language?: string
}
interface AICleanDataFieldMetadata extends BaseFieldSchema {
type: FieldType.AI
operation: AIOperationEnum.CLEAN_DATA
column: string
}
interface AICategoriseTextFieldMetadata extends BaseFieldSchema {
type: FieldType.AI
operation: AIOperationEnum.CATEGORISE_TEXT
columns: string[]
categories: string
}
interface AISentimentAnalysisFieldMetadata extends BaseFieldSchema {
type: FieldType.AI
operation: AIOperationEnum.SENTIMENT_ANALYSIS
column: string
}
interface AISearchWebFieldMetadata extends BaseFieldSchema {
type: FieldType.AI
operation: AIOperationEnum.SEARCH_WEB
columns: string[]
}
interface AIPromptFieldMetadata extends BaseFieldSchema {
type: FieldType.AI
operation: AIOperationEnum.PROMPT
prompt: string
}
interface AISummariseTextFieldMetadata extends BaseFieldSchema {
type: FieldType.AI
operation: AIOperationEnum.SUMMARISE_TEXT
columns: string[]
}
export type AIFieldMetadata =
| AITranslateFieldMetadata
| AICleanDataFieldMetadata
| AICategoriseTextFieldMetadata
| AISentimentAnalysisFieldMetadata
| AIPromptFieldMetadata
| AISearchWebFieldMetadata
| AISummariseTextFieldMetadata
export interface BBReferenceFieldMetadata
extends Omit<BaseFieldSchema, "subtype"> {
type: FieldType.BB_REFERENCE