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#
â–¸ ConstidToUuid(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#
â–¸ ConstuuidToId(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