@atlastodo/shared 0.0.0-stage → 0.1.11-rc.7

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 (67) hide show
  1. package/LICENSE +661 -0
  2. package/dist/activity.d.ts +23 -0
  3. package/dist/avatarColor.d.ts +15 -0
  4. package/dist/boardMove.d.ts +14 -0
  5. package/dist/bugReport.d.ts +47 -0
  6. package/dist/calendar.d.ts +23 -0
  7. package/dist/comments.d.ts +14 -0
  8. package/dist/countdown.d.ts +14 -0
  9. package/dist/cursor.d.ts +6 -0
  10. package/dist/dataTransfer.d.ts +19 -0
  11. package/dist/duplicateProject.d.ts +19 -0
  12. package/dist/duplicateSection.d.ts +15 -0
  13. package/dist/filterQuery.d.ts +64 -0
  14. package/dist/focus.d.ts +17 -0
  15. package/dist/format.d.ts +30 -0
  16. package/dist/fuzzy.d.ts +14 -0
  17. package/dist/grouping.d.ts +24 -0
  18. package/dist/habitGroups.d.ts +46 -0
  19. package/dist/habitSchedule.d.ts +4 -0
  20. package/dist/habits.d.ts +115 -0
  21. package/dist/hotkeys.d.ts +50 -0
  22. package/dist/i18n.d.ts +14796 -0
  23. package/dist/ids.d.ts +7 -0
  24. package/dist/importTicktick.d.ts +34 -0
  25. package/dist/importTodoist.d.ts +60 -0
  26. package/dist/index.d.ts +62 -0
  27. package/dist/index.js +21446 -0
  28. package/dist/members.d.ts +26 -0
  29. package/dist/planDay.d.ts +31 -0
  30. package/dist/pomodoro.d.ts +49 -0
  31. package/dist/priority.d.ts +2 -0
  32. package/dist/projectMapper.d.ts +15 -0
  33. package/dist/projectStyle.d.ts +14 -0
  34. package/dist/projectTree.d.ts +40 -0
  35. package/dist/quickAddLexicons.d.ts +64 -0
  36. package/dist/quickAddLexiconsWire.d.ts +11 -0
  37. package/dist/quickAddParse.d.ts +44 -0
  38. package/dist/quickSchedule.d.ts +9 -0
  39. package/dist/rank.d.ts +9 -0
  40. package/dist/recurrence.d.ts +60 -0
  41. package/dist/regions.d.ts +6 -0
  42. package/dist/reminderSchedule.d.ts +42 -0
  43. package/dist/reminders.d.ts +28 -0
  44. package/dist/reorder.d.ts +21 -0
  45. package/dist/sectionMapper.d.ts +8 -0
  46. package/dist/sectionOps.d.ts +5 -0
  47. package/dist/serverUrl.d.ts +12 -0
  48. package/dist/smartLists.d.ts +11 -0
  49. package/dist/stats.d.ts +28 -0
  50. package/dist/swipe.d.ts +29 -0
  51. package/dist/taskClipboard.d.ts +19 -0
  52. package/dist/taskListTree.d.ts +33 -0
  53. package/dist/taskMapper.d.ts +3 -0
  54. package/dist/taskOps.d.ts +49 -0
  55. package/dist/taskSearch.d.ts +11 -0
  56. package/dist/taskTree.d.ts +53 -0
  57. package/dist/theme.d.ts +14 -0
  58. package/dist/toast.d.ts +26 -0
  59. package/dist/trash.d.ts +24 -0
  60. package/dist/views.d.ts +8 -0
  61. package/dist/zonedTime.d.ts +30 -0
  62. package/package.json +55 -4
  63. package/test-vectors/filter_vectors.json +1613 -0
  64. package/test-vectors/quick_add_vectors.json +1656 -0
  65. package/test-vectors/recurrence_vectors.json +779 -0
  66. package/test-vectors/task_rules_vectors.json +729 -0
  67. package/README.md +0 -3
@@ -0,0 +1,1613 @@
1
+ {
2
+ "_doc": "The filter query language (packages/shared/src/filterQuery.ts). Each case parses `query` and evaluates it on every task at `now` in `tz` (weeks start on Monday): `expected` lists the ids that match, or `error` and `at` (a UTF-16 offset) say why it does not parse. A task's `labels` and `project` are names. Asserted by packages/shared/src/rulesVectors.test.ts and crates/atlas-client.",
3
+ "tasks": [
4
+ {
5
+ "id": "t1",
6
+ "title": "Write report",
7
+ "priority": 1,
8
+ "due_at": 1791979200000,
9
+ "labels": [
10
+ "work"
11
+ ],
12
+ "project": "Work"
13
+ },
14
+ {
15
+ "id": "t2",
16
+ "title": "Buy milk",
17
+ "priority": 4,
18
+ "due_at": 1791885600000,
19
+ "labels": [
20
+ "errand"
21
+ ],
22
+ "project": null
23
+ },
24
+ {
25
+ "id": "t3",
26
+ "title": "Plan trip",
27
+ "priority": 2,
28
+ "due_at": null,
29
+ "labels": [],
30
+ "project": "Home"
31
+ },
32
+ {
33
+ "id": "t4",
34
+ "title": "Call plumber",
35
+ "priority": 3,
36
+ "due_at": 1792231200000,
37
+ "labels": [
38
+ "Errand",
39
+ "home"
40
+ ],
41
+ "project": "Home"
42
+ },
43
+ {
44
+ "id": "t5",
45
+ "title": "Weekend hike",
46
+ "priority": 4,
47
+ "due_at": 1792249200000,
48
+ "labels": [],
49
+ "project": null
50
+ },
51
+ {
52
+ "id": "t6",
53
+ "title": "Next week sync",
54
+ "priority": 2,
55
+ "due_at": 1792490400000,
56
+ "labels": [
57
+ "work"
58
+ ],
59
+ "project": "Work"
60
+ },
61
+ {
62
+ "id": "t7",
63
+ "title": "Done overdue",
64
+ "priority": 1,
65
+ "due_at": 1791799200000,
66
+ "labels": [],
67
+ "project": null,
68
+ "is_completed": true
69
+ },
70
+ {
71
+ "id": "t8",
72
+ "title": "Month end",
73
+ "priority": 4,
74
+ "due_at": 1793476800000,
75
+ "labels": [],
76
+ "project": "work"
77
+ },
78
+ {
79
+ "id": "t9",
80
+ "title": "Next month",
81
+ "priority": 4,
82
+ "due_at": 1793606400000,
83
+ "labels": [],
84
+ "project": null
85
+ }
86
+ ],
87
+ "cases": [
88
+ {
89
+ "query": "p1",
90
+ "now": 1791972000000,
91
+ "tz": "UTC",
92
+ "expected": [
93
+ "t1",
94
+ "t7"
95
+ ]
96
+ },
97
+ {
98
+ "query": "P2",
99
+ "now": 1791972000000,
100
+ "tz": "UTC",
101
+ "expected": [
102
+ "t3",
103
+ "t6"
104
+ ]
105
+ },
106
+ {
107
+ "query": "@work",
108
+ "now": 1791972000000,
109
+ "tz": "UTC",
110
+ "expected": [
111
+ "t1",
112
+ "t6"
113
+ ]
114
+ },
115
+ {
116
+ "query": "@ERRAND",
117
+ "now": 1791972000000,
118
+ "tz": "UTC",
119
+ "expected": [
120
+ "t2",
121
+ "t4"
122
+ ]
123
+ },
124
+ {
125
+ "query": "#home",
126
+ "now": 1791972000000,
127
+ "tz": "UTC",
128
+ "expected": [
129
+ "t3",
130
+ "t4"
131
+ ]
132
+ },
133
+ {
134
+ "query": "#Work",
135
+ "now": 1791972000000,
136
+ "tz": "UTC",
137
+ "expected": [
138
+ "t1",
139
+ "t6",
140
+ "t8"
141
+ ]
142
+ },
143
+ {
144
+ "query": "today",
145
+ "now": 1791972000000,
146
+ "tz": "UTC",
147
+ "expected": []
148
+ },
149
+ {
150
+ "query": "due:today",
151
+ "now": 1791972000000,
152
+ "tz": "UTC",
153
+ "expected": [
154
+ "t1"
155
+ ]
156
+ },
157
+ {
158
+ "query": "due:tomorrow",
159
+ "now": 1791972000000,
160
+ "tz": "UTC",
161
+ "expected": []
162
+ },
163
+ {
164
+ "query": "due:week",
165
+ "now": 1791972000000,
166
+ "tz": "UTC",
167
+ "expected": [
168
+ "t1",
169
+ "t4",
170
+ "t5",
171
+ "t6"
172
+ ]
173
+ },
174
+ {
175
+ "query": "due:this-week",
176
+ "now": 1791972000000,
177
+ "tz": "UTC",
178
+ "expected": [
179
+ "t1",
180
+ "t4",
181
+ "t5",
182
+ "t6"
183
+ ]
184
+ },
185
+ {
186
+ "query": "due:month",
187
+ "now": 1791972000000,
188
+ "tz": "UTC",
189
+ "expected": [
190
+ "t1",
191
+ "t2",
192
+ "t4",
193
+ "t5",
194
+ "t6",
195
+ "t7",
196
+ "t8"
197
+ ]
198
+ },
199
+ {
200
+ "query": "due:weekend",
201
+ "now": 1791972000000,
202
+ "tz": "UTC",
203
+ "expected": [
204
+ "t4",
205
+ "t5"
206
+ ]
207
+ },
208
+ {
209
+ "query": "due:next-week",
210
+ "now": 1791972000000,
211
+ "tz": "UTC",
212
+ "expected": [
213
+ "t6"
214
+ ]
215
+ },
216
+ {
217
+ "query": "due:nextweek",
218
+ "now": 1791972000000,
219
+ "tz": "UTC",
220
+ "expected": [
221
+ "t6"
222
+ ]
223
+ },
224
+ {
225
+ "query": "due:overdue",
226
+ "now": 1791972000000,
227
+ "tz": "UTC",
228
+ "expected": [
229
+ "t2"
230
+ ]
231
+ },
232
+ {
233
+ "query": "overdue",
234
+ "now": 1791972000000,
235
+ "tz": "UTC",
236
+ "expected": [
237
+ "t2"
238
+ ]
239
+ },
240
+ {
241
+ "query": "due:none",
242
+ "now": 1791972000000,
243
+ "tz": "UTC",
244
+ "expected": [
245
+ "t3"
246
+ ]
247
+ },
248
+ {
249
+ "query": "due:3d",
250
+ "now": 1791972000000,
251
+ "tz": "UTC",
252
+ "expected": [
253
+ "t1"
254
+ ]
255
+ },
256
+ {
257
+ "query": "due:0d",
258
+ "now": 1791972000000,
259
+ "tz": "UTC",
260
+ "expected": []
261
+ },
262
+ {
263
+ "query": "milk",
264
+ "now": 1791972000000,
265
+ "tz": "UTC",
266
+ "expected": [
267
+ "t2"
268
+ ]
269
+ },
270
+ {
271
+ "query": "MILK",
272
+ "now": 1791972000000,
273
+ "tz": "UTC",
274
+ "expected": [
275
+ "t2"
276
+ ]
277
+ },
278
+ {
279
+ "query": "plan trip",
280
+ "now": 1791972000000,
281
+ "tz": "UTC",
282
+ "expected": [
283
+ "t3"
284
+ ]
285
+ },
286
+ {
287
+ "query": "p1 | p2",
288
+ "now": 1791972000000,
289
+ "tz": "UTC",
290
+ "expected": [
291
+ "t1",
292
+ "t3",
293
+ "t6",
294
+ "t7"
295
+ ]
296
+ },
297
+ {
298
+ "query": "p1 & @work",
299
+ "now": 1791972000000,
300
+ "tz": "UTC",
301
+ "expected": [
302
+ "t1"
303
+ ]
304
+ },
305
+ {
306
+ "query": "p1 @work",
307
+ "now": 1791972000000,
308
+ "tz": "UTC",
309
+ "expected": [
310
+ "t1"
311
+ ]
312
+ },
313
+ {
314
+ "query": "!due:none",
315
+ "now": 1791972000000,
316
+ "tz": "UTC",
317
+ "expected": [
318
+ "t1",
319
+ "t2",
320
+ "t4",
321
+ "t5",
322
+ "t6",
323
+ "t7",
324
+ "t8",
325
+ "t9"
326
+ ]
327
+ },
328
+ {
329
+ "query": "not p4",
330
+ "now": 1791972000000,
331
+ "tz": "UTC",
332
+ "expected": [
333
+ "t1",
334
+ "t3",
335
+ "t4",
336
+ "t6",
337
+ "t7"
338
+ ]
339
+ },
340
+ {
341
+ "query": "(p1 | p2) & #work",
342
+ "now": 1791972000000,
343
+ "tz": "UTC",
344
+ "expected": [
345
+ "t1",
346
+ "t6"
347
+ ]
348
+ },
349
+ {
350
+ "query": "@work or #home and not p3",
351
+ "now": 1791972000000,
352
+ "tz": "UTC",
353
+ "expected": [
354
+ "t1",
355
+ "t3",
356
+ "t6"
357
+ ]
358
+ },
359
+ {
360
+ "query": "!(p1 | p4)",
361
+ "now": 1791972000000,
362
+ "tz": "UTC",
363
+ "expected": [
364
+ "t3",
365
+ "t4",
366
+ "t6"
367
+ ]
368
+ },
369
+ {
370
+ "query": "p5",
371
+ "now": 1791972000000,
372
+ "tz": "UTC",
373
+ "expected": []
374
+ },
375
+ {
376
+ "query": "@",
377
+ "now": 1791972000000,
378
+ "tz": "UTC",
379
+ "error": "expected a label name after '@'",
380
+ "at": 0
381
+ },
382
+ {
383
+ "query": "#",
384
+ "now": 1791972000000,
385
+ "tz": "UTC",
386
+ "error": "expected a project name after '#'",
387
+ "at": 0
388
+ },
389
+ {
390
+ "query": "due:soon",
391
+ "now": 1791972000000,
392
+ "tz": "UTC",
393
+ "error": "unknown due value 'soon' (expected today, tomorrow, week, month, weekend, next-week, overdue, none, or Nd e.g. 7d)",
394
+ "at": 0
395
+ },
396
+ {
397
+ "query": "(p1",
398
+ "now": 1791972000000,
399
+ "tz": "UTC",
400
+ "error": "expected ')'",
401
+ "at": 3
402
+ },
403
+ {
404
+ "query": "p1)",
405
+ "now": 1791972000000,
406
+ "tz": "UTC",
407
+ "error": "unexpected trailing input",
408
+ "at": 2
409
+ },
410
+ {
411
+ "query": "",
412
+ "now": 1791972000000,
413
+ "tz": "UTC",
414
+ "error": "empty query",
415
+ "at": 0
416
+ },
417
+ {
418
+ "query": " ",
419
+ "now": 1791972000000,
420
+ "tz": "UTC",
421
+ "error": "empty query",
422
+ "at": 0
423
+ },
424
+ {
425
+ "query": "& p1",
426
+ "now": 1791972000000,
427
+ "tz": "UTC",
428
+ "error": "unexpected 'and'",
429
+ "at": 0
430
+ },
431
+ {
432
+ "query": "p1 &",
433
+ "now": 1791972000000,
434
+ "tz": "UTC",
435
+ "error": "unexpected end of query",
436
+ "at": 4
437
+ },
438
+ {
439
+ "query": "!",
440
+ "now": 1791972000000,
441
+ "tz": "UTC",
442
+ "error": "unexpected end of query",
443
+ "at": 1
444
+ },
445
+ {
446
+ "query": "()",
447
+ "now": 1791972000000,
448
+ "tz": "UTC",
449
+ "error": "unexpected 'rparen'",
450
+ "at": 1
451
+ },
452
+ {
453
+ "query": "ünïcödé (",
454
+ "now": 1791972000000,
455
+ "tz": "UTC",
456
+ "error": "unexpected end of query",
457
+ "at": 9
458
+ },
459
+ {
460
+ "query": "due:Week",
461
+ "now": 1791972000000,
462
+ "tz": "UTC",
463
+ "expected": [
464
+ "t1",
465
+ "t4",
466
+ "t5",
467
+ "t6"
468
+ ]
469
+ },
470
+ {
471
+ "query": "p1",
472
+ "now": 1791972000000,
473
+ "tz": "America/New_York",
474
+ "expected": [
475
+ "t1",
476
+ "t7"
477
+ ]
478
+ },
479
+ {
480
+ "query": "P2",
481
+ "now": 1791972000000,
482
+ "tz": "America/New_York",
483
+ "expected": [
484
+ "t3",
485
+ "t6"
486
+ ]
487
+ },
488
+ {
489
+ "query": "@work",
490
+ "now": 1791972000000,
491
+ "tz": "America/New_York",
492
+ "expected": [
493
+ "t1",
494
+ "t6"
495
+ ]
496
+ },
497
+ {
498
+ "query": "@ERRAND",
499
+ "now": 1791972000000,
500
+ "tz": "America/New_York",
501
+ "expected": [
502
+ "t2",
503
+ "t4"
504
+ ]
505
+ },
506
+ {
507
+ "query": "#home",
508
+ "now": 1791972000000,
509
+ "tz": "America/New_York",
510
+ "expected": [
511
+ "t3",
512
+ "t4"
513
+ ]
514
+ },
515
+ {
516
+ "query": "#Work",
517
+ "now": 1791972000000,
518
+ "tz": "America/New_York",
519
+ "expected": [
520
+ "t1",
521
+ "t6",
522
+ "t8"
523
+ ]
524
+ },
525
+ {
526
+ "query": "today",
527
+ "now": 1791972000000,
528
+ "tz": "America/New_York",
529
+ "expected": []
530
+ },
531
+ {
532
+ "query": "due:today",
533
+ "now": 1791972000000,
534
+ "tz": "America/New_York",
535
+ "expected": [
536
+ "t1"
537
+ ]
538
+ },
539
+ {
540
+ "query": "due:tomorrow",
541
+ "now": 1791972000000,
542
+ "tz": "America/New_York",
543
+ "expected": []
544
+ },
545
+ {
546
+ "query": "due:week",
547
+ "now": 1791972000000,
548
+ "tz": "America/New_York",
549
+ "expected": [
550
+ "t1",
551
+ "t4",
552
+ "t5",
553
+ "t6"
554
+ ]
555
+ },
556
+ {
557
+ "query": "due:this-week",
558
+ "now": 1791972000000,
559
+ "tz": "America/New_York",
560
+ "expected": [
561
+ "t1",
562
+ "t4",
563
+ "t5",
564
+ "t6"
565
+ ]
566
+ },
567
+ {
568
+ "query": "due:month",
569
+ "now": 1791972000000,
570
+ "tz": "America/New_York",
571
+ "expected": [
572
+ "t1",
573
+ "t2",
574
+ "t4",
575
+ "t5",
576
+ "t6",
577
+ "t7",
578
+ "t8"
579
+ ]
580
+ },
581
+ {
582
+ "query": "due:weekend",
583
+ "now": 1791972000000,
584
+ "tz": "America/New_York",
585
+ "expected": [
586
+ "t4",
587
+ "t5"
588
+ ]
589
+ },
590
+ {
591
+ "query": "due:next-week",
592
+ "now": 1791972000000,
593
+ "tz": "America/New_York",
594
+ "expected": [
595
+ "t6"
596
+ ]
597
+ },
598
+ {
599
+ "query": "due:nextweek",
600
+ "now": 1791972000000,
601
+ "tz": "America/New_York",
602
+ "expected": [
603
+ "t6"
604
+ ]
605
+ },
606
+ {
607
+ "query": "due:overdue",
608
+ "now": 1791972000000,
609
+ "tz": "America/New_York",
610
+ "expected": [
611
+ "t2"
612
+ ]
613
+ },
614
+ {
615
+ "query": "overdue",
616
+ "now": 1791972000000,
617
+ "tz": "America/New_York",
618
+ "expected": [
619
+ "t2"
620
+ ]
621
+ },
622
+ {
623
+ "query": "due:none",
624
+ "now": 1791972000000,
625
+ "tz": "America/New_York",
626
+ "expected": [
627
+ "t3"
628
+ ]
629
+ },
630
+ {
631
+ "query": "due:3d",
632
+ "now": 1791972000000,
633
+ "tz": "America/New_York",
634
+ "expected": [
635
+ "t1"
636
+ ]
637
+ },
638
+ {
639
+ "query": "due:0d",
640
+ "now": 1791972000000,
641
+ "tz": "America/New_York",
642
+ "expected": []
643
+ },
644
+ {
645
+ "query": "milk",
646
+ "now": 1791972000000,
647
+ "tz": "America/New_York",
648
+ "expected": [
649
+ "t2"
650
+ ]
651
+ },
652
+ {
653
+ "query": "MILK",
654
+ "now": 1791972000000,
655
+ "tz": "America/New_York",
656
+ "expected": [
657
+ "t2"
658
+ ]
659
+ },
660
+ {
661
+ "query": "plan trip",
662
+ "now": 1791972000000,
663
+ "tz": "America/New_York",
664
+ "expected": [
665
+ "t3"
666
+ ]
667
+ },
668
+ {
669
+ "query": "p1 | p2",
670
+ "now": 1791972000000,
671
+ "tz": "America/New_York",
672
+ "expected": [
673
+ "t1",
674
+ "t3",
675
+ "t6",
676
+ "t7"
677
+ ]
678
+ },
679
+ {
680
+ "query": "p1 & @work",
681
+ "now": 1791972000000,
682
+ "tz": "America/New_York",
683
+ "expected": [
684
+ "t1"
685
+ ]
686
+ },
687
+ {
688
+ "query": "p1 @work",
689
+ "now": 1791972000000,
690
+ "tz": "America/New_York",
691
+ "expected": [
692
+ "t1"
693
+ ]
694
+ },
695
+ {
696
+ "query": "!due:none",
697
+ "now": 1791972000000,
698
+ "tz": "America/New_York",
699
+ "expected": [
700
+ "t1",
701
+ "t2",
702
+ "t4",
703
+ "t5",
704
+ "t6",
705
+ "t7",
706
+ "t8",
707
+ "t9"
708
+ ]
709
+ },
710
+ {
711
+ "query": "not p4",
712
+ "now": 1791972000000,
713
+ "tz": "America/New_York",
714
+ "expected": [
715
+ "t1",
716
+ "t3",
717
+ "t4",
718
+ "t6",
719
+ "t7"
720
+ ]
721
+ },
722
+ {
723
+ "query": "(p1 | p2) & #work",
724
+ "now": 1791972000000,
725
+ "tz": "America/New_York",
726
+ "expected": [
727
+ "t1",
728
+ "t6"
729
+ ]
730
+ },
731
+ {
732
+ "query": "@work or #home and not p3",
733
+ "now": 1791972000000,
734
+ "tz": "America/New_York",
735
+ "expected": [
736
+ "t1",
737
+ "t3",
738
+ "t6"
739
+ ]
740
+ },
741
+ {
742
+ "query": "!(p1 | p4)",
743
+ "now": 1791972000000,
744
+ "tz": "America/New_York",
745
+ "expected": [
746
+ "t3",
747
+ "t4",
748
+ "t6"
749
+ ]
750
+ },
751
+ {
752
+ "query": "p5",
753
+ "now": 1791972000000,
754
+ "tz": "America/New_York",
755
+ "expected": []
756
+ },
757
+ {
758
+ "query": "@",
759
+ "now": 1791972000000,
760
+ "tz": "America/New_York",
761
+ "error": "expected a label name after '@'",
762
+ "at": 0
763
+ },
764
+ {
765
+ "query": "#",
766
+ "now": 1791972000000,
767
+ "tz": "America/New_York",
768
+ "error": "expected a project name after '#'",
769
+ "at": 0
770
+ },
771
+ {
772
+ "query": "due:soon",
773
+ "now": 1791972000000,
774
+ "tz": "America/New_York",
775
+ "error": "unknown due value 'soon' (expected today, tomorrow, week, month, weekend, next-week, overdue, none, or Nd e.g. 7d)",
776
+ "at": 0
777
+ },
778
+ {
779
+ "query": "(p1",
780
+ "now": 1791972000000,
781
+ "tz": "America/New_York",
782
+ "error": "expected ')'",
783
+ "at": 3
784
+ },
785
+ {
786
+ "query": "p1)",
787
+ "now": 1791972000000,
788
+ "tz": "America/New_York",
789
+ "error": "unexpected trailing input",
790
+ "at": 2
791
+ },
792
+ {
793
+ "query": "",
794
+ "now": 1791972000000,
795
+ "tz": "America/New_York",
796
+ "error": "empty query",
797
+ "at": 0
798
+ },
799
+ {
800
+ "query": " ",
801
+ "now": 1791972000000,
802
+ "tz": "America/New_York",
803
+ "error": "empty query",
804
+ "at": 0
805
+ },
806
+ {
807
+ "query": "& p1",
808
+ "now": 1791972000000,
809
+ "tz": "America/New_York",
810
+ "error": "unexpected 'and'",
811
+ "at": 0
812
+ },
813
+ {
814
+ "query": "p1 &",
815
+ "now": 1791972000000,
816
+ "tz": "America/New_York",
817
+ "error": "unexpected end of query",
818
+ "at": 4
819
+ },
820
+ {
821
+ "query": "!",
822
+ "now": 1791972000000,
823
+ "tz": "America/New_York",
824
+ "error": "unexpected end of query",
825
+ "at": 1
826
+ },
827
+ {
828
+ "query": "()",
829
+ "now": 1791972000000,
830
+ "tz": "America/New_York",
831
+ "error": "unexpected 'rparen'",
832
+ "at": 1
833
+ },
834
+ {
835
+ "query": "ünïcödé (",
836
+ "now": 1791972000000,
837
+ "tz": "America/New_York",
838
+ "error": "unexpected end of query",
839
+ "at": 9
840
+ },
841
+ {
842
+ "query": "due:Week",
843
+ "now": 1791972000000,
844
+ "tz": "America/New_York",
845
+ "expected": [
846
+ "t1",
847
+ "t4",
848
+ "t5",
849
+ "t6"
850
+ ]
851
+ },
852
+ {
853
+ "query": "p1",
854
+ "now": 1792238400000,
855
+ "tz": "Europe/Copenhagen",
856
+ "expected": [
857
+ "t1",
858
+ "t7"
859
+ ]
860
+ },
861
+ {
862
+ "query": "P2",
863
+ "now": 1792238400000,
864
+ "tz": "Europe/Copenhagen",
865
+ "expected": [
866
+ "t3",
867
+ "t6"
868
+ ]
869
+ },
870
+ {
871
+ "query": "@work",
872
+ "now": 1792238400000,
873
+ "tz": "Europe/Copenhagen",
874
+ "expected": [
875
+ "t1",
876
+ "t6"
877
+ ]
878
+ },
879
+ {
880
+ "query": "@ERRAND",
881
+ "now": 1792238400000,
882
+ "tz": "Europe/Copenhagen",
883
+ "expected": [
884
+ "t2",
885
+ "t4"
886
+ ]
887
+ },
888
+ {
889
+ "query": "#home",
890
+ "now": 1792238400000,
891
+ "tz": "Europe/Copenhagen",
892
+ "expected": [
893
+ "t3",
894
+ "t4"
895
+ ]
896
+ },
897
+ {
898
+ "query": "#Work",
899
+ "now": 1792238400000,
900
+ "tz": "Europe/Copenhagen",
901
+ "expected": [
902
+ "t1",
903
+ "t6",
904
+ "t8"
905
+ ]
906
+ },
907
+ {
908
+ "query": "today",
909
+ "now": 1792238400000,
910
+ "tz": "Europe/Copenhagen",
911
+ "expected": []
912
+ },
913
+ {
914
+ "query": "due:today",
915
+ "now": 1792238400000,
916
+ "tz": "Europe/Copenhagen",
917
+ "expected": [
918
+ "t4",
919
+ "t5"
920
+ ]
921
+ },
922
+ {
923
+ "query": "due:tomorrow",
924
+ "now": 1792238400000,
925
+ "tz": "Europe/Copenhagen",
926
+ "expected": []
927
+ },
928
+ {
929
+ "query": "due:week",
930
+ "now": 1792238400000,
931
+ "tz": "Europe/Copenhagen",
932
+ "expected": [
933
+ "t4",
934
+ "t5",
935
+ "t6"
936
+ ]
937
+ },
938
+ {
939
+ "query": "due:this-week",
940
+ "now": 1792238400000,
941
+ "tz": "Europe/Copenhagen",
942
+ "expected": [
943
+ "t4",
944
+ "t5",
945
+ "t6"
946
+ ]
947
+ },
948
+ {
949
+ "query": "due:month",
950
+ "now": 1792238400000,
951
+ "tz": "Europe/Copenhagen",
952
+ "expected": [
953
+ "t1",
954
+ "t2",
955
+ "t4",
956
+ "t5",
957
+ "t6",
958
+ "t7",
959
+ "t8"
960
+ ]
961
+ },
962
+ {
963
+ "query": "due:weekend",
964
+ "now": 1792238400000,
965
+ "tz": "Europe/Copenhagen",
966
+ "expected": [
967
+ "t4",
968
+ "t5"
969
+ ]
970
+ },
971
+ {
972
+ "query": "due:next-week",
973
+ "now": 1792238400000,
974
+ "tz": "Europe/Copenhagen",
975
+ "expected": [
976
+ "t6"
977
+ ]
978
+ },
979
+ {
980
+ "query": "due:nextweek",
981
+ "now": 1792238400000,
982
+ "tz": "Europe/Copenhagen",
983
+ "expected": [
984
+ "t6"
985
+ ]
986
+ },
987
+ {
988
+ "query": "due:overdue",
989
+ "now": 1792238400000,
990
+ "tz": "Europe/Copenhagen",
991
+ "expected": [
992
+ "t1",
993
+ "t2",
994
+ "t4"
995
+ ]
996
+ },
997
+ {
998
+ "query": "overdue",
999
+ "now": 1792238400000,
1000
+ "tz": "Europe/Copenhagen",
1001
+ "expected": [
1002
+ "t1",
1003
+ "t2",
1004
+ "t4"
1005
+ ]
1006
+ },
1007
+ {
1008
+ "query": "due:none",
1009
+ "now": 1792238400000,
1010
+ "tz": "Europe/Copenhagen",
1011
+ "expected": [
1012
+ "t3"
1013
+ ]
1014
+ },
1015
+ {
1016
+ "query": "due:3d",
1017
+ "now": 1792238400000,
1018
+ "tz": "Europe/Copenhagen",
1019
+ "expected": [
1020
+ "t4",
1021
+ "t5"
1022
+ ]
1023
+ },
1024
+ {
1025
+ "query": "due:0d",
1026
+ "now": 1792238400000,
1027
+ "tz": "Europe/Copenhagen",
1028
+ "expected": []
1029
+ },
1030
+ {
1031
+ "query": "milk",
1032
+ "now": 1792238400000,
1033
+ "tz": "Europe/Copenhagen",
1034
+ "expected": [
1035
+ "t2"
1036
+ ]
1037
+ },
1038
+ {
1039
+ "query": "MILK",
1040
+ "now": 1792238400000,
1041
+ "tz": "Europe/Copenhagen",
1042
+ "expected": [
1043
+ "t2"
1044
+ ]
1045
+ },
1046
+ {
1047
+ "query": "plan trip",
1048
+ "now": 1792238400000,
1049
+ "tz": "Europe/Copenhagen",
1050
+ "expected": [
1051
+ "t3"
1052
+ ]
1053
+ },
1054
+ {
1055
+ "query": "p1 | p2",
1056
+ "now": 1792238400000,
1057
+ "tz": "Europe/Copenhagen",
1058
+ "expected": [
1059
+ "t1",
1060
+ "t3",
1061
+ "t6",
1062
+ "t7"
1063
+ ]
1064
+ },
1065
+ {
1066
+ "query": "p1 & @work",
1067
+ "now": 1792238400000,
1068
+ "tz": "Europe/Copenhagen",
1069
+ "expected": [
1070
+ "t1"
1071
+ ]
1072
+ },
1073
+ {
1074
+ "query": "p1 @work",
1075
+ "now": 1792238400000,
1076
+ "tz": "Europe/Copenhagen",
1077
+ "expected": [
1078
+ "t1"
1079
+ ]
1080
+ },
1081
+ {
1082
+ "query": "!due:none",
1083
+ "now": 1792238400000,
1084
+ "tz": "Europe/Copenhagen",
1085
+ "expected": [
1086
+ "t1",
1087
+ "t2",
1088
+ "t4",
1089
+ "t5",
1090
+ "t6",
1091
+ "t7",
1092
+ "t8",
1093
+ "t9"
1094
+ ]
1095
+ },
1096
+ {
1097
+ "query": "not p4",
1098
+ "now": 1792238400000,
1099
+ "tz": "Europe/Copenhagen",
1100
+ "expected": [
1101
+ "t1",
1102
+ "t3",
1103
+ "t4",
1104
+ "t6",
1105
+ "t7"
1106
+ ]
1107
+ },
1108
+ {
1109
+ "query": "(p1 | p2) & #work",
1110
+ "now": 1792238400000,
1111
+ "tz": "Europe/Copenhagen",
1112
+ "expected": [
1113
+ "t1",
1114
+ "t6"
1115
+ ]
1116
+ },
1117
+ {
1118
+ "query": "@work or #home and not p3",
1119
+ "now": 1792238400000,
1120
+ "tz": "Europe/Copenhagen",
1121
+ "expected": [
1122
+ "t1",
1123
+ "t3",
1124
+ "t6"
1125
+ ]
1126
+ },
1127
+ {
1128
+ "query": "!(p1 | p4)",
1129
+ "now": 1792238400000,
1130
+ "tz": "Europe/Copenhagen",
1131
+ "expected": [
1132
+ "t3",
1133
+ "t4",
1134
+ "t6"
1135
+ ]
1136
+ },
1137
+ {
1138
+ "query": "p5",
1139
+ "now": 1792238400000,
1140
+ "tz": "Europe/Copenhagen",
1141
+ "expected": []
1142
+ },
1143
+ {
1144
+ "query": "@",
1145
+ "now": 1792238400000,
1146
+ "tz": "Europe/Copenhagen",
1147
+ "error": "expected a label name after '@'",
1148
+ "at": 0
1149
+ },
1150
+ {
1151
+ "query": "#",
1152
+ "now": 1792238400000,
1153
+ "tz": "Europe/Copenhagen",
1154
+ "error": "expected a project name after '#'",
1155
+ "at": 0
1156
+ },
1157
+ {
1158
+ "query": "due:soon",
1159
+ "now": 1792238400000,
1160
+ "tz": "Europe/Copenhagen",
1161
+ "error": "unknown due value 'soon' (expected today, tomorrow, week, month, weekend, next-week, overdue, none, or Nd e.g. 7d)",
1162
+ "at": 0
1163
+ },
1164
+ {
1165
+ "query": "(p1",
1166
+ "now": 1792238400000,
1167
+ "tz": "Europe/Copenhagen",
1168
+ "error": "expected ')'",
1169
+ "at": 3
1170
+ },
1171
+ {
1172
+ "query": "p1)",
1173
+ "now": 1792238400000,
1174
+ "tz": "Europe/Copenhagen",
1175
+ "error": "unexpected trailing input",
1176
+ "at": 2
1177
+ },
1178
+ {
1179
+ "query": "",
1180
+ "now": 1792238400000,
1181
+ "tz": "Europe/Copenhagen",
1182
+ "error": "empty query",
1183
+ "at": 0
1184
+ },
1185
+ {
1186
+ "query": " ",
1187
+ "now": 1792238400000,
1188
+ "tz": "Europe/Copenhagen",
1189
+ "error": "empty query",
1190
+ "at": 0
1191
+ },
1192
+ {
1193
+ "query": "& p1",
1194
+ "now": 1792238400000,
1195
+ "tz": "Europe/Copenhagen",
1196
+ "error": "unexpected 'and'",
1197
+ "at": 0
1198
+ },
1199
+ {
1200
+ "query": "p1 &",
1201
+ "now": 1792238400000,
1202
+ "tz": "Europe/Copenhagen",
1203
+ "error": "unexpected end of query",
1204
+ "at": 4
1205
+ },
1206
+ {
1207
+ "query": "!",
1208
+ "now": 1792238400000,
1209
+ "tz": "Europe/Copenhagen",
1210
+ "error": "unexpected end of query",
1211
+ "at": 1
1212
+ },
1213
+ {
1214
+ "query": "()",
1215
+ "now": 1792238400000,
1216
+ "tz": "Europe/Copenhagen",
1217
+ "error": "unexpected 'rparen'",
1218
+ "at": 1
1219
+ },
1220
+ {
1221
+ "query": "ünïcödé (",
1222
+ "now": 1792238400000,
1223
+ "tz": "Europe/Copenhagen",
1224
+ "error": "unexpected end of query",
1225
+ "at": 9
1226
+ },
1227
+ {
1228
+ "query": "due:Week",
1229
+ "now": 1792238400000,
1230
+ "tz": "Europe/Copenhagen",
1231
+ "expected": [
1232
+ "t4",
1233
+ "t5",
1234
+ "t6"
1235
+ ]
1236
+ },
1237
+ {
1238
+ "query": "p1",
1239
+ "now": 1792366200000,
1240
+ "tz": "Asia/Tokyo",
1241
+ "expected": [
1242
+ "t1",
1243
+ "t7"
1244
+ ]
1245
+ },
1246
+ {
1247
+ "query": "P2",
1248
+ "now": 1792366200000,
1249
+ "tz": "Asia/Tokyo",
1250
+ "expected": [
1251
+ "t3",
1252
+ "t6"
1253
+ ]
1254
+ },
1255
+ {
1256
+ "query": "@work",
1257
+ "now": 1792366200000,
1258
+ "tz": "Asia/Tokyo",
1259
+ "expected": [
1260
+ "t1",
1261
+ "t6"
1262
+ ]
1263
+ },
1264
+ {
1265
+ "query": "@ERRAND",
1266
+ "now": 1792366200000,
1267
+ "tz": "Asia/Tokyo",
1268
+ "expected": [
1269
+ "t2",
1270
+ "t4"
1271
+ ]
1272
+ },
1273
+ {
1274
+ "query": "#home",
1275
+ "now": 1792366200000,
1276
+ "tz": "Asia/Tokyo",
1277
+ "expected": [
1278
+ "t3",
1279
+ "t4"
1280
+ ]
1281
+ },
1282
+ {
1283
+ "query": "#Work",
1284
+ "now": 1792366200000,
1285
+ "tz": "Asia/Tokyo",
1286
+ "expected": [
1287
+ "t1",
1288
+ "t6",
1289
+ "t8"
1290
+ ]
1291
+ },
1292
+ {
1293
+ "query": "today",
1294
+ "now": 1792366200000,
1295
+ "tz": "Asia/Tokyo",
1296
+ "expected": []
1297
+ },
1298
+ {
1299
+ "query": "due:today",
1300
+ "now": 1792366200000,
1301
+ "tz": "Asia/Tokyo",
1302
+ "expected": []
1303
+ },
1304
+ {
1305
+ "query": "due:tomorrow",
1306
+ "now": 1792366200000,
1307
+ "tz": "Asia/Tokyo",
1308
+ "expected": [
1309
+ "t6"
1310
+ ]
1311
+ },
1312
+ {
1313
+ "query": "due:week",
1314
+ "now": 1792366200000,
1315
+ "tz": "Asia/Tokyo",
1316
+ "expected": [
1317
+ "t6"
1318
+ ]
1319
+ },
1320
+ {
1321
+ "query": "due:this-week",
1322
+ "now": 1792366200000,
1323
+ "tz": "Asia/Tokyo",
1324
+ "expected": [
1325
+ "t6"
1326
+ ]
1327
+ },
1328
+ {
1329
+ "query": "due:month",
1330
+ "now": 1792366200000,
1331
+ "tz": "Asia/Tokyo",
1332
+ "expected": [
1333
+ "t1",
1334
+ "t2",
1335
+ "t4",
1336
+ "t5",
1337
+ "t6",
1338
+ "t7"
1339
+ ]
1340
+ },
1341
+ {
1342
+ "query": "due:weekend",
1343
+ "now": 1792366200000,
1344
+ "tz": "Asia/Tokyo",
1345
+ "expected": []
1346
+ },
1347
+ {
1348
+ "query": "due:next-week",
1349
+ "now": 1792366200000,
1350
+ "tz": "Asia/Tokyo",
1351
+ "expected": [
1352
+ "t8"
1353
+ ]
1354
+ },
1355
+ {
1356
+ "query": "due:nextweek",
1357
+ "now": 1792366200000,
1358
+ "tz": "Asia/Tokyo",
1359
+ "expected": [
1360
+ "t8"
1361
+ ]
1362
+ },
1363
+ {
1364
+ "query": "due:overdue",
1365
+ "now": 1792366200000,
1366
+ "tz": "Asia/Tokyo",
1367
+ "expected": [
1368
+ "t1",
1369
+ "t2",
1370
+ "t4",
1371
+ "t5"
1372
+ ]
1373
+ },
1374
+ {
1375
+ "query": "overdue",
1376
+ "now": 1792366200000,
1377
+ "tz": "Asia/Tokyo",
1378
+ "expected": [
1379
+ "t1",
1380
+ "t2",
1381
+ "t4",
1382
+ "t5"
1383
+ ]
1384
+ },
1385
+ {
1386
+ "query": "due:none",
1387
+ "now": 1792366200000,
1388
+ "tz": "Asia/Tokyo",
1389
+ "expected": [
1390
+ "t3"
1391
+ ]
1392
+ },
1393
+ {
1394
+ "query": "due:3d",
1395
+ "now": 1792366200000,
1396
+ "tz": "Asia/Tokyo",
1397
+ "expected": [
1398
+ "t6"
1399
+ ]
1400
+ },
1401
+ {
1402
+ "query": "due:0d",
1403
+ "now": 1792366200000,
1404
+ "tz": "Asia/Tokyo",
1405
+ "expected": []
1406
+ },
1407
+ {
1408
+ "query": "milk",
1409
+ "now": 1792366200000,
1410
+ "tz": "Asia/Tokyo",
1411
+ "expected": [
1412
+ "t2"
1413
+ ]
1414
+ },
1415
+ {
1416
+ "query": "MILK",
1417
+ "now": 1792366200000,
1418
+ "tz": "Asia/Tokyo",
1419
+ "expected": [
1420
+ "t2"
1421
+ ]
1422
+ },
1423
+ {
1424
+ "query": "plan trip",
1425
+ "now": 1792366200000,
1426
+ "tz": "Asia/Tokyo",
1427
+ "expected": [
1428
+ "t3"
1429
+ ]
1430
+ },
1431
+ {
1432
+ "query": "p1 | p2",
1433
+ "now": 1792366200000,
1434
+ "tz": "Asia/Tokyo",
1435
+ "expected": [
1436
+ "t1",
1437
+ "t3",
1438
+ "t6",
1439
+ "t7"
1440
+ ]
1441
+ },
1442
+ {
1443
+ "query": "p1 & @work",
1444
+ "now": 1792366200000,
1445
+ "tz": "Asia/Tokyo",
1446
+ "expected": [
1447
+ "t1"
1448
+ ]
1449
+ },
1450
+ {
1451
+ "query": "p1 @work",
1452
+ "now": 1792366200000,
1453
+ "tz": "Asia/Tokyo",
1454
+ "expected": [
1455
+ "t1"
1456
+ ]
1457
+ },
1458
+ {
1459
+ "query": "!due:none",
1460
+ "now": 1792366200000,
1461
+ "tz": "Asia/Tokyo",
1462
+ "expected": [
1463
+ "t1",
1464
+ "t2",
1465
+ "t4",
1466
+ "t5",
1467
+ "t6",
1468
+ "t7",
1469
+ "t8",
1470
+ "t9"
1471
+ ]
1472
+ },
1473
+ {
1474
+ "query": "not p4",
1475
+ "now": 1792366200000,
1476
+ "tz": "Asia/Tokyo",
1477
+ "expected": [
1478
+ "t1",
1479
+ "t3",
1480
+ "t4",
1481
+ "t6",
1482
+ "t7"
1483
+ ]
1484
+ },
1485
+ {
1486
+ "query": "(p1 | p2) & #work",
1487
+ "now": 1792366200000,
1488
+ "tz": "Asia/Tokyo",
1489
+ "expected": [
1490
+ "t1",
1491
+ "t6"
1492
+ ]
1493
+ },
1494
+ {
1495
+ "query": "@work or #home and not p3",
1496
+ "now": 1792366200000,
1497
+ "tz": "Asia/Tokyo",
1498
+ "expected": [
1499
+ "t1",
1500
+ "t3",
1501
+ "t6"
1502
+ ]
1503
+ },
1504
+ {
1505
+ "query": "!(p1 | p4)",
1506
+ "now": 1792366200000,
1507
+ "tz": "Asia/Tokyo",
1508
+ "expected": [
1509
+ "t3",
1510
+ "t4",
1511
+ "t6"
1512
+ ]
1513
+ },
1514
+ {
1515
+ "query": "p5",
1516
+ "now": 1792366200000,
1517
+ "tz": "Asia/Tokyo",
1518
+ "expected": []
1519
+ },
1520
+ {
1521
+ "query": "@",
1522
+ "now": 1792366200000,
1523
+ "tz": "Asia/Tokyo",
1524
+ "error": "expected a label name after '@'",
1525
+ "at": 0
1526
+ },
1527
+ {
1528
+ "query": "#",
1529
+ "now": 1792366200000,
1530
+ "tz": "Asia/Tokyo",
1531
+ "error": "expected a project name after '#'",
1532
+ "at": 0
1533
+ },
1534
+ {
1535
+ "query": "due:soon",
1536
+ "now": 1792366200000,
1537
+ "tz": "Asia/Tokyo",
1538
+ "error": "unknown due value 'soon' (expected today, tomorrow, week, month, weekend, next-week, overdue, none, or Nd e.g. 7d)",
1539
+ "at": 0
1540
+ },
1541
+ {
1542
+ "query": "(p1",
1543
+ "now": 1792366200000,
1544
+ "tz": "Asia/Tokyo",
1545
+ "error": "expected ')'",
1546
+ "at": 3
1547
+ },
1548
+ {
1549
+ "query": "p1)",
1550
+ "now": 1792366200000,
1551
+ "tz": "Asia/Tokyo",
1552
+ "error": "unexpected trailing input",
1553
+ "at": 2
1554
+ },
1555
+ {
1556
+ "query": "",
1557
+ "now": 1792366200000,
1558
+ "tz": "Asia/Tokyo",
1559
+ "error": "empty query",
1560
+ "at": 0
1561
+ },
1562
+ {
1563
+ "query": " ",
1564
+ "now": 1792366200000,
1565
+ "tz": "Asia/Tokyo",
1566
+ "error": "empty query",
1567
+ "at": 0
1568
+ },
1569
+ {
1570
+ "query": "& p1",
1571
+ "now": 1792366200000,
1572
+ "tz": "Asia/Tokyo",
1573
+ "error": "unexpected 'and'",
1574
+ "at": 0
1575
+ },
1576
+ {
1577
+ "query": "p1 &",
1578
+ "now": 1792366200000,
1579
+ "tz": "Asia/Tokyo",
1580
+ "error": "unexpected end of query",
1581
+ "at": 4
1582
+ },
1583
+ {
1584
+ "query": "!",
1585
+ "now": 1792366200000,
1586
+ "tz": "Asia/Tokyo",
1587
+ "error": "unexpected end of query",
1588
+ "at": 1
1589
+ },
1590
+ {
1591
+ "query": "()",
1592
+ "now": 1792366200000,
1593
+ "tz": "Asia/Tokyo",
1594
+ "error": "unexpected 'rparen'",
1595
+ "at": 1
1596
+ },
1597
+ {
1598
+ "query": "ünïcödé (",
1599
+ "now": 1792366200000,
1600
+ "tz": "Asia/Tokyo",
1601
+ "error": "unexpected end of query",
1602
+ "at": 9
1603
+ },
1604
+ {
1605
+ "query": "due:Week",
1606
+ "now": 1792366200000,
1607
+ "tz": "Asia/Tokyo",
1608
+ "expected": [
1609
+ "t6"
1610
+ ]
1611
+ }
1612
+ ]
1613
+ }