@atikk-co-jp/notion-mcp-server 0.1.0 → 0.2.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.
- package/README.ja.md +95 -4
- package/README.md +95 -4
- package/dist/bin/cli.js +10 -10
- package/dist/src/converters/__tests__/block-to-markdown.test.d.ts +2 -0
- package/dist/src/converters/__tests__/block-to-markdown.test.d.ts.map +1 -0
- package/dist/src/converters/__tests__/block-to-markdown.test.js +611 -0
- package/dist/src/converters/__tests__/page-to-markdown.test.d.ts +2 -0
- package/dist/src/converters/__tests__/page-to-markdown.test.d.ts.map +1 -0
- package/dist/src/converters/__tests__/page-to-markdown.test.js +567 -0
- package/dist/src/converters/__tests__/rich-text-to-markdown.test.d.ts +2 -0
- package/dist/src/converters/__tests__/rich-text-to-markdown.test.d.ts.map +1 -0
- package/dist/src/converters/__tests__/rich-text-to-markdown.test.js +353 -0
- package/dist/src/converters/block-to-markdown.d.ts +38 -0
- package/dist/src/converters/block-to-markdown.d.ts.map +1 -0
- package/dist/src/converters/block-to-markdown.js +484 -0
- package/dist/src/converters/index.d.ts +9 -0
- package/dist/src/converters/index.d.ts.map +1 -0
- package/dist/src/converters/index.js +11 -0
- package/dist/src/converters/page-to-markdown.d.ts +64 -0
- package/dist/src/converters/page-to-markdown.d.ts.map +1 -0
- package/dist/src/converters/page-to-markdown.js +189 -0
- package/dist/src/converters/rich-text-to-markdown.d.ts +61 -0
- package/dist/src/converters/rich-text-to-markdown.d.ts.map +1 -0
- package/dist/src/converters/rich-text-to-markdown.js +95 -0
- package/dist/src/index.d.ts +6 -6
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +5 -5
- package/dist/src/notion-client.d.ts +58 -15
- package/dist/src/notion-client.d.ts.map +1 -1
- package/dist/src/notion-client.js +23 -13
- package/dist/src/schemas/block.d.ts +2158 -622
- package/dist/src/schemas/block.d.ts.map +1 -1
- package/dist/src/schemas/block.js +283 -76
- package/dist/src/schemas/common.d.ts +518 -6
- package/dist/src/schemas/common.d.ts.map +1 -1
- package/dist/src/schemas/common.js +120 -42
- package/dist/src/schemas/database.d.ts +687 -0
- package/dist/src/schemas/database.d.ts.map +1 -0
- package/dist/src/schemas/database.js +264 -0
- package/dist/src/schemas/filter.d.ts +509 -3
- package/dist/src/schemas/filter.d.ts.map +1 -1
- package/dist/src/schemas/filter.js +110 -13
- package/dist/src/schemas/index.d.ts +5 -4
- package/dist/src/schemas/index.d.ts.map +1 -1
- package/dist/src/schemas/index.js +7 -5
- package/dist/src/schemas/page.d.ts +2152 -19
- package/dist/src/schemas/page.d.ts.map +1 -1
- package/dist/src/schemas/page.js +216 -22
- package/dist/src/schemas/schemas.test.d.ts +2 -0
- package/dist/src/schemas/schemas.test.d.ts.map +1 -0
- package/dist/src/schemas/schemas.test.js +418 -0
- package/dist/src/server.d.ts +2 -2
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +6 -6
- package/dist/src/tools/append-block-children.d.ts +2 -2
- package/dist/src/tools/append-block-children.d.ts.map +1 -1
- package/dist/src/tools/append-block-children.js +16 -10
- package/dist/src/tools/create-comment.d.ts +2 -2
- package/dist/src/tools/create-comment.d.ts.map +1 -1
- package/dist/src/tools/create-comment.js +15 -9
- package/dist/src/tools/create-database.d.ts +4 -0
- package/dist/src/tools/create-database.d.ts.map +1 -0
- package/dist/src/tools/create-database.js +57 -0
- package/dist/src/tools/create-page.d.ts +2 -2
- package/dist/src/tools/create-page.d.ts.map +1 -1
- package/dist/src/tools/create-page.js +22 -24
- package/dist/src/tools/get-block-children.d.ts +2 -2
- package/dist/src/tools/get-block-children.d.ts.map +1 -1
- package/dist/src/tools/get-block-children.js +39 -6
- package/dist/src/tools/index.d.ts +13 -11
- package/dist/src/tools/index.d.ts.map +1 -1
- package/dist/src/tools/index.js +13 -9
- package/dist/src/tools/query-database.d.ts +2 -2
- package/dist/src/tools/query-database.d.ts.map +1 -1
- package/dist/src/tools/query-database.js +27 -18
- package/dist/src/tools/retrieve-page.d.ts +2 -2
- package/dist/src/tools/retrieve-page.d.ts.map +1 -1
- package/dist/src/tools/retrieve-page.js +44 -4
- package/dist/src/tools/search.d.ts +2 -2
- package/dist/src/tools/search.d.ts.map +1 -1
- package/dist/src/tools/search.js +18 -12
- package/dist/src/tools/update-database.d.ts +4 -0
- package/dist/src/tools/update-database.d.ts.map +1 -0
- package/dist/src/tools/update-database.js +74 -0
- package/dist/src/tools/update-page.d.ts +2 -2
- package/dist/src/tools/update-page.d.ts.map +1 -1
- package/dist/src/tools/update-page.js +23 -18
- package/dist/src/utils/error-handler.d.ts +1 -1
- package/dist/src/utils/error-handler.d.ts.map +1 -1
- package/dist/src/utils/error-handler.js +14 -14
- package/dist/src/utils/index.d.ts +2 -2
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/index.js +2 -2
- package/dist/src/utils/response-formatter.d.ts +13 -1
- package/dist/src/utils/response-formatter.d.ts.map +1 -1
- package/dist/src/utils/response-formatter.js +46 -3
- package/package.json +11 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
// Text filter conditions
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
// Text filter conditions (for title, rich_text, url, email, phone_number)
|
|
3
3
|
const TextFilterConditionSchema = z
|
|
4
4
|
.object({
|
|
5
5
|
equals: z.string().optional(),
|
|
@@ -12,7 +12,7 @@ const TextFilterConditionSchema = z
|
|
|
12
12
|
is_not_empty: z.literal(true).optional(),
|
|
13
13
|
})
|
|
14
14
|
.refine((obj) => Object.keys(obj).length === 1, {
|
|
15
|
-
message:
|
|
15
|
+
message: 'Exactly one filter condition must be specified',
|
|
16
16
|
});
|
|
17
17
|
// Number filter conditions
|
|
18
18
|
const NumberFilterConditionSchema = z
|
|
@@ -27,11 +27,16 @@ const NumberFilterConditionSchema = z
|
|
|
27
27
|
is_not_empty: z.literal(true).optional(),
|
|
28
28
|
})
|
|
29
29
|
.refine((obj) => Object.keys(obj).length === 1, {
|
|
30
|
-
message:
|
|
30
|
+
message: 'Exactly one filter condition must be specified',
|
|
31
31
|
});
|
|
32
32
|
// Checkbox filter conditions
|
|
33
|
-
const CheckboxFilterConditionSchema = z
|
|
34
|
-
|
|
33
|
+
const CheckboxFilterConditionSchema = z
|
|
34
|
+
.object({
|
|
35
|
+
equals: z.boolean().optional(),
|
|
36
|
+
does_not_equal: z.boolean().optional(),
|
|
37
|
+
})
|
|
38
|
+
.refine((obj) => Object.keys(obj).length === 1, {
|
|
39
|
+
message: 'Exactly one filter condition must be specified',
|
|
35
40
|
});
|
|
36
41
|
// Select filter conditions
|
|
37
42
|
const SelectFilterConditionSchema = z
|
|
@@ -42,7 +47,7 @@ const SelectFilterConditionSchema = z
|
|
|
42
47
|
is_not_empty: z.literal(true).optional(),
|
|
43
48
|
})
|
|
44
49
|
.refine((obj) => Object.keys(obj).length === 1, {
|
|
45
|
-
message:
|
|
50
|
+
message: 'Exactly one filter condition must be specified',
|
|
46
51
|
});
|
|
47
52
|
// Multi-select filter conditions
|
|
48
53
|
const MultiSelectFilterConditionSchema = z
|
|
@@ -53,7 +58,7 @@ const MultiSelectFilterConditionSchema = z
|
|
|
53
58
|
is_not_empty: z.literal(true).optional(),
|
|
54
59
|
})
|
|
55
60
|
.refine((obj) => Object.keys(obj).length === 1, {
|
|
56
|
-
message:
|
|
61
|
+
message: 'Exactly one filter condition must be specified',
|
|
57
62
|
});
|
|
58
63
|
// Status filter conditions
|
|
59
64
|
const StatusFilterConditionSchema = z
|
|
@@ -64,7 +69,7 @@ const StatusFilterConditionSchema = z
|
|
|
64
69
|
is_not_empty: z.literal(true).optional(),
|
|
65
70
|
})
|
|
66
71
|
.refine((obj) => Object.keys(obj).length === 1, {
|
|
67
|
-
message:
|
|
72
|
+
message: 'Exactly one filter condition must be specified',
|
|
68
73
|
});
|
|
69
74
|
// Date filter conditions
|
|
70
75
|
const DateFilterConditionSchema = z
|
|
@@ -77,6 +82,7 @@ const DateFilterConditionSchema = z
|
|
|
77
82
|
past_week: z.object({}).optional(),
|
|
78
83
|
past_month: z.object({}).optional(),
|
|
79
84
|
past_year: z.object({}).optional(),
|
|
85
|
+
this_week: z.object({}).optional(),
|
|
80
86
|
next_week: z.object({}).optional(),
|
|
81
87
|
next_month: z.object({}).optional(),
|
|
82
88
|
next_year: z.object({}).optional(),
|
|
@@ -84,7 +90,7 @@ const DateFilterConditionSchema = z
|
|
|
84
90
|
is_not_empty: z.literal(true).optional(),
|
|
85
91
|
})
|
|
86
92
|
.refine((obj) => Object.keys(obj).length === 1, {
|
|
87
|
-
message:
|
|
93
|
+
message: 'Exactly one filter condition must be specified',
|
|
88
94
|
});
|
|
89
95
|
// Relation filter conditions
|
|
90
96
|
const RelationFilterConditionSchema = z
|
|
@@ -95,13 +101,92 @@ const RelationFilterConditionSchema = z
|
|
|
95
101
|
is_not_empty: z.literal(true).optional(),
|
|
96
102
|
})
|
|
97
103
|
.refine((obj) => Object.keys(obj).length === 1, {
|
|
98
|
-
message:
|
|
104
|
+
message: 'Exactly one filter condition must be specified',
|
|
105
|
+
});
|
|
106
|
+
// People filter conditions
|
|
107
|
+
const PeopleFilterConditionSchema = z
|
|
108
|
+
.object({
|
|
109
|
+
contains: z.string().optional(),
|
|
110
|
+
does_not_contain: z.string().optional(),
|
|
111
|
+
is_empty: z.literal(true).optional(),
|
|
112
|
+
is_not_empty: z.literal(true).optional(),
|
|
113
|
+
})
|
|
114
|
+
.refine((obj) => Object.keys(obj).length === 1, {
|
|
115
|
+
message: 'Exactly one filter condition must be specified',
|
|
116
|
+
});
|
|
117
|
+
// Files filter conditions
|
|
118
|
+
const FilesFilterConditionSchema = z
|
|
119
|
+
.object({
|
|
120
|
+
is_empty: z.literal(true).optional(),
|
|
121
|
+
is_not_empty: z.literal(true).optional(),
|
|
122
|
+
})
|
|
123
|
+
.refine((obj) => Object.keys(obj).length === 1, {
|
|
124
|
+
message: 'Exactly one filter condition must be specified',
|
|
125
|
+
});
|
|
126
|
+
// Formula filter conditions (nested based on formula result type)
|
|
127
|
+
const FormulaFilterConditionSchema = z
|
|
128
|
+
.object({
|
|
129
|
+
checkbox: CheckboxFilterConditionSchema.optional(),
|
|
130
|
+
date: DateFilterConditionSchema.optional(),
|
|
131
|
+
number: NumberFilterConditionSchema.optional(),
|
|
132
|
+
string: TextFilterConditionSchema.optional(),
|
|
133
|
+
})
|
|
134
|
+
.refine((obj) => Object.keys(obj).length === 1, {
|
|
135
|
+
message: 'Exactly one formula result type must be specified',
|
|
136
|
+
});
|
|
137
|
+
// Unique ID filter conditions
|
|
138
|
+
const UniqueIdFilterConditionSchema = z
|
|
139
|
+
.object({
|
|
140
|
+
equals: z.number().optional(),
|
|
141
|
+
does_not_equal: z.number().optional(),
|
|
142
|
+
greater_than: z.number().optional(),
|
|
143
|
+
less_than: z.number().optional(),
|
|
144
|
+
greater_than_or_equal_to: z.number().optional(),
|
|
145
|
+
less_than_or_equal_to: z.number().optional(),
|
|
146
|
+
})
|
|
147
|
+
.refine((obj) => Object.keys(obj).length === 1, {
|
|
148
|
+
message: 'Exactly one filter condition must be specified',
|
|
149
|
+
});
|
|
150
|
+
// Rollup item filter schema (for any/every/none conditions)
|
|
151
|
+
// This matches the property filter conditions that can be applied to rollup items
|
|
152
|
+
const RollupItemFilterSchema = z.object({
|
|
153
|
+
title: TextFilterConditionSchema.optional(),
|
|
154
|
+
rich_text: TextFilterConditionSchema.optional(),
|
|
155
|
+
url: TextFilterConditionSchema.optional(),
|
|
156
|
+
email: TextFilterConditionSchema.optional(),
|
|
157
|
+
phone_number: TextFilterConditionSchema.optional(),
|
|
158
|
+
number: NumberFilterConditionSchema.optional(),
|
|
159
|
+
checkbox: CheckboxFilterConditionSchema.optional(),
|
|
160
|
+
select: SelectFilterConditionSchema.optional(),
|
|
161
|
+
multi_select: MultiSelectFilterConditionSchema.optional(),
|
|
162
|
+
status: StatusFilterConditionSchema.optional(),
|
|
163
|
+
date: DateFilterConditionSchema.optional(),
|
|
164
|
+
relation: RelationFilterConditionSchema.optional(),
|
|
165
|
+
people: PeopleFilterConditionSchema.optional(),
|
|
166
|
+
files: FilesFilterConditionSchema.optional(),
|
|
167
|
+
});
|
|
168
|
+
// Rollup filter conditions (depends on rollup aggregation type)
|
|
169
|
+
const RollupFilterConditionSchema = z
|
|
170
|
+
.object({
|
|
171
|
+
any: RollupItemFilterSchema.optional(),
|
|
172
|
+
every: RollupItemFilterSchema.optional(),
|
|
173
|
+
none: RollupItemFilterSchema.optional(),
|
|
174
|
+
number: NumberFilterConditionSchema.optional(),
|
|
175
|
+
date: DateFilterConditionSchema.optional(),
|
|
176
|
+
})
|
|
177
|
+
.refine((obj) => Object.keys(obj).length === 1, {
|
|
178
|
+
message: 'Exactly one rollup filter condition must be specified',
|
|
99
179
|
});
|
|
100
180
|
// Property filter schema
|
|
181
|
+
// Note: created_by and last_edited_by properties use the 'people' filter condition
|
|
182
|
+
// Example: { property: "created_by", people: { contains: "user-id" } }
|
|
101
183
|
export const PropertyFilterSchema = z.object({
|
|
102
184
|
property: z.string(),
|
|
103
185
|
title: TextFilterConditionSchema.optional(),
|
|
104
186
|
rich_text: TextFilterConditionSchema.optional(),
|
|
187
|
+
url: TextFilterConditionSchema.optional(),
|
|
188
|
+
email: TextFilterConditionSchema.optional(),
|
|
189
|
+
phone_number: TextFilterConditionSchema.optional(),
|
|
105
190
|
number: NumberFilterConditionSchema.optional(),
|
|
106
191
|
checkbox: CheckboxFilterConditionSchema.optional(),
|
|
107
192
|
select: SelectFilterConditionSchema.optional(),
|
|
@@ -109,17 +194,29 @@ export const PropertyFilterSchema = z.object({
|
|
|
109
194
|
status: StatusFilterConditionSchema.optional(),
|
|
110
195
|
date: DateFilterConditionSchema.optional(),
|
|
111
196
|
relation: RelationFilterConditionSchema.optional(),
|
|
197
|
+
people: PeopleFilterConditionSchema.optional(),
|
|
198
|
+
files: FilesFilterConditionSchema.optional(),
|
|
199
|
+
formula: FormulaFilterConditionSchema.optional(),
|
|
200
|
+
unique_id: UniqueIdFilterConditionSchema.optional(),
|
|
201
|
+
rollup: RollupFilterConditionSchema.optional(),
|
|
202
|
+
});
|
|
203
|
+
// Timestamp filter schema
|
|
204
|
+
export const TimestampFilterSchema = z.object({
|
|
205
|
+
timestamp: z.enum(['created_time', 'last_edited_time']),
|
|
206
|
+
created_time: DateFilterConditionSchema.optional(),
|
|
207
|
+
last_edited_time: DateFilterConditionSchema.optional(),
|
|
112
208
|
});
|
|
113
209
|
// Compound filter schema (uses lazy for recursion)
|
|
114
210
|
export const FilterSchema = z.lazy(() => z.union([
|
|
115
211
|
PropertyFilterSchema,
|
|
212
|
+
TimestampFilterSchema,
|
|
116
213
|
z.object({ and: z.array(FilterSchema) }),
|
|
117
214
|
z.object({ or: z.array(FilterSchema) }),
|
|
118
215
|
]));
|
|
119
216
|
// Sort schema
|
|
120
217
|
export const SortSchema = z.object({
|
|
121
218
|
property: z.string().optional(),
|
|
122
|
-
timestamp: z.enum([
|
|
123
|
-
direction: z.enum([
|
|
219
|
+
timestamp: z.enum(['created_time', 'last_edited_time']).optional(),
|
|
220
|
+
direction: z.enum(['ascending', 'descending']),
|
|
124
221
|
});
|
|
125
222
|
export const SortsSchema = z.array(SortSchema);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { BlockChildrenSchema, BlockSchema, BookmarkBlockSchema, BulletedListItemBlockSchema, CalloutBlockSchema, CodeBlockSchema, DividerBlockSchema, EmbedBlockSchema, Heading1BlockSchema, Heading2BlockSchema, Heading3BlockSchema, ImageBlockSchema, NumberedListItemBlockSchema, ParagraphBlockSchema, QuoteBlockSchema, TableOfContentsBlockSchema, ToDoBlockSchema, ToggleBlockSchema, VideoBlockSchema, } from
|
|
2
|
-
export { CoverSchema, DatabaseParentSchema, EmojiIconSchema, ExternalIconSchema, IconSchema, PageParentSchema, ParentSchema, RichTextArraySchema, RichTextSchema, SimpleTextSchema, } from
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
1
|
+
export { AudioBlockSchema, BlockChildrenSchema, BlockSchema, BookmarkBlockSchema, BreadcrumbBlockSchema, BulletedListItemBlockSchema, CalloutBlockSchema, ChildDatabaseBlockSchema, ChildPageBlockSchema, CodeBlockSchema, ColumnBlockSchema, ColumnListBlockSchema, DividerBlockSchema, EmbedBlockSchema, EmojiIconBlockSchema, EquationBlockSchema, ExternalFileSchema, ExternalIconBlockSchema, FileBlockSchema, FileIconBlockSchema, FileObjectSchema, FileUploadSchema, Heading1BlockSchema, Heading2BlockSchema, Heading3BlockSchema, IconBlockSchema, ImageBlockSchema, LinkPreviewBlockSchema, LinkToPageBlockSchema, NotionFileSchema, NumberedListItemBlockSchema, ParagraphBlockSchema, PdfBlockSchema, QuoteBlockSchema, SyncedBlockDuplicateSchema, SyncedBlockOriginalSchema, SyncedBlockSchema, TableBlockSchema, TableOfContentsBlockSchema, TableRowBlockSchema, TemplateBlockSchema, ToDoBlockSchema, ToggleBlockSchema, UnsupportedBlockSchema, VideoBlockSchema, } from './block.js';
|
|
2
|
+
export { AnnotationsSchema, ColorSchema, CoverSchema, DatabaseMentionSchema, DatabaseParentSchema, DateMentionSchema, EmojiIconSchema, EquationRichTextSchema, ExternalIconSchema, IconSchema, LinkPreviewMentionSchema, MentionRichTextSchema, MentionSchema, PageMentionSchema, PageParentSchema, ParentSchema, RichTextArraySchema, RichTextSchema, SimpleTextSchema, TemplateMentionDateSchema, TemplateMentionSchema, TemplateMentionUserSchema, TextRichTextSchema, UserMentionSchema, } from './common.js';
|
|
3
|
+
export { CheckboxPropertySchemaSchema, CreatedByPropertySchemaSchema, CreatedTimePropertySchemaSchema, DatabasePropertiesSchema, DatabasePropertySchemaSchema, DatabaseTitleSchema, DatePropertySchemaSchema, EmailPropertySchemaSchema, FilesPropertySchemaSchema, FormulaPropertySchemaSchema, LastEditedByPropertySchemaSchema, LastEditedTimePropertySchemaSchema, MultiSelectPropertySchemaSchema, NumberPropertySchemaSchema, PeoplePropertySchemaSchema, PhoneNumberPropertySchemaSchema, RelationPropertySchemaSchema, RichTextPropertySchemaSchema, RollupPropertySchemaSchema, SelectOptionSchema, SelectPropertySchemaSchema, TitlePropertySchemaSchema, UrlPropertySchemaSchema, } from './database.js';
|
|
4
|
+
export { FilterSchema, type FilterType, PropertyFilterSchema, SortSchema, SortsSchema, TimestampFilterSchema, } from './filter.js';
|
|
5
|
+
export { CheckboxPropertySchema, CreatedByPropertySchema, CreatedTimePropertySchema, DatePropertySchema, EmailPropertySchema, FilesPropertySchema, FormulaPropertySchema, LastEditedByPropertySchema, LastEditedTimePropertySchema, MultiSelectPropertySchema, NumberPropertySchema, PeoplePropertySchema, PhoneNumberPropertySchema, PropertiesSchema, PropertyValueSchema, RelationPropertySchema, RichTextPropertySchema, RollupPropertySchema, SelectPropertySchema, StatusPropertySchema, TitlePropertySchema, UniqueIdPropertySchema, UrlPropertySchema, UserObjectSchema, VerificationPropertySchema, } from './page.js';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACnB,2BAA2B,EAC3B,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,2BAA2B,EAC3B,oBAAoB,EACpB,gBAAgB,EAChB,0BAA0B,EAC1B,eAAe,EACf,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,2BAA2B,EAC3B,kBAAkB,EAClB,wBAAwB,EACxB,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,2BAA2B,EAC3B,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,0BAA0B,EAC1B,yBAAyB,EACzB,iBAAiB,EACjB,gBAAgB,EAChB,0BAA0B,EAC1B,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,YAAY,CAAA;AAGnB,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,UAAU,EACV,wBAAwB,EACxB,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,EAC/B,wBAAwB,EACxB,4BAA4B,EAC5B,mBAAmB,EACnB,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,EACzB,2BAA2B,EAC3B,gCAAgC,EAChC,kCAAkC,EAClC,+BAA+B,EAC/B,0BAA0B,EAC1B,0BAA0B,EAC1B,+BAA+B,EAC/B,4BAA4B,EAC5B,4BAA4B,EAC5B,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,eAAe,CAAA;AAGtB,OAAO,EACL,YAAY,EACZ,KAAK,UAAU,EACf,oBAAoB,EACpB,UAAU,EACV,WAAW,EACX,qBAAqB,GACtB,MAAM,aAAa,CAAA;AAGpB,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,gBAAgB,EAChB,0BAA0B,GAC3B,MAAM,WAAW,CAAA"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Database schemas
|
|
2
2
|
// Block schemas
|
|
3
|
-
export { BlockChildrenSchema, BlockSchema, BookmarkBlockSchema, BulletedListItemBlockSchema, CalloutBlockSchema, CodeBlockSchema, DividerBlockSchema, EmbedBlockSchema, Heading1BlockSchema, Heading2BlockSchema, Heading3BlockSchema, ImageBlockSchema, NumberedListItemBlockSchema, ParagraphBlockSchema, QuoteBlockSchema, TableOfContentsBlockSchema, ToDoBlockSchema, ToggleBlockSchema, VideoBlockSchema, } from
|
|
4
|
-
|
|
3
|
+
export { AudioBlockSchema, BlockChildrenSchema, BlockSchema, BookmarkBlockSchema, BreadcrumbBlockSchema, BulletedListItemBlockSchema, CalloutBlockSchema, ChildDatabaseBlockSchema, ChildPageBlockSchema, CodeBlockSchema, ColumnBlockSchema, ColumnListBlockSchema, DividerBlockSchema, EmbedBlockSchema, EmojiIconBlockSchema, EquationBlockSchema, ExternalFileSchema, ExternalIconBlockSchema, FileBlockSchema, FileIconBlockSchema, FileObjectSchema, FileUploadSchema, Heading1BlockSchema, Heading2BlockSchema, Heading3BlockSchema, IconBlockSchema, ImageBlockSchema, LinkPreviewBlockSchema, LinkToPageBlockSchema, NotionFileSchema, NumberedListItemBlockSchema, ParagraphBlockSchema, PdfBlockSchema, QuoteBlockSchema, SyncedBlockDuplicateSchema, SyncedBlockOriginalSchema, SyncedBlockSchema, TableBlockSchema, TableOfContentsBlockSchema, TableRowBlockSchema, TemplateBlockSchema, ToDoBlockSchema, ToggleBlockSchema, UnsupportedBlockSchema, VideoBlockSchema, } from './block.js';
|
|
4
|
+
// Common schemas
|
|
5
|
+
export { AnnotationsSchema, ColorSchema, CoverSchema, DatabaseMentionSchema, DatabaseParentSchema, DateMentionSchema, EmojiIconSchema, EquationRichTextSchema, ExternalIconSchema, IconSchema, LinkPreviewMentionSchema, MentionRichTextSchema, MentionSchema, PageMentionSchema, PageParentSchema, ParentSchema, RichTextArraySchema, RichTextSchema, SimpleTextSchema, TemplateMentionDateSchema, TemplateMentionSchema, TemplateMentionUserSchema, TextRichTextSchema, UserMentionSchema, } from './common.js';
|
|
6
|
+
export { CheckboxPropertySchemaSchema, CreatedByPropertySchemaSchema, CreatedTimePropertySchemaSchema, DatabasePropertiesSchema, DatabasePropertySchemaSchema, DatabaseTitleSchema, DatePropertySchemaSchema, EmailPropertySchemaSchema, FilesPropertySchemaSchema, FormulaPropertySchemaSchema, LastEditedByPropertySchemaSchema, LastEditedTimePropertySchemaSchema, MultiSelectPropertySchemaSchema, NumberPropertySchemaSchema, PeoplePropertySchemaSchema, PhoneNumberPropertySchemaSchema, RelationPropertySchemaSchema, RichTextPropertySchemaSchema, RollupPropertySchemaSchema, SelectOptionSchema, SelectPropertySchemaSchema, TitlePropertySchemaSchema, UrlPropertySchemaSchema, } from './database.js';
|
|
5
7
|
// Filter and sort schemas
|
|
6
|
-
export { FilterSchema, PropertyFilterSchema, SortSchema, SortsSchema, } from
|
|
8
|
+
export { FilterSchema, PropertyFilterSchema, SortSchema, SortsSchema, TimestampFilterSchema, } from './filter.js';
|
|
7
9
|
// Page property schemas
|
|
8
|
-
export { CheckboxPropertySchema, DatePropertySchema, EmailPropertySchema, FilesPropertySchema, MultiSelectPropertySchema, NumberPropertySchema, PeoplePropertySchema, PhoneNumberPropertySchema, PropertiesSchema, PropertyValueSchema, RelationPropertySchema, RichTextPropertySchema, SelectPropertySchema, StatusPropertySchema, TitlePropertySchema, UrlPropertySchema, } from
|
|
10
|
+
export { CheckboxPropertySchema, CreatedByPropertySchema, CreatedTimePropertySchema, DatePropertySchema, EmailPropertySchema, FilesPropertySchema, FormulaPropertySchema, LastEditedByPropertySchema, LastEditedTimePropertySchema, MultiSelectPropertySchema, NumberPropertySchema, PeoplePropertySchema, PhoneNumberPropertySchema, PropertiesSchema, PropertyValueSchema, RelationPropertySchema, RichTextPropertySchema, RollupPropertySchema, SelectPropertySchema, StatusPropertySchema, TitlePropertySchema, UniqueIdPropertySchema, UrlPropertySchema, UserObjectSchema, VerificationPropertySchema, } from './page.js';
|