🔧 fix(base.py): add input_types property to TemplateFieldCreator class

🔧 fix(index.ts): add input_types property to TemplateVariableType interface
The `input_types` property is added to the `TemplateFieldCreator` class in `base.py` and the `TemplateVariableType` interface in `index.ts`. This change allows for specifying the input types for template fields and template variables, respectively.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-28 11:33:42 -03:00
commit 0ecb531749
2 changed files with 2 additions and 0 deletions

View file

@ -21,6 +21,7 @@ class TemplateFieldCreator(BaseModel, ABC):
name: str = ""
display_name: Optional[str] = None
advanced: bool = False
input_types: list[str] = []
def to_dict(self):
result = self.dict()

View file

@ -23,6 +23,7 @@ export type TemplateVariableType = {
show: boolean;
multiline?: boolean;
value?: any;
input_types?: Array<string>;
[key: string]: any;
};
export type sendAllProps = {