modules
@nishans/core / Exports
#
@nishans/core#
Index#
Classes- Block
- BoardView
- CalendarView
- Collection
- CollectionBlock
- CollectionView
- CollectionViewPage
- GalleryView
- ListView
- NotionUser
- Operations
- Page
- SchemaUnit
- Space
- SpaceView
- TableView
- TimelineView
- UserRoot
- UserSettings
- View
- default
#
Interfaces- BoardViewCreateInput
- CalendarViewCreateInput
- GalleryViewCreateInput
- IAudioInput
- IBreadcrumbInput
- IBulletedListInput
- ICalloutInput
- ICodeInput
- ICodepenInput
- ICollectionBlockInput
- ICollectionViewInput
- ICollectionViewPageInput
- ICollectionViewPageUpdateInput
- IColumnListInput
- IDividerInput
- IDriveInput
- IEmbedInput
- IEquationInput
- IFactoryInput
- IFigmaInput
- IFileInput
- IGistInput
- IHeaderInput
- IImageInput
- ILinkToPageInput
- ILinkedDBInput
- IMapsInput
- INumberedListInput
- IPageCreateInput
- IPageUpdateInput
- IQuoteInput
- ISubHeaderInput
- ISubSubHeaderInput
- ITBlock
- ITOCInput
- ITPage
- ITSchemaUnit
- ITView
- ITextInput
- ITodoInput
- IToggleInput
- ITweetInput
- IVideoInput
- IViewCreateInput
- IViewFilterCreateInput
- IViewFilterUpdateInput
- IWebBookmarkInput
- ListViewCreateInput
- NishanArg
- TableViewCreateInput
- TimelineViewCreateInput
#
Type aliases- AbsFunctionCreateInput
- AndFunctionCreateInput
- CbrtFunctionCreateInput
- CeilFunctionCreateInput
- CheckboxIfFunctionCreateInput
- ConcatFunctionCreateInput
- ContainsFunctionCreateInput
- DateAddFunctionCreateInput
- DateBetweenFunctionCreateInput
- DateFunctionCreateInput
- DateIfFunctionCreateInput
- DateSubtractFunctionCreateInput
- DayFunctionCreateInput
- DivideFunctionCreateInput
- ElementType
- EmptyFunctionCreateInput
- EndFunctionCreateInput
- EqualFunctionCreateInput
- ExpFunctionCreateInput
- FilterType
- FilterTypes
- FloorFunctionCreateInput
- FormatDateFunctionCreateInput
- FormatFunctionCreateInput
- FormulaSchemaUnitInput
- FromTimestampFunctionCreateInput
- HourFunctionCreateInput
- ICollectionUpdateInput
- INotionUserUpdateInput
- ISchemaAggregationMap
- ISchemaAggregationMapValue
- ISchemaFiltersMap
- ISchemaFiltersMapValue
- ISchemaFormatMap
- ISchemaFormatMapValue
- ISchemaMap
- ISchemaMapValue
- ISchemaSortsMap
- ISchemaSortsMapValue
- ISpaceUpdateInput
- ISpaceViewUpdateInput
- IUserSettingsUpdateInput
- JoinFunctionCreateInput
- LargerEqFunctionCreateInput
- LargerFunctionCreateInput
- LengthFunctionCreateInput
- LnFunctionCreateInput
- Log10FunctionCreateInput
- Log2FunctionCreateInput
- Logger
- MaxFunctionCreateInput
- MinFunctionCreateInput
- MinuteFunctionCreateInput
- ModFunctionCreateInput
- MonthFunctionCreateInput
- MultiplyFunctionCreateInput
- NotFunctionCreateInput
- NowFunctionCreateInput
- NumberAddFunctionCreateInput
- NumberIfFunctionCreateInput
- OrFunctionCreateInput
- PowFunctionCreateInput
- Predicate
- ReplaceAllFunctionCreateInput
- ReplaceFunctionCreateInput
- RepositionParams
- RoundFunctionCreateInput
- SchemaFormalPropertiesUpdateInput
- SignFunctionCreateInput
- SliceFunctionCreateInput
- SmallerEqFunctionCreateInput
- SmallerFunctionCreateInput
- SqrtFunctionCreateInput
- StartFunctionCreateInput
- SubtractFunctionCreateInput
- TAdvancedBlockInput
- TAggregationsCreateInput
- TAggregationsUpdateInput
- TBasicBlockInput
- TBlockCreateInput
- TBlockInput
- TCheckboxFunctionCreateInput
- TCheckboxResultType
- TCollectionBlockInput
- TDateFunctionCreateInput
- TDateResultType
- TEmbedBlockInput
- TFormulaCreateInput
- TMediaBlockInput
- TMethodType
- TNumberFunctionCreateInput
- TNumberResultType
- TResultType
- TSchemaUnitInput
- TSortCreateInput
- TSortUpdateInput
- TTextFunctionCreateInput
- TTextResultType
- TViewCreateInput
- TViewFilterCreateInput
- TViewFilterUpdateInput
- TViewSchemaUnitsCreateInput
- TestFunctionCreateInput
- TextAddFunctionCreateInput
- TextIfFunctionCreateInput
- TimestampFunctionCreateInput
- ToNumberFunctionCreateInput
- UnaryMinusFunctionCreateInput
- UnaryPlusFunctionCreateInput
- UnequalFunctionCreateInput
- UpdateType
- UpdateTypes
- YearFunctionCreateInput
#
Variables- Operation
- TCollectionUpdateKeys
- TNotionUserUpdateKeys
- TSpaceUpdateKeys
- TSpaceViewUpdateKeys
- TUserSettingsUpdateKeys
#
Functions- createBlockClass
- createBlockMap
- createCollection
- createPageMap
- createSchemaUnitMap
- createShortId
- createViewMap
- createViews
- detectChildData
- error
- formulateResultTypeFromSchemaType
- generateId
- getAggregationsMap
- getFiltersMap
- getFormatPropertiesMap
- getSchemaMap
- getSortsMap
- initializeViewAggregations
- initializeViewFilters
- initializeViewSorts
- iterateAndDeleteChildren
- iterateAndGetChildren
- iterateAndUpdateChildren
- nestedContentPopulate
- parseFormula
- populateFilters
- positionChildren
- slugify
- validateUUID
- warn
#
Type aliases#
AbsFunctionCreateInputƬ AbsFunctionCreateInput: IFunctionCreateInput<abs, TNumberResultType>
Defined in: core/types/formula.ts:102
#
AndFunctionCreateInputƬ AndFunctionCreateInput: IFunctionCreateInput<and, Tuple2<TCheckboxResultType>>
Defined in: core/types/formula.ts:82
#
CbrtFunctionCreateInputƬ CbrtFunctionCreateInput: IFunctionCreateInput<cbrt, TNumberResultType>
Defined in: core/types/formula.ts:103
#
CeilFunctionCreateInputƬ CeilFunctionCreateInput: IFunctionCreateInput<ceil, TNumberResultType>
Defined in: core/types/formula.ts:104
#
CheckboxIfFunctionCreateInputƬ CheckboxIfFunctionCreateInput: { args
: Tuple12<TCheckboxResultType, TCheckboxResultType> ; function
: if ; result_type
: checkbox }
#
Type declaration:Name | Type |
---|---|
args | Tuple12<TCheckboxResultType, TCheckboxResultType> |
function | if |
result_type | checkbox |
Defined in: core/types/formula.ts:37
#
ConcatFunctionCreateInputƬ ConcatFunctionCreateInput: IFunctionCreateInput<concat, Tuple2<TTextResultType>>
Defined in: core/types/formula.ts:75
#
ContainsFunctionCreateInputƬ ContainsFunctionCreateInput: IFunctionCreateInput<contains, Tuple2<TTextResultType>>
Defined in: core/types/formula.ts:96
#
DateAddFunctionCreateInputƬ DateAddFunctionCreateInput: IFunctionCreateInput<dateAdd, [TDateResultType, TNumberResultType, TDateConstantValueType]>
Defined in: core/types/formula.ts:117
#
DateBetweenFunctionCreateInputƬ DateBetweenFunctionCreateInput: IFunctionCreateInput<dateBetween, Tuple12<TDateResultType, TDateConstantValueType>>
Defined in: core/types/formula.ts:125
#
DateFunctionCreateInputƬ DateFunctionCreateInput: IFunctionCreateInput<date, TDateResultType>
Defined in: core/types/formula.ts:135
#
DateIfFunctionCreateInputƬ DateIfFunctionCreateInput: { args
: Tuple12<TCheckboxResultType, TDateResultType> ; function
: if ; result_type
: date }
#
Type declaration:Name | Type |
---|---|
args | Tuple12<TCheckboxResultType, TDateResultType> |
function | if |
result_type | date |
Defined in: core/types/formula.ts:43
#
DateSubtractFunctionCreateInputƬ DateSubtractFunctionCreateInput: IFunctionCreateInput<dateSubtract, [TDateResultType, TNumberResultType, TDateConstantValueType]>
Defined in: core/types/formula.ts:121
#
DayFunctionCreateInputƬ DayFunctionCreateInput: IFunctionCreateInput<day, TDateResultType>
Defined in: core/types/formula.ts:134
#
DivideFunctionCreateInputƬ DivideFunctionCreateInput: IFunctionCreateInput<divide, Tuple2<TNumberResultType>>
Defined in: core/types/formula.ts:90
#
ElementTypeƬ ElementType<T>: T extends ReadonlyArray<infer ElementType> ? ElementType : never
#
Type parameters:Name | Type |
---|---|
T | ReadonlyArray<unknown> |
Defined in: core/types/utils.ts:1
#
EmptyFunctionCreateInputƬ EmptyFunctionCreateInput: IFunctionCreateInput<empty, TResultType>
Defined in: core/types/formula.ts:101
#
EndFunctionCreateInputƬ EndFunctionCreateInput: IFunctionCreateInput<end, TDateResultType>
Defined in: core/types/formula.ts:116
#
EqualFunctionCreateInputƬ EqualFunctionCreateInput: IFunctionCreateInput<equal, Tuple2AnyResultType>
Defined in: core/types/formula.ts:49
#
ExpFunctionCreateInputƬ ExpFunctionCreateInput: IFunctionCreateInput<exp, TNumberResultType>
Defined in: core/types/formula.ts:105
#
FilterTypeƬ FilterType<T>: undefined | string | Predicate<T>
#
Type parameters:Name |
---|
T |
Defined in: core/types/nishan.ts:21
#
FilterTypesƬ FilterTypes<T>: undefined | string[] | Predicate<T>
#
Type parameters:Name |
---|
T |
Defined in: core/types/nishan.ts:20
#
FloorFunctionCreateInputƬ FloorFunctionCreateInput: IFunctionCreateInput<floor, TNumberResultType>
Defined in: core/types/formula.ts:106
#
FormatDateFunctionCreateInputƬ FormatDateFunctionCreateInput: IFunctionCreateInput<formatDate, [TDateResultType, TTextResultType]>
Defined in: core/types/formula.ts:129
#
FormatFunctionCreateInputƬ FormatFunctionCreateInput: IFunctionCreateInput<format, TResultType>
Defined in: core/types/formula.ts:81
#
FormulaSchemaUnitInputƬ FormulaSchemaUnitInput: { formula
: TFormulaCreateInput ; name
: string ; type
: formula }
#
Type declaration:Name | Type |
---|---|
formula | TFormulaCreateInput |
name | string |
type | formula |
Defined in: core/types/schema.ts:17
#
FromTimestampFunctionCreateInputƬ FromTimestampFunctionCreateInput: IFunctionCreateInput<fromTimestamp, TNumberResultType>
Defined in: core/types/formula.ts:131
#
HourFunctionCreateInputƬ HourFunctionCreateInput: IFunctionCreateInput<hour, TDateResultType>
Defined in: core/types/formula.ts:133
#
ICollectionUpdateInputƬ ICollectionUpdateInput: Partial<Pick<ICollection, ElementType<typeof TCollectionUpdateKeys>>>
Defined in: core/types/block.ts:282
#
INotionUserUpdateInputƬ INotionUserUpdateInput: Partial<Pick<INotionUser, ElementType<typeof TNotionUserUpdateKeys>>>
Defined in: core/types/block.ts:284
#
ISchemaAggregationMapƬ ISchemaAggregationMap: Map<string, ISchemaAggregationMapValue>
Defined in: core/types/schema.ts:27
#
ISchemaAggregationMapValueƬ ISchemaAggregationMapValue: { aggregation
: ViewAggregations ; schema_id
: string } & TSchemaUnit
Defined in: core/types/schema.ts:26
#
ISchemaFiltersMapƬ ISchemaFiltersMap: Map<string, ISchemaFiltersMapValue>
Defined in: core/types/schema.ts:33
#
ISchemaFiltersMapValueƬ ISchemaFiltersMapValue: { filters
: IViewFilter[filters] ; schema_id
: string } & TSchemaUnit
Defined in: core/types/schema.ts:32
#
ISchemaFormatMapƬ ISchemaFormatMap: Map<string, ISchemaFormatMapValue>
Defined in: core/types/schema.ts:36
#
ISchemaFormatMapValueƬ ISchemaFormatMapValue: { format
: ViewFormatProperties ; schema_id
: string } & TSchemaUnit
Defined in: core/types/schema.ts:35
#
ISchemaMapƬ ISchemaMap: Map<string, ISchemaMapValue>
Defined in: core/types/schema.ts:24
#
ISchemaMapValueƬ ISchemaMapValue: { schema_id
: string } & TSchemaUnit
Defined in: core/types/schema.ts:23
#
ISchemaSortsMapƬ ISchemaSortsMap: Map<string, ISchemaSortsMapValue>
Defined in: core/types/schema.ts:30
#
ISchemaSortsMapValueƬ ISchemaSortsMapValue: { schema_id
: string ; sort
: ViewSorts } & TSchemaUnit
Defined in: core/types/schema.ts:29
#
ISpaceUpdateInputƬ ISpaceUpdateInput: Partial<Pick<ISpace, ElementType<typeof TSpaceUpdateKeys>>>
Defined in: core/types/block.ts:280
#
ISpaceViewUpdateInputƬ ISpaceViewUpdateInput: Partial<Pick<ISpaceView, ElementType<typeof TSpaceViewUpdateKeys>>>
Defined in: core/types/block.ts:286
#
IUserSettingsUpdateInputƬ IUserSettingsUpdateInput: Partial<Pick<IUserSettingsSettings, ElementType<typeof TUserSettingsUpdateKeys>>>
Defined in: core/types/block.ts:288
#
JoinFunctionCreateInputƬ JoinFunctionCreateInput: IFunctionCreateInput<join, TTextResultType>
Defined in: core/types/formula.ts:76
#
LargerEqFunctionCreateInputƬ LargerEqFunctionCreateInput: IFunctionCreateInput<largerEq, Tuple2<TCheckboxResultType>>
Defined in: core/types/formula.ts:85
#
LargerFunctionCreateInputƬ LargerFunctionCreateInput: IFunctionCreateInput<larger, Tuple2<TCheckboxResultType>>
Defined in: core/types/formula.ts:84
#
LengthFunctionCreateInputƬ LengthFunctionCreateInput: IFunctionCreateInput<length, TTextResultType>
Defined in: core/types/formula.ts:138
#
LnFunctionCreateInputƬ LnFunctionCreateInput: IFunctionCreateInput<ln, TNumberResultType>
Defined in: core/types/formula.ts:107
#
Log10FunctionCreateInputƬ Log10FunctionCreateInput: IFunctionCreateInput<log10, TNumberResultType>
Defined in: core/types/formula.ts:108
#
Log2FunctionCreateInputƬ Log2FunctionCreateInput: IFunctionCreateInput<log2, TNumberResultType>
Defined in: core/types/formula.ts:109
#
LoggerƬ Logger: false | (method
: TMethodType, subject
: TDataType, id
: string) => void
Defined in: core/types/nishan.ts:7
#
MaxFunctionCreateInputƬ MaxFunctionCreateInput: IFunctionCreateInput<max, TNumberResultType>
Defined in: core/types/formula.ts:110
#
MinFunctionCreateInputƬ MinFunctionCreateInput: IFunctionCreateInput<min, TNumberResultType>
Defined in: core/types/formula.ts:111
#
MinuteFunctionCreateInputƬ MinuteFunctionCreateInput: IFunctionCreateInput<minute, TDateResultType>
Defined in: core/types/formula.ts:132
#
ModFunctionCreateInputƬ ModFunctionCreateInput: IFunctionCreateInput<mod, Tuple2<TNumberResultType>>
Defined in: core/types/formula.ts:93
#
MonthFunctionCreateInputƬ MonthFunctionCreateInput: IFunctionCreateInput<month, TDateResultType>
Defined in: core/types/formula.ts:136
#
MultiplyFunctionCreateInputƬ MultiplyFunctionCreateInput: IFunctionCreateInput<multiply, Tuple2<TNumberResultType>>
Defined in: core/types/formula.ts:91
#
NotFunctionCreateInputƬ NotFunctionCreateInput: IFunctionCreateInput<not, TCheckboxResultType>
Defined in: core/types/formula.ts:88
#
NowFunctionCreateInputƬ NowFunctionCreateInput: { args?
: [] ; function
: now }
#
Type declaration:Name | Type |
---|---|
args? | [] |
function | now |
Defined in: core/types/formula.ts:140
#
NumberAddFunctionCreateInputƬ NumberAddFunctionCreateInput: { args
: Tuple2<TNumberResultType> ; function
: add ; result_type
: number }
#
Type declaration:Name | Type |
---|---|
args | Tuple2<TNumberResultType> |
function | add |
result_type | number |
Defined in: core/types/formula.ts:57
#
NumberIfFunctionCreateInputƬ NumberIfFunctionCreateInput: { args
: Tuple12<TCheckboxResultType, TNumberResultType> ; function
: if ; result_type
: number }
#
Type declaration:Name | Type |
---|---|
args | Tuple12<TCheckboxResultType, TNumberResultType> |
function | if |
result_type | number |
Defined in: core/types/formula.ts:25
#
OrFunctionCreateInputƬ OrFunctionCreateInput: IFunctionCreateInput<or, Tuple2<TCheckboxResultType>>
Defined in: core/types/formula.ts:83
#
PowFunctionCreateInputƬ PowFunctionCreateInput: IFunctionCreateInput<pow, Tuple2<TNumberResultType>>
Defined in: core/types/formula.ts:92
#
PredicateƬ Predicate<T>: (T
: T, index
: number) => Promise<boolean> | boolean | void | null | undefined
#
Type parameters:Name |
---|
T |
Defined in: core/types/utils.ts:2
#
ReplaceAllFunctionCreateInputƬ ReplaceAllFunctionCreateInput: IFunctionCreateInput<replaceAll, Tuple12<TNumberResultType, TTextResultType> | Tuple12<TTextResultType, TTextResultType> | Tuple12<TCheckboxResultType, TTextResultType>>
Defined in: core/types/formula.ts:63
#
ReplaceFunctionCreateInputƬ ReplaceFunctionCreateInput: IFunctionCreateInput<replace, Tuple12<TNumberResultType, TTextResultType> | Tuple12<TTextResultType, TTextResultType> | Tuple12<TCheckboxResultType, TTextResultType>>
Defined in: core/types/formula.ts:69
#
RepositionParamsƬ RepositionParams: { id
: string ; position
: before | after } | number | undefined
Defined in: core/types/block.ts:269
#
RoundFunctionCreateInputƬ RoundFunctionCreateInput: IFunctionCreateInput<round, TNumberResultType>
Defined in: core/types/formula.ts:112
#
SchemaFormalPropertiesUpdateInputƬ SchemaFormalPropertiesUpdateInput: Partial<{ position
: number ; visible
: boolean ; width
: number }>
Defined in: core/types/schema.ts:38
#
SignFunctionCreateInputƬ SignFunctionCreateInput: IFunctionCreateInput<sign, TNumberResultType>
Defined in: core/types/formula.ts:113
#
SliceFunctionCreateInputƬ SliceFunctionCreateInput: IFunctionCreateInput<slice, [TTextResultType, TNumberResultType] | TNumberResultType>
Defined in: core/types/formula.ts:77
#
SmallerEqFunctionCreateInputƬ SmallerEqFunctionCreateInput: IFunctionCreateInput<smallerEq, Tuple2<TCheckboxResultType>>
Defined in: core/types/formula.ts:87
#
SmallerFunctionCreateInputƬ SmallerFunctionCreateInput: IFunctionCreateInput<smaller, Tuple2<TCheckboxResultType>>
Defined in: core/types/formula.ts:86
#
SqrtFunctionCreateInputƬ SqrtFunctionCreateInput: IFunctionCreateInput<sqrt, TNumberResultType>
Defined in: core/types/formula.ts:114
#
StartFunctionCreateInputƬ StartFunctionCreateInput: IFunctionCreateInput<start, TDateResultType>
Defined in: core/types/formula.ts:115
#
SubtractFunctionCreateInputƬ SubtractFunctionCreateInput: IFunctionCreateInput<subtract, Tuple2<TNumberResultType>>
Defined in: core/types/formula.ts:89
#
TAdvancedBlockInputƬ TAdvancedBlockInput: IBreadcrumbInput | IFactoryInput | IEquationInput | ITOCInput
Defined in: core/types/block.ts:219
#
TAggregationsCreateInputƬ TAggregationsCreateInput: IAggregationsCreateInput<text> | IAggregationsCreateInput<title> | IAggregationsCreateInput<number> | IAggregationsCreateInput<select> | IAggregationsCreateInput<multi_select> | IAggregationsCreateInput<date> | IAggregationsCreateInput<person> | IAggregationsCreateInput<file> | IAggregationsCreateInput<checkbox> | IAggregationsCreateInput<url> | IAggregationsCreateInput<email> | IAggregationsCreateInput<phone_number> | IAggregationsCreateInput<formula> | IAggregationsCreateInput<relation> | IAggregationsCreateInput<rollup> | IAggregationsCreateInput<created_time> | IAggregationsCreateInput<created_by> | IAggregationsCreateInput<last_edited_time> | IAggregationsCreateInput<last_edited_by>
Defined in: core/types/aggregations.ts:14
#
TAggregationsUpdateInputƬ TAggregationsUpdateInput: IAggregationsUpdateInput<text> | IAggregationsUpdateInput<title> | IAggregationsUpdateInput<number> | IAggregationsUpdateInput<select> | IAggregationsUpdateInput<multi_select> | IAggregationsUpdateInput<date> | IAggregationsUpdateInput<person> | IAggregationsUpdateInput<file> | IAggregationsUpdateInput<checkbox> | IAggregationsUpdateInput<url> | IAggregationsUpdateInput<email> | IAggregationsUpdateInput<phone_number> | IAggregationsUpdateInput<formula> | IAggregationsUpdateInput<relation> | IAggregationsUpdateInput<rollup> | IAggregationsUpdateInput<created_time> | IAggregationsUpdateInput<created_by> | IAggregationsUpdateInput<last_edited_time> | IAggregationsUpdateInput<last_edited_by>
Defined in: core/types/aggregations.ts:35
#
TBasicBlockInputƬ TBasicBlockInput: ILinkToPageInput | IPageCreateInput | ITodoInput | ICalloutInput | IDividerInput | IQuoteInput | IToggleInput | IBulletedListInput | INumberedListInput | ISubSubHeaderInput | ISubHeaderInput | IHeaderInput | ITextInput
Defined in: core/types/block.ts:192
#
TBlockCreateInputƬ TBlockCreateInput: TBlockInput & { position?
: RepositionParams }
Defined in: core/types/block.ts:290
#
TBlockInputƬ TBlockInput: TMediaBlockInput | TBasicBlockInput | TAdvancedBlockInput | TEmbedBlockInput | TCollectionBlockInput | IColumnListInput
Defined in: core/types/block.ts:267
#
TCheckboxFunctionCreateInputƬ TCheckboxFunctionCreateInput: CheckboxIfFunctionCreateInput | EqualFunctionCreateInput | UnequalFunctionCreateInput | AndFunctionCreateInput | OrFunctionCreateInput | LargerFunctionCreateInput | LargerEqFunctionCreateInput | SmallerFunctionCreateInput | SmallerEqFunctionCreateInput | NotFunctionCreateInput | EmptyFunctionCreateInput | TestFunctionCreateInput | ContainsFunctionCreateInput
Defined in: core/types/formula.ts:155
#
TCheckboxResultTypeƬ TCheckboxResultType: boolean | TCheckboxFunctionCreateInput | { property
: string }
Defined in: core/types/formula.ts:15
#
TCollectionBlockInputƬ TCollectionBlockInput: ICollectionViewInput | ICollectionViewPageInput | ILinkedDBInput
Defined in: core/types/block.ts:40
#
TDateFunctionCreateInputƬ TDateFunctionCreateInput: DateIfFunctionCreateInput | FormatDateFunctionCreateInput | DateSubtractFunctionCreateInput | DateAddFunctionCreateInput | NowFunctionCreateInput | StartFunctionCreateInput | EndFunctionCreateInput | TimestampFunctionCreateInput | FromTimestampFunctionCreateInput | MinuteFunctionCreateInput | HourFunctionCreateInput | DayFunctionCreateInput | DateFunctionCreateInput | MonthFunctionCreateInput | YearFunctionCreateInput
Defined in: core/types/formula.ts:198
#
TDateResultTypeƬ TDateResultType: Date | TDateFunctionCreateInput | { property
: string }
Defined in: core/types/formula.ts:17
#
TEmbedBlockInputƬ TEmbedBlockInput: IEmbedInput | IFigmaInput | IMapsInput | ICodepenInput | IDriveInput | IGistInput | ITweetInput
Defined in: core/types/block.ts:265
#
TFormulaCreateInputƬ TFormulaCreateInput: TDateFunctionCreateInput | TTextFunctionCreateInput | TNumberFunctionCreateInput | TCheckboxFunctionCreateInput
Defined in: core/types/formula.ts:215
#
TMediaBlockInputƬ TMediaBlockInput: IVideoInput | IImageInput | IAudioInput | IWebBookmarkInput | ICodeInput | IFileInput
Defined in: core/types/block.ts:83
#
TMethodTypeƬ TMethodType: CREATE | READ | UPDATE | DELETE
Defined in: core/types/nishan.ts:5
#
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: core/types/formula.ts:170
#
TNumberResultTypeƬ TNumberResultType: number | TNumberFunctionCreateInput | { property
: string }
Defined in: core/types/formula.ts:16
#
TResultTypeƬ TResultType: TCheckboxResultType | TTextResultType | TNumberResultType | TDateResultType
Defined in: core/types/formula.ts:4
#
TSchemaUnitInputƬ TSchemaUnitInput: TBasicSchemaUnit | RelationSchemaUnit | RollupSchemaUnit | CreatedTimeSchemaUnit | CreatedBySchemaUnit | LastEditedTimeSchemaUnit | LastEditedBySchemaUnit | FormulaSchemaUnitInput
Defined in: core/types/schema.ts:40
#
TSortCreateInputƬ TSortCreateInput: [string, TSortValue, number] | [string, TSortValue]
Defined in: core/types/sort.ts:3
#
TSortUpdateInputƬ TSortUpdateInput: TSortValue | [TSortValue, number]
Defined in: core/types/sort.ts:4
#
TTextFunctionCreateInputƬ TTextFunctionCreateInput: TextIfFunctionCreateInput | TextAddFunctionCreateInput | ReplaceAllFunctionCreateInput | ReplaceFunctionCreateInput | ConcatFunctionCreateInput | JoinFunctionCreateInput | SliceFunctionCreateInput | FormatFunctionCreateInput
Defined in: core/types/formula.ts:145
#
TTextResultTypeƬ TTextResultType: string | TTextFunctionCreateInput | { property
: string }
Defined in: core/types/formula.ts:18
#
TViewCreateInputƬ TViewCreateInput: TableViewCreateInput | ListViewCreateInput | BoardViewCreateInput | GalleryViewCreateInput | CalendarViewCreateInput | TimelineViewCreateInput
Defined in: core/types/view.ts:57
#
TViewFilterCreateInputƬ TViewFilterCreateInput: IViewFilterCreateInput<checkbox> | IViewFilterCreateInput<text> | IViewFilterCreateInput<number> | IViewFilterCreateInput<select> | IViewFilterCreateInput<multi_select> | IViewFilterCreateInput<title> | IViewFilterCreateInput<date> | IViewFilterCreateInput<person> | IViewFilterCreateInput<file> | IViewFilterCreateInput<url> | IViewFilterCreateInput<email> | IViewFilterCreateInput<phone_number> | IViewFilterCreateInput<formula> | IViewFilterCreateInput<relation> | IViewFilterCreateInput<rollup> | IViewFilterCreateInput<created_time> | IViewFilterCreateInput<created_by> | IViewFilterCreateInput<last_edited_time> | IViewFilterCreateInput<last_edited_by>
Defined in: core/types/filter.ts:20
#
TViewFilterUpdateInputƬ TViewFilterUpdateInput: IViewFilterUpdateInput<checkbox> | IViewFilterUpdateInput<text> | IViewFilterUpdateInput<number> | IViewFilterUpdateInput<select> | IViewFilterUpdateInput<multi_select> | IViewFilterUpdateInput<title> | IViewFilterUpdateInput<date> | IViewFilterUpdateInput<person> | IViewFilterUpdateInput<file> | IViewFilterUpdateInput<url> | IViewFilterUpdateInput<email> | IViewFilterUpdateInput<phone_number> | IViewFilterUpdateInput<formula> | IViewFilterUpdateInput<relation> | IViewFilterUpdateInput<rollup> | IViewFilterUpdateInput<created_time> | IViewFilterUpdateInput<created_by> | IViewFilterUpdateInput<last_edited_time> | IViewFilterUpdateInput<last_edited_by>
Defined in: core/types/filter.ts:41
#
TViewSchemaUnitsCreateInputƬ TViewSchemaUnitsCreateInput: IViewSchemaUnitsCreateInput<text> | IViewSchemaUnitsCreateInput<title> | IViewSchemaUnitsCreateInput<number> | IViewSchemaUnitsCreateInput<select> | IViewSchemaUnitsCreateInput<multi_select> | IViewSchemaUnitsCreateInput<date> | IViewSchemaUnitsCreateInput<person> | IViewSchemaUnitsCreateInput<file> | IViewSchemaUnitsCreateInput<checkbox> | IViewSchemaUnitsCreateInput<url> | IViewSchemaUnitsCreateInput<email> | IViewSchemaUnitsCreateInput<phone_number> | IViewSchemaUnitsCreateInput<formula> | IViewSchemaUnitsCreateInput<relation> | IViewSchemaUnitsCreateInput<rollup> | IViewSchemaUnitsCreateInput<created_time> | IViewSchemaUnitsCreateInput<created_by> | IViewSchemaUnitsCreateInput<last_edited_time> | IViewSchemaUnitsCreateInput<last_edited_by>
Defined in: core/types/view.ts:78
#
TestFunctionCreateInputƬ TestFunctionCreateInput: IFunctionCreateInput<test, [TNumberResultType, TTextResultType] | [TTextResultType, TTextResultType] | [TCheckboxResultType, TTextResultType]>
Defined in: core/types/formula.ts:97
#
TextAddFunctionCreateInputƬ TextAddFunctionCreateInput: { args
: Tuple2<TTextResultType> ; function
: add ; result_type
: text }
#
Type declaration:Name | Type |
---|---|
args | Tuple2<TTextResultType> |
function | add |
result_type | text |
Defined in: core/types/formula.ts:51
#
TextIfFunctionCreateInputƬ TextIfFunctionCreateInput: { args
: Tuple12<TCheckboxResultType, TTextResultType> ; function
: if ; result_type
: text }
#
Type declaration:Name | Type |
---|---|
args | Tuple12<TCheckboxResultType, TTextResultType> |
function | if |
result_type | text |
Defined in: core/types/formula.ts:31
#
TimestampFunctionCreateInputƬ TimestampFunctionCreateInput: IFunctionCreateInput<timestamp, TDateResultType>
Defined in: core/types/formula.ts:130
#
ToNumberFunctionCreateInputƬ ToNumberFunctionCreateInput: IFunctionCreateInput<toNumber, TResultType>
Defined in: core/types/formula.ts:139
#
UnaryMinusFunctionCreateInputƬ UnaryMinusFunctionCreateInput: IFunctionCreateInput<unaryMinus, TNumberResultType>
Defined in: core/types/formula.ts:94
#
UnaryPlusFunctionCreateInputƬ UnaryPlusFunctionCreateInput: IFunctionCreateInput<unaryPlus, TNumberResultType>
Defined in: core/types/formula.ts:95
#
UnequalFunctionCreateInputƬ UnequalFunctionCreateInput: IFunctionCreateInput<unequal, Tuple2AnyResultType>
Defined in: core/types/formula.ts:50
#
UpdateTypeƬ UpdateType<T1, T2>: [string, T2] | (T
: T1, index
: number) => Promise<T2> | T2 | void | null | undefined
#
Type parameters:Name |
---|
T1 |
T2 |
Defined in: core/types/nishan.ts:25
#
UpdateTypesƬ UpdateTypes<T1, T2>: [string, T2][] | (T
: T1, index
: number) => Promise<T2> | T2 | void | null | undefined
#
Type parameters:Name |
---|
T1 |
T2 |
Defined in: core/types/nishan.ts:22
#
YearFunctionCreateInputƬ YearFunctionCreateInput: IFunctionCreateInput<year, TDateResultType>
Defined in: core/types/formula.ts:137
#
Variables#
Operation• Const
Operation: Record<TDataType, Record<TOperationCommand, (id
: string, path
: string[], args
: Args) => IOperation>>
Defined in: core/utils/chunk.ts:23
#
TCollectionUpdateKeys• Const
TCollectionUpdateKeys: readonly name[]
Defined in: core/types/block.ts:275
#
TNotionUserUpdateKeys• Const
TNotionUserUpdateKeys: readonly family_name[]
Defined in: core/types/block.ts:276
#
TSpaceUpdateKeys• Const
TSpaceUpdateKeys: readonly name[]
Defined in: core/types/block.ts:274
#
TSpaceViewUpdateKeys• Const
TSpaceViewUpdateKeys: readonly notify_desktop[]
Defined in: core/types/block.ts:277
#
TUserSettingsUpdateKeys• Const
TUserSettingsUpdateKeys: readonly start_day_of_week[]
Defined in: core/types/block.ts:278
#
Functions#
createBlockClassâ–¸ createBlockClass(type
: TBlockType, id
: string, props
: Pick<NishanArg, token | space_id | shard_id | interval | logger | stack | user_id | cache>): any
#
Parameters:Name | Type |
---|---|
type | TBlockType |
id | string |
props | Pick<NishanArg, token | space_id | shard_id | interval | logger | stack | user_id | cache> |
Returns: any
Defined in: core/utils/createBlockClass.ts:4
#
createBlockMapâ–¸ createBlockMap(): ITBlock
Returns: ITBlock
Defined in: core/utils/createMaps.ts:3
#
createCollectionâ–¸ createCollection(param
: ICollectionBlockInput, parent_id
: string, props
: Pick<NishanArg, token | space_id | shard_id | interval | logger | stack | user_id | cache>): [string, string[], ITView]
#
Parameters:Name | Type |
---|---|
param | ICollectionBlockInput |
parent_id | string |
props | Pick<NishanArg, token | space_id | shard_id | interval | logger | stack | user_id | cache> |
Returns: [string, string[], ITView]
Defined in: core/utils/createCollection.ts:6
#
createPageMapâ–¸ createPageMap(): ITPage
Returns: ITPage
Defined in: core/utils/createMaps.ts:78
#
createSchemaUnitMapâ–¸ createSchemaUnitMap(): ITSchemaUnit
Returns: ITSchemaUnit
Defined in: core/utils/createMaps.ts:54
#
createShortIdâ–¸ createShortId(length?
: number): string
#
Parameters:Name | Type | Default value |
---|---|---|
length | number | 5 |
Returns: string
Defined in: core/utils/ids.ts:1
#
createViewMapâ–¸ createViewMap(): ITView
Returns: ITView
Defined in: core/utils/createMaps.ts:43
#
createViewsâ–¸ createViews(schema
: Schema, views
: TViewCreateInput[], collection_id
: string, parent_id
: string, props
: Pick<NishanArg, token | space_id | shard_id | interval | logger | stack | user_id | cache>, current_id?
: string): [string[], ITView]
#
Parameters:Name | Type |
---|---|
schema | Schema |
views | TViewCreateInput[] |
collection_id | string |
parent_id | string |
props | Pick<NishanArg, token | space_id | shard_id | interval | logger | stack | user_id | cache> |
current_id? | string |
Returns: [string[], ITView]
Defined in: core/utils/createViews.ts:6
#
detectChildDataâ–¸ Const
detectChildData(type
: block | collection | collection_view | space | notion_user | space_view | user_root | user_settings, data
: TBlock): [string, block | collection | collection_view | space | notion_user | space_view | user_root | user_settings]
#
Parameters:Name | Type |
---|---|
type | block | collection | collection_view | space | notion_user | space_view | user_root | user_settings |
data | TBlock |
Returns: [string, block | collection | collection_view | space | notion_user | space_view | user_root | user_settings]
Defined in: core/utils/detectChildData.ts:3
#
errorâ–¸ Const
error(msg
: string): string
#
Parameters:Name | Type |
---|---|
msg | string |
Returns: string
Defined in: core/utils/logs.ts:3
#
formulateResultTypeFromSchemaTypeâ–¸ formulateResultTypeFromSchemaType(type
: number | text | file | select | multi_select | title | date | person | checkbox | url | email | phone_number | relation | rollup | created_time | created_by | last_edited_time | last_edited_by | formula): TFormulaResultType
#
Parameters:Name | Type |
---|---|
type | number | text | file | select | multi_select | title | date | person | checkbox | url | email | phone_number | relation | rollup | created_time | created_by | last_edited_time | last_edited_by | formula |
Returns: TFormulaResultType
Defined in: core/utils/parseFormula.ts:66
#
generateIdâ–¸ generateId(id
: undefined | string): string
#
Parameters:Name | Type |
---|---|
id | undefined | string |
Returns: string
Defined in: core/utils/generateId.ts:4
#
getAggregationsMapâ–¸ getAggregationsMap(data
: ITableView | IBoardView | ITimelineView, collection
: ICollection): readonly ISchemaAggregationMap[]
#
Parameters:Name | Type |
---|---|
data | ITableView | IBoardView | ITimelineView |
collection | ICollection |
Returns: readonly ISchemaAggregationMap[]
Defined in: core/utils/createViewMaps.ts:16
#
getFiltersMapâ–¸ getFiltersMap(data
: TView, collection
: ICollection): readonly ISchemaFiltersMap[]
#
Parameters:Name | Type |
---|---|
data | TView |
collection | ICollection |
Returns: readonly ISchemaFiltersMap[]
Defined in: core/utils/createViewMaps.ts:46
#
getFormatPropertiesMapâ–¸ getFormatPropertiesMap(data
: TView, collection
: ICollection): readonly ISchemaFormatMap[]
#
Parameters:Name | Type |
---|---|
data | TView |
collection | ICollection |
Returns: readonly ISchemaFormatMap[]
Defined in: core/utils/createViewMaps.ts:64
#
getSchemaMapâ–¸ getSchemaMap(collection
: ICollection): ISchemaMap
#
Parameters:Name | Type |
---|---|
collection | ICollection |
Returns: ISchemaMap
Defined in: core/utils/createViewMaps.ts:5
#
getSortsMapâ–¸ getSortsMap(data
: TView, collection
: ICollection): readonly ISchemaSortsMap[]
#
Parameters:Name | Type |
---|---|
data | TView |
collection | ICollection |
Returns: readonly ISchemaSortsMap[]
Defined in: core/utils/createViewMaps.ts:30
#
initializeViewAggregationsâ–¸ initializeViewAggregations(data
: ITableView | IBoardView | ITimelineView): ViewAggregations[]
#
Parameters:Name | Type |
---|---|
data | ITableView | IBoardView | ITimelineView |
Returns: ViewAggregations[]
Defined in: core/utils/initializeView.ts:16
#
initializeViewFiltersâ–¸ initializeViewFilters(data
: TView): IViewFilter
#
Parameters:Name | Type |
---|---|
data | TView |
Returns: IViewFilter
Defined in: core/utils/initializeView.ts:3
#
initializeViewSortsâ–¸ initializeViewSorts(data
: TView): ViewSorts[]
#
Parameters:Name | Type |
---|---|
data | TView |
Returns: ViewSorts[]
Defined in: core/utils/initializeView.ts:10
#
iterateAndDeleteChildrenâ–¸ Const
iterateAndDeleteChildren<T, TD>(args
: FilterTypes<TD>, transform
: (id
: string) => undefined | TD, options
: IterateAndDeleteOptions<T>, cb?
: (id
: string, data
: TD) => any): Promise<TD[]>
#
Type parameters:Name | Type |
---|---|
T | TData |
TD | - |
#
Parameters:Name | Type |
---|---|
args | FilterTypes<TD> |
transform | (id : string) => undefined | TD |
options | IterateAndDeleteOptions<T> |
cb? | (id : string, data : TD) => any |
Returns: Promise<TD[]>
Defined in: core/utils/iterateChildren.ts:74
#
iterateAndGetChildrenâ–¸ Const
iterateAndGetChildren<T, TD, C>(args
: FilterTypes<TD>, transform
: (id
: string) => undefined | TD, options
: IterateAndGetOptions<T, C>, cb?
: (id
: string, data
: TD, container
: C) => any): Promise<C>
#
Type parameters:Name | Type |
---|---|
T | TData |
TD | - |
C | - |
#
Parameters:Name | Type |
---|---|
args | FilterTypes<TD> |
transform | (id : string) => undefined | TD |
options | IterateAndGetOptions<T, C> |
cb? | (id : string, data : TD, container : C) => any |
Returns: Promise<C>
Defined in: core/utils/iterateChildren.ts:38
#
iterateAndUpdateChildrenâ–¸ Const
iterateAndUpdateChildren<T, CD, RD, C>(args
: UpdateTypes<CD, RD>, transform
: (id
: string) => undefined | CD, options
: IterateAndUpdateOptions<T, C>, cb?
: (id
: string, current\_data
: CD, updated\_data
: RD, container
: C) => any): Promise<C>
#
Type parameters:Name | Type | Default |
---|---|---|
T | TData | - |
CD | - | - |
RD | - | - |
C | - | any[] |
#
Parameters:Name | Type |
---|---|
args | UpdateTypes<CD, RD> |
transform | (id : string) => undefined | CD |
options | IterateAndUpdateOptions<T, C> |
cb? | (id : string, current\_data : CD, updated\_data : RD, container : C) => any |
Returns: Promise<C>
Defined in: core/utils/iterateChildren.ts:128
#
nestedContentPopulateâ–¸ nestedContentPopulate(contents
: TBlockCreateInput[], parent_id
: string, parent_table
: block | collection | space, props
: Pick<NishanArg, token | space_id | shard_id | interval | logger | stack | user_id | cache>, this_id
: string): Promise<ITBlock>
#
Parameters:Name | Type |
---|---|
contents | TBlockCreateInput[] |
parent_id | string |
parent_table | block | collection | space |
props | Pick<NishanArg, token | space_id | shard_id | interval | logger | stack | user_id | cache> |
this_id | string |
Returns: Promise<ITBlock>
Defined in: core/utils/nestedContentPopulate.ts:6
#
parseFormulaâ–¸ parseFormula(formula
: TFormulaCreateInput, schema_map
: ISchemaMap): TFormula
#
Parameters:Name | Type |
---|---|
formula | TFormulaCreateInput |
schema_map | ISchemaMap |
Returns: TFormula
Defined in: core/utils/parseFormula.ts:93
#
populateFiltersâ–¸ populateFilters(filters
: undefined | TViewFilterCreateInput[], parent_filter
: (IViewFilter | TextViewFilters | TitleViewFilters | NumberViewFilters | SelectViewFilters | MultiSelectViewFilters | DateViewFilters | PersonViewFilters | FileViewFilters | CheckboxViewFilters | UrlViewFilters | EmailViewFilters | PhoneNumberViewFilters | RelationViewFilters | CreatedTimeViewFilters | CreatedByViewFilters | LastEditedTimeViewFilters | LastEditedByViewFilters)[], name_map
: Map<string, { schema_id
: string } & TextSchemaUnit | { schema_id
: string } & NumberSchemaUnit | { schema_id
: string } & SelectSchemaUnit | { schema_id
: string } & MultiSelectSchemaUnit | { schema_id
: string } & TitleSchemaUnit | { schema_id
: string } & DateSchemaUnit | { schema_id
: string } & PersonSchemaUnit | { schema_id
: string } & FileSchemaUnit | { schema_id
: string } & CheckboxSchemaUnit | { schema_id
: string } & UrlSchemaUnit | { schema_id
: string } & EmailSchemaUnit | { schema_id
: string } & PhoneNumberSchemaUnit | { schema_id
: string } & RelationSchemaUnit | { schema_id
: string } & RollupSchemaUnit | { schema_id
: string } & CreatedTimeSchemaUnit | { schema_id
: string } & CreatedBySchemaUnit | { schema_id
: string } & LastEditedTimeSchemaUnit | { schema_id
: string } & LastEditedBySchemaUnit | { schema_id
: string } & FormulaSchemaUnit>): void
#
Parameters:Name | Type |
---|---|
filters | undefined | TViewFilterCreateInput[] |
parent_filter | (IViewFilter | TextViewFilters | TitleViewFilters | NumberViewFilters | SelectViewFilters | MultiSelectViewFilters | DateViewFilters | PersonViewFilters | FileViewFilters | CheckboxViewFilters | UrlViewFilters | EmailViewFilters | PhoneNumberViewFilters | RelationViewFilters | CreatedTimeViewFilters | CreatedByViewFilters | LastEditedTimeViewFilters | LastEditedByViewFilters)[] |
name_map | Map<string, { schema_id : string } & TextSchemaUnit | { schema_id : string } & NumberSchemaUnit | { schema_id : string } & SelectSchemaUnit | { schema_id : string } & MultiSelectSchemaUnit | { schema_id : string } & TitleSchemaUnit | { schema_id : string } & DateSchemaUnit | { schema_id : string } & PersonSchemaUnit | { schema_id : string } & FileSchemaUnit | { schema_id : string } & CheckboxSchemaUnit | { schema_id : string } & UrlSchemaUnit | { schema_id : string } & EmailSchemaUnit | { schema_id : string } & PhoneNumberSchemaUnit | { schema_id : string } & RelationSchemaUnit | { schema_id : string } & RollupSchemaUnit | { schema_id : string } & CreatedTimeSchemaUnit | { schema_id : string } & CreatedBySchemaUnit | { schema_id : string } & LastEditedTimeSchemaUnit | { schema_id : string } & LastEditedBySchemaUnit | { schema_id : string } & FormulaSchemaUnit> |
Returns: void
Defined in: core/utils/populateFilters.ts:4
#
positionChildrenâ–¸ positionChildren(arg
: PositionChildrenParam): IOperation
#
Parameters:Name | Type |
---|---|
arg | PositionChildrenParam |
Returns: IOperation
Defined in: core/utils/positionChildren.ts:8
#
slugifyâ–¸ slugify(word
: string): string
#
Parameters:Name | Type |
---|---|
word | string |
Returns: string
Defined in: core/utils/slugify.ts:1
#
validateUUIDâ–¸ validateUUID(uuid
: string): boolean
#
Parameters:Name | Type |
---|---|
uuid | string |
Returns: boolean
Defined in: core/utils/uuid.ts:2
#
warnâ–¸ Const
warn(msg
: string): string
#
Parameters:Name | Type |
---|---|
msg | string |
Returns: string
Defined in: core/utils/logs.ts:7