ticktick-mcp 0.1.0 → 0.2.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/dist/index.js +508 -22
- package/dist/index.js.map +1 -1
- package/dist/sdk/__tests__/client.test.d.ts +2 -0
- package/dist/sdk/__tests__/client.test.d.ts.map +1 -0
- package/dist/sdk/__tests__/client.test.js +251 -0
- package/dist/sdk/__tests__/client.test.js.map +1 -0
- package/dist/sdk/__tests__/errors.test.d.ts +2 -0
- package/dist/sdk/__tests__/errors.test.d.ts.map +1 -0
- package/dist/sdk/__tests__/errors.test.js +164 -0
- package/dist/sdk/__tests__/errors.test.js.map +1 -0
- package/dist/sdk/__tests__/types.test.d.ts +2 -0
- package/dist/sdk/__tests__/types.test.d.ts.map +1 -0
- package/dist/sdk/__tests__/types.test.js +134 -0
- package/dist/sdk/__tests__/types.test.js.map +1 -0
- package/dist/sdk/client.d.ts +10 -2
- package/dist/sdk/client.d.ts.map +1 -1
- package/dist/sdk/client.js +14 -3
- package/dist/sdk/client.js.map +1 -1
- package/dist/sdk/index.d.ts +5 -3
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +10 -2
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/types.d.ts +215 -23
- package/dist/sdk/types.d.ts.map +1 -1
- package/dist/sdk/types.js +169 -6
- package/dist/sdk/types.js.map +1 -1
- package/package.json +14 -4
package/dist/sdk/types.d.ts
CHANGED
|
@@ -6,36 +6,192 @@
|
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* Task priority levels.
|
|
9
|
+
* Values match TickTick API: 0=None, 1=Low, 3=Medium, 5=High
|
|
9
10
|
*/
|
|
10
11
|
export declare enum Priority {
|
|
12
|
+
/** No priority set (default) */
|
|
11
13
|
None = 0,
|
|
14
|
+
/** Low priority - can wait */
|
|
12
15
|
Low = 1,
|
|
16
|
+
/** Medium priority - should be done soon */
|
|
13
17
|
Medium = 3,
|
|
18
|
+
/** High priority - urgent/important */
|
|
14
19
|
High = 5
|
|
15
20
|
}
|
|
16
21
|
/**
|
|
17
|
-
* Task
|
|
22
|
+
* Task status.
|
|
23
|
+
* Note: Task and ChecklistItem have different completed values.
|
|
18
24
|
*/
|
|
19
|
-
export declare enum
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
export declare enum TaskStatus {
|
|
26
|
+
/** Task is active and not yet completed */
|
|
27
|
+
Active = 0,
|
|
28
|
+
/** Task has been completed */
|
|
29
|
+
Completed = 2
|
|
22
30
|
}
|
|
23
31
|
/**
|
|
24
|
-
*
|
|
32
|
+
* Checklist item status.
|
|
25
33
|
*/
|
|
26
|
-
export
|
|
34
|
+
export declare enum ChecklistItemStatus {
|
|
35
|
+
/** Subtask is unchecked/incomplete */
|
|
36
|
+
Unchecked = 0,
|
|
37
|
+
/** Subtask is checked/complete */
|
|
38
|
+
Checked = 1
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Project view modes available in TickTick.
|
|
42
|
+
*/
|
|
43
|
+
export declare enum ViewMode {
|
|
44
|
+
/** Traditional list view - tasks in a vertical list */
|
|
45
|
+
List = "list",
|
|
46
|
+
/** Kanban board view - tasks in columns by status */
|
|
47
|
+
Kanban = "kanban",
|
|
48
|
+
/** Timeline/Gantt view - tasks on a calendar timeline */
|
|
49
|
+
Timeline = "timeline"
|
|
50
|
+
}
|
|
27
51
|
/**
|
|
28
|
-
*
|
|
52
|
+
* Types of projects in TickTick.
|
|
29
53
|
*/
|
|
30
|
-
export
|
|
54
|
+
export declare enum ProjectKind {
|
|
55
|
+
/** Standard task list project */
|
|
56
|
+
Task = "TASK",
|
|
57
|
+
/** Note-taking project */
|
|
58
|
+
Note = "NOTE"
|
|
59
|
+
}
|
|
31
60
|
/**
|
|
32
61
|
* Task kind.
|
|
33
62
|
*/
|
|
34
|
-
export type TaskKind = "TEXT";
|
|
63
|
+
export type TaskKind = "TEXT" | "NOTE" | "CHECKLIST";
|
|
64
|
+
/**
|
|
65
|
+
* Project permission level.
|
|
66
|
+
*/
|
|
67
|
+
export type Permission = "read" | "write" | "comment";
|
|
35
68
|
/**
|
|
36
69
|
* API region configuration.
|
|
37
70
|
*/
|
|
38
71
|
export type Region = "global" | "china";
|
|
72
|
+
/**
|
|
73
|
+
* Reminder trigger in iCalendar TRIGGER format.
|
|
74
|
+
* Examples: 'TRIGGER:PT0S' (at time), 'TRIGGER:-PT15M' (15 minutes before)
|
|
75
|
+
*/
|
|
76
|
+
export type ReminderTrigger = string;
|
|
77
|
+
/**
|
|
78
|
+
* Reminder at the exact time of the task.
|
|
79
|
+
*/
|
|
80
|
+
export declare const REMINDER_AT_TIME: ReminderTrigger;
|
|
81
|
+
/**
|
|
82
|
+
* Create a reminder trigger for X minutes before the task.
|
|
83
|
+
*
|
|
84
|
+
* @param minutes - Number of minutes before the task (positive number)
|
|
85
|
+
* @returns iCalendar TRIGGER string
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```typescript
|
|
89
|
+
* reminderMinutesBefore(15) // 15 minutes before
|
|
90
|
+
* reminderMinutesBefore(30) // 30 minutes before
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
export declare function reminderMinutesBefore(minutes: number): ReminderTrigger;
|
|
94
|
+
/**
|
|
95
|
+
* Create a reminder trigger for X hours before the task.
|
|
96
|
+
*
|
|
97
|
+
* @param hours - Number of hours before the task (positive number)
|
|
98
|
+
* @returns iCalendar TRIGGER string
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```typescript
|
|
102
|
+
* reminderHoursBefore(1) // 1 hour before
|
|
103
|
+
* reminderHoursBefore(24) // 1 day before
|
|
104
|
+
* ```
|
|
105
|
+
*/
|
|
106
|
+
export declare function reminderHoursBefore(hours: number): ReminderTrigger;
|
|
107
|
+
/**
|
|
108
|
+
* Create a reminder trigger for X days before the task.
|
|
109
|
+
*
|
|
110
|
+
* @param days - Number of days before the task (positive number)
|
|
111
|
+
* @returns iCalendar TRIGGER string
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```typescript
|
|
115
|
+
* reminderDaysBefore(1) // 1 day before
|
|
116
|
+
* reminderDaysBefore(7) // 1 week before
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
export declare function reminderDaysBefore(days: number): ReminderTrigger;
|
|
120
|
+
/**
|
|
121
|
+
* Recurrence rule in iCalendar RRULE format.
|
|
122
|
+
* Examples: 'RRULE:FREQ=DAILY;INTERVAL=1', 'RRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=MO,WE,FR'
|
|
123
|
+
*/
|
|
124
|
+
export type RecurrenceRule = string;
|
|
125
|
+
/**
|
|
126
|
+
* Recurrence frequency types.
|
|
127
|
+
*/
|
|
128
|
+
export type Frequency = 'DAILY' | 'WEEKLY' | 'MONTHLY' | 'YEARLY';
|
|
129
|
+
/**
|
|
130
|
+
* Days of the week in iCalendar format.
|
|
131
|
+
*/
|
|
132
|
+
export type Weekday = 'MO' | 'TU' | 'WE' | 'TH' | 'FR' | 'SA' | 'SU';
|
|
133
|
+
/**
|
|
134
|
+
* Create a daily recurrence rule.
|
|
135
|
+
*
|
|
136
|
+
* @param interval - Number of days between recurrences (default: 1 = every day)
|
|
137
|
+
* @returns iCalendar RRULE string
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* ```typescript
|
|
141
|
+
* repeatDaily() // Every day
|
|
142
|
+
* repeatDaily(1) // Every day
|
|
143
|
+
* repeatDaily(2) // Every 2 days
|
|
144
|
+
* repeatDaily(7) // Every week (7 days)
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
export declare function repeatDaily(interval?: number): RecurrenceRule;
|
|
148
|
+
/**
|
|
149
|
+
* Create a weekly recurrence rule.
|
|
150
|
+
*
|
|
151
|
+
* @param interval - Number of weeks between recurrences (default: 1 = every week)
|
|
152
|
+
* @param days - Optional array of weekdays (e.g., ['MO', 'WE', 'FR'] for Mon/Wed/Fri)
|
|
153
|
+
* @returns iCalendar RRULE string
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* ```typescript
|
|
157
|
+
* repeatWeekly() // Every week
|
|
158
|
+
* repeatWeekly(1) // Every week
|
|
159
|
+
* repeatWeekly(2) // Every 2 weeks
|
|
160
|
+
* repeatWeekly(1, ['MO', 'WE', 'FR']) // Every Mon, Wed, Fri
|
|
161
|
+
* repeatWeekly(2, ['SA', 'SU']) // Every other weekend
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
export declare function repeatWeekly(interval?: number, days?: Weekday[]): RecurrenceRule;
|
|
165
|
+
/**
|
|
166
|
+
* Create a monthly recurrence rule.
|
|
167
|
+
*
|
|
168
|
+
* @param interval - Number of months between recurrences (default: 1 = every month)
|
|
169
|
+
* @returns iCalendar RRULE string
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* ```typescript
|
|
173
|
+
* repeatMonthly() // Every month
|
|
174
|
+
* repeatMonthly(1) // Every month
|
|
175
|
+
* repeatMonthly(3) // Every quarter (3 months)
|
|
176
|
+
* repeatMonthly(6) // Every 6 months
|
|
177
|
+
* repeatMonthly(12) // Every year (12 months)
|
|
178
|
+
* ```
|
|
179
|
+
*/
|
|
180
|
+
export declare function repeatMonthly(interval?: number): RecurrenceRule;
|
|
181
|
+
/**
|
|
182
|
+
* Create a yearly recurrence rule.
|
|
183
|
+
*
|
|
184
|
+
* @param interval - Number of years between recurrences (default: 1 = every year)
|
|
185
|
+
* @returns iCalendar RRULE string
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* ```typescript
|
|
189
|
+
* repeatYearly() // Every year
|
|
190
|
+
* repeatYearly(1) // Every year
|
|
191
|
+
* repeatYearly(2) // Every 2 years
|
|
192
|
+
* ```
|
|
193
|
+
*/
|
|
194
|
+
export declare function repeatYearly(interval?: number): RecurrenceRule;
|
|
39
195
|
/**
|
|
40
196
|
* TickTick user information.
|
|
41
197
|
*/
|
|
@@ -56,7 +212,7 @@ export interface ChecklistItem {
|
|
|
56
212
|
/** Item text/title */
|
|
57
213
|
title: string;
|
|
58
214
|
/** Item status: 0 = unchecked, 1 = checked */
|
|
59
|
-
status:
|
|
215
|
+
status: ChecklistItemStatus;
|
|
60
216
|
/** When the item was completed (ISO 8601) */
|
|
61
217
|
completedTime: string | null;
|
|
62
218
|
/** Whether this has an all-day date */
|
|
@@ -75,7 +231,7 @@ export interface ChecklistItemInput {
|
|
|
75
231
|
/** Item text/title */
|
|
76
232
|
title: string;
|
|
77
233
|
/** Item status: 0 = unchecked, 1 = checked */
|
|
78
|
-
status?:
|
|
234
|
+
status?: ChecklistItemStatus;
|
|
79
235
|
/** Whether this has an all-day date */
|
|
80
236
|
isAllDay?: boolean;
|
|
81
237
|
/** Start date (ISO 8601) */
|
|
@@ -100,28 +256,36 @@ export interface Task {
|
|
|
100
256
|
/** Additional description */
|
|
101
257
|
desc: string;
|
|
102
258
|
/** Whether this is an all-day task */
|
|
103
|
-
|
|
259
|
+
isAllDay: boolean;
|
|
104
260
|
/** Start date (ISO 8601) */
|
|
105
261
|
startDate: string | null;
|
|
106
262
|
/** Due date (ISO 8601) */
|
|
107
263
|
dueDate: string | null;
|
|
108
264
|
/** IANA timezone */
|
|
109
265
|
timeZone: string;
|
|
110
|
-
/**
|
|
266
|
+
/**
|
|
267
|
+
* Whether the date is timezone-independent (floating).
|
|
268
|
+
* Note: Field is present in API responses but not documented in official API docs.
|
|
269
|
+
* Floating dates are not anchored to a specific timezone.
|
|
270
|
+
*/
|
|
111
271
|
isFloating: boolean;
|
|
112
272
|
/** Array of reminders (iCalendar TRIGGER format) */
|
|
113
273
|
reminders: string[];
|
|
114
274
|
/** Recurrence rule (RRULE format) */
|
|
115
|
-
|
|
275
|
+
repeatFlag: string;
|
|
116
276
|
/** Priority: 0=None, 1=Low, 3=Medium, 5=High */
|
|
117
277
|
priority: Priority;
|
|
118
|
-
/** Status: 0=Normal,
|
|
119
|
-
status:
|
|
278
|
+
/** Status: 0=Normal, 2=Completed */
|
|
279
|
+
status: TaskStatus;
|
|
120
280
|
/** When task was completed (ISO 8601) */
|
|
121
281
|
completedTime: string | null;
|
|
122
282
|
/** Position in list */
|
|
123
283
|
sortOrder: number;
|
|
124
|
-
/**
|
|
284
|
+
/**
|
|
285
|
+
* Array of tag names.
|
|
286
|
+
* Note: Tags field is present in API responses but not documented in official API docs.
|
|
287
|
+
* Field has been verified to work in practice.
|
|
288
|
+
*/
|
|
125
289
|
tags: string[];
|
|
126
290
|
/** Array of subtasks/checklist items */
|
|
127
291
|
items: ChecklistItem[];
|
|
@@ -144,12 +308,15 @@ export interface Task {
|
|
|
144
308
|
export interface CreateTaskInput {
|
|
145
309
|
/** Task title (required) */
|
|
146
310
|
title: string;
|
|
147
|
-
/**
|
|
311
|
+
/**
|
|
312
|
+
* Project ID - if not specified, task will be created in the default inbox project.
|
|
313
|
+
* Note: API behavior may vary - if tasks are not appearing, provide an explicit projectId.
|
|
314
|
+
*/
|
|
148
315
|
projectId?: string;
|
|
149
316
|
/** Task description/notes */
|
|
150
317
|
content?: string;
|
|
151
318
|
/** Whether this is an all-day task */
|
|
152
|
-
|
|
319
|
+
isAllDay?: boolean;
|
|
153
320
|
/** Start date (ISO 8601: yyyy-MM-dd'T'HH:mm:ssZ) */
|
|
154
321
|
startDate?: string;
|
|
155
322
|
/** Due date (ISO 8601: yyyy-MM-dd'T'HH:mm:ssZ) */
|
|
@@ -159,11 +326,15 @@ export interface CreateTaskInput {
|
|
|
159
326
|
/** Array of reminders in iCalendar TRIGGER format */
|
|
160
327
|
reminders?: string[];
|
|
161
328
|
/** Recurrence rule in RRULE format */
|
|
162
|
-
|
|
329
|
+
repeatFlag?: string;
|
|
163
330
|
/** Priority: 0=None, 1=Low, 3=Medium, 5=High */
|
|
164
331
|
priority?: Priority;
|
|
165
332
|
/** Array of subtask/checklist items */
|
|
166
333
|
items?: ChecklistItemInput[];
|
|
334
|
+
/** Position in task list */
|
|
335
|
+
sortOrder?: number;
|
|
336
|
+
/** Additional description */
|
|
337
|
+
desc?: string;
|
|
167
338
|
}
|
|
168
339
|
/**
|
|
169
340
|
* Input for updating an existing task.
|
|
@@ -177,7 +348,7 @@ export interface UpdateTaskInput {
|
|
|
177
348
|
/** Task description/notes */
|
|
178
349
|
content?: string;
|
|
179
350
|
/** Whether this is an all-day task */
|
|
180
|
-
|
|
351
|
+
isAllDay?: boolean;
|
|
181
352
|
/** Start date (ISO 8601) */
|
|
182
353
|
startDate?: string | null;
|
|
183
354
|
/** Due date (ISO 8601) */
|
|
@@ -187,7 +358,7 @@ export interface UpdateTaskInput {
|
|
|
187
358
|
/** Array of reminders in iCalendar TRIGGER format */
|
|
188
359
|
reminders?: string[];
|
|
189
360
|
/** Recurrence rule in RRULE format */
|
|
190
|
-
|
|
361
|
+
repeatFlag?: string;
|
|
191
362
|
/** Priority: 0=None, 1=Low, 3=Medium, 5=High */
|
|
192
363
|
priority?: Priority;
|
|
193
364
|
/** Array of subtask/checklist items */
|
|
@@ -215,6 +386,8 @@ export interface Project {
|
|
|
215
386
|
viewMode: ViewMode;
|
|
216
387
|
/** Project type: "TASK" or "NOTE" */
|
|
217
388
|
kind: ProjectKind;
|
|
389
|
+
/** Permission level: "read", "write", or "comment" */
|
|
390
|
+
permission?: Permission;
|
|
218
391
|
}
|
|
219
392
|
/**
|
|
220
393
|
* Input for creating a new project.
|
|
@@ -228,6 +401,8 @@ export interface CreateProjectInput {
|
|
|
228
401
|
viewMode?: ViewMode;
|
|
229
402
|
/** Project type: "TASK" or "NOTE" */
|
|
230
403
|
kind?: ProjectKind;
|
|
404
|
+
/** Position in project list */
|
|
405
|
+
sortOrder?: number;
|
|
231
406
|
}
|
|
232
407
|
/**
|
|
233
408
|
* Input for updating an existing project.
|
|
@@ -242,15 +417,32 @@ export interface UpdateProjectInput {
|
|
|
242
417
|
viewMode?: ViewMode;
|
|
243
418
|
/** Project type */
|
|
244
419
|
kind?: ProjectKind;
|
|
420
|
+
/** Position in project list */
|
|
421
|
+
sortOrder?: number;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Column in a Kanban board.
|
|
425
|
+
*/
|
|
426
|
+
export interface Column {
|
|
427
|
+
/** Unique column identifier */
|
|
428
|
+
id: string;
|
|
429
|
+
/** Project ID this column belongs to */
|
|
430
|
+
projectId: string;
|
|
431
|
+
/** Column name */
|
|
432
|
+
name: string;
|
|
433
|
+
/** Position in column list */
|
|
434
|
+
sortOrder: number;
|
|
245
435
|
}
|
|
246
436
|
/**
|
|
247
|
-
* Project data including all tasks.
|
|
437
|
+
* Project data including all tasks and columns.
|
|
248
438
|
*/
|
|
249
439
|
export interface ProjectWithTasks {
|
|
250
440
|
/** The project */
|
|
251
441
|
project: Project;
|
|
252
442
|
/** All tasks in the project */
|
|
253
443
|
tasks: Task[];
|
|
444
|
+
/** Kanban columns (for kanban view projects) */
|
|
445
|
+
columns: Column[];
|
|
254
446
|
}
|
|
255
447
|
/**
|
|
256
448
|
* Input for batch creating tasks.
|
package/dist/sdk/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/sdk/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/sdk/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;;GAGG;AACH,oBAAY,QAAQ;IAClB,gCAAgC;IAChC,IAAI,IAAI;IACR,8BAA8B;IAC9B,GAAG,IAAI;IACP,4CAA4C;IAC5C,MAAM,IAAI;IACV,uCAAuC;IACvC,IAAI,IAAI;CACT;AAED;;;GAGG;AACH,oBAAY,UAAU;IACpB,2CAA2C;IAC3C,MAAM,IAAI;IACV,8BAA8B;IAC9B,SAAS,IAAI;CACd;AAED;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,sCAAsC;IACtC,SAAS,IAAI;IACb,kCAAkC;IACl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C,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
|
package/dist/sdk/types.js
CHANGED
|
@@ -9,20 +9,183 @@
|
|
|
9
9
|
// =============================================================================
|
|
10
10
|
/**
|
|
11
11
|
* Task priority levels.
|
|
12
|
+
* Values match TickTick API: 0=None, 1=Low, 3=Medium, 5=High
|
|
12
13
|
*/
|
|
13
14
|
export var Priority;
|
|
14
15
|
(function (Priority) {
|
|
16
|
+
/** No priority set (default) */
|
|
15
17
|
Priority[Priority["None"] = 0] = "None";
|
|
18
|
+
/** Low priority - can wait */
|
|
16
19
|
Priority[Priority["Low"] = 1] = "Low";
|
|
20
|
+
/** Medium priority - should be done soon */
|
|
17
21
|
Priority[Priority["Medium"] = 3] = "Medium";
|
|
22
|
+
/** High priority - urgent/important */
|
|
18
23
|
Priority[Priority["High"] = 5] = "High";
|
|
19
24
|
})(Priority || (Priority = {}));
|
|
20
25
|
/**
|
|
21
|
-
* Task
|
|
26
|
+
* Task status.
|
|
27
|
+
* Note: Task and ChecklistItem have different completed values.
|
|
22
28
|
*/
|
|
23
|
-
export var
|
|
24
|
-
(function (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
export var TaskStatus;
|
|
30
|
+
(function (TaskStatus) {
|
|
31
|
+
/** Task is active and not yet completed */
|
|
32
|
+
TaskStatus[TaskStatus["Active"] = 0] = "Active";
|
|
33
|
+
/** Task has been completed */
|
|
34
|
+
TaskStatus[TaskStatus["Completed"] = 2] = "Completed";
|
|
35
|
+
})(TaskStatus || (TaskStatus = {}));
|
|
36
|
+
/**
|
|
37
|
+
* Checklist item status.
|
|
38
|
+
*/
|
|
39
|
+
export var ChecklistItemStatus;
|
|
40
|
+
(function (ChecklistItemStatus) {
|
|
41
|
+
/** Subtask is unchecked/incomplete */
|
|
42
|
+
ChecklistItemStatus[ChecklistItemStatus["Unchecked"] = 0] = "Unchecked";
|
|
43
|
+
/** Subtask is checked/complete */
|
|
44
|
+
ChecklistItemStatus[ChecklistItemStatus["Checked"] = 1] = "Checked";
|
|
45
|
+
})(ChecklistItemStatus || (ChecklistItemStatus = {}));
|
|
46
|
+
/**
|
|
47
|
+
* Project view modes available in TickTick.
|
|
48
|
+
*/
|
|
49
|
+
export var ViewMode;
|
|
50
|
+
(function (ViewMode) {
|
|
51
|
+
/** Traditional list view - tasks in a vertical list */
|
|
52
|
+
ViewMode["List"] = "list";
|
|
53
|
+
/** Kanban board view - tasks in columns by status */
|
|
54
|
+
ViewMode["Kanban"] = "kanban";
|
|
55
|
+
/** Timeline/Gantt view - tasks on a calendar timeline */
|
|
56
|
+
ViewMode["Timeline"] = "timeline";
|
|
57
|
+
})(ViewMode || (ViewMode = {}));
|
|
58
|
+
/**
|
|
59
|
+
* Types of projects in TickTick.
|
|
60
|
+
*/
|
|
61
|
+
export var ProjectKind;
|
|
62
|
+
(function (ProjectKind) {
|
|
63
|
+
/** Standard task list project */
|
|
64
|
+
ProjectKind["Task"] = "TASK";
|
|
65
|
+
/** Note-taking project */
|
|
66
|
+
ProjectKind["Note"] = "NOTE";
|
|
67
|
+
})(ProjectKind || (ProjectKind = {}));
|
|
68
|
+
/**
|
|
69
|
+
* Reminder at the exact time of the task.
|
|
70
|
+
*/
|
|
71
|
+
export const REMINDER_AT_TIME = "TRIGGER:PT0S";
|
|
72
|
+
/**
|
|
73
|
+
* Create a reminder trigger for X minutes before the task.
|
|
74
|
+
*
|
|
75
|
+
* @param minutes - Number of minutes before the task (positive number)
|
|
76
|
+
* @returns iCalendar TRIGGER string
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```typescript
|
|
80
|
+
* reminderMinutesBefore(15) // 15 minutes before
|
|
81
|
+
* reminderMinutesBefore(30) // 30 minutes before
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
export function reminderMinutesBefore(minutes) {
|
|
85
|
+
return `TRIGGER:-PT${minutes}M`;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Create a reminder trigger for X hours before the task.
|
|
89
|
+
*
|
|
90
|
+
* @param hours - Number of hours before the task (positive number)
|
|
91
|
+
* @returns iCalendar TRIGGER string
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```typescript
|
|
95
|
+
* reminderHoursBefore(1) // 1 hour before
|
|
96
|
+
* reminderHoursBefore(24) // 1 day before
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
export function reminderHoursBefore(hours) {
|
|
100
|
+
return `TRIGGER:-PT${hours}H`;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Create a reminder trigger for X days before the task.
|
|
104
|
+
*
|
|
105
|
+
* @param days - Number of days before the task (positive number)
|
|
106
|
+
* @returns iCalendar TRIGGER string
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* ```typescript
|
|
110
|
+
* reminderDaysBefore(1) // 1 day before
|
|
111
|
+
* reminderDaysBefore(7) // 1 week before
|
|
112
|
+
* ```
|
|
113
|
+
*/
|
|
114
|
+
export function reminderDaysBefore(days) {
|
|
115
|
+
return `TRIGGER:-P${days}D`;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Create a daily recurrence rule.
|
|
119
|
+
*
|
|
120
|
+
* @param interval - Number of days between recurrences (default: 1 = every day)
|
|
121
|
+
* @returns iCalendar RRULE string
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* ```typescript
|
|
125
|
+
* repeatDaily() // Every day
|
|
126
|
+
* repeatDaily(1) // Every day
|
|
127
|
+
* repeatDaily(2) // Every 2 days
|
|
128
|
+
* repeatDaily(7) // Every week (7 days)
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
export function repeatDaily(interval = 1) {
|
|
132
|
+
return `RRULE:FREQ=DAILY;INTERVAL=${interval}`;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Create a weekly recurrence rule.
|
|
136
|
+
*
|
|
137
|
+
* @param interval - Number of weeks between recurrences (default: 1 = every week)
|
|
138
|
+
* @param days - Optional array of weekdays (e.g., ['MO', 'WE', 'FR'] for Mon/Wed/Fri)
|
|
139
|
+
* @returns iCalendar RRULE string
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```typescript
|
|
143
|
+
* repeatWeekly() // Every week
|
|
144
|
+
* repeatWeekly(1) // Every week
|
|
145
|
+
* repeatWeekly(2) // Every 2 weeks
|
|
146
|
+
* repeatWeekly(1, ['MO', 'WE', 'FR']) // Every Mon, Wed, Fri
|
|
147
|
+
* repeatWeekly(2, ['SA', 'SU']) // Every other weekend
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
export function repeatWeekly(interval = 1, days) {
|
|
151
|
+
let rule = `RRULE:FREQ=WEEKLY;INTERVAL=${interval}`;
|
|
152
|
+
if (days?.length) {
|
|
153
|
+
rule += `;BYDAY=${days.join(',')}`;
|
|
154
|
+
}
|
|
155
|
+
return rule;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Create a monthly recurrence rule.
|
|
159
|
+
*
|
|
160
|
+
* @param interval - Number of months between recurrences (default: 1 = every month)
|
|
161
|
+
* @returns iCalendar RRULE string
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* ```typescript
|
|
165
|
+
* repeatMonthly() // Every month
|
|
166
|
+
* repeatMonthly(1) // Every month
|
|
167
|
+
* repeatMonthly(3) // Every quarter (3 months)
|
|
168
|
+
* repeatMonthly(6) // Every 6 months
|
|
169
|
+
* repeatMonthly(12) // Every year (12 months)
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
export function repeatMonthly(interval = 1) {
|
|
173
|
+
return `RRULE:FREQ=MONTHLY;INTERVAL=${interval}`;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Create a yearly recurrence rule.
|
|
177
|
+
*
|
|
178
|
+
* @param interval - Number of years between recurrences (default: 1 = every year)
|
|
179
|
+
* @returns iCalendar RRULE string
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* ```typescript
|
|
183
|
+
* repeatYearly() // Every year
|
|
184
|
+
* repeatYearly(1) // Every year
|
|
185
|
+
* repeatYearly(2) // Every 2 years
|
|
186
|
+
* ```
|
|
187
|
+
*/
|
|
188
|
+
export function repeatYearly(interval = 1) {
|
|
189
|
+
return `RRULE:FREQ=YEARLY;INTERVAL=${interval}`;
|
|
190
|
+
}
|
|
28
191
|
//# sourceMappingURL=types.js.map
|
package/dist/sdk/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/sdk/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,gFAAgF;AAChF,sBAAsB;AACtB,gFAAgF;AAEhF
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/sdk/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,gFAAgF;AAChF,sBAAsB;AACtB,gFAAgF;AAEhF;;;GAGG;AACH,MAAM,CAAN,IAAY,QASX;AATD,WAAY,QAAQ;IAClB,gCAAgC;IAChC,uCAAQ,CAAA;IACR,8BAA8B;IAC9B,qCAAO,CAAA;IACP,4CAA4C;IAC5C,2CAAU,CAAA;IACV,uCAAuC;IACvC,uCAAQ,CAAA;AACV,CAAC,EATW,QAAQ,KAAR,QAAQ,QASnB;AAED;;;GAGG;AACH,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,2CAA2C;IAC3C,+CAAU,CAAA;IACV,8BAA8B;IAC9B,qDAAa,CAAA;AACf,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,sCAAsC;IACtC,uEAAa,CAAA;IACb,kCAAkC;IAClC,mEAAW,CAAA;AACb,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AAED;;GAEG;AACH,MAAM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QAAQ,GAAG,CAAC;IACxC,OAAO,+BAA+B,QAAQ,EAAE,CAAC;AACnD,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,YAAY,CAAC,QAAQ,GAAG,CAAC;IACvC,OAAO,8BAA8B,QAAQ,EAAE,CAAC;AAClD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ticktick-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "A Model Context Protocol (MCP) server for TickTick integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"bin": {
|
|
9
|
-
"ticktick-mcp": "
|
|
9
|
+
"ticktick-mcp": "dist/index.js"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"dist",
|
|
@@ -26,7 +26,11 @@
|
|
|
26
26
|
"start": "node dist/index.js",
|
|
27
27
|
"dev": "tsx src/index.ts",
|
|
28
28
|
"lint": "eslint src/",
|
|
29
|
-
"typecheck": "tsc --noEmit"
|
|
29
|
+
"typecheck": "tsc --noEmit",
|
|
30
|
+
"test": "vitest run",
|
|
31
|
+
"test:watch": "vitest",
|
|
32
|
+
"test:ui": "vitest --ui",
|
|
33
|
+
"test:coverage": "vitest run --coverage"
|
|
30
34
|
},
|
|
31
35
|
"keywords": [
|
|
32
36
|
"mcp",
|
|
@@ -44,8 +48,14 @@
|
|
|
44
48
|
"zod": "^3.25.0"
|
|
45
49
|
},
|
|
46
50
|
"devDependencies": {
|
|
51
|
+
"@eslint/js": "^9.39.2",
|
|
52
|
+
"@types/eslint__js": "^8.42.3",
|
|
47
53
|
"@types/node": "^22.0.0",
|
|
54
|
+
"@vitest/ui": "^4.0.16",
|
|
55
|
+
"eslint": "^9.39.2",
|
|
56
|
+
"tsx": "^4.19.0",
|
|
48
57
|
"typescript": "^5.7.0",
|
|
49
|
-
"
|
|
58
|
+
"typescript-eslint": "^8.52.0",
|
|
59
|
+
"vitest": "^4.0.16"
|
|
50
60
|
}
|
|
51
61
|
}
|