@notionhq/client 1.0.3 → 2.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.
@@ -2,7 +2,7 @@
2
2
  // cspell:disable-file
3
3
  // Note: This is a generated file.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.search = exports.createDatabase = exports.listDatabases = exports.queryDatabase = exports.updateDatabase = exports.getDatabase = exports.appendBlockChildren = exports.listBlockChildren = exports.deleteBlock = exports.updateBlock = exports.getBlock = exports.getPageProperty = exports.updatePage = exports.getPage = exports.createPage = exports.listUsers = exports.getUser = exports.getSelf = void 0;
5
+ exports.listComments = exports.createComment = exports.search = exports.createDatabase = exports.listDatabases = exports.queryDatabase = exports.updateDatabase = exports.getDatabase = exports.appendBlockChildren = exports.listBlockChildren = exports.deleteBlock = exports.updateBlock = exports.getBlock = exports.getPageProperty = exports.updatePage = exports.getPage = exports.createPage = exports.listUsers = exports.getUser = exports.getSelf = void 0;
6
6
  exports.getSelf = {
7
7
  method: "get",
8
8
  pathParams: [],
@@ -128,7 +128,15 @@ exports.updateDatabase = {
128
128
  method: "patch",
129
129
  pathParams: ["database_id"],
130
130
  queryParams: [],
131
- bodyParams: ["title", "icon", "cover", "properties", "archived"],
131
+ bodyParams: [
132
+ "title",
133
+ "description",
134
+ "icon",
135
+ "cover",
136
+ "properties",
137
+ "is_inline",
138
+ "archived",
139
+ ],
132
140
  path: (p) => `databases/${p.database_id}`,
133
141
  };
134
142
  exports.queryDatabase = {
@@ -149,7 +157,15 @@ exports.createDatabase = {
149
157
  method: "post",
150
158
  pathParams: [],
151
159
  queryParams: [],
152
- bodyParams: ["parent", "properties", "icon", "cover", "title"],
160
+ bodyParams: [
161
+ "parent",
162
+ "properties",
163
+ "icon",
164
+ "cover",
165
+ "title",
166
+ "description",
167
+ "is_inline",
168
+ ],
153
169
  path: () => `databases`,
154
170
  };
155
171
  exports.search = {
@@ -159,4 +175,18 @@ exports.search = {
159
175
  bodyParams: ["sort", "query", "start_cursor", "page_size", "filter"],
160
176
  path: () => `search`,
161
177
  };
178
+ exports.createComment = {
179
+ method: "post",
180
+ pathParams: [],
181
+ queryParams: [],
182
+ bodyParams: ["parent", "rich_text", "discussion_id"],
183
+ path: () => `comments`,
184
+ };
185
+ exports.listComments = {
186
+ method: "get",
187
+ pathParams: [],
188
+ queryParams: ["block_id", "start_cursor", "page_size"],
189
+ bodyParams: [],
190
+ path: () => `comments`,
191
+ };
162
192
  //# sourceMappingURL=api-endpoints.js.map