@notionhq/client 5.0.0 → 5.1.0

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.
@@ -60,7 +60,14 @@ exports.updatePage = {
60
60
  method: "patch",
61
61
  pathParams: ["page_id"],
62
62
  queryParams: [],
63
- bodyParams: ["properties", "icon", "cover", "archived", "in_trash"],
63
+ bodyParams: [
64
+ "properties",
65
+ "icon",
66
+ "cover",
67
+ "is_locked",
68
+ "archived",
69
+ "in_trash",
70
+ ],
64
71
  path: (p) => `pages/${p.page_id}`,
65
72
  };
66
73
  /**
@@ -172,7 +179,7 @@ exports.updateDataSource = {
172
179
  method: "patch",
173
180
  pathParams: ["data_source_id"],
174
181
  queryParams: [],
175
- bodyParams: ["title", "icon", "properties", "archived", "in_trash"],
182
+ bodyParams: ["title", "icon", "properties", "in_trash", "archived", "parent"],
176
183
  path: (p) => `data_sources/${p.data_source_id}`,
177
184
  };
178
185
  /**
@@ -227,6 +234,7 @@ exports.updateDatabase = {
227
234
  "icon",
228
235
  "cover",
229
236
  "in_trash",
237
+ "is_locked",
230
238
  ],
231
239
  path: (p) => `databases/${p.database_id}`,
232
240
  };