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 1.2.0 to 1.3.1

2

build/block.d.ts

@@ -26,2 +26,3 @@ import { ID, Color, Decoration, Role } from './core';

export interface BaseTextBlock extends BaseBlock {
content?: ID[];
properties?: {

@@ -62,2 +63,3 @@ title: Decoration[];

page_icon?: string;
block_color?: Color;
};

@@ -64,0 +66,0 @@ permissions: {

@@ -16,3 +16,5 @@ import { ID, PropertyID, PropertyType } from './core';

parent_table: string;
query?: any;
query2: {
filter?: any;
aggregations?: object[];

@@ -19,0 +21,0 @@ group_by: PropertyID;

10

build/formula.d.ts
import { PropertyID } from './core';
export declare type FormulaType = 'constant' | 'property' | 'operator' | 'function';
export declare type FormulaType = 'constant' | 'property' | 'operator' | 'function' | 'symbol';
export declare type FormulaConstantType = 'e' | 'false' | 'true' | 'pi';
export declare type FormulaValueType = 'string' | 'number' | 'boolean' | 'date' | FormulaConstantType;
export declare type FormulaResult = string | number | boolean | Date;
export declare type FormulaResultType = 'text' | 'number' | 'boolean' | 'date';
export declare type FormulaResultType = 'text' | 'number' | 'boolean' | 'date' | 'checkbox';
export declare type FormulaOperatorType = '-' | '*' | '%' | '/' | '+' | '!=' | '<=' | '==' | '>' | '<' | '>=';

@@ -23,2 +23,6 @@ export declare type FormulaFunctionType = 'and' | 'empty' | 'equal' | 'if' | 'larger' | 'largerEq' | 'not' | 'or' | 'smaller' | 'smallerEq' | 'unequal' | 'abs' | 'add' | 'cbrt' | 'ceil' | 'divide' | 'exp' | 'floor' | 'ln' | 'log10' | 'log2' | 'max' | 'min' | 'mod' | 'multiply' | 'pow' | 'round' | 'sign' | 'sqrt' | 'subtract' | 'toNumber' | 'unaryMinus' | 'unaryPlus' | 'concat' | 'contains' | 'format' | 'join' | 'length' | 'replace' | 'replaceAll' | 'slice' | 'test' | 'date' | 'dateAdd' | 'dateBetween' | 'dateSubtract' | 'day' | 'end' | 'formatDate' | 'fromTimestamp' | 'hour' | 'minute' | 'month' | 'now' | 'start' | 'timestamp' | 'year';

}
export interface SymbolFormula extends BaseFormula {
type: 'symbol';
name: string;
}
export interface FunctionFormula extends BaseFormula {

@@ -35,2 +39,2 @@ type: 'function';

}
export declare type Formula = FunctionFormula | OperatorFormula | ConstantFormula | PropertyFormula;
export declare type Formula = FunctionFormula | OperatorFormula | ConstantFormula | PropertyFormula | SymbolFormula;
{
"name": "notion-types",
"version": "1.2.0",
"version": "1.3.1",
"description": "TypeScript types for core Notion data structures.",

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

},
"gitHead": "da2f6798dfc72993adbb2610a5cd5acc62065280"
"gitHead": "e5532c42ec118797bb5c0e38e61b61dc2a32f567"
}

@@ -92,2 +92,4 @@ import { ID, Color, Decoration, Role } from './core'

export interface BaseTextBlock extends BaseBlock {
// some text blocks occasionally have children
content?: ID[]
properties?: {

@@ -130,2 +132,3 @@ title: Decoration[]

page_icon?: string
block_color?: Color
}

@@ -132,0 +135,0 @@ permissions: { role: Role; type: string }[]

@@ -32,4 +32,7 @@ import { ID, PropertyID, PropertyType } from './core'

query?: any
query2: {
// TODO
filter?: any
aggregations?: object[]

@@ -36,0 +39,0 @@ group_by: PropertyID

@@ -5,3 +5,8 @@ import { PropertyID } from './core'

export type FormulaType = 'constant' | 'property' | 'operator' | 'function'
export type FormulaType =
| 'constant'
| 'property'
| 'operator'
| 'function'
| 'symbol'

@@ -18,3 +23,8 @@ export type FormulaConstantType = 'e' | 'false' | 'true' | 'pi'

export type FormulaResult = string | number | boolean | Date
export type FormulaResultType = 'text' | 'number' | 'boolean' | 'date'
export type FormulaResultType =
| 'text'
| 'number'
| 'boolean'
| 'date'
| 'checkbox'

@@ -120,2 +130,7 @@ export type FormulaOperatorType =

export interface SymbolFormula extends BaseFormula {
type: 'symbol'
name: string
}
export interface FunctionFormula extends BaseFormula {

@@ -139,1 +154,2 @@ type: 'function'

| PropertyFormula
| SymbolFormula

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