@notionhq/custom-blocks 0.2.20 → 0.2.22

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 (66) hide show
  1. package/README.md +2 -0
  2. package/dist/bridge/SandboxBridge.d.ts +14 -18
  3. package/dist/bridge/SandboxBridge.d.ts.map +1 -1
  4. package/dist/bridge/SandboxBridge.js +59 -201
  5. package/dist/bridge/SandboxInitialization.d.ts +52 -0
  6. package/dist/bridge/SandboxInitialization.d.ts.map +1 -0
  7. package/dist/bridge/SandboxInitialization.js +217 -0
  8. package/dist/bridge/dataSources/query.d.ts.map +1 -1
  9. package/dist/bridge/dataSources/query.js +30 -23
  10. package/dist/bridge/messageInterceptor.d.ts +4 -0
  11. package/dist/bridge/messageInterceptor.d.ts.map +1 -0
  12. package/dist/bridge/messageInterceptor.js +1 -0
  13. package/dist/bridge/sandboxClient.d.ts +3 -2
  14. package/dist/bridge/sandboxClient.d.ts.map +1 -1
  15. package/dist/bridge/sandboxClient.js +3 -5
  16. package/dist/bridge.d.ts +11 -0
  17. package/dist/bridge.d.ts.map +1 -0
  18. package/dist/bridge.js +11 -0
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/init.d.ts +4 -38
  22. package/dist/init.d.ts.map +1 -1
  23. package/dist/init.js +4 -91
  24. package/dist/initTypes.d.ts +31 -0
  25. package/dist/initTypes.d.ts.map +1 -0
  26. package/dist/initTypes.js +18 -0
  27. package/dist/protocol/dataSources/propertySchema.d.ts +1 -1
  28. package/dist/protocol/dataSources/propertySchema.js +2 -0
  29. package/dist/protocol/dataSources/sortDirection.d.ts +3 -0
  30. package/dist/protocol/dataSources/sortDirection.js +2 -0
  31. package/dist/protocol/index.d.ts +1 -0
  32. package/dist/protocol/index.js +1 -0
  33. package/dist/protocol/messages/hostToSandbox.d.ts +0 -3
  34. package/dist/protocol/messages/init.d.ts +1 -1
  35. package/dist/protocol/messages/queryDataSource.d.ts +259 -47
  36. package/dist/protocol/messages/queryDataSource.js +94 -8
  37. package/dist/protocol/messages/sandboxToHost.d.ts +80 -16
  38. package/dist/styles/nds.css +1 -1
  39. package/dist/types.d.ts +5 -3
  40. package/dist/types.d.ts.map +1 -1
  41. package/dist/version.js +1 -1
  42. package/docs/bridge-interceptors.md +27 -0
  43. package/docs/data-sources.md +80 -13
  44. package/docs/errors.md +2 -0
  45. package/docs/pages.md +22 -10
  46. package/package.json +4 -4
  47. package/src/bridge/SandboxBridge.ts +74 -239
  48. package/src/bridge/SandboxInitialization.ts +295 -0
  49. package/src/bridge/dataSources/query.ts +38 -25
  50. package/src/bridge/messageInterceptor.ts +6 -0
  51. package/src/bridge/sandboxClient.ts +6 -5
  52. package/src/bridge.ts +17 -0
  53. package/src/index.ts +1 -0
  54. package/src/init.ts +8 -119
  55. package/src/initTypes.ts +43 -0
  56. package/src/styles/nds.css +1 -1
  57. package/src/styles/nds.css.metadata.json +3 -3
  58. package/src/types.ts +6 -2
  59. package/dist/bridge/primedResponses.d.ts +0 -8
  60. package/dist/bridge/primedResponses.d.ts.map +0 -1
  61. package/dist/bridge/primedResponses.js +0 -5
  62. package/dist/testing.d.ts +0 -12
  63. package/dist/testing.d.ts.map +0 -1
  64. package/dist/testing.js +0 -9
  65. package/src/bridge/primedResponses.ts +0 -11
  66. package/src/testing.ts +0 -19
@@ -1,4 +1,5 @@
1
1
  import * as v from "valibot";
2
+ import { notionSortDirectionSchema } from "../dataSources/sortDirection.js";
2
3
  import { notionDataSourceIdSchema } from "../ids.js";
3
4
  const emptyOperatorSchema = v.union([
4
5
  v.strictObject({ is_empty: v.literal(true) }),
@@ -55,19 +56,104 @@ export const customBlockOptionFilterOperatorSchema = v.union([
55
56
  v.strictObject({ does_not_equal: stringOrStringArraySchema }),
56
57
  emptyOperatorSchema,
57
58
  ]);
59
+ export const customBlockStatusGroupNameSchema = v.picklist([
60
+ "To-do",
61
+ "In progress",
62
+ "Complete",
63
+ "Current",
64
+ "Future",
65
+ ]);
66
+ const customBlockStatusGroupFilterValueSchema = v.union([
67
+ customBlockStatusGroupNameSchema,
68
+ v.pipe(v.array(customBlockStatusGroupNameSchema), v.minLength(1), v.maxLength(5)),
69
+ ]);
70
+ export const customBlockStatusGroupFilterOperatorSchema = v.union([
71
+ v.strictObject({ group_equals: customBlockStatusGroupFilterValueSchema }),
72
+ v.strictObject({
73
+ group_does_not_equal: customBlockStatusGroupFilterValueSchema,
74
+ }),
75
+ ]);
76
+ export const customBlockStatusFilterOperatorSchema = v.union([
77
+ customBlockOptionFilterOperatorSchema,
78
+ customBlockStatusGroupFilterOperatorSchema,
79
+ ]);
58
80
  export const customBlockContainsFilterOperatorSchema = v.union([
59
81
  v.strictObject({ contains: stringOrStringArraySchema }),
60
82
  v.strictObject({ contains_all: stringOrStringArraySchema }),
61
83
  v.strictObject({ does_not_contain: stringOrStringArraySchema }),
62
84
  emptyOperatorSchema,
63
85
  ]);
86
+ const dateTargetSchema = v.picklist(["start_date", "end_date"]);
87
+ export const customBlockRelativeDateValueSchema = v.picklist([
88
+ "today",
89
+ "tomorrow",
90
+ "yesterday",
91
+ "one_week_ago",
92
+ "one_week_from_now",
93
+ "one_month_ago",
94
+ "one_month_from_now",
95
+ ]);
96
+ const dateComparisonValueSchema = v.union([
97
+ customBlockRelativeDateValueSchema,
98
+ v.string(),
99
+ ]);
64
100
  export const customBlockDateFilterOperatorSchema = v.union([
65
- v.strictObject({ equals: v.string() }),
66
- v.strictObject({ before: v.string() }),
67
- v.strictObject({ after: v.string() }),
68
- v.strictObject({ on_or_before: v.string() }),
69
- v.strictObject({ on_or_after: v.string() }),
70
- emptyOperatorSchema,
101
+ v.strictObject({
102
+ target: v.optional(dateTargetSchema),
103
+ equals: dateComparisonValueSchema,
104
+ }),
105
+ v.strictObject({
106
+ target: v.optional(dateTargetSchema),
107
+ before: dateComparisonValueSchema,
108
+ }),
109
+ v.strictObject({
110
+ target: v.optional(dateTargetSchema),
111
+ after: dateComparisonValueSchema,
112
+ }),
113
+ v.strictObject({
114
+ target: v.optional(dateTargetSchema),
115
+ on_or_before: dateComparisonValueSchema,
116
+ }),
117
+ v.strictObject({
118
+ target: v.optional(dateTargetSchema),
119
+ on_or_after: dateComparisonValueSchema,
120
+ }),
121
+ v.strictObject({
122
+ target: v.optional(dateTargetSchema),
123
+ this_week: v.strictObject({}),
124
+ }),
125
+ v.strictObject({
126
+ target: v.optional(dateTargetSchema),
127
+ past_week: v.strictObject({}),
128
+ }),
129
+ v.strictObject({
130
+ target: v.optional(dateTargetSchema),
131
+ past_month: v.strictObject({}),
132
+ }),
133
+ v.strictObject({
134
+ target: v.optional(dateTargetSchema),
135
+ past_year: v.strictObject({}),
136
+ }),
137
+ v.strictObject({
138
+ target: v.optional(dateTargetSchema),
139
+ next_week: v.strictObject({}),
140
+ }),
141
+ v.strictObject({
142
+ target: v.optional(dateTargetSchema),
143
+ next_month: v.strictObject({}),
144
+ }),
145
+ v.strictObject({
146
+ target: v.optional(dateTargetSchema),
147
+ next_year: v.strictObject({}),
148
+ }),
149
+ v.strictObject({
150
+ target: v.optional(dateTargetSchema),
151
+ is_empty: v.literal(true),
152
+ }),
153
+ v.strictObject({
154
+ target: v.optional(dateTargetSchema),
155
+ is_not_empty: v.literal(true),
156
+ }),
71
157
  ]);
72
158
  export const resolvedCustomBlockDataSourcePropertyFilterSchema = v.union([
73
159
  v.strictObject({
@@ -112,7 +198,7 @@ export const resolvedCustomBlockDataSourcePropertyFilterSchema = v.union([
112
198
  }),
113
199
  v.strictObject({
114
200
  propertyId: v.string(),
115
- status: customBlockOptionFilterOperatorSchema,
201
+ status: customBlockStatusFilterOperatorSchema,
116
202
  }),
117
203
  v.strictObject({
118
204
  propertyId: v.string(),
@@ -133,7 +219,7 @@ export const resolvedCustomBlockDataSourceFilterSchema = v.union([
133
219
  export const CUSTOM_BLOCK_DATA_SOURCE_QUERY_MAX_SORTS = 10;
134
220
  export const resolvedCustomBlockDataSourceSortSchema = v.strictObject({
135
221
  propertyId: v.string(),
136
- direction: v.picklist(["ascending", "descending"]),
222
+ direction: notionSortDirectionSchema,
137
223
  });
138
224
  /**
139
225
  * Message sent by the sandbox to ask the host for the current rows in a resolved
@@ -222,7 +222,7 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
222
222
  }, undefined>], undefined>], undefined>;
223
223
  }, undefined>, v.StrictObjectSchema<{
224
224
  readonly propertyId: v.StringSchema<undefined>;
225
- readonly status: v.UnionSchema<[v.StrictObjectSchema<{
225
+ readonly status: v.UnionSchema<[v.UnionSchema<[v.StrictObjectSchema<{
226
226
  readonly equals: v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>;
227
227
  }, undefined>, v.StrictObjectSchema<{
228
228
  readonly does_not_equal: v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>;
@@ -230,24 +230,56 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
230
230
  readonly is_empty: v.LiteralSchema<true, undefined>;
231
231
  }, undefined>, v.StrictObjectSchema<{
232
232
  readonly is_not_empty: v.LiteralSchema<true, undefined>;
233
+ }, undefined>], undefined>], undefined>, v.UnionSchema<[v.StrictObjectSchema<{
234
+ 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>;
235
+ }, undefined>, v.StrictObjectSchema<{
236
+ 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
237
  }, undefined>], undefined>], undefined>;
234
238
  }, undefined>, v.StrictObjectSchema<{
235
239
  readonly propertyId: v.StringSchema<undefined>;
236
240
  readonly date: v.UnionSchema<[v.StrictObjectSchema<{
237
- readonly equals: v.StringSchema<undefined>;
241
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
242
+ 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
243
  }, undefined>, v.StrictObjectSchema<{
239
- readonly before: v.StringSchema<undefined>;
244
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
245
+ 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
246
  }, undefined>, v.StrictObjectSchema<{
241
- readonly after: v.StringSchema<undefined>;
247
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
248
+ 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
249
  }, undefined>, v.StrictObjectSchema<{
243
- readonly on_or_before: v.StringSchema<undefined>;
250
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
251
+ 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
252
  }, undefined>, v.StrictObjectSchema<{
245
- readonly on_or_after: v.StringSchema<undefined>;
246
- }, undefined>, v.UnionSchema<[v.StrictObjectSchema<{
253
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
254
+ 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>;
255
+ }, undefined>, v.StrictObjectSchema<{
256
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
257
+ readonly this_week: v.StrictObjectSchema<{}, undefined>;
258
+ }, undefined>, v.StrictObjectSchema<{
259
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
260
+ readonly past_week: v.StrictObjectSchema<{}, undefined>;
261
+ }, undefined>, v.StrictObjectSchema<{
262
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
263
+ readonly past_month: v.StrictObjectSchema<{}, undefined>;
264
+ }, undefined>, v.StrictObjectSchema<{
265
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
266
+ readonly past_year: v.StrictObjectSchema<{}, undefined>;
267
+ }, undefined>, v.StrictObjectSchema<{
268
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
269
+ readonly next_week: v.StrictObjectSchema<{}, undefined>;
270
+ }, undefined>, v.StrictObjectSchema<{
271
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
272
+ readonly next_month: v.StrictObjectSchema<{}, undefined>;
273
+ }, undefined>, v.StrictObjectSchema<{
274
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
275
+ readonly next_year: v.StrictObjectSchema<{}, undefined>;
276
+ }, undefined>, v.StrictObjectSchema<{
277
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
247
278
  readonly is_empty: v.LiteralSchema<true, undefined>;
248
279
  }, undefined>, v.StrictObjectSchema<{
280
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
249
281
  readonly is_not_empty: v.LiteralSchema<true, undefined>;
250
- }, undefined>], undefined>], undefined>;
282
+ }, undefined>], undefined>;
251
283
  }, undefined>, v.StrictObjectSchema<{
252
284
  readonly propertyId: v.StringSchema<undefined>;
253
285
  readonly people: v.UnionSchema<[v.StrictObjectSchema<{
@@ -430,7 +462,7 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
430
462
  }, undefined>], undefined>], undefined>;
431
463
  }, undefined>, v.StrictObjectSchema<{
432
464
  readonly propertyId: v.StringSchema<undefined>;
433
- readonly status: v.UnionSchema<[v.StrictObjectSchema<{
465
+ readonly status: v.UnionSchema<[v.UnionSchema<[v.StrictObjectSchema<{
434
466
  readonly equals: v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>;
435
467
  }, undefined>, v.StrictObjectSchema<{
436
468
  readonly does_not_equal: v.UnionSchema<[v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>], undefined>;
@@ -438,24 +470,56 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
438
470
  readonly is_empty: v.LiteralSchema<true, undefined>;
439
471
  }, undefined>, v.StrictObjectSchema<{
440
472
  readonly is_not_empty: v.LiteralSchema<true, undefined>;
473
+ }, undefined>], undefined>], undefined>, v.UnionSchema<[v.StrictObjectSchema<{
474
+ 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>;
475
+ }, undefined>, v.StrictObjectSchema<{
476
+ 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
477
  }, undefined>], undefined>], undefined>;
442
478
  }, undefined>, v.StrictObjectSchema<{
443
479
  readonly propertyId: v.StringSchema<undefined>;
444
480
  readonly date: v.UnionSchema<[v.StrictObjectSchema<{
445
- readonly equals: v.StringSchema<undefined>;
481
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
482
+ 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
483
  }, undefined>, v.StrictObjectSchema<{
447
- readonly before: v.StringSchema<undefined>;
484
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
485
+ 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
486
  }, undefined>, v.StrictObjectSchema<{
449
- readonly after: v.StringSchema<undefined>;
487
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
488
+ 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
489
  }, undefined>, v.StrictObjectSchema<{
451
- readonly on_or_before: v.StringSchema<undefined>;
490
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
491
+ 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
492
  }, undefined>, v.StrictObjectSchema<{
453
- readonly on_or_after: v.StringSchema<undefined>;
454
- }, undefined>, v.UnionSchema<[v.StrictObjectSchema<{
493
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
494
+ 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>;
495
+ }, undefined>, v.StrictObjectSchema<{
496
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
497
+ readonly this_week: v.StrictObjectSchema<{}, undefined>;
498
+ }, undefined>, v.StrictObjectSchema<{
499
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
500
+ readonly past_week: v.StrictObjectSchema<{}, undefined>;
501
+ }, undefined>, v.StrictObjectSchema<{
502
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
503
+ readonly past_month: v.StrictObjectSchema<{}, undefined>;
504
+ }, undefined>, v.StrictObjectSchema<{
505
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
506
+ readonly past_year: v.StrictObjectSchema<{}, undefined>;
507
+ }, undefined>, v.StrictObjectSchema<{
508
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
509
+ readonly next_week: v.StrictObjectSchema<{}, undefined>;
510
+ }, undefined>, v.StrictObjectSchema<{
511
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
512
+ readonly next_month: v.StrictObjectSchema<{}, undefined>;
513
+ }, undefined>, v.StrictObjectSchema<{
514
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
515
+ readonly next_year: v.StrictObjectSchema<{}, undefined>;
516
+ }, undefined>, v.StrictObjectSchema<{
517
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
455
518
  readonly is_empty: v.LiteralSchema<true, undefined>;
456
519
  }, undefined>, v.StrictObjectSchema<{
520
+ readonly target: v.OptionalSchema<v.PicklistSchema<["start_date", "end_date"], undefined>, undefined>;
457
521
  readonly is_not_empty: v.LiteralSchema<true, undefined>;
458
- }, undefined>], undefined>], undefined>;
522
+ }, undefined>], undefined>;
459
523
  }, undefined>, v.StrictObjectSchema<{
460
524
  readonly propertyId: v.StringSchema<undefined>;
461
525
  readonly people: v.UnionSchema<[v.StrictObjectSchema<{