File tree Expand file tree Collapse file tree 3 files changed +1935
-22
lines changed Expand file tree Collapse file tree 3 files changed +1935
-22
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @notionhq/client" ,
3
- "version" : " 0.4.2 " ,
3
+ "version" : " 0.4.3 " ,
4
4
"description" : " A simple and easy to use client for the Notion API" ,
5
5
"engines" : {
6
6
"node" : " >=12"
Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ import {
64
64
GetSelfParameters ,
65
65
GetSelfResponse ,
66
66
getSelf ,
67
+ GetPagePropertyParameters ,
68
+ GetPagePropertyResponse ,
69
+ getPageProperty ,
67
70
} from "./api-endpoints"
68
71
import nodeFetch from "node-fetch"
69
72
import {
@@ -404,6 +407,22 @@ export default class Client {
404
407
auth : args ?. auth ,
405
408
} )
406
409
} ,
410
+ properties : {
411
+ /**
412
+ * Retrieve page property
413
+ */
414
+ retrieve : (
415
+ args : WithAuth < GetPagePropertyParameters >
416
+ ) : Promise < GetPagePropertyResponse > => {
417
+ return this . request < GetPagePropertyResponse > ( {
418
+ path : getPageProperty . path ( args ) ,
419
+ method : getPageProperty . method ,
420
+ query : pick ( args , getPageProperty . queryParams ) ,
421
+ body : pick ( args , getPageProperty . bodyParams ) ,
422
+ auth : args ?. auth ,
423
+ } )
424
+ } ,
425
+ } ,
407
426
}
408
427
409
428
public readonly users = {
You can’t perform that action at this time.
0 commit comments