@doist/todoist-mcp 10.4.2 → 11.0.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.d.ts +15 -327
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +59 -70
- package/dist/main-http.js +2 -2
- package/dist/main.js +1 -1
- package/dist/mcp-apps/index.html +1 -1
- package/dist/{mcp-server-Q106qiDw.js → mcp-server-D08HTKn7.js} +1836 -2169
- package/dist/mcp-server.d.ts +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/{require-valid-todoist-token-CgDIhI0W.js → require-valid-todoist-token-Dzd0ow_h.js} +7 -7
- package/dist/tool-helpers.d.ts +4 -23
- package/dist/tool-helpers.d.ts.map +1 -1
- package/dist/tools/add-tasks.d.ts +2 -0
- package/dist/tools/add-tasks.d.ts.map +1 -1
- package/dist/tools/delete-object.d.ts +2 -4
- package/dist/tools/delete-object.d.ts.map +1 -1
- package/dist/tools/fetch-object.d.ts +3 -39
- package/dist/tools/fetch-object.d.ts.map +1 -1
- package/dist/tools/find-completed-tasks.d.ts +2 -0
- package/dist/tools/find-completed-tasks.d.ts.map +1 -1
- package/dist/tools/find-tasks-by-date.d.ts +2 -0
- package/dist/tools/find-tasks-by-date.d.ts.map +1 -1
- package/dist/tools/find-tasks.d.ts +2 -0
- package/dist/tools/find-tasks.d.ts.map +1 -1
- package/dist/tools/reschedule-tasks.d.ts +2 -0
- package/dist/tools/reschedule-tasks.d.ts.map +1 -1
- package/dist/tools/update-tasks.d.ts +2 -0
- package/dist/tools/update-tasks.d.ts.map +1 -1
- package/dist/utils/constants.d.ts +0 -4
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/output-schemas.d.ts +2 -19
- package/dist/utils/output-schemas.d.ts.map +1 -1
- package/dist/utils/test-helpers.d.ts +1 -6
- package/dist/utils/test-helpers.d.ts.map +1 -1
- package/dist/utils/tool-names.d.ts +0 -5
- package/dist/utils/tool-names.d.ts.map +1 -1
- package/package.json +1 -1
- package/scripts/run-tool.ts +0 -10
- package/dist/tools/add-goals.d.ts +0 -70
- package/dist/tools/add-goals.d.ts.map +0 -1
- package/dist/tools/complete-goals.d.ts +0 -48
- package/dist/tools/complete-goals.d.ts.map +0 -1
- package/dist/tools/find-goals.d.ts +0 -77
- package/dist/tools/find-goals.d.ts.map +0 -1
- package/dist/tools/link-goal-tasks.d.ts +0 -50
- package/dist/tools/link-goal-tasks.d.ts.map +0 -1
- package/dist/tools/update-goals.d.ts +0 -91
- package/dist/tools/update-goals.d.ts.map +0 -1
package/scripts/run-tool.ts
CHANGED
|
@@ -19,13 +19,11 @@ import { TodoistApi } from '@doist/todoist-sdk'
|
|
|
19
19
|
import { config } from 'dotenv'
|
|
20
20
|
import { addComments } from '../src/tools/add-comments.js'
|
|
21
21
|
import { addFilters } from '../src/tools/add-filters.js'
|
|
22
|
-
import { addGoals } from '../src/tools/add-goals.js'
|
|
23
22
|
import { addLabels } from '../src/tools/add-labels.js'
|
|
24
23
|
import { addProjects } from '../src/tools/add-projects.js'
|
|
25
24
|
import { addSections } from '../src/tools/add-sections.js'
|
|
26
25
|
import { addTasks } from '../src/tools/add-tasks.js'
|
|
27
26
|
import { analyzeProjectHealth } from '../src/tools/analyze-project-health.js'
|
|
28
|
-
import { completeGoals } from '../src/tools/complete-goals.js'
|
|
29
27
|
import { completeTasks } from '../src/tools/complete-tasks.js'
|
|
30
28
|
import { deleteObject } from '../src/tools/delete-object.js'
|
|
31
29
|
import { fetchObject } from '../src/tools/fetch-object.js'
|
|
@@ -34,7 +32,6 @@ import { findActivity } from '../src/tools/find-activity.js'
|
|
|
34
32
|
import { findComments } from '../src/tools/find-comments.js'
|
|
35
33
|
import { findCompletedTasks } from '../src/tools/find-completed-tasks.js'
|
|
36
34
|
import { findFilters } from '../src/tools/find-filters.js'
|
|
37
|
-
import { findGoals } from '../src/tools/find-goals.js'
|
|
38
35
|
import { findLabels } from '../src/tools/find-labels.js'
|
|
39
36
|
import { findProjectCollaborators } from '../src/tools/find-project-collaborators.js'
|
|
40
37
|
import { findProjects } from '../src/tools/find-projects.js'
|
|
@@ -45,7 +42,6 @@ import { getOverview } from '../src/tools/get-overview.js'
|
|
|
45
42
|
import { getProjectActivityStats } from '../src/tools/get-project-activity-stats.js'
|
|
46
43
|
import { getProjectHealth } from '../src/tools/get-project-health.js'
|
|
47
44
|
import { getWorkspaceInsights } from '../src/tools/get-workspace-insights.js'
|
|
48
|
-
import { linkGoalTasks } from '../src/tools/link-goal-tasks.js'
|
|
49
45
|
import { listWorkspaces } from '../src/tools/list-workspaces.js'
|
|
50
46
|
import { manageAssignments } from '../src/tools/manage-assignments.js'
|
|
51
47
|
import { projectManagement } from '../src/tools/project-management.js'
|
|
@@ -56,7 +52,6 @@ import { search } from '../src/tools/search.js'
|
|
|
56
52
|
import { uncompleteTasks } from '../src/tools/uncomplete-tasks.js'
|
|
57
53
|
import { updateComments } from '../src/tools/update-comments.js'
|
|
58
54
|
import { updateFilters } from '../src/tools/update-filters.js'
|
|
59
|
-
import { updateGoals } from '../src/tools/update-goals.js'
|
|
60
55
|
import { updateLabels } from '../src/tools/update-labels.js'
|
|
61
56
|
import { updateProjects } from '../src/tools/update-projects.js'
|
|
62
57
|
import { updateSections } from '../src/tools/update-sections.js'
|
|
@@ -83,10 +78,8 @@ const tools: Record<string, ExecutableTool> = {
|
|
|
83
78
|
'add-projects': addProjects,
|
|
84
79
|
'add-filters': addFilters,
|
|
85
80
|
'add-sections': addSections,
|
|
86
|
-
'add-goals': addGoals,
|
|
87
81
|
'add-comments': addComments,
|
|
88
82
|
'add-labels': addLabels,
|
|
89
|
-
'complete-goals': completeGoals,
|
|
90
83
|
'complete-tasks': completeTasks,
|
|
91
84
|
'uncomplete-tasks': uncompleteTasks,
|
|
92
85
|
'delete-object': deleteObject,
|
|
@@ -99,7 +92,6 @@ const tools: Record<string, ExecutableTool> = {
|
|
|
99
92
|
'find-labels': findLabels,
|
|
100
93
|
'find-project-collaborators': findProjectCollaborators,
|
|
101
94
|
'find-projects': findProjects,
|
|
102
|
-
'find-goals': findGoals,
|
|
103
95
|
'find-sections': findSections,
|
|
104
96
|
'find-tasks': findTasks,
|
|
105
97
|
'find-tasks-by-date': findTasksByDate,
|
|
@@ -108,7 +100,6 @@ const tools: Record<string, ExecutableTool> = {
|
|
|
108
100
|
'get-project-activity-stats': getProjectActivityStats,
|
|
109
101
|
'analyze-project-health': analyzeProjectHealth,
|
|
110
102
|
'get-workspace-insights': getWorkspaceInsights,
|
|
111
|
-
'link-goal-tasks': linkGoalTasks,
|
|
112
103
|
'list-workspaces': listWorkspaces,
|
|
113
104
|
'manage-assignments': manageAssignments,
|
|
114
105
|
'project-management': projectManagement,
|
|
@@ -120,7 +111,6 @@ const tools: Record<string, ExecutableTool> = {
|
|
|
120
111
|
'update-filters': updateFilters,
|
|
121
112
|
'update-labels': updateLabels,
|
|
122
113
|
'update-projects': updateProjects,
|
|
123
|
-
'update-goals': updateGoals,
|
|
124
114
|
'update-sections': updateSections,
|
|
125
115
|
'update-tasks': updateTasks,
|
|
126
116
|
'user-info': userInfo,
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
declare const MAX_GOALS_PER_OPERATION = 25;
|
|
3
|
-
declare const addGoals: {
|
|
4
|
-
name: "add-goals";
|
|
5
|
-
description: string;
|
|
6
|
-
parameters: {
|
|
7
|
-
goals: z.ZodArray<z.ZodObject<{
|
|
8
|
-
name: z.ZodString;
|
|
9
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
10
|
-
description: z.ZodOptional<z.ZodString>;
|
|
11
|
-
deadline: z.ZodOptional<z.ZodString>;
|
|
12
|
-
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, z.core.$strip>>;
|
|
14
|
-
};
|
|
15
|
-
outputSchema: {
|
|
16
|
-
goals: z.ZodArray<z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
name: z.ZodString;
|
|
19
|
-
ownerType: z.ZodString;
|
|
20
|
-
ownerId: z.ZodString;
|
|
21
|
-
description: z.ZodOptional<z.ZodString>;
|
|
22
|
-
deadline: z.ZodOptional<z.ZodString>;
|
|
23
|
-
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
24
|
-
isCompleted: z.ZodBoolean;
|
|
25
|
-
progress: z.ZodOptional<z.ZodObject<{
|
|
26
|
-
totalTaskCount: z.ZodNumber;
|
|
27
|
-
completedTaskCount: z.ZodNumber;
|
|
28
|
-
percentage: z.ZodNumber;
|
|
29
|
-
}, z.core.$strip>>;
|
|
30
|
-
}, z.core.$strip>>;
|
|
31
|
-
totalCount: z.ZodNumber;
|
|
32
|
-
};
|
|
33
|
-
annotations: {
|
|
34
|
-
readOnlyHint: false;
|
|
35
|
-
destructiveHint: false;
|
|
36
|
-
idempotentHint: false;
|
|
37
|
-
};
|
|
38
|
-
execute({ goals }: {
|
|
39
|
-
goals: {
|
|
40
|
-
name: string;
|
|
41
|
-
workspaceId?: string | undefined;
|
|
42
|
-
description?: string | undefined;
|
|
43
|
-
deadline?: string | undefined;
|
|
44
|
-
responsibleUid?: string | undefined;
|
|
45
|
-
}[];
|
|
46
|
-
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
47
|
-
textContent: string;
|
|
48
|
-
structuredContent: {
|
|
49
|
-
goals: {
|
|
50
|
-
id: string;
|
|
51
|
-
name: string;
|
|
52
|
-
ownerType: "USER" | "WORKSPACE";
|
|
53
|
-
ownerId: string;
|
|
54
|
-
description: string | undefined;
|
|
55
|
-
deadline: string | undefined;
|
|
56
|
-
responsibleUid: string | undefined;
|
|
57
|
-
isCompleted: boolean;
|
|
58
|
-
progress: {
|
|
59
|
-
[x: string]: unknown;
|
|
60
|
-
totalTaskCount: number;
|
|
61
|
-
completedTaskCount: number;
|
|
62
|
-
percentage: number;
|
|
63
|
-
} | undefined;
|
|
64
|
-
}[];
|
|
65
|
-
totalCount: number;
|
|
66
|
-
};
|
|
67
|
-
}>;
|
|
68
|
-
};
|
|
69
|
-
export { addGoals, MAX_GOALS_PER_OPERATION };
|
|
70
|
-
//# sourceMappingURL=add-goals.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-goals.d.ts","sourceRoot":"","sources":["../../src/tools/add-goals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,QAAA,MAAM,uBAAuB,KAAK,CAAA;AA4BlC,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBiD,CAAA;AAE/D,OAAO,EAAE,QAAQ,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
declare const MAX_GOALS_PER_OPERATION = 25;
|
|
3
|
-
declare const completeGoals: {
|
|
4
|
-
name: "complete-goals";
|
|
5
|
-
description: string;
|
|
6
|
-
parameters: {
|
|
7
|
-
ids: z.ZodArray<z.ZodString>;
|
|
8
|
-
action: z.ZodEnum<{
|
|
9
|
-
complete: "complete";
|
|
10
|
-
uncomplete: "uncomplete";
|
|
11
|
-
}>;
|
|
12
|
-
};
|
|
13
|
-
outputSchema: {
|
|
14
|
-
processed: z.ZodArray<z.ZodString>;
|
|
15
|
-
failures: z.ZodArray<z.ZodObject<{
|
|
16
|
-
item: z.ZodString;
|
|
17
|
-
error: z.ZodString;
|
|
18
|
-
code: z.ZodOptional<z.ZodString>;
|
|
19
|
-
}, z.core.$strip>>;
|
|
20
|
-
totalRequested: z.ZodNumber;
|
|
21
|
-
successCount: z.ZodNumber;
|
|
22
|
-
failureCount: z.ZodNumber;
|
|
23
|
-
};
|
|
24
|
-
annotations: {
|
|
25
|
-
readOnlyHint: false;
|
|
26
|
-
destructiveHint: true;
|
|
27
|
-
idempotentHint: false;
|
|
28
|
-
};
|
|
29
|
-
execute(args: {
|
|
30
|
-
ids: string[];
|
|
31
|
-
action: "complete" | "uncomplete";
|
|
32
|
-
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
33
|
-
textContent: string;
|
|
34
|
-
structuredContent: {
|
|
35
|
-
processed: string[];
|
|
36
|
-
failures: {
|
|
37
|
-
item: string;
|
|
38
|
-
error: string;
|
|
39
|
-
code?: string;
|
|
40
|
-
}[];
|
|
41
|
-
totalRequested: number;
|
|
42
|
-
successCount: number;
|
|
43
|
-
failureCount: number;
|
|
44
|
-
};
|
|
45
|
-
}>;
|
|
46
|
-
};
|
|
47
|
-
export { completeGoals, MAX_GOALS_PER_OPERATION };
|
|
48
|
-
//# sourceMappingURL=complete-goals.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"complete-goals.d.ts","sourceRoot":"","sources":["../../src/tools/complete-goals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,QAAA,MAAM,uBAAuB,KAAK,CAAA;AAuBlC,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAmBmB,MAAM;uBAAS,MAAM;uBAAS,MAAM;;;;;;;CAgCX,CAAA;AAE/D,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
declare const findGoals: {
|
|
3
|
-
name: "find-goals";
|
|
4
|
-
description: string;
|
|
5
|
-
parameters: {
|
|
6
|
-
searchText: z.ZodOptional<z.ZodString>;
|
|
7
|
-
ownerType: z.ZodOptional<z.ZodEnum<{
|
|
8
|
-
USER: "USER";
|
|
9
|
-
WORKSPACE: "WORKSPACE";
|
|
10
|
-
}>>;
|
|
11
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
12
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
13
|
-
};
|
|
14
|
-
outputSchema: {
|
|
15
|
-
goals: z.ZodArray<z.ZodObject<{
|
|
16
|
-
id: z.ZodString;
|
|
17
|
-
name: z.ZodString;
|
|
18
|
-
ownerType: z.ZodString;
|
|
19
|
-
ownerId: z.ZodString;
|
|
20
|
-
description: z.ZodOptional<z.ZodString>;
|
|
21
|
-
deadline: z.ZodOptional<z.ZodString>;
|
|
22
|
-
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
23
|
-
isCompleted: z.ZodBoolean;
|
|
24
|
-
progress: z.ZodOptional<z.ZodObject<{
|
|
25
|
-
totalTaskCount: z.ZodNumber;
|
|
26
|
-
completedTaskCount: z.ZodNumber;
|
|
27
|
-
percentage: z.ZodNumber;
|
|
28
|
-
}, z.core.$strip>>;
|
|
29
|
-
}, z.core.$strip>>;
|
|
30
|
-
nextCursor: z.ZodOptional<z.ZodString>;
|
|
31
|
-
hasMore: z.ZodBoolean;
|
|
32
|
-
totalCount: z.ZodNumber;
|
|
33
|
-
appliedFilters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
34
|
-
};
|
|
35
|
-
annotations: {
|
|
36
|
-
readOnlyHint: true;
|
|
37
|
-
destructiveHint: false;
|
|
38
|
-
idempotentHint: true;
|
|
39
|
-
};
|
|
40
|
-
execute(args: {
|
|
41
|
-
limit: number;
|
|
42
|
-
searchText?: string | undefined;
|
|
43
|
-
ownerType?: "USER" | "WORKSPACE" | undefined;
|
|
44
|
-
cursor?: string | undefined;
|
|
45
|
-
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
46
|
-
textContent: string;
|
|
47
|
-
structuredContent: {
|
|
48
|
-
goals: {
|
|
49
|
-
id: string;
|
|
50
|
-
name: string;
|
|
51
|
-
ownerType: "USER" | "WORKSPACE";
|
|
52
|
-
ownerId: string;
|
|
53
|
-
description: string | undefined;
|
|
54
|
-
deadline: string | undefined;
|
|
55
|
-
responsibleUid: string | undefined;
|
|
56
|
-
isCompleted: boolean;
|
|
57
|
-
progress: {
|
|
58
|
-
[x: string]: unknown;
|
|
59
|
-
totalTaskCount: number;
|
|
60
|
-
completedTaskCount: number;
|
|
61
|
-
percentage: number;
|
|
62
|
-
} | undefined;
|
|
63
|
-
}[];
|
|
64
|
-
nextCursor: string | undefined;
|
|
65
|
-
hasMore: boolean;
|
|
66
|
-
totalCount: number;
|
|
67
|
-
appliedFilters: {
|
|
68
|
-
limit: number;
|
|
69
|
-
searchText?: string | undefined;
|
|
70
|
-
ownerType?: "USER" | "WORKSPACE" | undefined;
|
|
71
|
-
cursor?: string | undefined;
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
}>;
|
|
75
|
-
};
|
|
76
|
-
export { findGoals };
|
|
77
|
-
//# sourceMappingURL=find-goals.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-goals.d.ts","sourceRoot":"","sources":["../../src/tools/find-goals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AA4CvB,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEgD,CAAA;AAE/D,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
declare const MAX_TASKS_PER_OPERATION = 50;
|
|
3
|
-
declare const linkGoalTasks: {
|
|
4
|
-
name: "link-goal-tasks";
|
|
5
|
-
description: string;
|
|
6
|
-
parameters: {
|
|
7
|
-
goalId: z.ZodString;
|
|
8
|
-
taskIds: z.ZodArray<z.ZodString>;
|
|
9
|
-
action: z.ZodEnum<{
|
|
10
|
-
link: "link";
|
|
11
|
-
unlink: "unlink";
|
|
12
|
-
}>;
|
|
13
|
-
};
|
|
14
|
-
outputSchema: {
|
|
15
|
-
processed: z.ZodArray<z.ZodString>;
|
|
16
|
-
failures: z.ZodArray<z.ZodObject<{
|
|
17
|
-
item: z.ZodString;
|
|
18
|
-
error: z.ZodString;
|
|
19
|
-
code: z.ZodOptional<z.ZodString>;
|
|
20
|
-
}, z.core.$strip>>;
|
|
21
|
-
totalRequested: z.ZodNumber;
|
|
22
|
-
successCount: z.ZodNumber;
|
|
23
|
-
failureCount: z.ZodNumber;
|
|
24
|
-
};
|
|
25
|
-
annotations: {
|
|
26
|
-
readOnlyHint: false;
|
|
27
|
-
destructiveHint: false;
|
|
28
|
-
idempotentHint: true;
|
|
29
|
-
};
|
|
30
|
-
execute(args: {
|
|
31
|
-
goalId: string;
|
|
32
|
-
taskIds: string[];
|
|
33
|
-
action: "link" | "unlink";
|
|
34
|
-
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
35
|
-
textContent: string;
|
|
36
|
-
structuredContent: {
|
|
37
|
-
processed: string[];
|
|
38
|
-
failures: {
|
|
39
|
-
item: string;
|
|
40
|
-
error: string;
|
|
41
|
-
code?: string;
|
|
42
|
-
}[];
|
|
43
|
-
totalRequested: number;
|
|
44
|
-
successCount: number;
|
|
45
|
-
failureCount: number;
|
|
46
|
-
};
|
|
47
|
-
}>;
|
|
48
|
-
};
|
|
49
|
-
export { linkGoalTasks, MAX_TASKS_PER_OPERATION };
|
|
50
|
-
//# sourceMappingURL=link-goal-tasks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link-goal-tasks.d.ts","sourceRoot":"","sources":["../../src/tools/link-goal-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAMvB,QAAA,MAAM,uBAAuB,KAAK,CAAA;AAoBlC,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAmBmB,MAAM;uBAAS,MAAM;uBAAS,MAAM;;;;;;;CAiCX,CAAA;AAE/D,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
declare const MAX_GOALS_PER_OPERATION = 25;
|
|
3
|
-
declare const updateGoals: {
|
|
4
|
-
name: "update-goals";
|
|
5
|
-
description: string;
|
|
6
|
-
parameters: {
|
|
7
|
-
goals: z.ZodArray<z.ZodObject<{
|
|
8
|
-
id: z.ZodString;
|
|
9
|
-
name: z.ZodOptional<z.ZodString>;
|
|
10
|
-
description: z.ZodOptional<z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodString>>;
|
|
11
|
-
deadline: z.ZodOptional<z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodString>>;
|
|
12
|
-
responsibleUid: z.ZodOptional<z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodString>>;
|
|
13
|
-
}, z.core.$strip>>;
|
|
14
|
-
};
|
|
15
|
-
outputSchema: {
|
|
16
|
-
goals: z.ZodArray<z.ZodObject<{
|
|
17
|
-
id: z.ZodString;
|
|
18
|
-
name: z.ZodString;
|
|
19
|
-
ownerType: z.ZodString;
|
|
20
|
-
ownerId: z.ZodString;
|
|
21
|
-
description: z.ZodOptional<z.ZodString>;
|
|
22
|
-
deadline: z.ZodOptional<z.ZodString>;
|
|
23
|
-
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
24
|
-
isCompleted: z.ZodBoolean;
|
|
25
|
-
progress: z.ZodOptional<z.ZodObject<{
|
|
26
|
-
totalTaskCount: z.ZodNumber;
|
|
27
|
-
completedTaskCount: z.ZodNumber;
|
|
28
|
-
percentage: z.ZodNumber;
|
|
29
|
-
}, z.core.$strip>>;
|
|
30
|
-
}, z.core.$strip>>;
|
|
31
|
-
totalCount: z.ZodNumber;
|
|
32
|
-
updatedGoalIds: z.ZodArray<z.ZodString>;
|
|
33
|
-
appliedOperations: z.ZodObject<{
|
|
34
|
-
updateCount: z.ZodNumber;
|
|
35
|
-
skippedCount: z.ZodNumber;
|
|
36
|
-
skipped: z.ZodArray<z.ZodObject<{
|
|
37
|
-
id: z.ZodString;
|
|
38
|
-
reason: z.ZodEnum<{
|
|
39
|
-
"no-fields": "no-fields";
|
|
40
|
-
"no-valid-values": "no-valid-values";
|
|
41
|
-
}>;
|
|
42
|
-
}, z.core.$strip>>;
|
|
43
|
-
}, z.core.$strip>;
|
|
44
|
-
};
|
|
45
|
-
annotations: {
|
|
46
|
-
readOnlyHint: false;
|
|
47
|
-
destructiveHint: false;
|
|
48
|
-
idempotentHint: true;
|
|
49
|
-
};
|
|
50
|
-
execute({ goals }: {
|
|
51
|
-
goals: {
|
|
52
|
-
id: string;
|
|
53
|
-
name?: string | undefined;
|
|
54
|
-
description?: string | undefined;
|
|
55
|
-
deadline?: string | undefined;
|
|
56
|
-
responsibleUid?: string | undefined;
|
|
57
|
-
}[];
|
|
58
|
-
}, client: import('@doist/todoist-sdk').TodoistApi): Promise<{
|
|
59
|
-
textContent: string;
|
|
60
|
-
structuredContent: {
|
|
61
|
-
goals: {
|
|
62
|
-
id: string;
|
|
63
|
-
name: string;
|
|
64
|
-
ownerType: "USER" | "WORKSPACE";
|
|
65
|
-
ownerId: string;
|
|
66
|
-
description: string | undefined;
|
|
67
|
-
deadline: string | undefined;
|
|
68
|
-
responsibleUid: string | undefined;
|
|
69
|
-
isCompleted: boolean;
|
|
70
|
-
progress: {
|
|
71
|
-
[x: string]: unknown;
|
|
72
|
-
totalTaskCount: number;
|
|
73
|
-
completedTaskCount: number;
|
|
74
|
-
percentage: number;
|
|
75
|
-
} | undefined;
|
|
76
|
-
}[];
|
|
77
|
-
totalCount: number;
|
|
78
|
-
updatedGoalIds: string[];
|
|
79
|
-
appliedOperations: {
|
|
80
|
-
updateCount: number;
|
|
81
|
-
skippedCount: number;
|
|
82
|
-
skipped: {
|
|
83
|
-
id: string;
|
|
84
|
-
reason: "no-fields" | "no-valid-values";
|
|
85
|
-
}[];
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
}>;
|
|
89
|
-
};
|
|
90
|
-
export { MAX_GOALS_PER_OPERATION, updateGoals };
|
|
91
|
-
//# sourceMappingURL=update-goals.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-goals.d.ts","sourceRoot":"","sources":["../../src/tools/update-goals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,QAAA,MAAM,uBAAuB,KAAK,CAAA;AAwElC,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgE8C,CAAA;AAgB/D,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,CAAA"}
|