@notionhq/custom-blocks 0.2.21 → 0.2.23
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.md +2 -0
- package/dist/bridge/SandboxBridge.d.ts +14 -18
- package/dist/bridge/SandboxBridge.d.ts.map +1 -1
- package/dist/bridge/SandboxBridge.js +59 -201
- package/dist/bridge/SandboxInitialization.d.ts +52 -0
- package/dist/bridge/SandboxInitialization.d.ts.map +1 -0
- package/dist/bridge/SandboxInitialization.js +217 -0
- package/dist/bridge/dataSources/query.d.ts.map +1 -1
- package/dist/bridge/dataSources/query.js +39 -23
- package/dist/bridge/messageInterceptor.d.ts +4 -0
- package/dist/bridge/messageInterceptor.d.ts.map +1 -0
- package/dist/bridge/messageInterceptor.js +1 -0
- package/dist/bridge/sandboxClient.d.ts +3 -2
- package/dist/bridge/sandboxClient.d.ts.map +1 -1
- package/dist/bridge/sandboxClient.js +3 -5
- package/dist/bridge.d.ts +11 -0
- package/dist/bridge.d.ts.map +1 -0
- package/dist/bridge.js +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/init.d.ts +4 -38
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +4 -91
- package/dist/initTypes.d.ts +31 -0
- package/dist/initTypes.d.ts.map +1 -0
- package/dist/initTypes.js +18 -0
- package/dist/protocol/dataSources/propertySchema.d.ts +1 -1
- package/dist/protocol/dataSources/propertySchema.js +2 -0
- package/dist/protocol/dataSources/sortDirection.d.ts +3 -0
- package/dist/protocol/dataSources/sortDirection.js +2 -0
- package/dist/protocol/index.d.ts +1 -0
- package/dist/protocol/index.js +1 -0
- package/dist/protocol/manifest.d.ts +10 -3
- package/dist/protocol/manifest.js +5 -1
- package/dist/protocol/messages/connect.d.ts +9 -2
- package/dist/protocol/messages/hostToSandbox.d.ts +9 -5
- package/dist/protocol/messages/init.d.ts +10 -3
- package/dist/protocol/messages/queryDataSource.d.ts +300 -47
- package/dist/protocol/messages/queryDataSource.js +107 -9
- package/dist/protocol/messages/sandboxToHost.d.ts +103 -18
- package/dist/styles/nds.css +1 -1
- package/dist/types.d.ts +8 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/docs/bridge-interceptors.md +27 -0
- package/docs/data-sources.md +93 -13
- package/docs/errors.md +3 -2
- package/docs/lifecycle.md +1 -1
- package/docs/pages.md +22 -10
- package/package.json +4 -4
- package/src/bridge/SandboxBridge.ts +74 -239
- package/src/bridge/SandboxInitialization.ts +295 -0
- package/src/bridge/dataSources/query.ts +51 -25
- package/src/bridge/messageInterceptor.ts +6 -0
- package/src/bridge/sandboxClient.ts +6 -5
- package/src/bridge.ts +17 -0
- package/src/index.ts +1 -0
- package/src/init.ts +8 -119
- package/src/initTypes.ts +43 -0
- package/src/styles/nds.css +1 -1
- package/src/styles/nds.css.metadata.json +3 -3
- package/src/types.ts +11 -2
- package/dist/bridge/primedResponses.d.ts +0 -8
- package/dist/bridge/primedResponses.d.ts.map +0 -1
- package/dist/bridge/primedResponses.js +0 -5
- package/dist/testing.d.ts +0 -12
- package/dist/testing.d.ts.map +0 -1
- package/dist/testing.js +0 -9
- package/src/bridge/primedResponses.ts +0 -11
- package/src/testing.ts +0 -19
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import {
|
|
2
|
+
import { notionSortDirectionSchema } from "../dataSources/sortDirection.js";
|
|
3
|
+
import { notionDataSourceIdSchema, notionPageIdSchema } from "../ids.js";
|
|
4
|
+
const relationPageIdSchema = v.pipe(notionPageIdSchema, v.regex(/^(?:[0-9a-f]{32}|[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12})$/i), v.transform(id => id
|
|
5
|
+
.replaceAll("-", "")
|
|
6
|
+
.toLowerCase()
|
|
7
|
+
.replace(/^(.{8})(.{4})(.{4})(.{4})(.{12})$/, "$1-$2-$3-$4-$5")));
|
|
8
|
+
export const customBlockRelationFilterOperatorSchema = v.union([
|
|
9
|
+
v.strictObject({ contains: relationPageIdSchema }),
|
|
10
|
+
v.strictObject({ does_not_contain: relationPageIdSchema }),
|
|
11
|
+
]);
|
|
3
12
|
const emptyOperatorSchema = v.union([
|
|
4
13
|
v.strictObject({ is_empty: v.literal(true) }),
|
|
5
14
|
v.strictObject({ is_not_empty: v.literal(true) }),
|
|
@@ -55,21 +64,110 @@ export const customBlockOptionFilterOperatorSchema = v.union([
|
|
|
55
64
|
v.strictObject({ does_not_equal: stringOrStringArraySchema }),
|
|
56
65
|
emptyOperatorSchema,
|
|
57
66
|
]);
|
|
67
|
+
export const customBlockStatusGroupNameSchema = v.picklist([
|
|
68
|
+
"To-do",
|
|
69
|
+
"In progress",
|
|
70
|
+
"Complete",
|
|
71
|
+
"Current",
|
|
72
|
+
"Future",
|
|
73
|
+
]);
|
|
74
|
+
const customBlockStatusGroupFilterValueSchema = v.union([
|
|
75
|
+
customBlockStatusGroupNameSchema,
|
|
76
|
+
v.pipe(v.array(customBlockStatusGroupNameSchema), v.minLength(1), v.maxLength(5)),
|
|
77
|
+
]);
|
|
78
|
+
export const customBlockStatusGroupFilterOperatorSchema = v.union([
|
|
79
|
+
v.strictObject({ group_equals: customBlockStatusGroupFilterValueSchema }),
|
|
80
|
+
v.strictObject({
|
|
81
|
+
group_does_not_equal: customBlockStatusGroupFilterValueSchema,
|
|
82
|
+
}),
|
|
83
|
+
]);
|
|
84
|
+
export const customBlockStatusFilterOperatorSchema = v.union([
|
|
85
|
+
customBlockOptionFilterOperatorSchema,
|
|
86
|
+
customBlockStatusGroupFilterOperatorSchema,
|
|
87
|
+
]);
|
|
58
88
|
export const customBlockContainsFilterOperatorSchema = v.union([
|
|
59
89
|
v.strictObject({ contains: stringOrStringArraySchema }),
|
|
60
90
|
v.strictObject({ contains_all: stringOrStringArraySchema }),
|
|
61
91
|
v.strictObject({ does_not_contain: stringOrStringArraySchema }),
|
|
62
92
|
emptyOperatorSchema,
|
|
63
93
|
]);
|
|
94
|
+
const dateTargetSchema = v.picklist(["start_date", "end_date"]);
|
|
95
|
+
export const customBlockRelativeDateValueSchema = v.picklist([
|
|
96
|
+
"today",
|
|
97
|
+
"tomorrow",
|
|
98
|
+
"yesterday",
|
|
99
|
+
"one_week_ago",
|
|
100
|
+
"one_week_from_now",
|
|
101
|
+
"one_month_ago",
|
|
102
|
+
"one_month_from_now",
|
|
103
|
+
]);
|
|
104
|
+
const dateComparisonValueSchema = v.union([
|
|
105
|
+
customBlockRelativeDateValueSchema,
|
|
106
|
+
v.string(),
|
|
107
|
+
]);
|
|
64
108
|
export const customBlockDateFilterOperatorSchema = v.union([
|
|
65
|
-
v.strictObject({
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
v.strictObject({
|
|
70
|
-
|
|
109
|
+
v.strictObject({
|
|
110
|
+
target: v.optional(dateTargetSchema),
|
|
111
|
+
equals: dateComparisonValueSchema,
|
|
112
|
+
}),
|
|
113
|
+
v.strictObject({
|
|
114
|
+
target: v.optional(dateTargetSchema),
|
|
115
|
+
before: dateComparisonValueSchema,
|
|
116
|
+
}),
|
|
117
|
+
v.strictObject({
|
|
118
|
+
target: v.optional(dateTargetSchema),
|
|
119
|
+
after: dateComparisonValueSchema,
|
|
120
|
+
}),
|
|
121
|
+
v.strictObject({
|
|
122
|
+
target: v.optional(dateTargetSchema),
|
|
123
|
+
on_or_before: dateComparisonValueSchema,
|
|
124
|
+
}),
|
|
125
|
+
v.strictObject({
|
|
126
|
+
target: v.optional(dateTargetSchema),
|
|
127
|
+
on_or_after: dateComparisonValueSchema,
|
|
128
|
+
}),
|
|
129
|
+
v.strictObject({
|
|
130
|
+
target: v.optional(dateTargetSchema),
|
|
131
|
+
this_week: v.strictObject({}),
|
|
132
|
+
}),
|
|
133
|
+
v.strictObject({
|
|
134
|
+
target: v.optional(dateTargetSchema),
|
|
135
|
+
past_week: v.strictObject({}),
|
|
136
|
+
}),
|
|
137
|
+
v.strictObject({
|
|
138
|
+
target: v.optional(dateTargetSchema),
|
|
139
|
+
past_month: v.strictObject({}),
|
|
140
|
+
}),
|
|
141
|
+
v.strictObject({
|
|
142
|
+
target: v.optional(dateTargetSchema),
|
|
143
|
+
past_year: v.strictObject({}),
|
|
144
|
+
}),
|
|
145
|
+
v.strictObject({
|
|
146
|
+
target: v.optional(dateTargetSchema),
|
|
147
|
+
next_week: v.strictObject({}),
|
|
148
|
+
}),
|
|
149
|
+
v.strictObject({
|
|
150
|
+
target: v.optional(dateTargetSchema),
|
|
151
|
+
next_month: v.strictObject({}),
|
|
152
|
+
}),
|
|
153
|
+
v.strictObject({
|
|
154
|
+
target: v.optional(dateTargetSchema),
|
|
155
|
+
next_year: v.strictObject({}),
|
|
156
|
+
}),
|
|
157
|
+
v.strictObject({
|
|
158
|
+
target: v.optional(dateTargetSchema),
|
|
159
|
+
is_empty: v.literal(true),
|
|
160
|
+
}),
|
|
161
|
+
v.strictObject({
|
|
162
|
+
target: v.optional(dateTargetSchema),
|
|
163
|
+
is_not_empty: v.literal(true),
|
|
164
|
+
}),
|
|
71
165
|
]);
|
|
72
166
|
export const resolvedCustomBlockDataSourcePropertyFilterSchema = v.union([
|
|
167
|
+
v.strictObject({
|
|
168
|
+
propertyId: v.string(),
|
|
169
|
+
relation: customBlockRelationFilterOperatorSchema,
|
|
170
|
+
}),
|
|
73
171
|
v.strictObject({
|
|
74
172
|
propertyId: v.string(),
|
|
75
173
|
created_by: customBlockCreatedByFilterOperatorSchema,
|
|
@@ -112,7 +210,7 @@ export const resolvedCustomBlockDataSourcePropertyFilterSchema = v.union([
|
|
|
112
210
|
}),
|
|
113
211
|
v.strictObject({
|
|
114
212
|
propertyId: v.string(),
|
|
115
|
-
status:
|
|
213
|
+
status: customBlockStatusFilterOperatorSchema,
|
|
116
214
|
}),
|
|
117
215
|
v.strictObject({
|
|
118
216
|
propertyId: v.string(),
|
|
@@ -133,7 +231,7 @@ export const resolvedCustomBlockDataSourceFilterSchema = v.union([
|
|
|
133
231
|
export const CUSTOM_BLOCK_DATA_SOURCE_QUERY_MAX_SORTS = 10;
|
|
134
232
|
export const resolvedCustomBlockDataSourceSortSchema = v.strictObject({
|
|
135
233
|
propertyId: v.string(),
|
|
136
|
-
direction:
|
|
234
|
+
direction: notionSortDirectionSchema,
|
|
137
235
|
});
|
|
138
236
|
/**
|
|
139
237
|
* Message sent by the sandbox to ask the host for the current rows in a resolved
|
|
@@ -11,7 +11,14 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
11
11
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
12
12
|
readonly manifest: v.OptionalSchema<v.ObjectSchema<{
|
|
13
13
|
readonly version: v.LiteralSchema<1, undefined>;
|
|
14
|
-
readonly
|
|
14
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
15
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
16
|
+
readonly slashCommand: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
17
|
+
readonly icon: v.OptionalSchema<v.ObjectSchema<{
|
|
18
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
19
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
20
|
+
}, undefined>, undefined>;
|
|
21
|
+
readonly dataSources: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
15
22
|
readonly name: v.StringSchema<undefined>;
|
|
16
23
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
17
24
|
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -26,7 +33,7 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
26
33
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
27
34
|
readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "last_visited_time", "location", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
|
|
28
35
|
}, undefined>, undefined>, {}>;
|
|
29
|
-
}, undefined>, undefined>;
|
|
36
|
+
}, undefined>, undefined>, {}>;
|
|
30
37
|
}, undefined>, undefined>;
|
|
31
38
|
}, undefined>, v.ObjectSchema<{
|
|
32
39
|
readonly type: v.LiteralSchema<"connect", undefined>;
|
|
@@ -59,6 +66,13 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
59
66
|
readonly dataSourceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
60
67
|
readonly limit: v.NumberSchema<undefined>;
|
|
61
68
|
readonly filter: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.StrictObjectSchema<{
|
|
69
|
+
readonly propertyId: v.StringSchema<undefined>;
|
|
70
|
+
readonly relation: v.UnionSchema<[v.StrictObjectSchema<{
|
|
71
|
+
readonly contains: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>, v.RegexAction<string & v.Brand<"NotionPageId">, undefined>, v.TransformAction<string & v.Brand<"NotionPageId">, string>]>;
|
|
72
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
73
|
+
readonly does_not_contain: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>, v.RegexAction<string & v.Brand<"NotionPageId">, undefined>, v.TransformAction<string & v.Brand<"NotionPageId">, string>]>;
|
|
74
|
+
}, undefined>], undefined>;
|
|
75
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
62
76
|
readonly propertyId: v.StringSchema<undefined>;
|
|
63
77
|
readonly created_by: v.UnionSchema<[v.StrictObjectSchema<{
|
|
64
78
|
readonly contains: v.StrictObjectSchema<{
|
|
@@ -222,7 +236,7 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
222
236
|
}, undefined>], undefined>], undefined>;
|
|
223
237
|
}, undefined>, v.StrictObjectSchema<{
|
|
224
238
|
readonly propertyId: v.StringSchema<undefined>;
|
|
225
|
-
readonly status: v.UnionSchema<[v.StrictObjectSchema<{
|
|
239
|
+
readonly status: v.UnionSchema<[v.UnionSchema<[v.StrictObjectSchema<{
|
|
226
240
|
readonly equals: v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>;
|
|
227
241
|
}, undefined>, v.StrictObjectSchema<{
|
|
228
242
|
readonly does_not_equal: v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>;
|
|
@@ -230,24 +244,56 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
230
244
|
readonly is_empty: v.LiteralSchema<true, undefined>;
|
|
231
245
|
}, undefined>, v.StrictObjectSchema<{
|
|
232
246
|
readonly is_not_empty: v.LiteralSchema<true, undefined>;
|
|
247
|
+
}, undefined>], undefined>], undefined>, v.UnionSchema<[v.StrictObjectSchema<{
|
|
248
|
+
readonly group_equals: v.UnionSchema<[v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, undefined>, v.MinLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 1, undefined>, v.MaxLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 5, undefined>]>], undefined>;
|
|
249
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
250
|
+
readonly group_does_not_equal: v.UnionSchema<[v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, undefined>, v.MinLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 1, undefined>, v.MaxLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 5, undefined>]>], undefined>;
|
|
233
251
|
}, undefined>], undefined>], undefined>;
|
|
234
252
|
}, undefined>, v.StrictObjectSchema<{
|
|
235
253
|
readonly propertyId: v.StringSchema<undefined>;
|
|
236
254
|
readonly date: v.UnionSchema<[v.StrictObjectSchema<{
|
|
237
|
-
readonly
|
|
255
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
256
|
+
readonly equals: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
|
|
238
257
|
}, undefined>, v.StrictObjectSchema<{
|
|
239
|
-
readonly
|
|
258
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
259
|
+
readonly before: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
|
|
240
260
|
}, undefined>, v.StrictObjectSchema<{
|
|
241
|
-
readonly
|
|
261
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
262
|
+
readonly after: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
|
|
242
263
|
}, undefined>, v.StrictObjectSchema<{
|
|
243
|
-
readonly
|
|
264
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
265
|
+
readonly on_or_before: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
|
|
244
266
|
}, undefined>, v.StrictObjectSchema<{
|
|
245
|
-
readonly
|
|
246
|
-
|
|
267
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
268
|
+
readonly on_or_after: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
|
|
269
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
270
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
271
|
+
readonly this_week: v.StrictObjectSchema<{}, undefined>;
|
|
272
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
273
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
274
|
+
readonly past_week: v.StrictObjectSchema<{}, undefined>;
|
|
275
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
276
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
277
|
+
readonly past_month: v.StrictObjectSchema<{}, undefined>;
|
|
278
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
279
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
280
|
+
readonly past_year: v.StrictObjectSchema<{}, undefined>;
|
|
281
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
282
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
283
|
+
readonly next_week: v.StrictObjectSchema<{}, undefined>;
|
|
284
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
285
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
286
|
+
readonly next_month: v.StrictObjectSchema<{}, undefined>;
|
|
287
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
288
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
289
|
+
readonly next_year: v.StrictObjectSchema<{}, undefined>;
|
|
290
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
291
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
247
292
|
readonly is_empty: v.LiteralSchema<true, undefined>;
|
|
248
293
|
}, undefined>, v.StrictObjectSchema<{
|
|
294
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
249
295
|
readonly is_not_empty: v.LiteralSchema<true, undefined>;
|
|
250
|
-
}, undefined>], undefined
|
|
296
|
+
}, undefined>], undefined>;
|
|
251
297
|
}, undefined>, v.StrictObjectSchema<{
|
|
252
298
|
readonly propertyId: v.StringSchema<undefined>;
|
|
253
299
|
readonly people: v.UnionSchema<[v.StrictObjectSchema<{
|
|
@@ -267,6 +313,13 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
267
313
|
}, undefined>], undefined>], undefined>;
|
|
268
314
|
}, undefined>], undefined>, v.StrictObjectSchema<{
|
|
269
315
|
readonly and: v.ArraySchema<v.UnionSchema<[v.StrictObjectSchema<{
|
|
316
|
+
readonly propertyId: v.StringSchema<undefined>;
|
|
317
|
+
readonly relation: v.UnionSchema<[v.StrictObjectSchema<{
|
|
318
|
+
readonly contains: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>, v.RegexAction<string & v.Brand<"NotionPageId">, undefined>, v.TransformAction<string & v.Brand<"NotionPageId">, string>]>;
|
|
319
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
320
|
+
readonly does_not_contain: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>, v.RegexAction<string & v.Brand<"NotionPageId">, undefined>, v.TransformAction<string & v.Brand<"NotionPageId">, string>]>;
|
|
321
|
+
}, undefined>], undefined>;
|
|
322
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
270
323
|
readonly propertyId: v.StringSchema<undefined>;
|
|
271
324
|
readonly created_by: v.UnionSchema<[v.StrictObjectSchema<{
|
|
272
325
|
readonly contains: v.StrictObjectSchema<{
|
|
@@ -430,7 +483,7 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
430
483
|
}, undefined>], undefined>], undefined>;
|
|
431
484
|
}, undefined>, v.StrictObjectSchema<{
|
|
432
485
|
readonly propertyId: v.StringSchema<undefined>;
|
|
433
|
-
readonly status: v.UnionSchema<[v.StrictObjectSchema<{
|
|
486
|
+
readonly status: v.UnionSchema<[v.UnionSchema<[v.StrictObjectSchema<{
|
|
434
487
|
readonly equals: v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>;
|
|
435
488
|
}, undefined>, v.StrictObjectSchema<{
|
|
436
489
|
readonly does_not_equal: v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>;
|
|
@@ -438,24 +491,56 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
438
491
|
readonly is_empty: v.LiteralSchema<true, undefined>;
|
|
439
492
|
}, undefined>, v.StrictObjectSchema<{
|
|
440
493
|
readonly is_not_empty: v.LiteralSchema<true, undefined>;
|
|
494
|
+
}, undefined>], undefined>], undefined>, v.UnionSchema<[v.StrictObjectSchema<{
|
|
495
|
+
readonly group_equals: v.UnionSchema<[v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, undefined>, v.MinLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 1, undefined>, v.MaxLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 5, undefined>]>], undefined>;
|
|
496
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
497
|
+
readonly group_does_not_equal: v.UnionSchema<[v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["To-do", "In progress", "Complete", "Current", "Future"], undefined>, undefined>, v.MinLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 1, undefined>, v.MaxLengthAction<("Complete" | "Current" | "Future" | "In progress" | "To-do")[], 5, undefined>]>], undefined>;
|
|
441
498
|
}, undefined>], undefined>], undefined>;
|
|
442
499
|
}, undefined>, v.StrictObjectSchema<{
|
|
443
500
|
readonly propertyId: v.StringSchema<undefined>;
|
|
444
501
|
readonly date: v.UnionSchema<[v.StrictObjectSchema<{
|
|
445
|
-
readonly
|
|
502
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
503
|
+
readonly equals: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
|
|
446
504
|
}, undefined>, v.StrictObjectSchema<{
|
|
447
|
-
readonly
|
|
505
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
506
|
+
readonly before: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
|
|
448
507
|
}, undefined>, v.StrictObjectSchema<{
|
|
449
|
-
readonly
|
|
508
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
509
|
+
readonly after: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
|
|
450
510
|
}, undefined>, v.StrictObjectSchema<{
|
|
451
|
-
readonly
|
|
511
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
512
|
+
readonly on_or_before: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
|
|
452
513
|
}, undefined>, v.StrictObjectSchema<{
|
|
453
|
-
readonly
|
|
454
|
-
|
|
514
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
515
|
+
readonly on_or_after: v.UnionSchema<[v.PicklistSchema<["today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", "one_month_from_now"], undefined>, v.StringSchema<undefined>], undefined>;
|
|
516
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
517
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
518
|
+
readonly this_week: v.StrictObjectSchema<{}, undefined>;
|
|
519
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
520
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
521
|
+
readonly past_week: v.StrictObjectSchema<{}, undefined>;
|
|
522
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
523
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
524
|
+
readonly past_month: v.StrictObjectSchema<{}, undefined>;
|
|
525
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
526
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
527
|
+
readonly past_year: v.StrictObjectSchema<{}, undefined>;
|
|
528
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
529
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
530
|
+
readonly next_week: v.StrictObjectSchema<{}, undefined>;
|
|
531
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
532
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
533
|
+
readonly next_month: v.StrictObjectSchema<{}, undefined>;
|
|
534
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
535
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
536
|
+
readonly next_year: v.StrictObjectSchema<{}, undefined>;
|
|
537
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
538
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
455
539
|
readonly is_empty: v.LiteralSchema<true, undefined>;
|
|
456
540
|
}, undefined>, v.StrictObjectSchema<{
|
|
541
|
+
readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
|
|
457
542
|
readonly is_not_empty: v.LiteralSchema<true, undefined>;
|
|
458
|
-
}, undefined>], undefined
|
|
543
|
+
}, undefined>], undefined>;
|
|
459
544
|
}, undefined>, v.StrictObjectSchema<{
|
|
460
545
|
readonly propertyId: v.StringSchema<undefined>;
|
|
461
546
|
readonly people: v.UnionSchema<[v.StrictObjectSchema<{
|