@notionhq/client 2.2.13 → 2.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,7 +42,7 @@ exports.updatePage = {
42
42
  method: "patch",
43
43
  pathParams: ["page_id"],
44
44
  queryParams: [],
45
- bodyParams: ["properties", "icon", "cover", "archived"],
45
+ bodyParams: ["properties", "icon", "cover", "archived", "in_trash"],
46
46
  path: (p) => `pages/${p.page_id}`,
47
47
  };
48
48
  exports.getPageProperty = {
@@ -67,6 +67,7 @@ exports.updateBlock = {
67
67
  "embed",
68
68
  "type",
69
69
  "archived",
70
+ "in_trash",
70
71
  "bookmark",
71
72
  "image",
72
73
  "video",
@@ -136,6 +137,7 @@ exports.updateDatabase = {
136
137
  "properties",
137
138
  "is_inline",
138
139
  "archived",
140
+ "in_trash",
139
141
  ],
140
142
  path: (p) => `databases/${p.database_id}`,
141
143
  };
@@ -143,7 +145,14 @@ exports.queryDatabase = {
143
145
  method: "post",
144
146
  pathParams: ["database_id"],
145
147
  queryParams: ["filter_properties"],
146
- bodyParams: ["sorts", "filter", "start_cursor", "page_size", "archived"],
148
+ bodyParams: [
149
+ "sorts",
150
+ "filter",
151
+ "start_cursor",
152
+ "page_size",
153
+ "archived",
154
+ "in_trash",
155
+ ],
147
156
  path: (p) => `databases/${p.database_id}/query`,
148
157
  };
149
158
  exports.listDatabases = {