mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-10 23:48:09 -05:00
Finalized output type structure
This commit is contained in:
@@ -11,9 +11,7 @@ export const ApiBlock: BlockConfig = {
|
||||
category: 'basic',
|
||||
},
|
||||
workflow: {
|
||||
outputType: {
|
||||
default: 'json'
|
||||
},
|
||||
outputType: 'json',
|
||||
subBlocks: [
|
||||
{
|
||||
title: 'URL',
|
||||
|
||||
@@ -11,9 +11,7 @@ export const ConditionalBlock: BlockConfig = {
|
||||
category: 'basic',
|
||||
},
|
||||
workflow: {
|
||||
outputType: {
|
||||
default: 'boolean'
|
||||
},
|
||||
outputType: 'boolean',
|
||||
subBlocks: [
|
||||
{
|
||||
title: 'Condition Type',
|
||||
|
||||
@@ -22,9 +22,9 @@ export interface SubBlockConfig {
|
||||
password?: boolean
|
||||
}
|
||||
|
||||
export interface OutputTypeConfig {
|
||||
export type OutputTypeConfig = OutputType | {
|
||||
default: OutputType
|
||||
dependsOn?: {
|
||||
dependsOn: {
|
||||
subBlockId: string
|
||||
condition: {
|
||||
whenEmpty: OutputType
|
||||
|
||||
Reference in New Issue
Block a user