New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

notion-types

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notion-types - npm Package Compare versions

Comparing version 0.4.0 to 1.0.0

23

build/notion-types.d.ts

@@ -22,2 +22,3 @@ export declare type ID = string;

export declare type PageFormat = ['p', string];
export declare type InlineEquationFormat = ['e', string];
export declare type ExternalLinkFormat = ['‣', [string, string]];

@@ -30,7 +31,7 @@ export declare type DateFormat = ['d', {

}];
export declare type SubDecoration = BoldFormat | ItalicFormat | StrikeFormat | CodeFormat | LinkFormat | ColorFormat | DateFormat | UserFormat | PageFormat | ExternalLinkFormat;
export declare type SubDecoration = BoldFormat | ItalicFormat | StrikeFormat | CodeFormat | LinkFormat | ColorFormat | DateFormat | UserFormat | InlineEquationFormat | PageFormat | ExternalLinkFormat;
export declare type BaseDecoration = [string];
export declare type AdditionalDecoration = [string, SubDecoration[]];
export declare type Decoration = BaseDecoration | AdditionalDecoration;
export declare type BlockType = 'page' | 'bookmark' | 'text' | 'bulleted_list' | 'numbered_list' | 'header' | 'sub_header' | 'sub_sub_header' | 'quote' | 'to_do' | 'table_of_contents' | 'divider' | 'column_list' | 'column' | 'callout' | 'toggle' | 'image' | 'embed' | 'video' | 'figma' | 'tweet' | 'maps' | 'pdf' | 'audio' | 'drive' | 'file' | 'code' | 'collection_view';
export declare type BlockType = 'page' | 'text' | 'bookmark' | 'bulleted_list' | 'numbered_list' | 'header' | 'sub_header' | 'sub_sub_header' | 'quote' | 'equation' | 'to_do' | 'table_of_contents' | 'divider' | 'column_list' | 'column' | 'callout' | 'toggle' | 'image' | 'embed' | 'video' | 'figma' | 'tweet' | 'maps' | 'pdf' | 'audio' | 'drive' | 'file' | 'code' | 'collection_view' | 'collection_view_page' | string;
/**

@@ -80,4 +81,3 @@ * Base properties shared by all block types.

}
export interface PageBlock extends BaseBlock {
type: 'page';
export interface BasePageBlock extends BaseBlock {
properties?: {

@@ -101,2 +101,5 @@ title: Decoration[];

}
export interface PageBlock extends BasePageBlock {
type: 'page';
}
export interface BookmarkBlock extends BaseBlock {

@@ -136,2 +139,5 @@ type: 'bookmark';

}
export interface EquationBlock extends BaseTextBlock {
type: 'equation';
}
export interface TodoBlock extends BaseTextBlock {

@@ -239,3 +245,3 @@ type: 'to_do';

}
export interface CollectionBlock extends BaseContentBlock {
export interface CollectionViewBlock extends BaseContentBlock {
type: 'collection_view';

@@ -245,4 +251,9 @@ collection_id: ID;

}
export interface CollectionViewPageBlock extends BasePageBlock {
type: 'collection_view_page';
collection_id: ID;
view_ids: ID[];
}
/** The different block values a block can have. */
export declare type Block = TextBlock | PageBlock | BulletedListBlock | NumberedListBlock | HeaderBlock | SubHeaderBlock | SubSubHeaderBlock | TodoBlock | TableOfContentsBlock | DividerBlock | ColumnListBlock | ColumnBlock | QuoteBlock | CodeBlock | ImageBlock | VideoBlock | FigmaBlock | TweetBlock | PdfBlock | MapsBlock | AudioBlock | GoogleDriveBlock | FileBlock | EmbedBlock | CalloutBlock | BookmarkBlock | ToggleBlock | CollectionBlock;
export declare type Block = TextBlock | PageBlock | BulletedListBlock | NumberedListBlock | HeaderBlock | SubHeaderBlock | SubSubHeaderBlock | TodoBlock | TableOfContentsBlock | DividerBlock | ColumnListBlock | ColumnBlock | QuoteBlock | EquationBlock | CodeBlock | ImageBlock | VideoBlock | FigmaBlock | TweetBlock | PdfBlock | MapsBlock | AudioBlock | GoogleDriveBlock | FileBlock | EmbedBlock | CalloutBlock | BookmarkBlock | ToggleBlock | CollectionViewBlock | CollectionViewPageBlock;
export interface User {

@@ -249,0 +260,0 @@ id: ID;

{
"name": "notion-types",
"version": "0.4.0",
"version": "1.0.0",
"description": "TypeScript types for core Notion data structures.",

@@ -13,3 +13,3 @@ "repository": "saasify-sh/notion",

},
"gitHead": "76f2886c3a82acae47ac440ea859328fc5821e1e"
"gitHead": "3b23749ac247ac84f50d5db4952f244228e15b48"
}

@@ -82,2 +82,3 @@ // Base Types

export type PageFormat = ['p', string]
export type InlineEquationFormat = ['e', string]
export type ExternalLinkFormat = ['‣', [string, string]]

@@ -103,2 +104,3 @@ export type DateFormat = [

| UserFormat
| InlineEquationFormat
| PageFormat

@@ -117,4 +119,4 @@ | ExternalLinkFormat

| 'page'
| 'text'
| 'bookmark'
| 'text'
| 'bulleted_list'

@@ -126,2 +128,3 @@ | 'numbered_list'

| 'quote'
| 'equation'
| 'to_do'

@@ -146,2 +149,5 @@ | 'table_of_contents'

| 'collection_view'
| 'collection_view_page'
// fallback for unknown blocks
| string

@@ -195,4 +201,3 @@ /**

export interface PageBlock extends BaseBlock {
type: 'page'
export interface BasePageBlock extends BaseBlock {
properties?: {

@@ -214,2 +219,6 @@ title: Decoration[]

export interface PageBlock extends BasePageBlock {
type: 'page'
}
export interface BookmarkBlock extends BaseBlock {

@@ -257,2 +266,6 @@ type: 'bookmark'

export interface EquationBlock extends BaseTextBlock {
type: 'equation'
}
// TODO

@@ -379,3 +392,3 @@ export interface TodoBlock extends BaseTextBlock {

export interface CollectionBlock extends BaseContentBlock {
export interface CollectionViewBlock extends BaseContentBlock {
type: 'collection_view'

@@ -386,2 +399,8 @@ collection_id: ID

export interface CollectionViewPageBlock extends BasePageBlock {
type: 'collection_view_page'
collection_id: ID
view_ids: ID[]
}
/** The different block values a block can have. */

@@ -402,2 +421,3 @@ export type Block =

| QuoteBlock
| EquationBlock
| CodeBlock

@@ -417,3 +437,4 @@ | ImageBlock

| ToggleBlock
| CollectionBlock
| CollectionViewBlock
| CollectionViewPageBlock

@@ -420,0 +441,0 @@ // Users

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc