@doist/todoist-api-typescript 7.5.0 → 7.6.1

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 (171) hide show
  1. package/dist/cjs/authentication.js +46 -2
  2. package/dist/cjs/consts/endpoints.js +54 -2
  3. package/dist/cjs/todoist-api.js +524 -6
  4. package/dist/cjs/types/activity/index.js +18 -0
  5. package/dist/cjs/types/activity/requests.js +2 -0
  6. package/dist/cjs/types/activity/types.js +28 -0
  7. package/dist/cjs/types/backups/index.js +18 -0
  8. package/dist/cjs/types/backups/requests.js +2 -0
  9. package/dist/cjs/types/backups/types.js +8 -0
  10. package/dist/cjs/types/comments/index.js +18 -0
  11. package/dist/cjs/types/comments/requests.js +2 -0
  12. package/dist/cjs/types/comments/types.js +60 -0
  13. package/dist/cjs/types/common.js +2 -0
  14. package/dist/cjs/types/emails/index.js +17 -0
  15. package/dist/cjs/types/emails/requests.js +5 -0
  16. package/dist/cjs/types/id-mappings/index.js +18 -0
  17. package/dist/cjs/types/id-mappings/requests.js +20 -0
  18. package/dist/cjs/types/id-mappings/types.js +12 -0
  19. package/dist/cjs/types/index.js +16 -2
  20. package/dist/cjs/types/insights/index.js +18 -0
  21. package/dist/cjs/types/insights/requests.js +2 -0
  22. package/dist/cjs/types/insights/types.js +84 -0
  23. package/dist/cjs/types/labels/index.js +18 -0
  24. package/dist/cjs/types/labels/requests.js +2 -0
  25. package/dist/cjs/types/labels/types.js +11 -0
  26. package/dist/cjs/types/productivity/index.js +17 -0
  27. package/dist/cjs/types/productivity/types.js +67 -0
  28. package/dist/cjs/types/projects/index.js +18 -0
  29. package/dist/cjs/types/projects/requests.js +2 -0
  30. package/dist/cjs/types/projects/types.js +56 -0
  31. package/dist/cjs/types/reminders/index.js +17 -0
  32. package/dist/cjs/types/sections/index.js +18 -0
  33. package/dist/cjs/types/sections/requests.js +2 -0
  34. package/dist/cjs/types/sections/types.js +22 -0
  35. package/dist/cjs/types/sync/commands/shared.js +2 -2
  36. package/dist/cjs/types/sync/resources/collaborators.js +2 -2
  37. package/dist/cjs/types/sync/resources/notes.js +2 -2
  38. package/dist/cjs/types/sync/resources/reminders.js +3 -3
  39. package/dist/cjs/types/sync/resources/user.js +2 -2
  40. package/dist/cjs/types/sync/resources/workspaces.js +5 -5
  41. package/dist/cjs/types/tasks/index.js +18 -0
  42. package/dist/cjs/types/tasks/requests.js +2 -0
  43. package/dist/cjs/types/tasks/types.js +59 -0
  44. package/dist/cjs/types/templates/index.js +17 -0
  45. package/dist/cjs/types/templates/requests.js +2 -0
  46. package/dist/cjs/types/uploads/index.js +17 -0
  47. package/dist/cjs/types/uploads/requests.js +2 -0
  48. package/dist/cjs/types/users/index.js +17 -0
  49. package/dist/cjs/types/users/types.js +51 -0
  50. package/dist/cjs/types/workspaces/index.js +18 -0
  51. package/dist/cjs/types/workspaces/requests.js +2 -0
  52. package/dist/cjs/types/workspaces/types.js +137 -0
  53. package/dist/cjs/utils/validators.js +47 -19
  54. package/dist/esm/authentication.js +46 -3
  55. package/dist/esm/consts/endpoints.js +43 -0
  56. package/dist/esm/todoist-api.js +522 -4
  57. package/dist/esm/types/activity/index.js +2 -0
  58. package/dist/esm/types/activity/requests.js +1 -0
  59. package/dist/esm/types/activity/types.js +25 -0
  60. package/dist/esm/types/backups/index.js +2 -0
  61. package/dist/esm/types/backups/requests.js +1 -0
  62. package/dist/esm/types/backups/types.js +5 -0
  63. package/dist/esm/types/comments/index.js +2 -0
  64. package/dist/esm/types/comments/requests.js +1 -0
  65. package/dist/esm/types/comments/types.js +57 -0
  66. package/dist/esm/types/common.js +1 -0
  67. package/dist/esm/types/emails/index.js +1 -0
  68. package/dist/esm/types/emails/requests.js +2 -0
  69. package/dist/esm/types/id-mappings/index.js +2 -0
  70. package/dist/esm/types/id-mappings/requests.js +17 -0
  71. package/dist/esm/types/id-mappings/types.js +9 -0
  72. package/dist/esm/types/index.js +16 -2
  73. package/dist/esm/types/insights/index.js +2 -0
  74. package/dist/esm/types/insights/requests.js +1 -0
  75. package/dist/esm/types/insights/types.js +81 -0
  76. package/dist/esm/types/labels/index.js +2 -0
  77. package/dist/esm/types/labels/requests.js +1 -0
  78. package/dist/esm/types/labels/types.js +8 -0
  79. package/dist/esm/types/productivity/index.js +1 -0
  80. package/dist/esm/types/productivity/types.js +64 -0
  81. package/dist/esm/types/projects/index.js +2 -0
  82. package/dist/esm/types/projects/requests.js +1 -0
  83. package/dist/esm/types/projects/types.js +53 -0
  84. package/dist/esm/types/reminders/index.js +1 -0
  85. package/dist/esm/types/sections/index.js +2 -0
  86. package/dist/esm/types/sections/requests.js +1 -0
  87. package/dist/esm/types/sections/types.js +19 -0
  88. package/dist/esm/types/sync/commands/shared.js +1 -1
  89. package/dist/esm/types/sync/resources/collaborators.js +1 -1
  90. package/dist/esm/types/sync/resources/notes.js +1 -1
  91. package/dist/esm/types/sync/resources/reminders.js +1 -1
  92. package/dist/esm/types/sync/resources/user.js +1 -1
  93. package/dist/esm/types/sync/resources/workspaces.js +1 -1
  94. package/dist/esm/types/tasks/index.js +2 -0
  95. package/dist/esm/types/tasks/requests.js +1 -0
  96. package/dist/esm/types/tasks/types.js +56 -0
  97. package/dist/esm/types/templates/index.js +1 -0
  98. package/dist/esm/types/templates/requests.js +1 -0
  99. package/dist/esm/types/uploads/index.js +1 -0
  100. package/dist/esm/types/uploads/requests.js +1 -0
  101. package/dist/esm/types/users/index.js +1 -0
  102. package/dist/esm/types/users/types.js +48 -0
  103. package/dist/esm/types/workspaces/index.js +2 -0
  104. package/dist/esm/types/workspaces/requests.js +1 -0
  105. package/dist/esm/types/workspaces/types.js +134 -0
  106. package/dist/esm/utils/validators.js +30 -2
  107. package/dist/types/authentication.d.ts +51 -6
  108. package/dist/types/consts/endpoints.d.ts +22 -0
  109. package/dist/types/test-utils/test-defaults.d.ts +5 -5
  110. package/dist/types/todoist-api.d.ts +209 -4
  111. package/dist/types/types/activity/index.d.ts +2 -0
  112. package/dist/types/types/activity/requests.d.ts +85 -0
  113. package/dist/types/types/activity/types.d.ts +49 -0
  114. package/dist/types/types/backups/index.d.ts +2 -0
  115. package/dist/types/types/backups/requests.d.ts +16 -0
  116. package/dist/types/types/backups/types.d.ts +7 -0
  117. package/dist/types/types/comments/index.d.ts +2 -0
  118. package/dist/types/types/comments/requests.d.ts +63 -0
  119. package/dist/types/types/comments/types.d.ts +141 -0
  120. package/dist/types/types/common.d.ts +6 -0
  121. package/dist/types/types/emails/index.d.ts +1 -0
  122. package/dist/types/types/emails/requests.d.ts +30 -0
  123. package/dist/types/types/id-mappings/index.d.ts +2 -0
  124. package/dist/types/types/id-mappings/requests.d.ts +28 -0
  125. package/dist/types/types/id-mappings/types.d.ts +13 -0
  126. package/dist/types/types/index.d.ts +16 -2
  127. package/dist/types/types/insights/index.d.ts +2 -0
  128. package/dist/types/types/insights/requests.d.ts +26 -0
  129. package/dist/types/types/insights/types.d.ts +186 -0
  130. package/dist/types/types/labels/index.d.ts +2 -0
  131. package/dist/types/types/labels/requests.d.ts +75 -0
  132. package/dist/types/types/labels/types.d.ts +13 -0
  133. package/dist/types/types/productivity/index.d.ts +1 -0
  134. package/dist/types/types/productivity/types.d.ts +115 -0
  135. package/dist/types/types/projects/index.d.ts +2 -0
  136. package/dist/types/types/projects/requests.d.ts +169 -0
  137. package/dist/types/types/projects/types.d.ts +201 -0
  138. package/dist/types/types/reminders/index.d.ts +1 -0
  139. package/dist/types/types/reminders/requests.d.ts +91 -0
  140. package/dist/types/types/sections/index.d.ts +2 -0
  141. package/dist/types/types/sections/requests.d.ts +41 -0
  142. package/dist/types/types/sections/types.d.ts +44 -0
  143. package/dist/types/types/sync/commands/projects.d.ts +2 -1
  144. package/dist/types/types/sync/commands/shared.d.ts +2 -2
  145. package/dist/types/types/sync/commands/workspaces.d.ts +1 -1
  146. package/dist/types/types/sync/resources/notes.d.ts +1 -1
  147. package/dist/types/types/sync/resources/user.d.ts +2 -2
  148. package/dist/types/types/sync/resources/view-options.d.ts +5 -5
  149. package/dist/types/types/sync/response.d.ts +5 -1
  150. package/dist/types/types/sync/user-preferences.d.ts +1 -1
  151. package/dist/types/types/tasks/index.d.ts +2 -0
  152. package/dist/types/types/tasks/requests.d.ts +197 -0
  153. package/dist/types/types/tasks/types.d.ts +162 -0
  154. package/dist/types/types/templates/index.d.ts +1 -0
  155. package/dist/types/types/templates/requests.d.ts +92 -0
  156. package/dist/types/types/uploads/index.d.ts +1 -0
  157. package/dist/types/types/uploads/requests.d.ts +32 -0
  158. package/dist/types/types/users/index.d.ts +1 -0
  159. package/dist/types/types/users/types.d.ts +66 -0
  160. package/dist/types/types/workspaces/index.d.ts +2 -0
  161. package/dist/types/types/workspaces/requests.d.ts +260 -0
  162. package/dist/types/types/workspaces/types.d.ts +225 -0
  163. package/dist/types/utils/colors.d.ts +1 -1
  164. package/dist/types/utils/validators.d.ts +205 -12
  165. package/package.json +1 -1
  166. package/dist/cjs/types/entities.js +0 -437
  167. package/dist/esm/types/entities.js +0 -434
  168. package/dist/types/types/entities.d.ts +0 -971
  169. package/dist/types/types/requests.d.ts +0 -856
  170. /package/dist/cjs/types/{requests.js → reminders/requests.js} +0 -0
  171. /package/dist/esm/types/{requests.js → reminders/requests.js} +0 -0
@@ -1,4 +1,5 @@
1
- import { type WorkspaceProject, type PersonalProject, type WorkspaceUser } from '../types/entities.js';
1
+ import { type WorkspaceProject, type PersonalProject } from '../types/projects/types.js';
2
+ import { type WorkspaceUser } from '../types/workspaces/types.js';
2
3
  export declare const validateTask: (input: unknown) => {
3
4
  isUncompletable: boolean;
4
5
  url: string;
@@ -152,7 +153,7 @@ export declare const validateComment: (input: unknown) => {
152
153
  fileType?: string | null | undefined;
153
154
  fileUrl?: string | null | undefined;
154
155
  fileDuration?: number | null | undefined;
155
- uploadState?: "pending" | "completed" | null | undefined;
156
+ uploadState?: "completed" | "pending" | null | undefined;
156
157
  image?: string | null | undefined;
157
158
  imageWidth?: number | null | undefined;
158
159
  imageHeight?: number | null | undefined;
@@ -177,7 +178,7 @@ export declare const validateCommentArray: (input: unknown[]) => {
177
178
  fileType?: string | null | undefined;
178
179
  fileUrl?: string | null | undefined;
179
180
  fileDuration?: number | null | undefined;
180
- uploadState?: "pending" | "completed" | null | undefined;
181
+ uploadState?: "completed" | "pending" | null | undefined;
181
182
  image?: string | null | undefined;
182
183
  imageWidth?: number | null | undefined;
183
184
  imageHeight?: number | null | undefined;
@@ -340,7 +341,7 @@ export declare const validateAttachment: (input: unknown) => {
340
341
  fileType?: string | null | undefined;
341
342
  fileUrl?: string | null | undefined;
342
343
  fileDuration?: number | null | undefined;
343
- uploadState?: "pending" | "completed" | null | undefined;
344
+ uploadState?: "completed" | "pending" | null | undefined;
344
345
  image?: string | null | undefined;
345
346
  imageWidth?: number | null | undefined;
346
347
  imageHeight?: number | null | undefined;
@@ -449,6 +450,170 @@ export declare const validateWorkspaceArray: (input: unknown[]) => {
449
450
  logoSmall?: string | null | undefined;
450
451
  logoS640?: string | null | undefined;
451
452
  }[];
453
+ export declare const validateMemberActivityInfo: (input: unknown) => {
454
+ userId: string;
455
+ tasksAssigned: number;
456
+ tasksOverdue: number;
457
+ };
458
+ export declare const validateMemberActivityInfoArray: (input: unknown[]) => {
459
+ userId: string;
460
+ tasksAssigned: number;
461
+ tasksOverdue: number;
462
+ }[];
463
+ export declare const validateWorkspaceUserTask: (input: unknown) => {
464
+ id: string;
465
+ content: string;
466
+ responsibleUid: string | null;
467
+ due: {
468
+ isRecurring: boolean;
469
+ string: string;
470
+ date: string;
471
+ datetime?: string | null | undefined;
472
+ timezone?: string | null | undefined;
473
+ lang?: string | null | undefined;
474
+ } | null;
475
+ deadline: {
476
+ date: string;
477
+ lang: string;
478
+ } | null;
479
+ labels: string[];
480
+ notesCount: number;
481
+ projectId: string;
482
+ projectName: string;
483
+ priority: number;
484
+ description: string;
485
+ isOverdue: boolean;
486
+ };
487
+ export declare const validateWorkspaceUserTaskArray: (input: unknown[]) => {
488
+ id: string;
489
+ content: string;
490
+ responsibleUid: string | null;
491
+ due: {
492
+ isRecurring: boolean;
493
+ string: string;
494
+ date: string;
495
+ datetime?: string | null | undefined;
496
+ timezone?: string | null | undefined;
497
+ lang?: string | null | undefined;
498
+ } | null;
499
+ deadline: {
500
+ date: string;
501
+ lang: string;
502
+ } | null;
503
+ labels: string[];
504
+ notesCount: number;
505
+ projectId: string;
506
+ projectName: string;
507
+ priority: number;
508
+ description: string;
509
+ isOverdue: boolean;
510
+ }[];
511
+ export declare const validateProjectActivityStats: (input: unknown) => {
512
+ dayItems: {
513
+ date: string;
514
+ totalCount: number;
515
+ }[];
516
+ weekItems: {
517
+ fromDate: string;
518
+ toDate: string;
519
+ totalCount: number;
520
+ }[] | null;
521
+ };
522
+ export declare const validateProjectHealth: (input: unknown) => {
523
+ status: "UNKNOWN" | "ON_TRACK" | "AT_RISK" | "CRITICAL" | "EXCELLENT" | "ERROR";
524
+ isStale: boolean;
525
+ updateInProgress: boolean;
526
+ description?: string | null | undefined;
527
+ descriptionSummary?: string | null | undefined;
528
+ taskRecommendations?: {
529
+ taskId: string;
530
+ recommendation: string;
531
+ }[] | null | undefined;
532
+ projectId?: string | null | undefined;
533
+ updatedAt?: string | null | undefined;
534
+ };
535
+ export declare const validateProjectHealthContext: (input: unknown) => {
536
+ projectId: string;
537
+ projectName: string;
538
+ projectDescription: string | null;
539
+ projectMetrics: {
540
+ totalTasks: number;
541
+ completedTasks: number;
542
+ overdueTasks: number;
543
+ tasksCreatedThisWeek: number;
544
+ tasksCompletedThisWeek: number;
545
+ averageCompletionTime: number | null;
546
+ };
547
+ tasks: {
548
+ id: string;
549
+ content: string;
550
+ priority: string;
551
+ isCompleted: boolean;
552
+ createdAt: string;
553
+ updatedAt: string;
554
+ completedAt: string | null;
555
+ completedByUid: string | null;
556
+ labels: string[];
557
+ due?: string | null | undefined;
558
+ deadline?: string | null | undefined;
559
+ }[];
560
+ language?: string | null | undefined;
561
+ };
562
+ export declare const validateProjectProgress: (input: unknown) => {
563
+ projectId: string;
564
+ completedCount: number;
565
+ activeCount: number;
566
+ progressPercent: number;
567
+ };
568
+ export declare const validateWorkspaceInsights: (input: unknown) => {
569
+ folderId: string | null;
570
+ projectInsights: {
571
+ projectId: string;
572
+ health: {
573
+ status: "UNKNOWN" | "ON_TRACK" | "AT_RISK" | "CRITICAL" | "EXCELLENT" | "ERROR";
574
+ isStale: boolean;
575
+ updateInProgress: boolean;
576
+ description?: string | null | undefined;
577
+ descriptionSummary?: string | null | undefined;
578
+ taskRecommendations?: {
579
+ taskId: string;
580
+ recommendation: string;
581
+ }[] | null | undefined;
582
+ projectId?: string | null | undefined;
583
+ updatedAt?: string | null | undefined;
584
+ } | null;
585
+ progress: {
586
+ projectId: string;
587
+ completedCount: number;
588
+ activeCount: number;
589
+ progressPercent: number;
590
+ } | null;
591
+ }[];
592
+ };
593
+ export declare const validateBackup: (input: unknown) => {
594
+ version: string;
595
+ url: string;
596
+ };
597
+ export declare const validateBackupArray: (input: unknown[]) => {
598
+ version: string;
599
+ url: string;
600
+ }[];
601
+ export declare const validateIdMapping: (input: unknown) => {
602
+ oldId: string | null;
603
+ newId: string | null;
604
+ };
605
+ export declare const validateIdMappingArray: (input: unknown[]) => {
606
+ oldId: string | null;
607
+ newId: string | null;
608
+ }[];
609
+ export declare const validateMovedId: (input: unknown) => {
610
+ oldId: string;
611
+ newId: string;
612
+ };
613
+ export declare const validateMovedIdArray: (input: unknown[]) => {
614
+ oldId: string;
615
+ newId: string;
616
+ }[];
452
617
  export declare const validateFilter: (input: unknown) => {
453
618
  [x: string]: unknown;
454
619
  id: string;
@@ -533,7 +698,7 @@ export declare const validateNote: (input: unknown) => {
533
698
  fileType?: string | null | undefined;
534
699
  fileUrl?: string | null | undefined;
535
700
  fileDuration?: number | null | undefined;
536
- uploadState?: "pending" | "completed" | null | undefined;
701
+ uploadState?: "completed" | "pending" | null | undefined;
537
702
  image?: string | null | undefined;
538
703
  imageWidth?: number | null | undefined;
539
704
  imageHeight?: number | null | undefined;
@@ -559,7 +724,7 @@ export declare const validateNoteArray: (input: unknown[]) => {
559
724
  fileType?: string | null | undefined;
560
725
  fileUrl?: string | null | undefined;
561
726
  fileDuration?: number | null | undefined;
562
- uploadState?: "pending" | "completed" | null | undefined;
727
+ uploadState?: "completed" | "pending" | null | undefined;
563
728
  image?: string | null | undefined;
564
729
  imageWidth?: number | null | undefined;
565
730
  imageHeight?: number | null | undefined;
@@ -786,6 +951,34 @@ export declare const validateReminderArray: (input: unknown[]) => ({
786
951
  } | undefined;
787
952
  isUrgent?: boolean | undefined;
788
953
  })[];
954
+ export declare const validateLocationReminder: (input: unknown) => {
955
+ [x: string]: unknown;
956
+ id: string;
957
+ notifyUid: string;
958
+ itemId: string;
959
+ isDeleted: boolean;
960
+ type: "location";
961
+ name: string;
962
+ locLat: string;
963
+ locLong: string;
964
+ locTrigger: "on_enter" | "on_leave";
965
+ radius: number;
966
+ projectId?: string | undefined;
967
+ };
968
+ export declare const validateLocationReminderArray: (input: unknown[]) => {
969
+ [x: string]: unknown;
970
+ id: string;
971
+ notifyUid: string;
972
+ itemId: string;
973
+ isDeleted: boolean;
974
+ type: "location";
975
+ name: string;
976
+ locLat: string;
977
+ locLong: string;
978
+ locTrigger: "on_enter" | "on_leave";
979
+ radius: number;
980
+ projectId?: string | undefined;
981
+ }[];
789
982
  export declare const validateCompletedInfo: (input: unknown) => {
790
983
  [x: string]: unknown;
791
984
  projectId: string;
@@ -820,24 +1013,24 @@ export declare const validateCompletedInfoArray: (input: unknown[]) => ({
820
1013
  })[];
821
1014
  export declare const validateViewOptions: (input: unknown) => {
822
1015
  [x: string]: unknown;
823
- viewType: "TODAY" | "UPCOMING" | "PROJECT" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "OVERDUE" | "WORKSPACE_OVERVIEW";
1016
+ viewType: "PROJECT" | "TODAY" | "UPCOMING" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "OVERDUE" | "WORKSPACE_OVERVIEW";
824
1017
  objectId?: string | undefined;
825
1018
  groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
826
1019
  filteredBy?: string | null | undefined;
827
1020
  viewMode?: "LIST" | "BOARD" | "CALENDAR" | undefined;
828
1021
  showCompletedTasks?: boolean | undefined;
829
- sortedBy?: "MANUAL" | "PROJECT" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
1022
+ sortedBy?: "PROJECT" | "MANUAL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
830
1023
  sortOrder?: "ASC" | "DESC" | null | undefined;
831
1024
  };
832
1025
  export declare const validateViewOptionsArray: (input: unknown[]) => {
833
1026
  [x: string]: unknown;
834
- viewType: "TODAY" | "UPCOMING" | "PROJECT" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "OVERDUE" | "WORKSPACE_OVERVIEW";
1027
+ viewType: "PROJECT" | "TODAY" | "UPCOMING" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "OVERDUE" | "WORKSPACE_OVERVIEW";
835
1028
  objectId?: string | undefined;
836
1029
  groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
837
1030
  filteredBy?: string | null | undefined;
838
1031
  viewMode?: "LIST" | "BOARD" | "CALENDAR" | undefined;
839
1032
  showCompletedTasks?: boolean | undefined;
840
- sortedBy?: "MANUAL" | "PROJECT" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
1033
+ sortedBy?: "PROJECT" | "MANUAL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
841
1034
  sortOrder?: "ASC" | "DESC" | null | undefined;
842
1035
  }[];
843
1036
  export declare const validateProjectViewOptionsDefaults: (input: unknown) => {
@@ -845,7 +1038,7 @@ export declare const validateProjectViewOptionsDefaults: (input: unknown) => {
845
1038
  projectId: string;
846
1039
  viewMode?: "LIST" | "BOARD" | "CALENDAR" | null | undefined;
847
1040
  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;
1041
+ sortedBy?: "PROJECT" | "MANUAL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
849
1042
  sortOrder?: "ASC" | "DESC" | null | undefined;
850
1043
  showCompletedTasks?: boolean | undefined;
851
1044
  filteredBy?: string | null | undefined;
@@ -859,7 +1052,7 @@ export declare const validateProjectViewOptionsDefaultsArray: (input: unknown[])
859
1052
  projectId: string;
860
1053
  viewMode?: "LIST" | "BOARD" | "CALENDAR" | null | undefined;
861
1054
  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;
1055
+ sortedBy?: "PROJECT" | "MANUAL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
863
1056
  sortOrder?: "ASC" | "DESC" | null | undefined;
864
1057
  showCompletedTasks?: boolean | undefined;
865
1058
  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.1",
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",