modules

@nishans/utils / Exports

@nishans/utils#

Index#

Classes#

Functions#

Functions#

generateSchemaMap#

â–¸ generateSchemaMap(token: string, cb_id: string): Promise<ISchemaMap>

Generates a schema_map from a remote collection schema

Parameters:#

NameTypeDescription
tokenstringThe token used to verify in notion
cb_idstringId of the collection block

Returns: Promise<ISchemaMap>

The generated schema_map from the remote collection schema

Defined in: generateSchemaMap.ts:105


idToUuid#

â–¸ ConstidToUuid(id: string): string

Convert notion id to uuid

Parameters:#

NameTypeDescription
idstringThe id to convert to uuid

Returns: string

The converted notion uuid

Defined in: uuidConversion.ts:6


inlineDate#

â–¸ inlineDate(arg: InlineDate): InlineTextFormatter

Generate inline Date formatter

Parameters:#

NameTypeDescription
argInlineDateThe inline date format

Returns: InlineTextFormatter

Generated inline Date formatter

Defined in: inlineBlocks.ts:8


inlineEquation#

â–¸ inlineEquation(equation: string): InlineTextFormatter

Generate inline equation formatter

Parameters:#

NameType
equationstring

Returns: InlineTextFormatter

Generated inline equation formatter

Defined in: inlineBlocks.ts:35


inlineMention#

â–¸ inlineMention(id: string): InlineTextFormatter

Generate inline mention formatter

Parameters:#

NameTypeDescription
idstringThe id of the mentioned user

Returns: InlineTextFormatter

Generated inline mention formatter

Defined in: inlineBlocks.ts:17


inlinePage#

â–¸ inlinePage(id: string): InlineTextFormatter

Generate inline page formatter

Parameters:#

NameTypeDescription
idstringThe id of the page

Returns: InlineTextFormatter

Generated inline page formatter

Defined in: inlineBlocks.ts:26


inlineText#

â–¸ inlineText(title?: string | TTextFormat): InlineTextFormatter

Generates an InlineTextFormatter instance using the passed text string

Parameters:#

NameTypeDescription
title?string | TTextFormatThe initial content used for formatting

Returns: InlineTextFormatter

An InlineTextFormatter instance

Defined in: inlineBlocks.ts:184


uuidToId#

â–¸ ConstuuidToId(uuid: string): string

convert notion uuid to id

Parameters:#

NameTypeDescription
uuidstringThe uuid to convert to an id

Returns: string

The converted id

Defined in: uuidConversion.ts:14