Skip to content

Commit aa99ef4

Browse files
committed
feat: add constants
1 parent 5216e1b commit aa99ef4

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

src/constants.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* The limits that the Notion API uses for property values.
3+
* @see https://developers.notion.com/reference/request-limits#limits-for-property-values
4+
*/
5+
export const LIMITS = {
6+
/** @see https://developers.notion.com/reference/request-limits#size-limits */
7+
PAYLOAD_BLOCKS: 1000,
8+
9+
RICH_TEXT_ARRAYS: 100,
10+
RICH_TEXT: {
11+
TEXT_CONTENT: 2000,
12+
LINK_URL: 1000,
13+
EQUATION_EXPRESSION: 1000,
14+
},
15+
URL: 1000,
16+
EMAIL: 200,
17+
PHONE: 200,
18+
MULTI_SELECT: 100,
19+
RELATION: 100,
20+
PEOPLE: 100,
21+
};

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export * as Blocks from './builders';
2+
export * as Constants from './constants';
23
export * as Types from './types';
34
export * as Utils from './utils';

0 commit comments

Comments
 (0)