@doist/todoist-api-typescript 7.5.0 → 7.6.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.
@@ -89,7 +89,7 @@ export declare const SyncUserSchema: z.ZodObject<{
89
89
  mfaEnabled: z.ZodOptional<z.ZodBoolean>;
90
90
  mobileHost: z.ZodNullable<z.ZodString>;
91
91
  mobileNumber: z.ZodNullable<z.ZodString>;
92
- nextWeek: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>]>, z.ZodTransform<"Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday", 2 | 1 | 3 | 4 | 5 | 7 | 6>>;
92
+ nextWeek: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>]>, z.ZodTransform<"Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday", 2 | 1 | 3 | 4 | 5 | 6 | 7>>;
93
93
  onboardingLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
94
  onboardingRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
95
  onboardingPersona: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -113,7 +113,7 @@ export declare const SyncUserSchema: z.ZodObject<{
113
113
  }, z.core.$strip>>>;
114
114
  shareLimit: z.ZodNumber;
115
115
  sortOrder: z.ZodNumber;
116
- startDay: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>]>, z.ZodTransform<"Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday", 2 | 1 | 3 | 4 | 5 | 7 | 6>>;
116
+ startDay: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>]>, z.ZodTransform<"Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday", 2 | 1 | 3 | 4 | 5 | 6 | 7>>;
117
117
  startPage: z.ZodString;
118
118
  themeId: z.ZodString;
119
119
  timeFormat: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"24h" | "12h", 0 | 1>>;
@@ -4,9 +4,9 @@ export declare const VIEW_TYPES: readonly ["TODAY", "UPCOMING", "PROJECT", "LABE
4
4
  /** Type of view in the Todoist UI. */
5
5
  export type ViewType = (typeof VIEW_TYPES)[number];
6
6
  export declare const ViewTypeSchema: z.ZodEnum<{
7
+ PROJECT: "PROJECT";
7
8
  TODAY: "TODAY";
8
9
  UPCOMING: "UPCOMING";
9
- PROJECT: "PROJECT";
10
10
  LABEL: "LABEL";
11
11
  FILTER: "FILTER";
12
12
  WORKSPACE_FILTER: "WORKSPACE_FILTER";
@@ -46,8 +46,8 @@ export declare const SORTED_BY_OPTIONS: readonly ["MANUAL", "ALPHABETICALLY", "A
46
46
  /** Field to sort tasks by. */
47
47
  export type SortedBy = (typeof SORTED_BY_OPTIONS)[number];
48
48
  export declare const SortedBySchema: z.ZodNullable<z.ZodEnum<{
49
- MANUAL: "MANUAL";
50
49
  PROJECT: "PROJECT";
50
+ MANUAL: "MANUAL";
51
51
  ASSIGNEE: "ASSIGNEE";
52
52
  ADDED_DATE: "ADDED_DATE";
53
53
  DUE_DATE: "DUE_DATE";
@@ -76,9 +76,9 @@ export declare const CalendarSettingsSchema: z.ZodObject<{
76
76
  }, z.core.$loose>;
77
77
  export declare const ViewOptionsSchema: z.ZodObject<{
78
78
  viewType: z.ZodEnum<{
79
+ PROJECT: "PROJECT";
79
80
  TODAY: "TODAY";
80
81
  UPCOMING: "UPCOMING";
81
- PROJECT: "PROJECT";
82
82
  LABEL: "LABEL";
83
83
  FILTER: "FILTER";
84
84
  WORKSPACE_FILTER: "WORKSPACE_FILTER";
@@ -109,8 +109,8 @@ export declare const ViewOptionsSchema: z.ZodObject<{
109
109
  }>>;
110
110
  showCompletedTasks: z.ZodOptional<z.ZodBoolean>;
111
111
  sortedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
112
- MANUAL: "MANUAL";
113
112
  PROJECT: "PROJECT";
113
+ MANUAL: "MANUAL";
114
114
  ASSIGNEE: "ASSIGNEE";
115
115
  ADDED_DATE: "ADDED_DATE";
116
116
  DUE_DATE: "DUE_DATE";
@@ -143,8 +143,8 @@ export declare const ProjectViewOptionsDefaultsSchema: z.ZodObject<{
143
143
  WORKSPACE: "WORKSPACE";
144
144
  }>>>;
145
145
  sortedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
146
- MANUAL: "MANUAL";
147
146
  PROJECT: "PROJECT";
147
+ MANUAL: "MANUAL";
148
148
  ASSIGNEE: "ASSIGNEE";
149
149
  ADDED_DATE: "ADDED_DATE";
150
150
  DUE_DATE: "DUE_DATE";
@@ -36,4 +36,4 @@ export declare const BooleanFromZeroOneSchema: z.ZodPipe<z.ZodUnion<readonly [z.
36
36
  /** Zod read-schemas: parse API numbers, emit descriptive strings */
37
37
  export declare const DateFormatSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"DD/MM/YYYY" | "MM/DD/YYYY", 0 | 1>>;
38
38
  export declare const TimeFormatSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"24h" | "12h", 0 | 1>>;
39
- export declare const DayOfWeekSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>]>, z.ZodTransform<"Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday", 2 | 1 | 3 | 4 | 5 | 7 | 6>>;
39
+ export declare const DayOfWeekSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>]>, z.ZodTransform<"Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday", 2 | 1 | 3 | 4 | 5 | 6 | 7>>;
@@ -449,6 +449,170 @@ export declare const validateWorkspaceArray: (input: unknown[]) => {
449
449
  logoSmall?: string | null | undefined;
450
450
  logoS640?: string | null | undefined;
451
451
  }[];
452
+ export declare const validateMemberActivityInfo: (input: unknown) => {
453
+ userId: string;
454
+ tasksAssigned: number;
455
+ tasksOverdue: number;
456
+ };
457
+ export declare const validateMemberActivityInfoArray: (input: unknown[]) => {
458
+ userId: string;
459
+ tasksAssigned: number;
460
+ tasksOverdue: number;
461
+ }[];
462
+ export declare const validateWorkspaceUserTask: (input: unknown) => {
463
+ id: string;
464
+ content: string;
465
+ responsibleUid: string | null;
466
+ due: {
467
+ isRecurring: boolean;
468
+ string: string;
469
+ date: string;
470
+ datetime?: string | null | undefined;
471
+ timezone?: string | null | undefined;
472
+ lang?: string | null | undefined;
473
+ } | null;
474
+ deadline: {
475
+ date: string;
476
+ lang: string;
477
+ } | null;
478
+ labels: string[];
479
+ notesCount: number;
480
+ projectId: string;
481
+ projectName: string;
482
+ priority: number;
483
+ description: string;
484
+ isOverdue: boolean;
485
+ };
486
+ export declare const validateWorkspaceUserTaskArray: (input: unknown[]) => {
487
+ id: string;
488
+ content: string;
489
+ responsibleUid: string | null;
490
+ due: {
491
+ isRecurring: boolean;
492
+ string: string;
493
+ date: string;
494
+ datetime?: string | null | undefined;
495
+ timezone?: string | null | undefined;
496
+ lang?: string | null | undefined;
497
+ } | null;
498
+ deadline: {
499
+ date: string;
500
+ lang: string;
501
+ } | null;
502
+ labels: string[];
503
+ notesCount: number;
504
+ projectId: string;
505
+ projectName: string;
506
+ priority: number;
507
+ description: string;
508
+ isOverdue: boolean;
509
+ }[];
510
+ export declare const validateProjectActivityStats: (input: unknown) => {
511
+ dayItems: {
512
+ date: string;
513
+ totalCount: number;
514
+ }[];
515
+ weekItems: {
516
+ fromDate: string;
517
+ toDate: string;
518
+ totalCount: number;
519
+ }[] | null;
520
+ };
521
+ export declare const validateProjectHealth: (input: unknown) => {
522
+ status: "UNKNOWN" | "ON_TRACK" | "AT_RISK" | "CRITICAL" | "EXCELLENT" | "ERROR";
523
+ isStale: boolean;
524
+ updateInProgress: boolean;
525
+ description?: string | null | undefined;
526
+ descriptionSummary?: string | null | undefined;
527
+ taskRecommendations?: {
528
+ taskId: string;
529
+ recommendation: string;
530
+ }[] | null | undefined;
531
+ projectId?: string | null | undefined;
532
+ updatedAt?: string | null | undefined;
533
+ };
534
+ export declare const validateProjectHealthContext: (input: unknown) => {
535
+ projectId: string;
536
+ projectName: string;
537
+ projectDescription: string | null;
538
+ projectMetrics: {
539
+ totalTasks: number;
540
+ completedTasks: number;
541
+ overdueTasks: number;
542
+ tasksCreatedThisWeek: number;
543
+ tasksCompletedThisWeek: number;
544
+ averageCompletionTime: number | null;
545
+ };
546
+ tasks: {
547
+ id: string;
548
+ content: string;
549
+ priority: string;
550
+ isCompleted: boolean;
551
+ createdAt: string;
552
+ updatedAt: string;
553
+ completedAt: string | null;
554
+ completedByUid: string | null;
555
+ labels: string[];
556
+ due?: string | null | undefined;
557
+ deadline?: string | null | undefined;
558
+ }[];
559
+ language?: string | null | undefined;
560
+ };
561
+ export declare const validateProjectProgress: (input: unknown) => {
562
+ projectId: string;
563
+ completedCount: number;
564
+ activeCount: number;
565
+ progressPercent: number;
566
+ };
567
+ export declare const validateWorkspaceInsights: (input: unknown) => {
568
+ folderId: string | null;
569
+ projectInsights: {
570
+ projectId: string;
571
+ health: {
572
+ status: "UNKNOWN" | "ON_TRACK" | "AT_RISK" | "CRITICAL" | "EXCELLENT" | "ERROR";
573
+ isStale: boolean;
574
+ updateInProgress: boolean;
575
+ description?: string | null | undefined;
576
+ descriptionSummary?: string | null | undefined;
577
+ taskRecommendations?: {
578
+ taskId: string;
579
+ recommendation: string;
580
+ }[] | null | undefined;
581
+ projectId?: string | null | undefined;
582
+ updatedAt?: string | null | undefined;
583
+ } | null;
584
+ progress: {
585
+ projectId: string;
586
+ completedCount: number;
587
+ activeCount: number;
588
+ progressPercent: number;
589
+ } | null;
590
+ }[];
591
+ };
592
+ export declare const validateBackup: (input: unknown) => {
593
+ version: string;
594
+ url: string;
595
+ };
596
+ export declare const validateBackupArray: (input: unknown[]) => {
597
+ version: string;
598
+ url: string;
599
+ }[];
600
+ export declare const validateIdMapping: (input: unknown) => {
601
+ oldId: string | null;
602
+ newId: string | null;
603
+ };
604
+ export declare const validateIdMappingArray: (input: unknown[]) => {
605
+ oldId: string | null;
606
+ newId: string | null;
607
+ }[];
608
+ export declare const validateMovedId: (input: unknown) => {
609
+ oldId: string;
610
+ newId: string;
611
+ };
612
+ export declare const validateMovedIdArray: (input: unknown[]) => {
613
+ oldId: string;
614
+ newId: string;
615
+ }[];
452
616
  export declare const validateFilter: (input: unknown) => {
453
617
  [x: string]: unknown;
454
618
  id: string;
@@ -786,6 +950,34 @@ export declare const validateReminderArray: (input: unknown[]) => ({
786
950
  } | undefined;
787
951
  isUrgent?: boolean | undefined;
788
952
  })[];
953
+ export declare const validateLocationReminder: (input: unknown) => {
954
+ [x: string]: unknown;
955
+ id: string;
956
+ notifyUid: string;
957
+ itemId: string;
958
+ isDeleted: boolean;
959
+ type: "location";
960
+ name: string;
961
+ locLat: string;
962
+ locLong: string;
963
+ locTrigger: "on_enter" | "on_leave";
964
+ radius: number;
965
+ projectId?: string | undefined;
966
+ };
967
+ export declare const validateLocationReminderArray: (input: unknown[]) => {
968
+ [x: string]: unknown;
969
+ id: string;
970
+ notifyUid: string;
971
+ itemId: string;
972
+ isDeleted: boolean;
973
+ type: "location";
974
+ name: string;
975
+ locLat: string;
976
+ locLong: string;
977
+ locTrigger: "on_enter" | "on_leave";
978
+ radius: number;
979
+ projectId?: string | undefined;
980
+ }[];
789
981
  export declare const validateCompletedInfo: (input: unknown) => {
790
982
  [x: string]: unknown;
791
983
  projectId: string;
@@ -820,24 +1012,24 @@ export declare const validateCompletedInfoArray: (input: unknown[]) => ({
820
1012
  })[];
821
1013
  export declare const validateViewOptions: (input: unknown) => {
822
1014
  [x: string]: unknown;
823
- viewType: "TODAY" | "UPCOMING" | "PROJECT" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "OVERDUE" | "WORKSPACE_OVERVIEW";
1015
+ viewType: "PROJECT" | "TODAY" | "UPCOMING" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "OVERDUE" | "WORKSPACE_OVERVIEW";
824
1016
  objectId?: string | undefined;
825
1017
  groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
826
1018
  filteredBy?: string | null | undefined;
827
1019
  viewMode?: "LIST" | "BOARD" | "CALENDAR" | undefined;
828
1020
  showCompletedTasks?: boolean | undefined;
829
- sortedBy?: "MANUAL" | "PROJECT" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
1021
+ sortedBy?: "PROJECT" | "MANUAL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
830
1022
  sortOrder?: "ASC" | "DESC" | null | undefined;
831
1023
  };
832
1024
  export declare const validateViewOptionsArray: (input: unknown[]) => {
833
1025
  [x: string]: unknown;
834
- viewType: "TODAY" | "UPCOMING" | "PROJECT" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "OVERDUE" | "WORKSPACE_OVERVIEW";
1026
+ viewType: "PROJECT" | "TODAY" | "UPCOMING" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "OVERDUE" | "WORKSPACE_OVERVIEW";
835
1027
  objectId?: string | undefined;
836
1028
  groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
837
1029
  filteredBy?: string | null | undefined;
838
1030
  viewMode?: "LIST" | "BOARD" | "CALENDAR" | undefined;
839
1031
  showCompletedTasks?: boolean | undefined;
840
- sortedBy?: "MANUAL" | "PROJECT" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
1032
+ sortedBy?: "PROJECT" | "MANUAL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
841
1033
  sortOrder?: "ASC" | "DESC" | null | undefined;
842
1034
  }[];
843
1035
  export declare const validateProjectViewOptionsDefaults: (input: unknown) => {
@@ -845,7 +1037,7 @@ export declare const validateProjectViewOptionsDefaults: (input: unknown) => {
845
1037
  projectId: string;
846
1038
  viewMode?: "LIST" | "BOARD" | "CALENDAR" | null | undefined;
847
1039
  groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
848
- sortedBy?: "MANUAL" | "PROJECT" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
1040
+ sortedBy?: "PROJECT" | "MANUAL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
849
1041
  sortOrder?: "ASC" | "DESC" | null | undefined;
850
1042
  showCompletedTasks?: boolean | undefined;
851
1043
  filteredBy?: string | null | undefined;
@@ -859,7 +1051,7 @@ export declare const validateProjectViewOptionsDefaultsArray: (input: unknown[])
859
1051
  projectId: string;
860
1052
  viewMode?: "LIST" | "BOARD" | "CALENDAR" | null | undefined;
861
1053
  groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
862
- sortedBy?: "MANUAL" | "PROJECT" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
1054
+ sortedBy?: "PROJECT" | "MANUAL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
863
1055
  sortOrder?: "ASC" | "DESC" | null | undefined;
864
1056
  showCompletedTasks?: boolean | undefined;
865
1057
  filteredBy?: string | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/todoist-api-typescript",
3
- "version": "7.5.0",
3
+ "version": "7.6.0",
4
4
  "description": "A typescript wrapper for the Todoist REST API.",
5
5
  "author": "Doist developers",
6
6
  "repository": "https://github.com/Doist/todoist-api-typescript",