Preparing search index...
The search index is not available
@kynesyslabs/demosdk
@kynesyslabs/demosdk
demoswork
ConditionalOperation
Class ConditionalOperation
Hierarchy (
view full
)
DemosWorkOperation
ConditionalOperation
Index
Constructors
constructor
Properties
id
operations
operation
Script
output
steps
temp
Condition
type
Accessors
critical
depends_
on
Methods
add
Work
append
Condition
else
if
index
Condition
parse
Condition
Value
then
Constructors
constructor
new
Conditional
Operation
(
...
conditions
)
:
ConditionalOperation
Parameters
Rest
...
conditions
:
Condition
[]
Returns
ConditionalOperation
Properties
id
id
:
string
= ...
operations
operations
:
Set
<
DemosWorkOperation
>
= ...
operation
Script
operation
Script
:
ConditionalOperationScript
= ...
output
output
:
{
success
:
{
src
:
{
key
:
string
;
self
:
DemosWorkOperation
;
}
;
type
:
work
;
}
;
}
= ...
steps
steps
:
Record
<
string
,
WorkStep
>
= {}
temp
Condition
temp
Condition
:
Condition
= null
type
type
:
OperationType
= "conditional"
Accessors
critical
get
critical
(
)
:
boolean
Returns
boolean
set
critical
(
value
)
:
void
Parameters
value
:
boolean
Returns
void
depends_
on
get
depends_on
(
)
:
string
[]
Returns
string
[]
Methods
add
Work
add
Work
(
work
)
:
void
Parameters
work
:
WorkStep
|
DemosWorkOperation
Returns
void
append
Condition
append
Condition
(
condition
)
:
number
Parameters
condition
:
Condition
Returns
number
else
else
(
step
)
:
number
Parameters
step
:
WorkStep
|
DemosWorkOperation
Returns
number
if
if
(
value_a
,
operator
,
value_b
?
)
:
{
then
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
{
elif
:
(
(
value_a
:
any
,
operator
:
operators
,
value_b
?:
any
)
=>
{ then: (step: WorkStep | DemosWorkOperation) => { elif: (value_a: any, operator: operators, value_b?: any) => ...; else: (step: WorkStep | DemosWorkOperation) => number; }; }
)
;
else
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
number
)
;
}
)
;
}
Parameters
value_a
:
any
operator
:
operators
Optional
value_b
:
any
Returns
{
then
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
{
elif
:
(
(
value_a
:
any
,
operator
:
operators
,
value_b
?:
any
)
=>
{ then: (step: WorkStep | DemosWorkOperation) => { elif: (value_a: any, operator: operators, value_b?: any) => ...; else: (step: WorkStep | DemosWorkOperation) => number; }; }
)
;
else
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
number
)
;
}
)
;
}
then
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
{
elif
:
(
(
value_a
:
any
,
operator
:
operators
,
value_b
?:
any
)
=>
{ then: (step: WorkStep | DemosWorkOperation) => { elif: (value_a: any, operator: operators, value_b?: any) => ...; else: (step: WorkStep | DemosWorkOperation) => number; }; }
)
;
else
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
number
)
;
}
)
(
step
)
:
{
elif
:
(
(
value_a
:
any
,
operator
:
operators
,
value_b
?:
any
)
=>
{ then: (step: WorkStep | DemosWorkOperation) => { elif: (value_a: any, operator: operators, value_b?: any) => ...; else: (step: WorkStep | DemosWorkOperation) => number; }; }
)
;
else
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
number
)
;
}
Parameters
step
:
WorkStep
|
DemosWorkOperation
Returns
{
elif
:
(
(
value_a
:
any
,
operator
:
operators
,
value_b
?:
any
)
=>
{ then: (step: WorkStep | DemosWorkOperation) => { elif: (value_a: any, operator: operators, value_b?: any) => ...; else: (step: WorkStep | DemosWorkOperation) => number; }; }
)
;
else
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
number
)
;
}
elif
:
(
(
value_a
:
any
,
operator
:
operators
,
value_b
?:
any
)
=>
{ then: (step: WorkStep | DemosWorkOperation) => { elif: (value_a: any, operator: operators, value_b?: any) => ...; else: (step: WorkStep | DemosWorkOperation) => number; }; }
)
(
value_a
,
operator
,
value_b
?
)
:
{ then: (step: WorkStep | DemosWorkOperation) => { elif: (value_a: any, operator: operators, value_b?: any) => ...; else: (step: WorkStep | DemosWorkOperation) => number; }; }
Parameters
value_a
:
any
operator
:
operators
Optional
value_b
:
any
Returns { then: (step: WorkStep | DemosWorkOperation) => { elif: (value_a: any, operator: operators, value_b?: any) => ...; else: (step: WorkStep | DemosWorkOperation) => number; }; }
else
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
number
)
(
step
)
:
number
Parameters
step
:
WorkStep
|
DemosWorkOperation
Returns
number
index
Condition
index
Condition
(
condition
)
:
{
key
:
string
;
type
:
internal
;
workUID
:
string
;
}
Parameters
condition
:
Condition
Returns
{
key
:
string
;
type
:
internal
;
workUID
:
string
;
}
key
:
string
type
:
internal
workUID
:
string
parse
Condition
Value
parse
Condition
Value
(
value
)
:
Operand
Parameters
value
:
Condition
|
Operand
Returns
Operand
then
then
(
step
)
:
{
elif
:
(
(
value_a
:
any
,
operator
:
operators
,
value_b
?:
any
)
=>
{
then
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
{ elif: (value_a: any, operator: operators, value_b?: any) => { then: (step: WorkStep | DemosWorkOperation) => ...; }; else: (step: WorkStep | DemosWorkOperation) => number; }
)
;
}
)
;
else
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
number
)
;
}
Parameters
step
:
WorkStep
|
DemosWorkOperation
Returns
{
elif
:
(
(
value_a
:
any
,
operator
:
operators
,
value_b
?:
any
)
=>
{
then
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
{ elif: (value_a: any, operator: operators, value_b?: any) => { then: (step: WorkStep | DemosWorkOperation) => ...; }; else: (step: WorkStep | DemosWorkOperation) => number; }
)
;
}
)
;
else
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
number
)
;
}
elif
:
(
(
value_a
:
any
,
operator
:
operators
,
value_b
?:
any
)
=>
{
then
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
{ elif: (value_a: any, operator: operators, value_b?: any) => { then: (step: WorkStep | DemosWorkOperation) => ...; }; else: (step: WorkStep | DemosWorkOperation) => number; }
)
;
}
)
(
value_a
,
operator
,
value_b
?
)
:
{
then
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
{ elif: (value_a: any, operator: operators, value_b?: any) => { then: (step: WorkStep | DemosWorkOperation) => ...; }; else: (step: WorkStep | DemosWorkOperation) => number; }
)
;
}
Parameters
value_a
:
any
operator
:
operators
Optional
value_b
:
any
Returns
{
then
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
{ elif: (value_a: any, operator: operators, value_b?: any) => { then: (step: WorkStep | DemosWorkOperation) => ...; }; else: (step: WorkStep | DemosWorkOperation) => number; }
)
;
}
then
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
{ elif: (value_a: any, operator: operators, value_b?: any) => { then: (step: WorkStep | DemosWorkOperation) => ...; }; else: (step: WorkStep | DemosWorkOperation) => number; }
)
(
step
)
:
{ elif: (value_a: any, operator: operators, value_b?: any) => { then: (step: WorkStep | DemosWorkOperation) => ...; }; else: (step: WorkStep | DemosWorkOperation) => number; }
Parameters
step
:
WorkStep
|
DemosWorkOperation
Returns { elif: (value_a: any, operator: operators, value_b?: any) => { then: (step: WorkStep | DemosWorkOperation) => ...; }; else: (step: WorkStep | DemosWorkOperation) => number; }
else
:
(
(
step
:
WorkStep
|
DemosWorkOperation
)
=>
number
)
(
step
)
:
number
Parameters
step
:
WorkStep
|
DemosWorkOperation
Returns
number
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
id
operations
operation
Script
output
steps
temp
Condition
type
Accessors
critical
depends_
on
Methods
add
Work
append
Condition
else
if
index
Condition
parse
Condition
Value
then
@kynesyslabs/demosdk
Loading...