@doist/todoist-api-typescript 7.4.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.
- package/README.md +2 -0
- package/dist/cjs/authentication.js +50 -6
- package/dist/cjs/consts/endpoints.js +63 -1
- package/dist/cjs/test-utils/test-defaults.js +33 -1
- package/dist/cjs/todoist-api.js +1130 -168
- package/dist/cjs/{utils → transport}/fetch-with-retry.js +23 -71
- package/dist/cjs/{rest-client.js → transport/http-client.js} +5 -5
- package/dist/cjs/transport/http-dispatcher.js +72 -0
- package/dist/cjs/types/entities.js +124 -1
- package/dist/cjs/types/errors.js +9 -1
- package/dist/cjs/types/http.js +3 -1
- package/dist/cjs/types/requests.js +24 -0
- package/dist/cjs/types/sync/commands/shared.js +2 -8
- package/dist/cjs/types/sync/resources/reminders.js +2 -0
- package/dist/cjs/utils/multipart-upload.js +1 -1
- package/dist/cjs/utils/validators.js +19 -2
- package/dist/esm/authentication.js +47 -4
- package/dist/esm/consts/endpoints.js +52 -0
- package/dist/esm/test-utils/test-defaults.js +32 -0
- package/dist/esm/todoist-api.js +1061 -99
- package/dist/esm/{utils → transport}/fetch-with-retry.js +23 -38
- package/dist/esm/{rest-client.js → transport/http-client.js} +5 -5
- package/dist/esm/transport/http-dispatcher.js +35 -0
- package/dist/esm/types/entities.js +122 -0
- package/dist/esm/types/errors.js +7 -0
- package/dist/esm/types/http.js +3 -1
- package/dist/esm/types/requests.js +23 -1
- package/dist/esm/types/sync/commands/shared.js +1 -8
- package/dist/esm/types/sync/resources/reminders.js +2 -0
- package/dist/esm/utils/multipart-upload.js +1 -1
- package/dist/esm/utils/validators.js +19 -2
- package/dist/types/authentication.d.ts +51 -6
- package/dist/types/consts/endpoints.d.ts +31 -0
- package/dist/types/test-utils/test-defaults.d.ts +5 -1
- package/dist/types/todoist-api.d.ts +338 -6
- package/dist/types/{utils → transport}/fetch-with-retry.d.ts +1 -1
- package/dist/types/{rest-client.d.ts → transport/http-client.d.ts} +1 -1
- package/dist/types/transport/http-dispatcher.d.ts +3 -0
- package/dist/types/types/entities.d.ts +258 -14
- package/dist/types/types/errors.d.ts +4 -0
- package/dist/types/types/requests.d.ts +537 -43
- package/dist/types/types/sync/commands/projects.d.ts +2 -2
- package/dist/types/types/sync/commands/shared.d.ts +1 -4
- package/dist/types/types/sync/resources/reminders.d.ts +4 -0
- package/dist/types/types/sync/resources/user.d.ts +2 -2
- package/dist/types/types/sync/resources/view-options.d.ts +5 -5
- package/dist/types/types/sync/user-preferences.d.ts +1 -1
- package/dist/types/utils/validators.d.ts +202 -6
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ProjectViewStyle, ProjectVisibility, WorkspaceRole } from '../../entities.js';
|
|
2
|
-
import type { ProjectStatus
|
|
1
|
+
import type { ProjectViewStyle, ProjectVisibility, WorkspaceRole, CollaboratorRole } from '../../entities.js';
|
|
2
|
+
import type { ProjectStatus } from './shared.js';
|
|
3
3
|
import type { ColorKey } from '../../../utils/colors.js';
|
|
4
4
|
export type ProjectAccessConfig = {
|
|
5
5
|
visibility: ProjectVisibility;
|
|
@@ -35,10 +35,7 @@ export type TaskPriority = 1 | 2 | 3 | 4;
|
|
|
35
35
|
export declare const PROJECT_STATUSES: readonly ["PLANNED", "IN_PROGRESS", "PAUSED", "COMPLETED", "CANCELED"];
|
|
36
36
|
/** Project workflow status. */
|
|
37
37
|
export type ProjectStatus = (typeof PROJECT_STATUSES)[number];
|
|
38
|
-
|
|
39
|
-
export declare const COLLABORATOR_ROLES: readonly ["CREATOR", "ADMIN", "READ_WRITE", "EDIT_ONLY", "COMPLETE_ONLY"];
|
|
40
|
-
/** Default collaborator role for a project. */
|
|
41
|
-
export type CollaboratorRole = (typeof COLLABORATOR_ROLES)[number];
|
|
38
|
+
export { COLLABORATOR_ROLES, type CollaboratorRole } from '../../entities.js';
|
|
42
39
|
/** Available reminder notification services. */
|
|
43
40
|
export declare const REMINDER_SERVICES: readonly ["default", "email", "mobile", "push", "no_default"];
|
|
44
41
|
/** Reminder notification service. */
|
|
@@ -42,6 +42,7 @@ export declare const AbsoluteReminderSchema: z.ZodObject<{
|
|
|
42
42
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
43
|
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
}, z.core.$strip>;
|
|
45
|
+
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
45
46
|
}, z.core.$loose>;
|
|
46
47
|
export type AbsoluteReminder = z.infer<typeof AbsoluteReminderSchema>;
|
|
47
48
|
export declare const RelativeReminderSchema: z.ZodObject<{
|
|
@@ -60,6 +61,7 @@ export declare const RelativeReminderSchema: z.ZodObject<{
|
|
|
60
61
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
62
|
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
63
|
}, z.core.$strip>>;
|
|
64
|
+
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
63
65
|
}, z.core.$loose>;
|
|
64
66
|
export type RelativeReminder = z.infer<typeof RelativeReminderSchema>;
|
|
65
67
|
export declare const ReminderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -92,6 +94,7 @@ export declare const ReminderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
92
94
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
95
|
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
96
|
}, z.core.$strip>;
|
|
97
|
+
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
95
98
|
}, z.core.$loose>, z.ZodObject<{
|
|
96
99
|
id: z.ZodString;
|
|
97
100
|
notifyUid: z.ZodString;
|
|
@@ -108,5 +111,6 @@ export declare const ReminderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
108
111
|
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
112
|
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
113
|
}, z.core.$strip>>;
|
|
114
|
+
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
111
115
|
}, z.core.$loose>], "type">;
|
|
112
116
|
export type Reminder = z.infer<typeof ReminderSchema>;
|
|
@@ -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 |
|
|
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 |
|
|
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 |
|
|
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;
|
|
@@ -717,6 +881,7 @@ export declare const validateReminder: (input: unknown) => {
|
|
|
717
881
|
lang?: string | null | undefined;
|
|
718
882
|
};
|
|
719
883
|
projectId?: string | undefined;
|
|
884
|
+
isUrgent?: boolean | undefined;
|
|
720
885
|
} | {
|
|
721
886
|
[x: string]: unknown;
|
|
722
887
|
id: string;
|
|
@@ -734,6 +899,7 @@ export declare const validateReminder: (input: unknown) => {
|
|
|
734
899
|
timezone?: string | null | undefined;
|
|
735
900
|
lang?: string | null | undefined;
|
|
736
901
|
} | undefined;
|
|
902
|
+
isUrgent?: boolean | undefined;
|
|
737
903
|
};
|
|
738
904
|
export declare const validateReminderArray: (input: unknown[]) => ({
|
|
739
905
|
[x: string]: unknown;
|
|
@@ -764,6 +930,7 @@ export declare const validateReminderArray: (input: unknown[]) => ({
|
|
|
764
930
|
lang?: string | null | undefined;
|
|
765
931
|
};
|
|
766
932
|
projectId?: string | undefined;
|
|
933
|
+
isUrgent?: boolean | undefined;
|
|
767
934
|
} | {
|
|
768
935
|
[x: string]: unknown;
|
|
769
936
|
id: string;
|
|
@@ -781,7 +948,36 @@ export declare const validateReminderArray: (input: unknown[]) => ({
|
|
|
781
948
|
timezone?: string | null | undefined;
|
|
782
949
|
lang?: string | null | undefined;
|
|
783
950
|
} | undefined;
|
|
951
|
+
isUrgent?: boolean | undefined;
|
|
784
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
|
+
}[];
|
|
785
981
|
export declare const validateCompletedInfo: (input: unknown) => {
|
|
786
982
|
[x: string]: unknown;
|
|
787
983
|
projectId: string;
|
|
@@ -816,24 +1012,24 @@ export declare const validateCompletedInfoArray: (input: unknown[]) => ({
|
|
|
816
1012
|
})[];
|
|
817
1013
|
export declare const validateViewOptions: (input: unknown) => {
|
|
818
1014
|
[x: string]: unknown;
|
|
819
|
-
viewType: "
|
|
1015
|
+
viewType: "PROJECT" | "TODAY" | "UPCOMING" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "OVERDUE" | "WORKSPACE_OVERVIEW";
|
|
820
1016
|
objectId?: string | undefined;
|
|
821
1017
|
groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
|
|
822
1018
|
filteredBy?: string | null | undefined;
|
|
823
1019
|
viewMode?: "LIST" | "BOARD" | "CALENDAR" | undefined;
|
|
824
1020
|
showCompletedTasks?: boolean | undefined;
|
|
825
|
-
sortedBy?: "
|
|
1021
|
+
sortedBy?: "PROJECT" | "MANUAL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
|
|
826
1022
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
827
1023
|
};
|
|
828
1024
|
export declare const validateViewOptionsArray: (input: unknown[]) => {
|
|
829
1025
|
[x: string]: unknown;
|
|
830
|
-
viewType: "
|
|
1026
|
+
viewType: "PROJECT" | "TODAY" | "UPCOMING" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "OVERDUE" | "WORKSPACE_OVERVIEW";
|
|
831
1027
|
objectId?: string | undefined;
|
|
832
1028
|
groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
|
|
833
1029
|
filteredBy?: string | null | undefined;
|
|
834
1030
|
viewMode?: "LIST" | "BOARD" | "CALENDAR" | undefined;
|
|
835
1031
|
showCompletedTasks?: boolean | undefined;
|
|
836
|
-
sortedBy?: "
|
|
1032
|
+
sortedBy?: "PROJECT" | "MANUAL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
|
|
837
1033
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
838
1034
|
}[];
|
|
839
1035
|
export declare const validateProjectViewOptionsDefaults: (input: unknown) => {
|
|
@@ -841,7 +1037,7 @@ export declare const validateProjectViewOptionsDefaults: (input: unknown) => {
|
|
|
841
1037
|
projectId: string;
|
|
842
1038
|
viewMode?: "LIST" | "BOARD" | "CALENDAR" | null | undefined;
|
|
843
1039
|
groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
|
|
844
|
-
sortedBy?: "
|
|
1040
|
+
sortedBy?: "PROJECT" | "MANUAL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
|
|
845
1041
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
846
1042
|
showCompletedTasks?: boolean | undefined;
|
|
847
1043
|
filteredBy?: string | null | undefined;
|
|
@@ -855,7 +1051,7 @@ export declare const validateProjectViewOptionsDefaultsArray: (input: unknown[])
|
|
|
855
1051
|
projectId: string;
|
|
856
1052
|
viewMode?: "LIST" | "BOARD" | "CALENDAR" | null | undefined;
|
|
857
1053
|
groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
|
|
858
|
-
sortedBy?: "
|
|
1054
|
+
sortedBy?: "PROJECT" | "MANUAL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "ALPHABETICALLY" | null | undefined;
|
|
859
1055
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
860
1056
|
showCompletedTasks?: boolean | undefined;
|
|
861
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.
|
|
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",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"engines": {
|
|
22
|
-
"node": ">=20.
|
|
22
|
+
"node": ">=20.18.1"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"clean": "rimraf dist",
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"dotenv": "17.3.1",
|
|
59
59
|
"husky": "9.1.7",
|
|
60
60
|
"lint-staged": "16.2.7",
|
|
61
|
-
"msw": "2.12.
|
|
61
|
+
"msw": "2.12.13",
|
|
62
62
|
"npm-run-all2": "8.0.4",
|
|
63
63
|
"obsidian": "^1.10.2-1",
|
|
64
64
|
"oxlint": "1.57.0",
|
|
65
65
|
"prettier": "3.3.2",
|
|
66
|
-
"rimraf": "6.1.
|
|
66
|
+
"rimraf": "6.1.3",
|
|
67
67
|
"ts-node": "10.9.2",
|
|
68
68
|
"type-fest": "^5.0.0",
|
|
69
69
|
"typescript": "5.9.3",
|