@notionhq/client 5.13.0 → 5.15.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.
Files changed (70) hide show
  1. package/build/package.json +1 -1
  2. package/build/src/Client.d.ts +43 -1
  3. package/build/src/Client.d.ts.map +1 -1
  4. package/build/src/Client.js +139 -0
  5. package/build/src/Client.js.map +1 -1
  6. package/build/src/api-endpoints/blocks.d.ts +984 -0
  7. package/build/src/api-endpoints/blocks.d.ts.map +1 -0
  8. package/build/src/api-endpoints/blocks.js +89 -0
  9. package/build/src/api-endpoints/blocks.js.map +1 -0
  10. package/build/src/api-endpoints/comments.d.ts +112 -0
  11. package/build/src/api-endpoints/comments.d.ts.map +1 -0
  12. package/build/src/api-endpoints/comments.js +42 -0
  13. package/build/src/api-endpoints/comments.js.map +1 -0
  14. package/build/src/api-endpoints/common.d.ts +1939 -0
  15. package/build/src/api-endpoints/common.d.ts.map +1 -0
  16. package/build/src/api-endpoints/common.js +5 -0
  17. package/build/src/api-endpoints/common.js.map +1 -0
  18. package/build/src/api-endpoints/custom-emojis.d.ts +26 -0
  19. package/build/src/api-endpoints/custom-emojis.d.ts.map +1 -0
  20. package/build/src/api-endpoints/custom-emojis.js +16 -0
  21. package/build/src/api-endpoints/custom-emojis.js.map +1 -0
  22. package/build/src/api-endpoints/data-sources.d.ts +430 -0
  23. package/build/src/api-endpoints/data-sources.d.ts.map +1 -0
  24. package/build/src/api-endpoints/data-sources.js +64 -0
  25. package/build/src/api-endpoints/data-sources.js.map +1 -0
  26. package/build/src/api-endpoints/databases.d.ts +109 -0
  27. package/build/src/api-endpoints/databases.d.ts.map +1 -0
  28. package/build/src/api-endpoints/databases.js +53 -0
  29. package/build/src/api-endpoints/databases.js.map +1 -0
  30. package/build/src/api-endpoints/file-uploads.d.ts +138 -0
  31. package/build/src/api-endpoints/file-uploads.d.ts.map +1 -0
  32. package/build/src/api-endpoints/file-uploads.js +63 -0
  33. package/build/src/api-endpoints/file-uploads.js.map +1 -0
  34. package/build/src/api-endpoints/oauth.d.ts +90 -0
  35. package/build/src/api-endpoints/oauth.d.ts.map +1 -0
  36. package/build/src/api-endpoints/oauth.js +42 -0
  37. package/build/src/api-endpoints/oauth.js.map +1 -0
  38. package/build/src/api-endpoints/pages.d.ts +639 -0
  39. package/build/src/api-endpoints/pages.d.ts.map +1 -0
  40. package/build/src/api-endpoints/pages.js +102 -0
  41. package/build/src/api-endpoints/pages.js.map +1 -0
  42. package/build/src/api-endpoints/search.d.ts +36 -0
  43. package/build/src/api-endpoints/search.d.ts.map +1 -0
  44. package/build/src/api-endpoints/search.js +16 -0
  45. package/build/src/api-endpoints/search.js.map +1 -0
  46. package/build/src/api-endpoints/users.d.ts +53 -0
  47. package/build/src/api-endpoints/users.d.ts.map +1 -0
  48. package/build/src/api-endpoints/users.js +36 -0
  49. package/build/src/api-endpoints/users.js.map +1 -0
  50. package/build/src/api-endpoints/views.d.ts +504 -0
  51. package/build/src/api-endpoints/views.d.ts.map +1 -0
  52. package/build/src/api-endpoints/views.js +86 -0
  53. package/build/src/api-endpoints/views.js.map +1 -0
  54. package/build/src/api-endpoints/webhooks.d.ts +302 -0
  55. package/build/src/api-endpoints/webhooks.d.ts.map +1 -0
  56. package/build/src/api-endpoints/webhooks.js +5 -0
  57. package/build/src/api-endpoints/webhooks.js.map +1 -0
  58. package/build/src/api-endpoints.d.ts +13 -4078
  59. package/build/src/api-endpoints.d.ts.map +1 -1
  60. package/build/src/api-endpoints.js +31 -452
  61. package/build/src/api-endpoints.js.map +1 -1
  62. package/build/src/helpers.d.ts +5 -1
  63. package/build/src/helpers.d.ts.map +1 -1
  64. package/build/src/helpers.js +7 -0
  65. package/build/src/helpers.js.map +1 -1
  66. package/build/src/index.d.ts +2 -2
  67. package/build/src/index.d.ts.map +1 -1
  68. package/build/src/index.js +2 -1
  69. package/build/src/index.js.map +1 -1
  70. package/package.json +1 -1
@@ -0,0 +1,504 @@
1
+ import type { CreateViewQueryRequest, CreateViewRequest, DataSourceViewReferenceResponse, DatabaseParentResponse, EmptyObject, IdRequest, IdResponse, PartialPageObjectResponse, PartialUserObjectResponse, UpdateViewRequest } from "./common";
2
+ type BoardViewConfigResponse = {
3
+ type: "board";
4
+ group_by: GroupByConfigResponse;
5
+ sub_group_by?: GroupByConfigResponse;
6
+ properties?: Array<ViewPropertyConfigResponse>;
7
+ cover?: CoverConfigResponse;
8
+ cover_size?: "small" | "medium" | "large";
9
+ cover_aspect?: "contain" | "cover";
10
+ card_layout?: "list" | "compact";
11
+ };
12
+ type CalendarViewConfigResponse = {
13
+ type: "calendar";
14
+ date_property_id: string;
15
+ date_property_name?: string;
16
+ properties?: Array<ViewPropertyConfigResponse>;
17
+ view_range?: "week" | "month";
18
+ show_weekends?: boolean;
19
+ };
20
+ type ChartAggregationResponse = {
21
+ aggregator: "count" | "count_values" | "sum" | "average" | "median" | "min" | "max" | "range" | "unique" | "empty" | "not_empty" | "percent_empty" | "percent_not_empty" | "checked" | "unchecked" | "percent_checked" | "percent_unchecked" | "earliest_date" | "latest_date" | "date_range";
22
+ property_id?: string;
23
+ };
24
+ type ChartReferenceLineResponse = {
25
+ id: string;
26
+ value: number;
27
+ label: string;
28
+ color: "gray" | "lightgray" | "brown" | "yellow" | "orange" | "green" | "blue" | "purple" | "pink" | "red";
29
+ dash_style: "solid" | "dash";
30
+ };
31
+ type ChartViewConfigResponse = {
32
+ type: "chart";
33
+ chart_type: "column" | "bar" | "line" | "donut" | "number";
34
+ x_axis?: GroupByConfigResponse | null;
35
+ y_axis?: ChartAggregationResponse | null;
36
+ x_axis_property_id?: string;
37
+ y_axis_property_id?: string;
38
+ value?: ChartAggregationResponse;
39
+ sort?: "manual" | "x_ascending" | "x_descending" | "y_ascending" | "y_descending";
40
+ color_theme?: "gray" | "blue" | "yellow" | "green" | "purple" | "teal" | "orange" | "pink" | "red" | "auto" | "colorful";
41
+ height?: "small" | "medium" | "large" | "extra_large";
42
+ hide_empty_groups?: boolean;
43
+ legend_position?: "off" | "bottom" | "side";
44
+ show_data_labels?: boolean;
45
+ axis_labels?: "none" | "x_axis" | "y_axis" | "both";
46
+ grid_lines?: "none" | "horizontal" | "vertical" | "both";
47
+ cumulative?: boolean;
48
+ smooth_line?: boolean;
49
+ hide_line_fill_area?: boolean;
50
+ group_style?: "normal" | "percent" | "side_by_side";
51
+ y_axis_min?: number | null;
52
+ y_axis_max?: number | null;
53
+ donut_labels?: "none" | "value" | "name" | "name_and_value";
54
+ hide_title?: boolean;
55
+ stack_by?: GroupByConfigResponse | null;
56
+ reference_lines?: Array<ChartReferenceLineResponse> | null;
57
+ caption?: string | null;
58
+ color_by_value?: boolean;
59
+ };
60
+ type CheckboxGroupByConfigResponse = {
61
+ type: "checkbox";
62
+ property_id: string;
63
+ sort: GroupSortResponse;
64
+ property_name?: string;
65
+ hide_empty_groups?: boolean;
66
+ };
67
+ type CoverConfigResponse = {
68
+ type: "page_cover" | "page_content" | "page_content_first" | "property";
69
+ property_id?: string;
70
+ };
71
+ export type DashboardRowResponse = {
72
+ id: string;
73
+ widgets: Array<DashboardWidgetResponse>;
74
+ height?: number;
75
+ };
76
+ type DashboardViewConfigResponse = {
77
+ type: "dashboard";
78
+ rows: Array<DashboardRowResponse>;
79
+ };
80
+ export type DashboardWidgetResponse = {
81
+ id: string;
82
+ view_id: string;
83
+ width?: number;
84
+ row_index?: number;
85
+ };
86
+ export type DataSourceViewObjectResponse = {
87
+ object: "view";
88
+ id: IdResponse;
89
+ parent: DatabaseParentResponse;
90
+ name: string;
91
+ type: "table" | "board" | "list" | "calendar" | "timeline" | "gallery" | "form" | "chart" | "map" | "dashboard";
92
+ created_time: string;
93
+ last_edited_time: string;
94
+ url: string;
95
+ data_source_id?: string | null;
96
+ created_by?: PartialUserObjectResponse | null;
97
+ last_edited_by?: PartialUserObjectResponse | null;
98
+ filter?: ViewFilterResponse | null;
99
+ sorts?: Array<ViewSortResponse> | null;
100
+ quick_filters?: Record<string, QuickFilterConditionResponse> | null;
101
+ configuration?: ViewConfigResponse | null;
102
+ dashboard_view_id?: string;
103
+ };
104
+ type DateGroupByConfigResponse = {
105
+ type: "date" | "created_time" | "last_edited_time";
106
+ property_id: string;
107
+ group_by: "relative" | "day" | "week" | "month" | "year";
108
+ sort: GroupSortResponse;
109
+ property_name?: string;
110
+ hide_empty_groups?: boolean;
111
+ start_day_of_week?: 0 | 1;
112
+ };
113
+ export type DeletedViewQueryResponse = {
114
+ object: "view_query";
115
+ id: IdResponse;
116
+ deleted: boolean;
117
+ };
118
+ type FormViewConfigResponse = {
119
+ type: "form";
120
+ is_form_closed?: boolean;
121
+ anonymous_submissions?: boolean;
122
+ submission_permissions?: "none" | "comment_only" | "reader" | "read_and_write" | "editor";
123
+ };
124
+ type FormulaCheckboxSubGroupByResponse = {
125
+ type: "checkbox";
126
+ sort: GroupSortResponse;
127
+ };
128
+ type FormulaDateSubGroupByResponse = {
129
+ type: "date";
130
+ group_by: "relative" | "day" | "week" | "month" | "year";
131
+ sort: GroupSortResponse;
132
+ start_day_of_week?: 0 | 1;
133
+ };
134
+ type FormulaGroupByConfigResponse = {
135
+ type: "formula";
136
+ property_id: string;
137
+ group_by: FormulaSubGroupByResponse;
138
+ property_name?: string;
139
+ hide_empty_groups?: boolean;
140
+ };
141
+ type FormulaNumberSubGroupByResponse = {
142
+ type: "number";
143
+ sort: GroupSortResponse;
144
+ range_start?: number;
145
+ range_end?: number;
146
+ range_size?: number;
147
+ };
148
+ /**
149
+ * Sub-group-by configuration for formula properties based on result type.
150
+ */
151
+ type FormulaSubGroupByResponse = FormulaDateSubGroupByResponse | FormulaTextSubGroupByResponse | FormulaNumberSubGroupByResponse | FormulaCheckboxSubGroupByResponse;
152
+ type FormulaTextSubGroupByResponse = {
153
+ type: "text";
154
+ group_by: "exact" | "alphabet_prefix";
155
+ sort: GroupSortResponse;
156
+ };
157
+ type GalleryViewConfigResponse = {
158
+ type: "gallery";
159
+ properties?: Array<ViewPropertyConfigResponse>;
160
+ cover?: CoverConfigResponse;
161
+ cover_size?: "small" | "medium" | "large";
162
+ cover_aspect?: "contain" | "cover";
163
+ card_layout?: "list" | "compact";
164
+ };
165
+ /**
166
+ * Group-by configuration based on property type.
167
+ */
168
+ type GroupByConfigResponse = SelectGroupByConfigResponse | StatusGroupByConfigResponse | PersonGroupByConfigResponse | RelationGroupByConfigResponse | DateGroupByConfigResponse | TextGroupByConfigResponse | NumberGroupByConfigResponse | CheckboxGroupByConfigResponse | FormulaGroupByConfigResponse;
169
+ type GroupSortResponse = {
170
+ type: "manual" | "ascending" | "descending";
171
+ };
172
+ type ListViewConfigResponse = {
173
+ type: "list";
174
+ properties?: Array<ViewPropertyConfigResponse>;
175
+ };
176
+ type MapViewConfigResponse = {
177
+ type: "map";
178
+ height?: "small" | "medium" | "large" | "extra_large";
179
+ map_by?: string;
180
+ map_by_property_name?: string;
181
+ properties?: Array<ViewPropertyConfigResponse>;
182
+ };
183
+ type NumberGroupByConfigResponse = {
184
+ type: "number";
185
+ property_id: string;
186
+ sort: GroupSortResponse;
187
+ property_name?: string;
188
+ hide_empty_groups?: boolean;
189
+ range_start?: number;
190
+ range_end?: number;
191
+ range_size?: number;
192
+ };
193
+ type PageReferenceResponse = {
194
+ object: string;
195
+ id: IdResponse;
196
+ };
197
+ export type PartialDataSourceViewObjectResponse = {
198
+ object: "view";
199
+ id: IdResponse;
200
+ parent: DatabaseParentResponse;
201
+ type: "table" | "board" | "list" | "calendar" | "timeline" | "gallery" | "form" | "chart" | "map" | "dashboard";
202
+ };
203
+ type PersonGroupByConfigResponse = {
204
+ type: "person" | "created_by" | "last_edited_by";
205
+ property_id: string;
206
+ sort: GroupSortResponse;
207
+ property_name?: string;
208
+ hide_empty_groups?: boolean;
209
+ };
210
+ type PropertySortResponse = {
211
+ property: string;
212
+ direction: "ascending" | "descending";
213
+ };
214
+ /**
215
+ * A property filter condition. Same shape as a property filter but without the
216
+ * "property" field. For example: { "select": { "equals": "High" } }.
217
+ */
218
+ type QuickFilterConditionResponse = Record<string, never>;
219
+ type RelationGroupByConfigResponse = {
220
+ type: "relation";
221
+ property_id: string;
222
+ sort: GroupSortResponse;
223
+ property_name?: string;
224
+ hide_empty_groups?: boolean;
225
+ };
226
+ type SelectGroupByConfigResponse = {
227
+ type: "select" | "multi_select";
228
+ property_id: string;
229
+ sort: GroupSortResponse;
230
+ property_name?: string;
231
+ hide_empty_groups?: boolean;
232
+ };
233
+ type StatusGroupByConfigResponse = {
234
+ type: "status";
235
+ property_id: string;
236
+ group_by: "group" | "option";
237
+ sort: GroupSortResponse;
238
+ property_name?: string;
239
+ hide_empty_groups?: boolean;
240
+ };
241
+ type SubtaskConfigResponse = {
242
+ property_id?: string;
243
+ display_mode?: "show" | "hidden" | "flattened" | "disabled";
244
+ filter_scope?: "parents" | "parents_and_subitems" | "subitems";
245
+ toggle_column_id?: string;
246
+ };
247
+ type TableViewConfigResponse = {
248
+ type: "table";
249
+ properties?: Array<ViewPropertyConfigResponse>;
250
+ group_by?: GroupByConfigResponse;
251
+ subtasks?: SubtaskConfigResponse;
252
+ wrap_cells?: boolean;
253
+ frozen_column_index?: number;
254
+ show_vertical_lines?: boolean;
255
+ };
256
+ type TextGroupByConfigResponse = {
257
+ type: "text" | "title" | "url" | "email" | "phone_number";
258
+ property_id: string;
259
+ group_by: "exact" | "alphabet_prefix";
260
+ sort: GroupSortResponse;
261
+ property_name?: string;
262
+ hide_empty_groups?: boolean;
263
+ };
264
+ type TimelineArrowsByResponse = {
265
+ property_id?: string | null;
266
+ };
267
+ type TimelinePreferenceResponse = {
268
+ zoom_level: "hours" | "day" | "week" | "bi_week" | "month" | "quarter" | "year" | "5_years";
269
+ center_timestamp?: number;
270
+ };
271
+ type TimelineViewConfigResponse = {
272
+ type: "timeline";
273
+ date_property_id: string;
274
+ date_property_name?: string;
275
+ end_date_property_id?: string;
276
+ end_date_property_name?: string;
277
+ properties?: Array<ViewPropertyConfigResponse>;
278
+ show_table?: boolean;
279
+ table_properties?: Array<ViewPropertyConfigResponse>;
280
+ preference?: TimelinePreferenceResponse;
281
+ arrows_by?: TimelineArrowsByResponse;
282
+ color_by?: boolean;
283
+ };
284
+ type TimestampSortResponse = {
285
+ timestamp: "created_time" | "last_edited_time";
286
+ direction: "ascending" | "descending";
287
+ };
288
+ /**
289
+ * View configuration, typed by view type (table, board, calendar, etc.).
290
+ */
291
+ type ViewConfigResponse = TableViewConfigResponse | BoardViewConfigResponse | CalendarViewConfigResponse | TimelineViewConfigResponse | GalleryViewConfigResponse | ListViewConfigResponse | MapViewConfigResponse | FormViewConfigResponse | ChartViewConfigResponse | DashboardViewConfigResponse;
292
+ /**
293
+ * Filter for the view. Can be a property filter (filter by property value), timestamp
294
+ * filter (filter by created_time or last_edited_time), or compound filter (combine
295
+ * filters with and/or logic). Compound filters support up to 2 levels of nesting.
296
+ */
297
+ type ViewFilterResponse = (Record<string, unknown> & {
298
+ property: string;
299
+ }) | (Record<string, unknown> & {
300
+ timestamp: "created_time" | "last_edited_time";
301
+ }) | {
302
+ or?: Array<(Record<string, unknown> & {
303
+ property: string;
304
+ }) | (Record<string, unknown> & {
305
+ timestamp: "created_time" | "last_edited_time";
306
+ }) | {
307
+ or?: Array<(Record<string, unknown> & {
308
+ property: string;
309
+ }) | (Record<string, unknown> & {
310
+ timestamp: "created_time" | "last_edited_time";
311
+ })>;
312
+ and?: Array<(Record<string, unknown> & {
313
+ property: string;
314
+ }) | (Record<string, unknown> & {
315
+ timestamp: "created_time" | "last_edited_time";
316
+ })>;
317
+ }>;
318
+ and?: Array<(Record<string, unknown> & {
319
+ property: string;
320
+ }) | (Record<string, unknown> & {
321
+ timestamp: "created_time" | "last_edited_time";
322
+ }) | {
323
+ or?: Array<(Record<string, unknown> & {
324
+ property: string;
325
+ }) | (Record<string, unknown> & {
326
+ timestamp: "created_time" | "last_edited_time";
327
+ })>;
328
+ and?: Array<(Record<string, unknown> & {
329
+ property: string;
330
+ }) | (Record<string, unknown> & {
331
+ timestamp: "created_time" | "last_edited_time";
332
+ })>;
333
+ }>;
334
+ };
335
+ type ViewPropertyConfigResponse = {
336
+ property_id: string;
337
+ property_name?: string;
338
+ visible?: boolean;
339
+ width?: number;
340
+ wrap?: boolean;
341
+ status_show_as?: "select" | "checkbox";
342
+ card_property_width_mode?: "full_line" | "inline";
343
+ date_format?: "full" | "short" | "month_day_year" | "day_month_year" | "year_month_day" | "relative";
344
+ time_format?: "12_hour" | "24_hour" | "hidden";
345
+ };
346
+ export type ViewQueryResponse = {
347
+ object: "view_query";
348
+ id: IdResponse;
349
+ view_id: IdResponse;
350
+ expires_at: string;
351
+ total_count: number;
352
+ results: Array<PageReferenceResponse>;
353
+ next_cursor: IdResponse | null;
354
+ has_more: boolean;
355
+ };
356
+ /**
357
+ * Sort for the view. Can sort by property or timestamp.
358
+ */
359
+ type ViewSortResponse = PropertySortResponse | TimestampSortResponse;
360
+ type ListDatabaseViewsQueryParameters = {
361
+ database_id?: IdRequest;
362
+ data_source_id?: IdRequest;
363
+ start_cursor?: string;
364
+ page_size?: number;
365
+ };
366
+ export type ListDatabaseViewsParameters = ListDatabaseViewsQueryParameters;
367
+ export type ListDatabaseViewsResponse = {
368
+ object: "list";
369
+ next_cursor: IdResponse | null;
370
+ has_more: boolean;
371
+ results: Array<DataSourceViewReferenceResponse>;
372
+ type: "view";
373
+ view: EmptyObject;
374
+ };
375
+ /**
376
+ * List views
377
+ */
378
+ export declare const listDatabaseViews: {
379
+ readonly method: "get";
380
+ readonly pathParams: readonly [];
381
+ readonly queryParams: readonly ["database_id", "data_source_id", "start_cursor", "page_size"];
382
+ readonly bodyParams: readonly [];
383
+ readonly path: () => string;
384
+ };
385
+ type CreateViewBodyParameters = CreateViewRequest;
386
+ export type CreateViewParameters = CreateViewBodyParameters;
387
+ export type CreateViewResponse = PartialDataSourceViewObjectResponse | DataSourceViewObjectResponse;
388
+ /**
389
+ * Create a view
390
+ */
391
+ export declare const createView: {
392
+ readonly method: "post";
393
+ readonly pathParams: readonly [];
394
+ readonly queryParams: readonly [];
395
+ readonly bodyParams: readonly [];
396
+ readonly path: () => string;
397
+ };
398
+ type GetViewPathParameters = {
399
+ view_id: IdRequest;
400
+ };
401
+ export type GetViewParameters = GetViewPathParameters;
402
+ export type GetViewResponse = PartialDataSourceViewObjectResponse | DataSourceViewObjectResponse;
403
+ /**
404
+ * Retrieve a view
405
+ */
406
+ export declare const getView: {
407
+ readonly method: "get";
408
+ readonly pathParams: readonly ["view_id"];
409
+ readonly queryParams: readonly [];
410
+ readonly bodyParams: readonly [];
411
+ readonly path: (p: GetViewPathParameters) => string;
412
+ };
413
+ type UpdateViewPathParameters = {
414
+ view_id: IdRequest;
415
+ };
416
+ type UpdateViewBodyParameters = UpdateViewRequest;
417
+ export type UpdateViewParameters = UpdateViewPathParameters & UpdateViewBodyParameters;
418
+ export type UpdateViewResponse = PartialDataSourceViewObjectResponse | DataSourceViewObjectResponse;
419
+ /**
420
+ * Update a view
421
+ */
422
+ export declare const updateView: {
423
+ readonly method: "patch";
424
+ readonly pathParams: readonly ["view_id"];
425
+ readonly queryParams: readonly [];
426
+ readonly bodyParams: readonly [];
427
+ readonly path: (p: UpdateViewPathParameters) => string;
428
+ };
429
+ type DeleteViewPathParameters = {
430
+ view_id: IdRequest;
431
+ };
432
+ export type DeleteViewParameters = DeleteViewPathParameters;
433
+ export type DeleteViewResponse = PartialDataSourceViewObjectResponse;
434
+ /**
435
+ * Delete a view
436
+ */
437
+ export declare const deleteView: {
438
+ readonly method: "delete";
439
+ readonly pathParams: readonly ["view_id"];
440
+ readonly queryParams: readonly [];
441
+ readonly bodyParams: readonly [];
442
+ readonly path: (p: DeleteViewPathParameters) => string;
443
+ };
444
+ type CreateViewQueryPathParameters = {
445
+ view_id: IdRequest;
446
+ };
447
+ type CreateViewQueryBodyParameters = CreateViewQueryRequest;
448
+ export type CreateViewQueryParameters = CreateViewQueryPathParameters & CreateViewQueryBodyParameters;
449
+ export type CreateViewQueryResponse = ViewQueryResponse;
450
+ /**
451
+ * Create a view query
452
+ */
453
+ export declare const createViewQuery: {
454
+ readonly method: "post";
455
+ readonly pathParams: readonly ["view_id"];
456
+ readonly queryParams: readonly [];
457
+ readonly bodyParams: readonly [];
458
+ readonly path: (p: CreateViewQueryPathParameters) => string;
459
+ };
460
+ type GetViewQueryResultsPathParameters = {
461
+ view_id: IdRequest;
462
+ query_id: IdRequest;
463
+ };
464
+ type GetViewQueryResultsQueryParameters = {
465
+ start_cursor?: string;
466
+ page_size?: number;
467
+ };
468
+ export type GetViewQueryResultsParameters = GetViewQueryResultsPathParameters & GetViewQueryResultsQueryParameters;
469
+ export type GetViewQueryResultsResponse = {
470
+ object: "list";
471
+ next_cursor: IdResponse | null;
472
+ has_more: boolean;
473
+ results: Array<PartialPageObjectResponse>;
474
+ type: "page";
475
+ page: EmptyObject;
476
+ };
477
+ /**
478
+ * Get view query results
479
+ */
480
+ export declare const getViewQueryResults: {
481
+ readonly method: "get";
482
+ readonly pathParams: readonly ["view_id", "query_id"];
483
+ readonly queryParams: readonly ["start_cursor", "page_size"];
484
+ readonly bodyParams: readonly [];
485
+ readonly path: (p: GetViewQueryResultsPathParameters) => string;
486
+ };
487
+ type DeleteViewQueryPathParameters = {
488
+ view_id: IdRequest;
489
+ query_id: IdRequest;
490
+ };
491
+ export type DeleteViewQueryParameters = DeleteViewQueryPathParameters;
492
+ export type DeleteViewQueryResponse = DeletedViewQueryResponse;
493
+ /**
494
+ * Delete a view query
495
+ */
496
+ export declare const deleteViewQuery: {
497
+ readonly method: "delete";
498
+ readonly pathParams: readonly ["view_id", "query_id"];
499
+ readonly queryParams: readonly [];
500
+ readonly bodyParams: readonly [];
501
+ readonly path: (p: DeleteViewQueryPathParameters) => string;
502
+ };
503
+ export {};
504
+ //# sourceMappingURL=views.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../../src/api-endpoints/views.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,sBAAsB,EACtB,iBAAiB,EACjB,+BAA+B,EAC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C,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,UAAU,GAAG,IAAI,CAAA;IAC9B,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAA;IAEzC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,WAAW,CAAA;CAClB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;uBAMpB,iCAAiC,KAAG,MAAM;CAE5C,CAAA;AAEV,KAAK,6BAA6B,GAAG;IAEnC,OAAO,EAAE,SAAS,CAAA;IAElB,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,6BAA6B,CAAA;AAErE,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,CAAA;AAE9D;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;uBAMhB,6BAA6B,KAAG,MAAM;CAExC,CAAA"}
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ // cspell:disable-file
3
+ // Note: This is a generated file. DO NOT EDIT!
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.deleteViewQuery = exports.getViewQueryResults = exports.createViewQuery = exports.deleteView = exports.updateView = exports.getView = exports.createView = exports.listDatabaseViews = void 0;
6
+ /**
7
+ * List views
8
+ */
9
+ exports.listDatabaseViews = {
10
+ method: "get",
11
+ pathParams: [],
12
+ queryParams: ["database_id", "data_source_id", "start_cursor", "page_size"],
13
+ bodyParams: [],
14
+ path: () => `views`,
15
+ };
16
+ /**
17
+ * Create a view
18
+ */
19
+ exports.createView = {
20
+ method: "post",
21
+ pathParams: [],
22
+ queryParams: [],
23
+ bodyParams: [],
24
+ path: () => `views`,
25
+ };
26
+ /**
27
+ * Retrieve a view
28
+ */
29
+ exports.getView = {
30
+ method: "get",
31
+ pathParams: ["view_id"],
32
+ queryParams: [],
33
+ bodyParams: [],
34
+ path: (p) => `views/${p.view_id}`,
35
+ };
36
+ /**
37
+ * Update a view
38
+ */
39
+ exports.updateView = {
40
+ method: "patch",
41
+ pathParams: ["view_id"],
42
+ queryParams: [],
43
+ bodyParams: [],
44
+ path: (p) => `views/${p.view_id}`,
45
+ };
46
+ /**
47
+ * Delete a view
48
+ */
49
+ exports.deleteView = {
50
+ method: "delete",
51
+ pathParams: ["view_id"],
52
+ queryParams: [],
53
+ bodyParams: [],
54
+ path: (p) => `views/${p.view_id}`,
55
+ };
56
+ /**
57
+ * Create a view query
58
+ */
59
+ exports.createViewQuery = {
60
+ method: "post",
61
+ pathParams: ["view_id"],
62
+ queryParams: [],
63
+ bodyParams: [],
64
+ path: (p) => `views/${p.view_id}/queries`,
65
+ };
66
+ /**
67
+ * Get view query results
68
+ */
69
+ exports.getViewQueryResults = {
70
+ method: "get",
71
+ pathParams: ["view_id", "query_id"],
72
+ queryParams: ["start_cursor", "page_size"],
73
+ bodyParams: [],
74
+ path: (p) => `views/${p.view_id}/queries/${p.query_id}`,
75
+ };
76
+ /**
77
+ * Delete a view query
78
+ */
79
+ exports.deleteViewQuery = {
80
+ method: "delete",
81
+ pathParams: ["view_id", "query_id"],
82
+ queryParams: [],
83
+ bodyParams: [],
84
+ path: (p) => `views/${p.view_id}/queries/${p.query_id}`,
85
+ };
86
+ //# sourceMappingURL=views.js.map