Skip to content

Commit

Permalink
feat: add constants
Browse files Browse the repository at this point in the history
  • Loading branch information
EndBug committed Jun 3, 2022
1 parent 5216e1b commit aa99ef4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* The limits that the Notion API uses for property values.
* @see https://developers.notion.com/reference/request-limits#limits-for-property-values
*/
export const LIMITS = {
/** @see https://developers.notion.com/reference/request-limits#size-limits */
PAYLOAD_BLOCKS: 1000,

RICH_TEXT_ARRAYS: 100,
RICH_TEXT: {
TEXT_CONTENT: 2000,
LINK_URL: 1000,
EQUATION_EXPRESSION: 1000,
},
URL: 1000,
EMAIL: 200,
PHONE: 200,
MULTI_SELECT: 100,
RELATION: 100,
PEOPLE: 100,
};
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * as Blocks from './builders';
export * as Constants from './constants';
export * as Types from './types';
export * as Utils from './utils';

0 comments on commit aa99ef4

Please sign in to comment.