modules
@nishans/notion-formula / Exports
#
@nishans/notion-formula#
Index#
Interfaces#
Type aliases- AbsFunctionArrayCreateInput
- AbsFunctionCreateInput
- AndFunctionArrayCreateInput
- AndFunctionCreateInput
- AnyArrayResultType
- CbrtFunctionArrayCreateInput
- CbrtFunctionCreateInput
- CeilFunctionArrayCreateInput
- CeilFunctionCreateInput
- CheckboxIfFunctionArrayCreateInput
- CheckboxIfFunctionCreateInput
- ConcatFunctionArrayCreateInput
- ConcatFunctionCreateInput
- ContainsFunctionArrayCreateInput
- ContainsFunctionCreateInput
- DateAddFunctionArrayCreateInput
- DateAddFunctionCreateInput
- DateBetweenFunctionArrayCreateInput
- DateBetweenFunctionCreateInput
- DateFunctionArrayCreateInput
- DateFunctionCreateInput
- DateIfFunctionArrayCreateInput
- DateIfFunctionCreateInput
- DateSubtractFunctionArrayCreateInput
- DateSubtractFunctionCreateInput
- DayFunctionArrayCreateInput
- DayFunctionCreateInput
- DivideFunctionArrayCreateInput
- DivideFunctionCreateInput
- EmptyFunctionArrayCreateInput
- EmptyFunctionCreateInput
- EndFunctionArrayCreateInput
- EndFunctionCreateInput
- EqualFunctionArrayCreateInput
- EqualFunctionCreateInput
- ExpFunctionArrayCreateInput
- ExpFunctionCreateInput
- FloorFunctionArrayCreateInput
- FloorFunctionCreateInput
- FormatDateFunctionArrayCreateInput
- FormatDateFunctionCreateInput
- FormatFunctionArrayCreateInput
- FormatFunctionCreateInput
- FormulaArraySchemaUnitInput
- FormulaSchemaUnitInput
- FromTimestampFunctionArrayCreateInput
- FromTimestampFunctionCreateInput
- HourFunctionArrayCreateInput
- HourFunctionCreateInput
- IFunctionForumlaSignature
- ISchemaMap
- ISchemaMapValue
- JoinFunctionArrayCreateInput
- JoinFunctionCreateInput
- LargerEqFunctionArrayCreateInput
- LargerEqFunctionCreateInput
- LargerFunctionArrayCreateInput
- LargerFunctionCreateInput
- LengthFunctionArrayCreateInput
- LengthFunctionCreateInput
- LnFunctionArrayCreateInput
- LnFunctionCreateInput
- Log10FunctionArrayCreateInput
- Log10FunctionCreateInput
- Log2FunctionArrayCreateInput
- Log2FunctionCreateInput
- MaxFunctionArrayCreateInput
- MaxFunctionCreateInput
- MinFunctionArrayCreateInput
- MinFunctionCreateInput
- MinuteFunctionArrayCreateInput
- MinuteFunctionCreateInput
- ModFunctionArrayCreateInput
- ModFunctionCreateInput
- MonthFunctionArrayCreateInput
- MonthFunctionCreateInput
- MultiplyFunctionArrayCreateInput
- MultiplyFunctionCreateInput
- NotFunctionArrayCreateInput
- NotFunctionCreateInput
- NowFunctionArrayCreateInput
- NowFunctionCreateInput
- NumberAddFunctionArrayCreateInput
- NumberAddFunctionCreateInput
- NumberIfFunctionArrayCreateInput
- NumberIfFunctionCreateInput
- OrFunctionArrayCreateInput
- OrFunctionCreateInput
- PowFunctionArrayCreateInput
- PowFunctionCreateInput
- ReplaceAllFunctionArrayCreateInput
- ReplaceAllFunctionCreateInput
- ReplaceFunctionArrayCreateInput
- ReplaceFunctionCreateInput
- RoundFunctionArrayCreateInput
- RoundFunctionCreateInput
- SignFunctionArrayCreateInput
- SignFunctionCreateInput
- SliceFunctionArrayCreateInput
- SliceFunctionCreateInput
- SmallerEqFunctionArrayCreateInput
- SmallerEqFunctionCreateInput
- SmallerFunctionArrayCreateInput
- SmallerFunctionCreateInput
- SqrtFunctionArrayCreateInput
- SqrtFunctionCreateInput
- StartFunctionArrayCreateInput
- StartFunctionCreateInput
- SubtractFunctionArrayCreateInput
- SubtractFunctionCreateInput
- TCheckboxArrayResultType
- TCheckboxFunctionArrayCreateInput
- TCheckboxFunctionCreateInput
- TCheckboxResultType
- TDateArrayResultType
- TDateFunctionArrayCreateInput
- TDateFunctionCreateInput
- TDateResultType
- TFormulaArrayCreateInput
- TFormulaCreateInput
- TNumberArrayResultType
- TNumberFunctionArrayCreateInput
- TNumberFunctionCreateInput
- TNumberResultType
- TResultType
- TTextArrayResultType
- TTextFunctionArrayCreateInput
- TTextFunctionCreateInput
- TTextResultType
- TestFunctionArrayCreateInput
- TestFunctionCreateInput
- TextAddFunctionArrayCreateInput
- TextAddFunctionCreateInput
- TextIfFunctionArrayCreateInput
- TextIfFunctionCreateInput
- TimestampFunctionArrayCreateInput
- TimestampFunctionCreateInput
- ToNumberFunctionArrayCreateInput
- ToNumberFunctionCreateInput
- UnaryMinusFunctionArrayCreateInput
- UnaryMinusFunctionCreateInput
- UnaryPlusFunctionArrayCreateInput
- UnaryPlusFunctionCreateInput
- UnequalFunctionArrayCreateInput
- UnequalFunctionCreateInput
- YearFunctionArrayCreateInput
- YearFunctionCreateInput
#
Variables#
Functions- formulateResultTypeFromSchemaType
- generateFormulaASTFromArray
- generateFormulaASTFromObject
- generateFormulaASTFromString
- generateFormulaArgFromProperty
- generateFormulaArgsFromLiterals
#
Type aliases#
AbsFunctionArrayCreateInputƬ AbsFunctionArrayCreateInput: [abs, [TNumberArrayResultType]]
Defined in: types/formula-array.ts:83
#
AbsFunctionCreateInputƬ AbsFunctionCreateInput: IFunctionCreateInput<abs, [TNumberResultType]>
Defined in: types/formula-object.ts:78
#
AndFunctionArrayCreateInputƬ AndFunctionArrayCreateInput: [and, Tuple2<TCheckboxArrayResultType>]
Defined in: types/formula-array.ts:58
#
AndFunctionCreateInputƬ AndFunctionCreateInput: IFunctionCreateInput<and, Tuple2<TCheckboxResultType>>
Defined in: types/formula-object.ts:58
#
AnyArrayResultTypeƬ AnyArrayResultType: TCheckboxArrayResultType | TTextArrayResultType | TNumberArrayResultType | TDateArrayResultType
Defined in: types/formula-array.ts:4
#
CbrtFunctionArrayCreateInputƬ CbrtFunctionArrayCreateInput: [cbrt, [TNumberArrayResultType]]
Defined in: types/formula-array.ts:84
#
CbrtFunctionCreateInputƬ CbrtFunctionCreateInput: IFunctionCreateInput<cbrt, [TNumberResultType]>
Defined in: types/formula-object.ts:79
#
CeilFunctionArrayCreateInputƬ CeilFunctionArrayCreateInput: [ceil, [TNumberArrayResultType]]
Defined in: types/formula-array.ts:85
#
CeilFunctionCreateInputƬ CeilFunctionCreateInput: IFunctionCreateInput<ceil, [TNumberResultType]>
Defined in: types/formula-object.ts:80
#
CheckboxIfFunctionArrayCreateInputƬ CheckboxIfFunctionArrayCreateInput: [if, Tuple12<TCheckboxArrayResultType, TCheckboxArrayResultType>]
Defined in: types/formula-array.ts:26
#
CheckboxIfFunctionCreateInputƬ CheckboxIfFunctionCreateInput: IFunctionCreateInput<if, Tuple12<TCheckboxResultType, TCheckboxResultType>>
Defined in: types/formula-object.ts:30
#
ConcatFunctionArrayCreateInputƬ ConcatFunctionArrayCreateInput: [concat, TTextArrayResultType[]]
Defined in: types/formula-array.ts:48
#
ConcatFunctionCreateInputƬ ConcatFunctionCreateInput: IFunctionCreateInput<concat, TTextResultType[]>
Defined in: types/formula-object.ts:51
#
ContainsFunctionArrayCreateInputƬ ContainsFunctionArrayCreateInput: [contains, Tuple2<TTextArrayResultType>]
Defined in: types/formula-array.ts:72
#
ContainsFunctionCreateInputƬ ContainsFunctionCreateInput: IFunctionCreateInput<contains, Tuple2<TTextResultType>>
Defined in: types/formula-object.ts:72
#
DateAddFunctionArrayCreateInputƬ DateAddFunctionArrayCreateInput: [dateAdd, [TDateArrayResultType, TNumberArrayResultType, TDateConstantValueType]]
Defined in: types/formula-array.ts:98
#
DateAddFunctionCreateInputƬ DateAddFunctionCreateInput: IFunctionCreateInput<dateAdd, [TDateResultType, TNumberResultType, TDateConstantValueType]>
Defined in: types/formula-object.ts:93
#
DateBetweenFunctionArrayCreateInputƬ DateBetweenFunctionArrayCreateInput: [dateBetween, Tuple12<TDateArrayResultType, TDateConstantValueType>]
Defined in: types/formula-array.ts:106
#
DateBetweenFunctionCreateInputƬ DateBetweenFunctionCreateInput: IFunctionCreateInput<dateBetween, Tuple12<TDateResultType, TDateConstantValueType>>
Defined in: types/formula-object.ts:101
#
DateFunctionArrayCreateInputƬ DateFunctionArrayCreateInput: [date, [TDateArrayResultType]]
Defined in: types/formula-array.ts:117
#
DateFunctionCreateInputƬ DateFunctionCreateInput: IFunctionCreateInput<date, [TDateResultType]>
Defined in: types/formula-object.ts:111
#
DateIfFunctionArrayCreateInputƬ DateIfFunctionArrayCreateInput: [if, Tuple12<TCheckboxArrayResultType, TCheckboxArrayResultType>]
Defined in: types/formula-array.ts:27
#
DateIfFunctionCreateInputƬ DateIfFunctionCreateInput: IFunctionCreateInput<if, Tuple12<TCheckboxResultType, TDateResultType>>
Defined in: types/formula-object.ts:34
#
DateSubtractFunctionArrayCreateInputƬ DateSubtractFunctionArrayCreateInput: [dateSubtract, [TDateArrayResultType, TNumberArrayResultType, TDateConstantValueType]]
Defined in: types/formula-array.ts:102
#
DateSubtractFunctionCreateInputƬ DateSubtractFunctionCreateInput: IFunctionCreateInput<dateSubtract, [TDateResultType, TNumberResultType, TDateConstantValueType]>
Defined in: types/formula-object.ts:97
#
DayFunctionArrayCreateInputƬ DayFunctionArrayCreateInput: [day, [TDateArrayResultType]]
Defined in: types/formula-array.ts:116
#
DayFunctionCreateInputƬ DayFunctionCreateInput: IFunctionCreateInput<day, [TDateResultType]>
Defined in: types/formula-object.ts:110
#
DivideFunctionArrayCreateInputƬ DivideFunctionArrayCreateInput: [divide, Tuple2<TNumberArrayResultType>]
Defined in: types/formula-array.ts:66
#
DivideFunctionCreateInputƬ DivideFunctionCreateInput: IFunctionCreateInput<divide, Tuple2<TNumberResultType>>
Defined in: types/formula-object.ts:66
#
EmptyFunctionArrayCreateInputƬ EmptyFunctionArrayCreateInput: [empty, [AnyArrayResultType]]
Defined in: types/formula-array.ts:82
#
EmptyFunctionCreateInputƬ EmptyFunctionCreateInput: IFunctionCreateInput<empty, [TResultType]>
Defined in: types/formula-object.ts:77
#
EndFunctionArrayCreateInputƬ EndFunctionArrayCreateInput: [end, [TDateArrayResultType]]
Defined in: types/formula-array.ts:97
#
EndFunctionCreateInputƬ EndFunctionCreateInput: IFunctionCreateInput<end, [TDateResultType]>
Defined in: types/formula-object.ts:92
#
EqualFunctionArrayCreateInputƬ EqualFunctionArrayCreateInput: [equal, Tuple2AnyArrayResultType]
Defined in: types/formula-array.ts:28
#
EqualFunctionCreateInputƬ EqualFunctionCreateInput: IFunctionCreateInput<equal, Tuple2AnyResultType>
Defined in: types/formula-object.ts:35
#
ExpFunctionArrayCreateInputƬ ExpFunctionArrayCreateInput: [exp, [TNumberArrayResultType]]
Defined in: types/formula-array.ts:86
#
ExpFunctionCreateInputƬ ExpFunctionCreateInput: IFunctionCreateInput<exp, [TNumberResultType]>
Defined in: types/formula-object.ts:81
#
FloorFunctionArrayCreateInputƬ FloorFunctionArrayCreateInput: [floor, [TNumberArrayResultType]]
Defined in: types/formula-array.ts:87
#
FloorFunctionCreateInputƬ FloorFunctionCreateInput: IFunctionCreateInput<floor, [TNumberResultType]>
Defined in: types/formula-object.ts:82
#
FormatDateFunctionArrayCreateInputƬ FormatDateFunctionArrayCreateInput: [formatDate, [TDateArrayResultType, TTextArrayResultType]]
Defined in: types/formula-array.ts:110
#
FormatDateFunctionCreateInputƬ FormatDateFunctionCreateInput: IFunctionCreateInput<formatDate, [TDateResultType, TTextResultType]>
Defined in: types/formula-object.ts:105
#
FormatFunctionArrayCreateInputƬ FormatFunctionArrayCreateInput: [format, [AnyArrayResultType]]
Defined in: types/formula-array.ts:57
#
FormatFunctionCreateInputƬ FormatFunctionCreateInput: IFunctionCreateInput<format, [TResultType]>
Defined in: types/formula-object.ts:57
#
FormulaArraySchemaUnitInputƬ FormulaArraySchemaUnitInput: { formula
: TFormulaArrayCreateInput ; name
: string ; type
: formula }
#
Type declaration:Name | Type |
---|---|
formula | TFormulaArrayCreateInput |
name | string |
type | formula |
Defined in: types/formula-array.ts:200
#
FormulaSchemaUnitInputƬ FormulaSchemaUnitInput: { formula
: TFormulaCreateInput ; name
: string ; type
: formula }
#
Type declaration:Name | Type |
---|---|
formula | TFormulaCreateInput |
name | string |
type | formula |
Defined in: types/formula-object.ts:197
#
FromTimestampFunctionArrayCreateInputƬ FromTimestampFunctionArrayCreateInput: [fromTimestamp, [TNumberArrayResultType]]
Defined in: types/formula-array.ts:113
#
FromTimestampFunctionCreateInputƬ FromTimestampFunctionCreateInput: IFunctionCreateInput<fromTimestamp, [TNumberResultType]>
Defined in: types/formula-object.ts:107
#
HourFunctionArrayCreateInputƬ HourFunctionArrayCreateInput: [hour, [TDateArrayResultType]]
Defined in: types/formula-array.ts:115
#
HourFunctionCreateInputƬ HourFunctionCreateInput: IFunctionCreateInput<hour, [TDateResultType]>
Defined in: types/formula-object.ts:109
#
IFunctionForumlaSignatureƬ IFunctionForumlaSignature: { arity?
: TFormulaResultType[] ; result_type
: TFormulaResultType ; variadic?
: TFormulaResultType }
#
Type declaration:Name | Type |
---|---|
arity? | TFormulaResultType[] |
result_type | TFormulaResultType |
variadic? | TFormulaResultType |
Defined in: utils/functionFormulaInfo.ts:3
#
ISchemaMapƬ ISchemaMap: Map<string, ISchemaMapValue>
Defined in: types/formula-object.ts:4
#
ISchemaMapValueƬ ISchemaMapValue: { schema_id
: string } & TSchemaUnit
Defined in: types/formula-object.ts:3
#
JoinFunctionArrayCreateInputƬ JoinFunctionArrayCreateInput: [join, TTextArrayResultType[]]
Defined in: types/formula-array.ts:49
#
JoinFunctionCreateInputƬ JoinFunctionCreateInput: IFunctionCreateInput<join, TTextResultType[]>
Defined in: types/formula-object.ts:52
#
LargerEqFunctionArrayCreateInputƬ LargerEqFunctionArrayCreateInput: [largerEq, Tuple2<TCheckboxArrayResultType>]
Defined in: types/formula-array.ts:61
#
LargerEqFunctionCreateInputƬ LargerEqFunctionCreateInput: IFunctionCreateInput<largerEq, Tuple2<TCheckboxResultType>>
Defined in: types/formula-object.ts:61
#
LargerFunctionArrayCreateInputƬ LargerFunctionArrayCreateInput: [larger, Tuple2<TCheckboxArrayResultType>]
Defined in: types/formula-array.ts:60
#
LargerFunctionCreateInputƬ LargerFunctionCreateInput: IFunctionCreateInput<larger, Tuple2<TCheckboxResultType>>
Defined in: types/formula-object.ts:60
#
LengthFunctionArrayCreateInputƬ LengthFunctionArrayCreateInput: [length, [TTextArrayResultType]]
Defined in: types/formula-array.ts:120
#
LengthFunctionCreateInputƬ LengthFunctionCreateInput: IFunctionCreateInput<length, [TTextResultType]>
Defined in: types/formula-object.ts:114
#
LnFunctionArrayCreateInputƬ LnFunctionArrayCreateInput: [ln, [TNumberArrayResultType]]
Defined in: types/formula-array.ts:88
#
LnFunctionCreateInputƬ LnFunctionCreateInput: IFunctionCreateInput<ln, [TNumberResultType]>
Defined in: types/formula-object.ts:83
#
Log10FunctionArrayCreateInputƬ Log10FunctionArrayCreateInput: [log10, [TNumberArrayResultType]]
Defined in: types/formula-array.ts:89
#
Log10FunctionCreateInputƬ Log10FunctionCreateInput: IFunctionCreateInput<log10, [TNumberResultType]>
Defined in: types/formula-object.ts:84
#
Log2FunctionArrayCreateInputƬ Log2FunctionArrayCreateInput: [log2, [TNumberArrayResultType]]
Defined in: types/formula-array.ts:90
#
Log2FunctionCreateInputƬ Log2FunctionCreateInput: IFunctionCreateInput<log2, [TNumberResultType]>
Defined in: types/formula-object.ts:85
#
MaxFunctionArrayCreateInputƬ MaxFunctionArrayCreateInput: [max, TNumberArrayResultType[]]
Defined in: types/formula-array.ts:91
#
MaxFunctionCreateInputƬ MaxFunctionCreateInput: IFunctionCreateInput<max, TNumberResultType[]>
Defined in: types/formula-object.ts:86
#
MinFunctionArrayCreateInputƬ MinFunctionArrayCreateInput: [min, TNumberArrayResultType[]]
Defined in: types/formula-array.ts:92
#
MinFunctionCreateInputƬ MinFunctionCreateInput: IFunctionCreateInput<min, TNumberResultType[]>
Defined in: types/formula-object.ts:87
#
MinuteFunctionArrayCreateInputƬ MinuteFunctionArrayCreateInput: [minute, [TDateArrayResultType]]
Defined in: types/formula-array.ts:114
#
MinuteFunctionCreateInputƬ MinuteFunctionCreateInput: IFunctionCreateInput<minute, [TDateResultType]>
Defined in: types/formula-object.ts:108
#
ModFunctionArrayCreateInputƬ ModFunctionArrayCreateInput: [mod, Tuple2<TNumberArrayResultType>]
Defined in: types/formula-array.ts:69
#
ModFunctionCreateInputƬ ModFunctionCreateInput: IFunctionCreateInput<mod, Tuple2<TNumberResultType>>
Defined in: types/formula-object.ts:69
#
MonthFunctionArrayCreateInputƬ MonthFunctionArrayCreateInput: [month, [TDateArrayResultType]]
Defined in: types/formula-array.ts:118
#
MonthFunctionCreateInputƬ MonthFunctionCreateInput: IFunctionCreateInput<month, [TDateResultType]>
Defined in: types/formula-object.ts:112
#
MultiplyFunctionArrayCreateInputƬ MultiplyFunctionArrayCreateInput: [multiply, Tuple2<TNumberArrayResultType>]
Defined in: types/formula-array.ts:67
#
MultiplyFunctionCreateInputƬ MultiplyFunctionCreateInput: IFunctionCreateInput<multiply, Tuple2<TNumberResultType>>
Defined in: types/formula-object.ts:67
#
NotFunctionArrayCreateInputƬ NotFunctionArrayCreateInput: [not, TCheckboxArrayResultType]
Defined in: types/formula-array.ts:64
#
NotFunctionCreateInputƬ NotFunctionCreateInput: IFunctionCreateInput<not, [TCheckboxResultType]>
Defined in: types/formula-object.ts:64
#
NowFunctionArrayCreateInputƬ NowFunctionArrayCreateInput: [now]
Defined in: types/formula-array.ts:122
#
NowFunctionCreateInputƬ NowFunctionCreateInput: { args?
: [] ; function
: now }
#
Type declaration:Name | Type |
---|---|
args? | [] |
function | now |
Defined in: types/formula-object.ts:116
#
NumberAddFunctionArrayCreateInputƬ NumberAddFunctionArrayCreateInput: [add, Tuple2<TNumberArrayResultType>]
Defined in: types/formula-array.ts:31
#
NumberAddFunctionCreateInputƬ NumberAddFunctionCreateInput: IFunctionCreateInput<add, Tuple2<TNumberResultType>>
Defined in: types/formula-object.ts:38
#
NumberIfFunctionArrayCreateInputƬ NumberIfFunctionArrayCreateInput: [if, Tuple12<TCheckboxArrayResultType, TNumberArrayResultType>]
Defined in: types/formula-array.ts:24
#
NumberIfFunctionCreateInputƬ NumberIfFunctionCreateInput: IFunctionCreateInput<if, Tuple12<TCheckboxResultType, TNumberResultType>>
Defined in: types/formula-object.ts:28
#
OrFunctionArrayCreateInputƬ OrFunctionArrayCreateInput: [or, Tuple2<TCheckboxArrayResultType>]
Defined in: types/formula-array.ts:59
#
OrFunctionCreateInputƬ OrFunctionCreateInput: IFunctionCreateInput<or, Tuple2<TCheckboxResultType>>
Defined in: types/formula-object.ts:59
#
PowFunctionArrayCreateInputƬ PowFunctionArrayCreateInput: [pow, Tuple2<TNumberArrayResultType>]
Defined in: types/formula-array.ts:68
#
PowFunctionCreateInputƬ PowFunctionCreateInput: IFunctionCreateInput<pow, Tuple2<TNumberResultType>>
Defined in: types/formula-object.ts:68
#
ReplaceAllFunctionArrayCreateInputƬ ReplaceAllFunctionArrayCreateInput: [replaceAll, Tuple12<TNumberArrayResultType, TTextArrayResultType> | Tuple12<TTextArrayResultType, TTextArrayResultType> | Tuple12<TCheckboxArrayResultType, TTextArrayResultType>]
Defined in: types/formula-array.ts:32
#
ReplaceAllFunctionCreateInputƬ ReplaceAllFunctionCreateInput: IFunctionCreateInput<replaceAll, Tuple12<TNumberResultType, TTextResultType> | Tuple12<TTextResultType, TTextResultType> | Tuple12<TCheckboxResultType, TTextResultType>>
Defined in: types/formula-object.ts:39
#
ReplaceFunctionArrayCreateInputƬ ReplaceFunctionArrayCreateInput: [replace, Tuple12<TNumberArrayResultType, TTextArrayResultType> | Tuple12<TTextArrayResultType, TTextArrayResultType> | Tuple12<TCheckboxArrayResultType, TTextArrayResultType>]
Defined in: types/formula-array.ts:40
#
ReplaceFunctionCreateInputƬ ReplaceFunctionCreateInput: IFunctionCreateInput<replace, Tuple12<TNumberResultType, TTextResultType> | Tuple12<TTextResultType, TTextResultType> | Tuple12<TCheckboxResultType, TTextResultType>>
Defined in: types/formula-object.ts:45
#
RoundFunctionArrayCreateInputƬ RoundFunctionArrayCreateInput: [round, [TNumberArrayResultType]]
Defined in: types/formula-array.ts:93
#
RoundFunctionCreateInputƬ RoundFunctionCreateInput: IFunctionCreateInput<round, [TNumberResultType]>
Defined in: types/formula-object.ts:88
#
SignFunctionArrayCreateInputƬ SignFunctionArrayCreateInput: [sign, [TNumberArrayResultType]]
Defined in: types/formula-array.ts:94
#
SignFunctionCreateInputƬ SignFunctionCreateInput: IFunctionCreateInput<sign, [TNumberResultType]>
Defined in: types/formula-object.ts:89
#
SliceFunctionArrayCreateInputƬ SliceFunctionArrayCreateInput: [slice, [TTextArrayResultType, TNumberArrayResultType, TNumberArrayResultType] | [TTextArrayResultType, TNumberArrayResultType]]
Defined in: types/formula-array.ts:50
#
SliceFunctionCreateInputƬ SliceFunctionCreateInput: IFunctionCreateInput<slice, [TTextResultType, TNumberResultType, TNumberResultType] | [TTextResultType, TNumberResultType]>
Defined in: types/formula-object.ts:53
#
SmallerEqFunctionArrayCreateInputƬ SmallerEqFunctionArrayCreateInput: [smallerEq, Tuple2<TCheckboxArrayResultType>]
Defined in: types/formula-array.ts:63
#
SmallerEqFunctionCreateInputƬ SmallerEqFunctionCreateInput: IFunctionCreateInput<smallerEq, Tuple2<TCheckboxResultType>>
Defined in: types/formula-object.ts:63
#
SmallerFunctionArrayCreateInputƬ SmallerFunctionArrayCreateInput: [smaller, Tuple2<TCheckboxArrayResultType>]
Defined in: types/formula-array.ts:62
#
SmallerFunctionCreateInputƬ SmallerFunctionCreateInput: IFunctionCreateInput<smaller, Tuple2<TCheckboxResultType>>
Defined in: types/formula-object.ts:62
#
SqrtFunctionArrayCreateInputƬ SqrtFunctionArrayCreateInput: [sqrt, [TNumberArrayResultType]]
Defined in: types/formula-array.ts:95
#
SqrtFunctionCreateInputƬ SqrtFunctionCreateInput: IFunctionCreateInput<sqrt, [TNumberResultType]>
Defined in: types/formula-object.ts:90
#
StartFunctionArrayCreateInputƬ StartFunctionArrayCreateInput: [start, [TDateArrayResultType]]
Defined in: types/formula-array.ts:96
#
StartFunctionCreateInputƬ StartFunctionCreateInput: IFunctionCreateInput<start, [TDateResultType]>
Defined in: types/formula-object.ts:91
#
SubtractFunctionArrayCreateInputƬ SubtractFunctionArrayCreateInput: [subtract, Tuple2<TNumberArrayResultType>]
Defined in: types/formula-array.ts:65
#
SubtractFunctionCreateInputƬ SubtractFunctionCreateInput: IFunctionCreateInput<subtract, Tuple2<TNumberResultType>>
Defined in: types/formula-object.ts:65
#
TCheckboxArrayResultTypeƬ TCheckboxArrayResultType: boolean | TCheckboxFunctionArrayCreateInput | { property
: string }
Defined in: types/formula-array.ts:19
#
TCheckboxFunctionArrayCreateInputƬ TCheckboxFunctionArrayCreateInput: CheckboxIfFunctionArrayCreateInput | EqualFunctionArrayCreateInput | UnequalFunctionArrayCreateInput | AndFunctionArrayCreateInput | OrFunctionArrayCreateInput | LargerFunctionArrayCreateInput | LargerEqFunctionArrayCreateInput | SmallerFunctionArrayCreateInput | SmallerEqFunctionArrayCreateInput | NotFunctionArrayCreateInput | EmptyFunctionArrayCreateInput | TestFunctionArrayCreateInput | ContainsFunctionArrayCreateInput
Defined in: types/formula-array.ts:134
#
TCheckboxFunctionCreateInputƬ TCheckboxFunctionCreateInput: CheckboxIfFunctionCreateInput | EqualFunctionCreateInput | UnequalFunctionCreateInput | AndFunctionCreateInput | OrFunctionCreateInput | LargerFunctionCreateInput | LargerEqFunctionCreateInput | SmallerFunctionCreateInput | SmallerEqFunctionCreateInput | NotFunctionCreateInput | EmptyFunctionCreateInput | TestFunctionCreateInput | ContainsFunctionCreateInput
Defined in: types/formula-object.ts:131
#
TCheckboxResultTypeƬ TCheckboxResultType: boolean | TCheckboxFunctionCreateInput | { property
: string }
Defined in: types/formula-object.ts:18
#
TDateArrayResultTypeƬ TDateArrayResultType: TDateFunctionArrayCreateInput | { property
: string }
Defined in: types/formula-array.ts:21
#
TDateFunctionArrayCreateInputƬ TDateFunctionArrayCreateInput: DateIfFunctionArrayCreateInput | FormatDateFunctionArrayCreateInput | DateSubtractFunctionArrayCreateInput | DateAddFunctionArrayCreateInput | NowFunctionArrayCreateInput | StartFunctionArrayCreateInput | EndFunctionArrayCreateInput | TimestampFunctionArrayCreateInput | FromTimestampFunctionArrayCreateInput | MinuteFunctionArrayCreateInput | HourFunctionArrayCreateInput | DayFunctionArrayCreateInput | DateFunctionArrayCreateInput | MonthFunctionArrayCreateInput | YearFunctionArrayCreateInput
Defined in: types/formula-array.ts:177
#
TDateFunctionCreateInputƬ TDateFunctionCreateInput: DateIfFunctionCreateInput | FormatDateFunctionCreateInput | DateSubtractFunctionCreateInput | DateAddFunctionCreateInput | NowFunctionCreateInput | StartFunctionCreateInput | EndFunctionCreateInput | TimestampFunctionCreateInput | FromTimestampFunctionCreateInput | MinuteFunctionCreateInput | HourFunctionCreateInput | DayFunctionCreateInput | DateFunctionCreateInput | MonthFunctionCreateInput | YearFunctionCreateInput
Defined in: types/formula-object.ts:174
#
TDateResultTypeƬ TDateResultType: TDateFunctionCreateInput | { property
: string }
Defined in: types/formula-object.ts:20
#
TFormulaArrayCreateInputƬ TFormulaArrayCreateInput: TDateFunctionArrayCreateInput | TTextFunctionArrayCreateInput | TNumberFunctionArrayCreateInput | TCheckboxFunctionArrayCreateInput
Defined in: types/formula-array.ts:194
#
TFormulaCreateInputƬ TFormulaCreateInput: TDateFunctionCreateInput | TTextFunctionCreateInput | TNumberFunctionCreateInput | TCheckboxFunctionCreateInput
Defined in: types/formula-object.ts:191
#
TNumberArrayResultTypeƬ TNumberArrayResultType: e | pi | number | TNumberFunctionArrayCreateInput | { property
: string }
Defined in: types/formula-array.ts:20
#
TNumberFunctionArrayCreateInputƬ TNumberFunctionArrayCreateInput: NumberAddFunctionArrayCreateInput | SubtractFunctionArrayCreateInput | DivideFunctionArrayCreateInput | MultiplyFunctionArrayCreateInput | PowFunctionArrayCreateInput | ModFunctionArrayCreateInput | UnaryMinusFunctionArrayCreateInput | UnaryPlusFunctionArrayCreateInput | NumberIfFunctionArrayCreateInput | DateBetweenFunctionArrayCreateInput | TimestampFunctionArrayCreateInput | SqrtFunctionArrayCreateInput | SignFunctionArrayCreateInput | RoundFunctionArrayCreateInput | MinFunctionArrayCreateInput | MaxFunctionArrayCreateInput | Log2FunctionArrayCreateInput | Log10FunctionArrayCreateInput | LnFunctionArrayCreateInput | FloorFunctionArrayCreateInput | ExpFunctionArrayCreateInput | CeilFunctionArrayCreateInput | CbrtFunctionArrayCreateInput | AbsFunctionArrayCreateInput | ToNumberFunctionArrayCreateInput | LengthFunctionArrayCreateInput
Defined in: types/formula-array.ts:149
#
TNumberFunctionCreateInputƬ TNumberFunctionCreateInput: NumberAddFunctionCreateInput | SubtractFunctionCreateInput | DivideFunctionCreateInput | MultiplyFunctionCreateInput | PowFunctionCreateInput | ModFunctionCreateInput | UnaryMinusFunctionCreateInput | UnaryPlusFunctionCreateInput | NumberIfFunctionCreateInput | DateBetweenFunctionCreateInput | TimestampFunctionCreateInput | SqrtFunctionCreateInput | SignFunctionCreateInput | RoundFunctionCreateInput | MinFunctionCreateInput | MaxFunctionCreateInput | Log2FunctionCreateInput | Log10FunctionCreateInput | LnFunctionCreateInput | FloorFunctionCreateInput | ExpFunctionCreateInput | CeilFunctionCreateInput | CbrtFunctionCreateInput | AbsFunctionCreateInput | ToNumberFunctionCreateInput | LengthFunctionCreateInput
Defined in: types/formula-object.ts:146
#
TNumberResultTypeƬ TNumberResultType: pi | e | number | TNumberFunctionCreateInput | { property
: string }
Defined in: types/formula-object.ts:19
#
TResultTypeƬ TResultType: TCheckboxResultType | TTextResultType | TNumberResultType | TDateResultType
Defined in: types/formula-object.ts:7
#
TTextArrayResultTypeƬ TTextArrayResultType: string | TTextFunctionArrayCreateInput | { property
: string }
Defined in: types/formula-array.ts:22
#
TTextFunctionArrayCreateInputƬ TTextFunctionArrayCreateInput: TextIfFunctionArrayCreateInput | TextAddFunctionArrayCreateInput | ReplaceAllFunctionArrayCreateInput | ReplaceFunctionArrayCreateInput | ConcatFunctionArrayCreateInput | JoinFunctionArrayCreateInput | SliceFunctionArrayCreateInput | FormatFunctionArrayCreateInput
Defined in: types/formula-array.ts:124
#
TTextFunctionCreateInputƬ TTextFunctionCreateInput: TextIfFunctionCreateInput | TextAddFunctionCreateInput | ReplaceAllFunctionCreateInput | ReplaceFunctionCreateInput | ConcatFunctionCreateInput | JoinFunctionCreateInput | SliceFunctionCreateInput | FormatFunctionCreateInput
Defined in: types/formula-object.ts:121
#
TTextResultTypeƬ TTextResultType: string | TTextFunctionCreateInput | { property
: string }
Defined in: types/formula-object.ts:21
#
TestFunctionArrayCreateInputƬ TestFunctionArrayCreateInput: [test, [TNumberArrayResultType, TTextArrayResultType] | [TTextArrayResultType, TTextArrayResultType] | [TCheckboxArrayResultType, TTextArrayResultType]]
Defined in: types/formula-array.ts:73
#
TestFunctionCreateInputƬ TestFunctionCreateInput: IFunctionCreateInput<test, [TNumberResultType, TTextResultType] | [TTextResultType, TTextResultType] | [TCheckboxResultType, TTextResultType]>
Defined in: types/formula-object.ts:73
#
TextAddFunctionArrayCreateInputƬ TextAddFunctionArrayCreateInput: [add, Tuple2<TTextArrayResultType>]
Defined in: types/formula-array.ts:30
#
TextAddFunctionCreateInputƬ TextAddFunctionCreateInput: IFunctionCreateInput<add, Tuple2<TTextResultType>>
Defined in: types/formula-object.ts:37
#
TextIfFunctionArrayCreateInputƬ TextIfFunctionArrayCreateInput: [if, Tuple12<TCheckboxArrayResultType, TTextArrayResultType>]
Defined in: types/formula-array.ts:25
#
TextIfFunctionCreateInputƬ TextIfFunctionCreateInput: IFunctionCreateInput<if, Tuple12<TCheckboxResultType, TTextResultType>>
Defined in: types/formula-object.ts:29
#
TimestampFunctionArrayCreateInputƬ TimestampFunctionArrayCreateInput: [timestamp, [TDateArrayResultType]]
Defined in: types/formula-array.ts:112
#
TimestampFunctionCreateInputƬ TimestampFunctionCreateInput: IFunctionCreateInput<timestamp, [TDateResultType]>
Defined in: types/formula-object.ts:106
#
ToNumberFunctionArrayCreateInputƬ ToNumberFunctionArrayCreateInput: [toNumber, [AnyArrayResultType]]
Defined in: types/formula-array.ts:121
#
ToNumberFunctionCreateInputƬ ToNumberFunctionCreateInput: IFunctionCreateInput<toNumber, [TResultType]>
Defined in: types/formula-object.ts:115
#
UnaryMinusFunctionArrayCreateInputƬ UnaryMinusFunctionArrayCreateInput: [unaryMinus, [TNumberArrayResultType]]
Defined in: types/formula-array.ts:70
#
UnaryMinusFunctionCreateInputƬ UnaryMinusFunctionCreateInput: IFunctionCreateInput<unaryMinus, [TNumberResultType]>
Defined in: types/formula-object.ts:70
#
UnaryPlusFunctionArrayCreateInputƬ UnaryPlusFunctionArrayCreateInput: [unaryPlus, [TNumberArrayResultType]]
Defined in: types/formula-array.ts:71
#
UnaryPlusFunctionCreateInputƬ UnaryPlusFunctionCreateInput: IFunctionCreateInput<unaryPlus, [TNumberResultType]>
Defined in: types/formula-object.ts:71
#
UnequalFunctionArrayCreateInputƬ UnequalFunctionArrayCreateInput: [unequal, Tuple2AnyArrayResultType]
Defined in: types/formula-array.ts:29
#
UnequalFunctionCreateInputƬ UnequalFunctionCreateInput: IFunctionCreateInput<unequal, Tuple2AnyResultType>
Defined in: types/formula-object.ts:36
#
YearFunctionArrayCreateInputƬ YearFunctionArrayCreateInput: [year, [TDateArrayResultType]]
Defined in: types/formula-array.ts:119
#
YearFunctionCreateInputƬ YearFunctionCreateInput: IFunctionCreateInput<year, [TDateResultType]>
Defined in: types/formula-object.ts:113
#
Variables#
function_formula_info_arr• Const
function_formula_info_arr: IFunctionFormulaInfo[]
An array that contains the result_type and the variations of arguments (number and types) supported by all the notion formulas
Defined in: utils/functionFormulaInfo.ts:32
#
function_formula_info_map• Const
function_formula_info_map: Map<TFunctionName, IFunctionFormulaInfo>
Defined in: utils/functionFormulaInfo.ts:327
#
Functions#
formulateResultTypeFromSchemaTypeâ–¸ formulateResultTypeFromSchemaType(type
: TSchemaUnitType): TFormulaResultType
Get the appropriate formula result_type from the passed schema_unit type
#
Parameters:Name | Type | Description |
---|---|---|
type | TSchemaUnitType | The schema_unit type |
Returns: TFormulaResultType
The appropriate formula result_type
Defined in: utils/formulateResultTypeFromSchemaType.ts:8
#
generateFormulaASTFromArrayâ–¸ generateFormulaASTFromArray(formula
: string | number | boolean | DateIfFunctionArrayCreateInput | FormatDateFunctionArrayCreateInput | DateSubtractFunctionArrayCreateInput | DateAddFunctionArrayCreateInput | NowFunctionArrayCreateInput | StartFunctionArrayCreateInput | EndFunctionArrayCreateInput | TimestampFunctionArrayCreateInput | FromTimestampFunctionArrayCreateInput | MinuteFunctionArrayCreateInput | HourFunctionArrayCreateInput | DayFunctionArrayCreateInput | DateFunctionArrayCreateInput | MonthFunctionArrayCreateInput | YearFunctionArrayCreateInput | TextIfFunctionArrayCreateInput | TextAddFunctionArrayCreateInput | ReplaceAllFunctionArrayCreateInput | ReplaceFunctionArrayCreateInput | ConcatFunctionArrayCreateInput | JoinFunctionArrayCreateInput | SliceFunctionArrayCreateInput | FormatFunctionArrayCreateInput | NumberAddFunctionArrayCreateInput | SubtractFunctionArrayCreateInput | DivideFunctionArrayCreateInput | MultiplyFunctionArrayCreateInput | PowFunctionArrayCreateInput | ModFunctionArrayCreateInput | UnaryMinusFunctionArrayCreateInput | UnaryPlusFunctionArrayCreateInput | NumberIfFunctionArrayCreateInput | DateBetweenFunctionArrayCreateInput | SqrtFunctionArrayCreateInput | SignFunctionArrayCreateInput | RoundFunctionArrayCreateInput | MinFunctionArrayCreateInput | MaxFunctionArrayCreateInput | Log2FunctionArrayCreateInput | Log10FunctionArrayCreateInput | LnFunctionArrayCreateInput | FloorFunctionArrayCreateInput | ExpFunctionArrayCreateInput | CeilFunctionArrayCreateInput | CbrtFunctionArrayCreateInput | AbsFunctionArrayCreateInput | ToNumberFunctionArrayCreateInput | LengthFunctionArrayCreateInput | CheckboxIfFunctionArrayCreateInput | EqualFunctionArrayCreateInput | UnequalFunctionArrayCreateInput | AndFunctionArrayCreateInput | OrFunctionArrayCreateInput | LargerFunctionArrayCreateInput | LargerEqFunctionArrayCreateInput | SmallerFunctionArrayCreateInput | SmallerEqFunctionArrayCreateInput | NotFunctionArrayCreateInput | EmptyFunctionArrayCreateInput | TestFunctionArrayCreateInput | ContainsFunctionArrayCreateInput | { property
: string }, schema_map?
: ISchemaMap): TFormula
Generates a notion client compatible formula object using an easier object based representation
#
Parameters:Returns: TFormula
The generated formula ast
Defined in: src/generateFormulaAST.ts:107
#
generateFormulaASTFromObjectâ–¸ generateFormulaASTFromObject(formula
: string | number | boolean | DateIfFunctionCreateInput | FormatDateFunctionCreateInput | DateSubtractFunctionCreateInput | DateAddFunctionCreateInput | NowFunctionCreateInput | StartFunctionCreateInput | EndFunctionCreateInput | TimestampFunctionCreateInput | FromTimestampFunctionCreateInput | MinuteFunctionCreateInput | HourFunctionCreateInput | DayFunctionCreateInput | DateFunctionCreateInput | MonthFunctionCreateInput | YearFunctionCreateInput | TextIfFunctionCreateInput | TextAddFunctionCreateInput | ReplaceAllFunctionCreateInput | ReplaceFunctionCreateInput | ConcatFunctionCreateInput | JoinFunctionCreateInput | SliceFunctionCreateInput | FormatFunctionCreateInput | NumberAddFunctionCreateInput | SubtractFunctionCreateInput | DivideFunctionCreateInput | MultiplyFunctionCreateInput | PowFunctionCreateInput | ModFunctionCreateInput | UnaryMinusFunctionCreateInput | UnaryPlusFunctionCreateInput | NumberIfFunctionCreateInput | DateBetweenFunctionCreateInput | SqrtFunctionCreateInput | SignFunctionCreateInput | RoundFunctionCreateInput | MinFunctionCreateInput | MaxFunctionCreateInput | Log2FunctionCreateInput | Log10FunctionCreateInput | LnFunctionCreateInput | FloorFunctionCreateInput | ExpFunctionCreateInput | CeilFunctionCreateInput | CbrtFunctionCreateInput | AbsFunctionCreateInput | ToNumberFunctionCreateInput | LengthFunctionCreateInput | CheckboxIfFunctionCreateInput | EqualFunctionCreateInput | UnequalFunctionCreateInput | AndFunctionCreateInput | OrFunctionCreateInput | LargerFunctionCreateInput | LargerEqFunctionCreateInput | SmallerFunctionCreateInput | SmallerEqFunctionCreateInput | NotFunctionCreateInput | EmptyFunctionCreateInput | TestFunctionCreateInput | ContainsFunctionCreateInput | { property
: string }, schema_map?
: ISchemaMap): TFormula
Generates a notion client compatible formula object using an easier object based representation
#
Parameters:Returns: TFormula
The generated formula ast
Defined in: src/generateFormulaAST.ts:97
#
generateFormulaASTFromStringâ–¸ generateFormulaASTFromString(formula
: string, schema_map?
: ISchemaMap): TFormula
Generate notion client compatible formula ast from string
#
Parameters:Name | Type | Description |
---|---|---|
formula | string | The formula string required to be parsed |
schema_map? | ISchemaMap | The schema_map used to resolve property reference |
Returns: TFormula
Notion compatible formula ast
Defined in: src/generateFormulaASTFromString.ts:11
#
generateFormulaArgFromPropertyâ–¸ generateFormulaArgFromProperty(arg
: { property
: string }, schema_map
: ISchemaMap): TPropertyFormula
Generate function formula argument using information from the passed schema_map
#
Parameters:Name | Type | Description |
---|---|---|
arg | { property : string } | A object with the key property and value matching the name of the property referencing |
schema_map | ISchemaMap | The schema map used to deduce information for the function formula argument chunk |
Returns: TPropertyFormula
The appropriate property based function formula argument chunk
Defined in: utils/generateFormulaArgs.ts:52
#
generateFormulaArgsFromLiteralsâ–¸ generateFormulaArgsFromLiterals(value
: string | number | boolean): INumberConstantFormula<string> | ITextConstantFormula<string> | ISymbolFormula<e, number> | ISymbolFormula<pi, number> | ISymbolFormula<true, checkbox> | ISymbolFormula<false, checkbox>
Generate function formula arg based on certain criterias
#
Parameters:Name | Type | Description |
---|---|---|
value | string | number | boolean | The value to check |
Returns: INumberConstantFormula<string> | ITextConstantFormula<string> | ISymbolFormula<e, number> | ISymbolFormula<pi, number> | ISymbolFormula<true, checkbox> | ISymbolFormula<false, checkbox>
The appropriate function formula argument chunk
Defined in: utils/generateFormulaArgs.ts:10