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:Name | Type | Description |
---|---|---|
token | string | The token used to verify in notion |
cb_id | string | Id of the collection block |
Returns: Promise<ISchemaMap>
The generated schema_map from the remote collection schema
Defined in: generateSchemaMap.ts:105
#
idToUuidâ–¸ Const
idToUuid(id
: string): string
Convert notion id to uuid
#
Parameters:Name | Type | Description |
---|---|---|
id | string | The 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:Name | Type | Description |
---|---|---|
arg | InlineDate | The inline date format |
Returns: InlineTextFormatter
Generated inline Date formatter
Defined in: inlineBlocks.ts:8
#
inlineEquationâ–¸ inlineEquation(equation
: string): InlineTextFormatter
Generate inline equation formatter
#
Parameters:Name | Type |
---|---|
equation | string |
Returns: InlineTextFormatter
Generated inline equation formatter
Defined in: inlineBlocks.ts:35
#
inlineMentionâ–¸ inlineMention(id
: string): InlineTextFormatter
Generate inline mention formatter
#
Parameters:Name | Type | Description |
---|---|---|
id | string | The 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:Name | Type | Description |
---|---|---|
id | string | The 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:Name | Type | Description |
---|---|---|
title? | string | TTextFormat | The initial content used for formatting |
Returns: InlineTextFormatter
An InlineTextFormatter instance
Defined in: inlineBlocks.ts:184
#
uuidToIdâ–¸ Const
uuidToId(uuid
: string): string
convert notion uuid to id
#
Parameters:Name | Type | Description |
---|---|---|
uuid | string | The uuid to convert to an id |
Returns: string
The converted id
Defined in: uuidConversion.ts:14