@doist/todoist-api-typescript 7.9.0 → 7.10.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 +5 -204
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.mjs +1 -0
- package/package.json +12 -92
- package/LICENSE +0 -21
- package/dist/cjs/authentication.js +0 -204
- package/dist/cjs/consts/endpoints.js +0 -141
- package/dist/cjs/index.js +0 -20
- package/dist/cjs/package.json +0 -1
- package/dist/cjs/test-utils/asserts.js +0 -11
- package/dist/cjs/test-utils/msw-setup.js +0 -97
- package/dist/cjs/test-utils/obsidian-fetch-adapter.js +0 -53
- package/dist/cjs/test-utils/test-defaults.js +0 -240
- package/dist/cjs/todoist-api.js +0 -2623
- package/dist/cjs/transport/fetch-with-retry.js +0 -206
- package/dist/cjs/transport/http-client.js +0 -133
- package/dist/cjs/transport/http-dispatcher.js +0 -72
- package/dist/cjs/types/activity/index.js +0 -18
- package/dist/cjs/types/activity/requests.js +0 -2
- package/dist/cjs/types/activity/types.js +0 -28
- package/dist/cjs/types/backups/index.js +0 -18
- package/dist/cjs/types/backups/requests.js +0 -2
- package/dist/cjs/types/backups/types.js +0 -8
- package/dist/cjs/types/comments/index.js +0 -18
- package/dist/cjs/types/comments/requests.js +0 -2
- package/dist/cjs/types/comments/types.js +0 -60
- package/dist/cjs/types/common.js +0 -2
- package/dist/cjs/types/emails/index.js +0 -17
- package/dist/cjs/types/emails/requests.js +0 -5
- package/dist/cjs/types/errors.js +0 -29
- package/dist/cjs/types/folders/index.js +0 -17
- package/dist/cjs/types/folders/requests.js +0 -2
- package/dist/cjs/types/http.js +0 -24
- package/dist/cjs/types/id-mappings/index.js +0 -18
- package/dist/cjs/types/id-mappings/requests.js +0 -20
- package/dist/cjs/types/id-mappings/types.js +0 -12
- package/dist/cjs/types/index.js +0 -36
- package/dist/cjs/types/insights/index.js +0 -18
- package/dist/cjs/types/insights/requests.js +0 -2
- package/dist/cjs/types/insights/types.js +0 -84
- package/dist/cjs/types/labels/index.js +0 -18
- package/dist/cjs/types/labels/requests.js +0 -2
- package/dist/cjs/types/labels/types.js +0 -11
- package/dist/cjs/types/productivity/index.js +0 -17
- package/dist/cjs/types/productivity/types.js +0 -67
- package/dist/cjs/types/projects/index.js +0 -18
- package/dist/cjs/types/projects/requests.js +0 -2
- package/dist/cjs/types/projects/types.js +0 -56
- package/dist/cjs/types/reminders/index.js +0 -17
- package/dist/cjs/types/reminders/requests.js +0 -95
- package/dist/cjs/types/sections/index.js +0 -18
- package/dist/cjs/types/sections/requests.js +0 -2
- package/dist/cjs/types/sections/types.js +0 -22
- package/dist/cjs/types/sync/commands/calendars.js +0 -2
- package/dist/cjs/types/sync/commands/filters.js +0 -2
- package/dist/cjs/types/sync/commands/folders.js +0 -2
- package/dist/cjs/types/sync/commands/index.js +0 -35
- package/dist/cjs/types/sync/commands/labels.js +0 -5
- package/dist/cjs/types/sync/commands/notes.js +0 -2
- package/dist/cjs/types/sync/commands/notifications.js +0 -2
- package/dist/cjs/types/sync/commands/others.js +0 -2
- package/dist/cjs/types/sync/commands/project-view-options.js +0 -2
- package/dist/cjs/types/sync/commands/projects.js +0 -2
- package/dist/cjs/types/sync/commands/reminders.js +0 -2
- package/dist/cjs/types/sync/commands/sections.js +0 -2
- package/dist/cjs/types/sync/commands/shared.js +0 -20
- package/dist/cjs/types/sync/commands/sharing.js +0 -2
- package/dist/cjs/types/sync/commands/tasks.js +0 -2
- package/dist/cjs/types/sync/commands/view-options.js +0 -2
- package/dist/cjs/types/sync/commands/workspace-filters.js +0 -2
- package/dist/cjs/types/sync/commands/workspace-goals.js +0 -2
- package/dist/cjs/types/sync/commands/workspaces.js +0 -2
- package/dist/cjs/types/sync/index.js +0 -22
- package/dist/cjs/types/sync/request.js +0 -2
- package/dist/cjs/types/sync/resource-types.js +0 -40
- package/dist/cjs/types/sync/resources/calendars.js +0 -31
- package/dist/cjs/types/sync/resources/collaborators.js +0 -25
- package/dist/cjs/types/sync/resources/completed-info.js +0 -30
- package/dist/cjs/types/sync/resources/filters.js +0 -16
- package/dist/cjs/types/sync/resources/folders.js +0 -14
- package/dist/cjs/types/sync/resources/index.js +0 -33
- package/dist/cjs/types/sync/resources/live-notifications.js +0 -39
- package/dist/cjs/types/sync/resources/notes.js +0 -23
- package/dist/cjs/types/sync/resources/reminders.js +0 -50
- package/dist/cjs/types/sync/resources/suggestions.js +0 -42
- package/dist/cjs/types/sync/resources/tooltips.js +0 -10
- package/dist/cjs/types/sync/resources/user-plan-limits.js +0 -24
- package/dist/cjs/types/sync/resources/user-settings.js +0 -42
- package/dist/cjs/types/sync/resources/user.js +0 -120
- package/dist/cjs/types/sync/resources/view-options.js +0 -83
- package/dist/cjs/types/sync/resources/workspace-filters.js +0 -21
- package/dist/cjs/types/sync/resources/workspace-goals.js +0 -32
- package/dist/cjs/types/sync/resources/workspaces.js +0 -56
- package/dist/cjs/types/sync/response.js +0 -2
- package/dist/cjs/types/sync/user-preferences.js +0 -71
- package/dist/cjs/types/tasks/index.js +0 -18
- package/dist/cjs/types/tasks/requests.js +0 -2
- package/dist/cjs/types/tasks/types.js +0 -59
- package/dist/cjs/types/templates/index.js +0 -17
- package/dist/cjs/types/templates/requests.js +0 -2
- package/dist/cjs/types/uploads/index.js +0 -17
- package/dist/cjs/types/uploads/requests.js +0 -2
- package/dist/cjs/types/users/index.js +0 -17
- package/dist/cjs/types/users/types.js +0 -51
- package/dist/cjs/types/workspaces/index.js +0 -18
- package/dist/cjs/types/workspaces/requests.js +0 -2
- package/dist/cjs/types/workspaces/types.js +0 -137
- package/dist/cjs/utils/activity-helpers.js +0 -58
- package/dist/cjs/utils/case-conversion.js +0 -69
- package/dist/cjs/utils/colors.js +0 -143
- package/dist/cjs/utils/index.js +0 -25
- package/dist/cjs/utils/multipart-upload.js +0 -178
- package/dist/cjs/utils/processing-helpers.js +0 -18
- package/dist/cjs/utils/sanitization.js +0 -116
- package/dist/cjs/utils/sync-helpers.js +0 -22
- package/dist/cjs/utils/uncompletable-helpers.js +0 -60
- package/dist/cjs/utils/url-helpers.js +0 -74
- package/dist/cjs/utils/validators.js +0 -141
- package/dist/esm/authentication.js +0 -196
- package/dist/esm/consts/endpoints.js +0 -122
- package/dist/esm/index.js +0 -4
- package/dist/esm/test-utils/asserts.js +0 -8
- package/dist/esm/test-utils/msw-setup.js +0 -88
- package/dist/esm/test-utils/obsidian-fetch-adapter.js +0 -50
- package/dist/esm/test-utils/test-defaults.js +0 -237
- package/dist/esm/todoist-api.js +0 -2619
- package/dist/esm/transport/fetch-with-retry.js +0 -203
- package/dist/esm/transport/http-client.js +0 -128
- package/dist/esm/transport/http-dispatcher.js +0 -35
- package/dist/esm/types/activity/index.js +0 -2
- package/dist/esm/types/activity/requests.js +0 -1
- package/dist/esm/types/activity/types.js +0 -25
- package/dist/esm/types/backups/index.js +0 -2
- package/dist/esm/types/backups/requests.js +0 -1
- package/dist/esm/types/backups/types.js +0 -5
- package/dist/esm/types/comments/index.js +0 -2
- package/dist/esm/types/comments/requests.js +0 -1
- package/dist/esm/types/comments/types.js +0 -57
- package/dist/esm/types/common.js +0 -1
- package/dist/esm/types/emails/index.js +0 -1
- package/dist/esm/types/emails/requests.js +0 -2
- package/dist/esm/types/errors.js +0 -24
- package/dist/esm/types/folders/index.js +0 -1
- package/dist/esm/types/folders/requests.js +0 -1
- package/dist/esm/types/http.js +0 -20
- package/dist/esm/types/id-mappings/index.js +0 -2
- package/dist/esm/types/id-mappings/requests.js +0 -17
- package/dist/esm/types/id-mappings/types.js +0 -9
- package/dist/esm/types/index.js +0 -20
- package/dist/esm/types/insights/index.js +0 -2
- package/dist/esm/types/insights/requests.js +0 -1
- package/dist/esm/types/insights/types.js +0 -81
- package/dist/esm/types/labels/index.js +0 -2
- package/dist/esm/types/labels/requests.js +0 -1
- package/dist/esm/types/labels/types.js +0 -8
- package/dist/esm/types/productivity/index.js +0 -1
- package/dist/esm/types/productivity/types.js +0 -64
- package/dist/esm/types/projects/index.js +0 -2
- package/dist/esm/types/projects/requests.js +0 -1
- package/dist/esm/types/projects/types.js +0 -53
- package/dist/esm/types/reminders/index.js +0 -1
- package/dist/esm/types/reminders/requests.js +0 -92
- package/dist/esm/types/sections/index.js +0 -2
- package/dist/esm/types/sections/requests.js +0 -1
- package/dist/esm/types/sections/types.js +0 -19
- package/dist/esm/types/sync/commands/calendars.js +0 -1
- package/dist/esm/types/sync/commands/filters.js +0 -1
- package/dist/esm/types/sync/commands/folders.js +0 -1
- package/dist/esm/types/sync/commands/index.js +0 -19
- package/dist/esm/types/sync/commands/labels.js +0 -2
- package/dist/esm/types/sync/commands/notes.js +0 -1
- package/dist/esm/types/sync/commands/notifications.js +0 -1
- package/dist/esm/types/sync/commands/others.js +0 -1
- package/dist/esm/types/sync/commands/project-view-options.js +0 -1
- package/dist/esm/types/sync/commands/projects.js +0 -1
- package/dist/esm/types/sync/commands/reminders.js +0 -1
- package/dist/esm/types/sync/commands/sections.js +0 -1
- package/dist/esm/types/sync/commands/shared.js +0 -16
- package/dist/esm/types/sync/commands/sharing.js +0 -1
- package/dist/esm/types/sync/commands/tasks.js +0 -1
- package/dist/esm/types/sync/commands/view-options.js +0 -1
- package/dist/esm/types/sync/commands/workspace-filters.js +0 -1
- package/dist/esm/types/sync/commands/workspace-goals.js +0 -1
- package/dist/esm/types/sync/commands/workspaces.js +0 -1
- package/dist/esm/types/sync/index.js +0 -6
- package/dist/esm/types/sync/request.js +0 -1
- package/dist/esm/types/sync/resource-types.js +0 -37
- package/dist/esm/types/sync/resources/calendars.js +0 -28
- package/dist/esm/types/sync/resources/collaborators.js +0 -22
- package/dist/esm/types/sync/resources/completed-info.js +0 -27
- package/dist/esm/types/sync/resources/filters.js +0 -13
- package/dist/esm/types/sync/resources/folders.js +0 -11
- package/dist/esm/types/sync/resources/index.js +0 -17
- package/dist/esm/types/sync/resources/live-notifications.js +0 -36
- package/dist/esm/types/sync/resources/notes.js +0 -20
- package/dist/esm/types/sync/resources/reminders.js +0 -47
- package/dist/esm/types/sync/resources/suggestions.js +0 -39
- package/dist/esm/types/sync/resources/tooltips.js +0 -7
- package/dist/esm/types/sync/resources/user-plan-limits.js +0 -21
- package/dist/esm/types/sync/resources/user-settings.js +0 -39
- package/dist/esm/types/sync/resources/user.js +0 -117
- package/dist/esm/types/sync/resources/view-options.js +0 -80
- package/dist/esm/types/sync/resources/workspace-filters.js +0 -18
- package/dist/esm/types/sync/resources/workspace-goals.js +0 -29
- package/dist/esm/types/sync/resources/workspaces.js +0 -53
- package/dist/esm/types/sync/response.js +0 -1
- package/dist/esm/types/sync/user-preferences.js +0 -68
- package/dist/esm/types/tasks/index.js +0 -2
- package/dist/esm/types/tasks/requests.js +0 -1
- package/dist/esm/types/tasks/types.js +0 -56
- package/dist/esm/types/templates/index.js +0 -1
- package/dist/esm/types/templates/requests.js +0 -1
- package/dist/esm/types/uploads/index.js +0 -1
- package/dist/esm/types/uploads/requests.js +0 -1
- package/dist/esm/types/users/index.js +0 -1
- package/dist/esm/types/users/types.js +0 -48
- package/dist/esm/types/workspaces/index.js +0 -2
- package/dist/esm/types/workspaces/requests.js +0 -1
- package/dist/esm/types/workspaces/types.js +0 -134
- package/dist/esm/utils/activity-helpers.js +0 -53
- package/dist/esm/utils/case-conversion.js +0 -61
- package/dist/esm/utils/colors.js +0 -139
- package/dist/esm/utils/index.js +0 -4
- package/dist/esm/utils/multipart-upload.js +0 -142
- package/dist/esm/utils/processing-helpers.js +0 -12
- package/dist/esm/utils/sanitization.js +0 -112
- package/dist/esm/utils/sync-helpers.js +0 -19
- package/dist/esm/utils/uncompletable-helpers.js +0 -54
- package/dist/esm/utils/url-helpers.js +0 -68
- package/dist/esm/utils/validators.js +0 -132
- package/dist/types/authentication.d.ts +0 -158
- package/dist/types/consts/endpoints.d.ts +0 -81
- package/dist/types/index.d.ts +0 -4
- package/dist/types/test-utils/asserts.d.ts +0 -1
- package/dist/types/test-utils/msw-setup.d.ts +0 -33
- package/dist/types/test-utils/obsidian-fetch-adapter.d.ts +0 -29
- package/dist/types/test-utils/test-defaults.d.ts +0 -261
- package/dist/types/todoist-api.d.ts +0 -1018
- package/dist/types/transport/fetch-with-retry.d.ts +0 -12
- package/dist/types/transport/http-client.d.ts +0 -16
- package/dist/types/transport/http-dispatcher.d.ts +0 -3
- package/dist/types/types/activity/index.d.ts +0 -2
- package/dist/types/types/activity/requests.d.ts +0 -85
- package/dist/types/types/activity/types.d.ts +0 -49
- package/dist/types/types/backups/index.d.ts +0 -2
- package/dist/types/types/backups/requests.d.ts +0 -16
- package/dist/types/types/backups/types.d.ts +0 -7
- package/dist/types/types/comments/index.d.ts +0 -2
- package/dist/types/types/comments/requests.d.ts +0 -64
- package/dist/types/types/comments/types.d.ts +0 -141
- package/dist/types/types/common.d.ts +0 -6
- package/dist/types/types/emails/index.d.ts +0 -1
- package/dist/types/types/emails/requests.d.ts +0 -30
- package/dist/types/types/errors.d.ts +0 -12
- package/dist/types/types/folders/index.d.ts +0 -1
- package/dist/types/types/folders/requests.d.ts +0 -20
- package/dist/types/types/http.d.ts +0 -85
- package/dist/types/types/id-mappings/index.d.ts +0 -2
- package/dist/types/types/id-mappings/requests.d.ts +0 -28
- package/dist/types/types/id-mappings/types.d.ts +0 -13
- package/dist/types/types/index.d.ts +0 -20
- package/dist/types/types/insights/index.d.ts +0 -2
- package/dist/types/types/insights/requests.d.ts +0 -26
- package/dist/types/types/insights/types.d.ts +0 -186
- package/dist/types/types/labels/index.d.ts +0 -2
- package/dist/types/types/labels/requests.d.ts +0 -75
- package/dist/types/types/labels/types.d.ts +0 -13
- package/dist/types/types/productivity/index.d.ts +0 -1
- package/dist/types/types/productivity/types.d.ts +0 -115
- package/dist/types/types/projects/index.d.ts +0 -2
- package/dist/types/types/projects/requests.d.ts +0 -169
- package/dist/types/types/projects/types.d.ts +0 -201
- package/dist/types/types/reminders/index.d.ts +0 -1
- package/dist/types/types/reminders/requests.d.ts +0 -205
- package/dist/types/types/sections/index.d.ts +0 -2
- package/dist/types/types/sections/requests.d.ts +0 -41
- package/dist/types/types/sections/types.d.ts +0 -44
- package/dist/types/types/sync/commands/calendars.d.ts +0 -14
- package/dist/types/types/sync/commands/filters.d.ts +0 -22
- package/dist/types/types/sync/commands/folders.d.ts +0 -18
- package/dist/types/types/sync/commands/index.d.ts +0 -171
- package/dist/types/types/sync/commands/labels.d.ts +0 -32
- package/dist/types/types/sync/commands/notes.d.ts +0 -27
- package/dist/types/types/sync/commands/notifications.d.ts +0 -10
- package/dist/types/types/sync/commands/others.d.ts +0 -39
- package/dist/types/types/sync/commands/project-view-options.d.ts +0 -14
- package/dist/types/types/sync/commands/projects.d.ts +0 -90
- package/dist/types/types/sync/commands/reminders.d.ts +0 -51
- package/dist/types/types/sync/commands/sections.d.ts +0 -31
- package/dist/types/types/sync/commands/shared.d.ts +0 -51
- package/dist/types/types/sync/commands/sharing.d.ts +0 -16
- package/dist/types/types/sync/commands/tasks.d.ts +0 -78
- package/dist/types/types/sync/commands/view-options.d.ts +0 -15
- package/dist/types/types/sync/commands/workspace-filters.d.ts +0 -23
- package/dist/types/types/sync/commands/workspace-goals.d.ts +0 -24
- package/dist/types/types/sync/commands/workspaces.d.ts +0 -79
- package/dist/types/types/sync/index.d.ts +0 -6
- package/dist/types/types/sync/request.d.ts +0 -7
- package/dist/types/types/sync/resource-types.d.ts +0 -5
- package/dist/types/types/sync/resources/calendars.d.ts +0 -38
- package/dist/types/types/sync/resources/collaborators.d.ts +0 -28
- package/dist/types/types/sync/resources/completed-info.d.ts +0 -33
- package/dist/types/types/sync/resources/filters.d.ts +0 -12
- package/dist/types/types/sync/resources/folders.d.ts +0 -10
- package/dist/types/types/sync/resources/index.d.ts +0 -17
- package/dist/types/types/sync/resources/live-notifications.d.ts +0 -32
- package/dist/types/types/sync/resources/notes.d.ts +0 -34
- package/dist/types/types/sync/resources/reminders.d.ts +0 -126
- package/dist/types/types/sync/resources/suggestions.d.ts +0 -96
- package/dist/types/types/sync/resources/tooltips.d.ts +0 -6
- package/dist/types/types/sync/resources/user-plan-limits.d.ts +0 -41
- package/dist/types/types/sync/resources/user-settings.d.ts +0 -40
- package/dist/types/types/sync/resources/user.d.ts +0 -134
- package/dist/types/types/sync/resources/view-options.d.ts +0 -169
- package/dist/types/types/sync/resources/workspace-filters.d.ts +0 -17
- package/dist/types/types/sync/resources/workspace-goals.d.ts +0 -29
- package/dist/types/types/sync/resources/workspaces.d.ts +0 -57
- package/dist/types/types/sync/response.d.ts +0 -51
- package/dist/types/types/sync/user-preferences.d.ts +0 -39
- package/dist/types/types/tasks/index.d.ts +0 -2
- package/dist/types/types/tasks/requests.d.ts +0 -197
- package/dist/types/types/tasks/types.d.ts +0 -162
- package/dist/types/types/templates/index.d.ts +0 -1
- package/dist/types/types/templates/requests.d.ts +0 -92
- package/dist/types/types/uploads/index.d.ts +0 -1
- package/dist/types/types/uploads/requests.d.ts +0 -32
- package/dist/types/types/users/index.d.ts +0 -1
- package/dist/types/types/users/types.d.ts +0 -66
- package/dist/types/types/workspaces/index.d.ts +0 -2
- package/dist/types/types/workspaces/requests.d.ts +0 -260
- package/dist/types/types/workspaces/types.d.ts +0 -225
- package/dist/types/utils/activity-helpers.d.ts +0 -28
- package/dist/types/utils/case-conversion.d.ts +0 -12
- package/dist/types/utils/colors.d.ts +0 -197
- package/dist/types/utils/index.d.ts +0 -4
- package/dist/types/utils/multipart-upload.d.ts +0 -54
- package/dist/types/utils/processing-helpers.d.ts +0 -1
- package/dist/types/utils/sanitization.d.ts +0 -35
- package/dist/types/utils/sync-helpers.d.ts +0 -17
- package/dist/types/utils/uncompletable-helpers.d.ts +0 -30
- package/dist/types/utils/url-helpers.d.ts +0 -32
- package/dist/types/utils/validators.d.ts +0 -1406
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* Base schema for all project types in Todoist.
|
|
4
|
-
* Contains common fields shared between personal and workspace projects.
|
|
5
|
-
*/
|
|
6
|
-
export declare const BaseProjectSchema: z.ZodObject<{
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
canAssignTasks: z.ZodBoolean;
|
|
9
|
-
childOrder: z.ZodNumber;
|
|
10
|
-
color: z.ZodString;
|
|
11
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
12
|
-
isArchived: z.ZodBoolean;
|
|
13
|
-
isDeleted: z.ZodBoolean;
|
|
14
|
-
isFavorite: z.ZodBoolean;
|
|
15
|
-
isFrozen: z.ZodBoolean;
|
|
16
|
-
name: z.ZodString;
|
|
17
|
-
updatedAt: z.ZodNullable<z.ZodString>;
|
|
18
|
-
viewStyle: z.ZodString;
|
|
19
|
-
defaultOrder: z.ZodNumber;
|
|
20
|
-
description: z.ZodString;
|
|
21
|
-
isCollapsed: z.ZodBoolean;
|
|
22
|
-
isShared: z.ZodBoolean;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
/**
|
|
25
|
-
* Schema for personal projects in Todoist.
|
|
26
|
-
*/
|
|
27
|
-
export declare const PersonalProjectSchema: z.ZodPipe<z.ZodObject<{
|
|
28
|
-
id: z.ZodString;
|
|
29
|
-
canAssignTasks: z.ZodBoolean;
|
|
30
|
-
childOrder: z.ZodNumber;
|
|
31
|
-
color: z.ZodString;
|
|
32
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
33
|
-
isArchived: z.ZodBoolean;
|
|
34
|
-
isDeleted: z.ZodBoolean;
|
|
35
|
-
isFavorite: z.ZodBoolean;
|
|
36
|
-
isFrozen: z.ZodBoolean;
|
|
37
|
-
name: z.ZodString;
|
|
38
|
-
updatedAt: z.ZodNullable<z.ZodString>;
|
|
39
|
-
viewStyle: z.ZodString;
|
|
40
|
-
defaultOrder: z.ZodNumber;
|
|
41
|
-
description: z.ZodString;
|
|
42
|
-
isCollapsed: z.ZodBoolean;
|
|
43
|
-
isShared: z.ZodBoolean;
|
|
44
|
-
parentId: z.ZodNullable<z.ZodString>;
|
|
45
|
-
inboxProject: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
46
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
47
|
-
url: string;
|
|
48
|
-
id: string;
|
|
49
|
-
canAssignTasks: boolean;
|
|
50
|
-
childOrder: number;
|
|
51
|
-
color: string;
|
|
52
|
-
createdAt: string | null;
|
|
53
|
-
isArchived: boolean;
|
|
54
|
-
isDeleted: boolean;
|
|
55
|
-
isFavorite: boolean;
|
|
56
|
-
isFrozen: boolean;
|
|
57
|
-
name: string;
|
|
58
|
-
updatedAt: string | null;
|
|
59
|
-
viewStyle: string;
|
|
60
|
-
defaultOrder: number;
|
|
61
|
-
description: string;
|
|
62
|
-
isCollapsed: boolean;
|
|
63
|
-
isShared: boolean;
|
|
64
|
-
parentId: string | null;
|
|
65
|
-
inboxProject: boolean;
|
|
66
|
-
}, {
|
|
67
|
-
id: string;
|
|
68
|
-
canAssignTasks: boolean;
|
|
69
|
-
childOrder: number;
|
|
70
|
-
color: string;
|
|
71
|
-
createdAt: string | null;
|
|
72
|
-
isArchived: boolean;
|
|
73
|
-
isDeleted: boolean;
|
|
74
|
-
isFavorite: boolean;
|
|
75
|
-
isFrozen: boolean;
|
|
76
|
-
name: string;
|
|
77
|
-
updatedAt: string | null;
|
|
78
|
-
viewStyle: string;
|
|
79
|
-
defaultOrder: number;
|
|
80
|
-
description: string;
|
|
81
|
-
isCollapsed: boolean;
|
|
82
|
-
isShared: boolean;
|
|
83
|
-
parentId: string | null;
|
|
84
|
-
inboxProject: boolean;
|
|
85
|
-
}>>;
|
|
86
|
-
/** Available project visibility levels. */
|
|
87
|
-
export declare const PROJECT_VISIBILITIES: readonly ["restricted", "team", "public"];
|
|
88
|
-
/** Visibility level of a workspace project. */
|
|
89
|
-
export type ProjectVisibility = (typeof PROJECT_VISIBILITIES)[number];
|
|
90
|
-
export declare const ProjectVisibilitySchema: z.ZodEnum<{
|
|
91
|
-
restricted: "restricted";
|
|
92
|
-
team: "team";
|
|
93
|
-
public: "public";
|
|
94
|
-
}>;
|
|
95
|
-
/**
|
|
96
|
-
* Schema for workspace projects in Todoist.
|
|
97
|
-
*/
|
|
98
|
-
export declare const WorkspaceProjectSchema: z.ZodPipe<z.ZodObject<{
|
|
99
|
-
id: z.ZodString;
|
|
100
|
-
canAssignTasks: z.ZodBoolean;
|
|
101
|
-
childOrder: z.ZodNumber;
|
|
102
|
-
color: z.ZodString;
|
|
103
|
-
createdAt: z.ZodNullable<z.ZodString>;
|
|
104
|
-
isArchived: z.ZodBoolean;
|
|
105
|
-
isDeleted: z.ZodBoolean;
|
|
106
|
-
isFavorite: z.ZodBoolean;
|
|
107
|
-
isFrozen: z.ZodBoolean;
|
|
108
|
-
name: z.ZodString;
|
|
109
|
-
updatedAt: z.ZodNullable<z.ZodString>;
|
|
110
|
-
viewStyle: z.ZodString;
|
|
111
|
-
defaultOrder: z.ZodNumber;
|
|
112
|
-
description: z.ZodString;
|
|
113
|
-
isCollapsed: z.ZodBoolean;
|
|
114
|
-
isShared: z.ZodBoolean;
|
|
115
|
-
access: z.ZodOptional<z.ZodObject<{
|
|
116
|
-
visibility: z.ZodEnum<{
|
|
117
|
-
restricted: "restricted";
|
|
118
|
-
team: "team";
|
|
119
|
-
public: "public";
|
|
120
|
-
}>;
|
|
121
|
-
}, z.core.$strip>>;
|
|
122
|
-
collaboratorRoleDefault: z.ZodString;
|
|
123
|
-
folderId: z.ZodNullable<z.ZodString>;
|
|
124
|
-
isInviteOnly: z.ZodNullable<z.ZodBoolean>;
|
|
125
|
-
isLinkSharingEnabled: z.ZodBoolean;
|
|
126
|
-
role: z.ZodNullable<z.ZodString>;
|
|
127
|
-
status: z.ZodString;
|
|
128
|
-
workspaceId: z.ZodString;
|
|
129
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
130
|
-
url: string;
|
|
131
|
-
id: string;
|
|
132
|
-
canAssignTasks: boolean;
|
|
133
|
-
childOrder: number;
|
|
134
|
-
color: string;
|
|
135
|
-
createdAt: string | null;
|
|
136
|
-
isArchived: boolean;
|
|
137
|
-
isDeleted: boolean;
|
|
138
|
-
isFavorite: boolean;
|
|
139
|
-
isFrozen: boolean;
|
|
140
|
-
name: string;
|
|
141
|
-
updatedAt: string | null;
|
|
142
|
-
viewStyle: string;
|
|
143
|
-
defaultOrder: number;
|
|
144
|
-
description: string;
|
|
145
|
-
isCollapsed: boolean;
|
|
146
|
-
isShared: boolean;
|
|
147
|
-
collaboratorRoleDefault: string;
|
|
148
|
-
folderId: string | null;
|
|
149
|
-
isInviteOnly: boolean | null;
|
|
150
|
-
isLinkSharingEnabled: boolean;
|
|
151
|
-
role: string | null;
|
|
152
|
-
status: string;
|
|
153
|
-
workspaceId: string;
|
|
154
|
-
access?: {
|
|
155
|
-
visibility: "restricted" | "team" | "public";
|
|
156
|
-
} | undefined;
|
|
157
|
-
}, {
|
|
158
|
-
id: string;
|
|
159
|
-
canAssignTasks: boolean;
|
|
160
|
-
childOrder: number;
|
|
161
|
-
color: string;
|
|
162
|
-
createdAt: string | null;
|
|
163
|
-
isArchived: boolean;
|
|
164
|
-
isDeleted: boolean;
|
|
165
|
-
isFavorite: boolean;
|
|
166
|
-
isFrozen: boolean;
|
|
167
|
-
name: string;
|
|
168
|
-
updatedAt: string | null;
|
|
169
|
-
viewStyle: string;
|
|
170
|
-
defaultOrder: number;
|
|
171
|
-
description: string;
|
|
172
|
-
isCollapsed: boolean;
|
|
173
|
-
isShared: boolean;
|
|
174
|
-
collaboratorRoleDefault: string;
|
|
175
|
-
folderId: string | null;
|
|
176
|
-
isInviteOnly: boolean | null;
|
|
177
|
-
isLinkSharingEnabled: boolean;
|
|
178
|
-
role: string | null;
|
|
179
|
-
status: string;
|
|
180
|
-
workspaceId: string;
|
|
181
|
-
access?: {
|
|
182
|
-
visibility: "restricted" | "team" | "public";
|
|
183
|
-
} | undefined;
|
|
184
|
-
}>>;
|
|
185
|
-
/**
|
|
186
|
-
* Represents a personal project in Todoist.
|
|
187
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects
|
|
188
|
-
*/
|
|
189
|
-
export type PersonalProject = z.infer<typeof PersonalProjectSchema>;
|
|
190
|
-
/**
|
|
191
|
-
* Represents a workspace project in Todoist.
|
|
192
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects
|
|
193
|
-
*/
|
|
194
|
-
export type WorkspaceProject = z.infer<typeof WorkspaceProjectSchema>;
|
|
195
|
-
/** Available project view styles. */
|
|
196
|
-
export declare const PROJECT_VIEW_STYLES: readonly ["list", "board", "calendar"];
|
|
197
|
-
/**
|
|
198
|
-
* View style for a project.
|
|
199
|
-
* @see https://developer.todoist.com/api/v1/#tag/Projects
|
|
200
|
-
*/
|
|
201
|
-
export type ProjectViewStyle = (typeof PROJECT_VIEW_STYLES)[number];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './requests.js';
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import type { Reminder, LocationReminder } from '../sync/resources/reminders.js';
|
|
3
|
-
/** Available reminder delivery services. */
|
|
4
|
-
export declare const REMINDER_DELIVERY_SERVICES: readonly ["email", "push"];
|
|
5
|
-
/** Delivery service for a reminder notification. */
|
|
6
|
-
export type ReminderDeliveryService = (typeof REMINDER_DELIVERY_SERVICES)[number];
|
|
7
|
-
export declare const ReminderDeliveryServiceSchema: z.ZodEnum<{
|
|
8
|
-
email: "email";
|
|
9
|
-
push: "push";
|
|
10
|
-
}>;
|
|
11
|
-
export declare const ReminderIdSchema: z.ZodString;
|
|
12
|
-
export declare const ReminderDueDateSchema: z.ZodObject<{
|
|
13
|
-
string: z.ZodOptional<z.ZodString>;
|
|
14
|
-
isRecurring: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
-
date: z.ZodOptional<z.ZodString>;
|
|
16
|
-
timezone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
17
|
-
lang: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
18
|
-
}, z.core.$strict>;
|
|
19
|
-
export type ReminderDueDate = z.infer<typeof ReminderDueDateSchema>;
|
|
20
|
-
export declare const AddRelativeReminderArgsSchema: z.ZodObject<{
|
|
21
|
-
taskId: z.ZodString;
|
|
22
|
-
reminderType: z.ZodOptional<z.ZodLiteral<"relative">>;
|
|
23
|
-
minuteOffset: z.ZodNumber;
|
|
24
|
-
service: z.ZodOptional<z.ZodEnum<{
|
|
25
|
-
email: "email";
|
|
26
|
-
push: "push";
|
|
27
|
-
}>>;
|
|
28
|
-
notifyUid: z.ZodOptional<z.ZodString>;
|
|
29
|
-
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
-
}, z.core.$strict>;
|
|
31
|
-
export type AddRelativeReminderArgs = z.infer<typeof AddRelativeReminderArgsSchema>;
|
|
32
|
-
export declare const AddAbsoluteReminderArgsSchema: z.ZodObject<{
|
|
33
|
-
taskId: z.ZodString;
|
|
34
|
-
reminderType: z.ZodLiteral<"absolute">;
|
|
35
|
-
due: z.ZodObject<{
|
|
36
|
-
string: z.ZodOptional<z.ZodString>;
|
|
37
|
-
isRecurring: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
-
date: z.ZodOptional<z.ZodString>;
|
|
39
|
-
timezone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
40
|
-
lang: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
41
|
-
}, z.core.$strict>;
|
|
42
|
-
service: z.ZodOptional<z.ZodEnum<{
|
|
43
|
-
email: "email";
|
|
44
|
-
push: "push";
|
|
45
|
-
}>>;
|
|
46
|
-
notifyUid: z.ZodOptional<z.ZodString>;
|
|
47
|
-
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
-
}, z.core.$strict>;
|
|
49
|
-
export type AddAbsoluteReminderArgs = z.infer<typeof AddAbsoluteReminderArgsSchema>;
|
|
50
|
-
export declare const AddReminderArgsSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
51
|
-
taskId: z.ZodString;
|
|
52
|
-
reminderType: z.ZodOptional<z.ZodLiteral<"relative">>;
|
|
53
|
-
minuteOffset: z.ZodNumber;
|
|
54
|
-
service: z.ZodOptional<z.ZodEnum<{
|
|
55
|
-
email: "email";
|
|
56
|
-
push: "push";
|
|
57
|
-
}>>;
|
|
58
|
-
notifyUid: z.ZodOptional<z.ZodString>;
|
|
59
|
-
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
61
|
-
taskId: z.ZodString;
|
|
62
|
-
reminderType: z.ZodLiteral<"absolute">;
|
|
63
|
-
due: z.ZodObject<{
|
|
64
|
-
string: z.ZodOptional<z.ZodString>;
|
|
65
|
-
isRecurring: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
-
date: z.ZodOptional<z.ZodString>;
|
|
67
|
-
timezone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
68
|
-
lang: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
69
|
-
}, z.core.$strict>;
|
|
70
|
-
service: z.ZodOptional<z.ZodEnum<{
|
|
71
|
-
email: "email";
|
|
72
|
-
push: "push";
|
|
73
|
-
}>>;
|
|
74
|
-
notifyUid: z.ZodOptional<z.ZodString>;
|
|
75
|
-
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
-
}, z.core.$strict>]>;
|
|
77
|
-
/**
|
|
78
|
-
* Arguments for creating a new reminder.
|
|
79
|
-
* @see https://developer.todoist.com/api/v1/#tag/Reminders/operation/create_reminder_api_v1_reminders_post
|
|
80
|
-
*/
|
|
81
|
-
export type AddReminderArgs = AddRelativeReminderArgs | AddAbsoluteReminderArgs;
|
|
82
|
-
export declare const AddLocationReminderArgsSchema: z.ZodObject<{
|
|
83
|
-
taskId: z.ZodString;
|
|
84
|
-
notifyUid: z.ZodOptional<z.ZodString>;
|
|
85
|
-
name: z.ZodString;
|
|
86
|
-
locLat: z.ZodString;
|
|
87
|
-
locLong: z.ZodString;
|
|
88
|
-
locTrigger: z.ZodEnum<{
|
|
89
|
-
on_enter: "on_enter";
|
|
90
|
-
on_leave: "on_leave";
|
|
91
|
-
}>;
|
|
92
|
-
radius: z.ZodOptional<z.ZodNumber>;
|
|
93
|
-
}, z.core.$strict>;
|
|
94
|
-
export type AddLocationReminderArgs = z.infer<typeof AddLocationReminderArgsSchema>;
|
|
95
|
-
export declare const UpdateRelativeReminderArgsSchema: z.ZodObject<{
|
|
96
|
-
reminderType: z.ZodLiteral<"relative">;
|
|
97
|
-
minuteOffset: z.ZodOptional<z.ZodNumber>;
|
|
98
|
-
notifyUid: z.ZodOptional<z.ZodString>;
|
|
99
|
-
service: z.ZodOptional<z.ZodEnum<{
|
|
100
|
-
email: "email";
|
|
101
|
-
push: "push";
|
|
102
|
-
}>>;
|
|
103
|
-
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
-
}, z.core.$strict>;
|
|
105
|
-
export type UpdateRelativeReminderArgs = z.infer<typeof UpdateRelativeReminderArgsSchema>;
|
|
106
|
-
export declare const UpdateAbsoluteReminderArgsSchema: z.ZodObject<{
|
|
107
|
-
reminderType: z.ZodLiteral<"absolute">;
|
|
108
|
-
due: z.ZodOptional<z.ZodObject<{
|
|
109
|
-
string: z.ZodOptional<z.ZodString>;
|
|
110
|
-
isRecurring: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
-
date: z.ZodOptional<z.ZodString>;
|
|
112
|
-
timezone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
113
|
-
lang: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
114
|
-
}, z.core.$strict>>;
|
|
115
|
-
notifyUid: z.ZodOptional<z.ZodString>;
|
|
116
|
-
service: z.ZodOptional<z.ZodEnum<{
|
|
117
|
-
email: "email";
|
|
118
|
-
push: "push";
|
|
119
|
-
}>>;
|
|
120
|
-
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
-
}, z.core.$strict>;
|
|
122
|
-
export type UpdateAbsoluteReminderArgs = z.infer<typeof UpdateAbsoluteReminderArgsSchema>;
|
|
123
|
-
export declare const UpdateReminderArgsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
124
|
-
reminderType: z.ZodLiteral<"relative">;
|
|
125
|
-
minuteOffset: z.ZodOptional<z.ZodNumber>;
|
|
126
|
-
notifyUid: z.ZodOptional<z.ZodString>;
|
|
127
|
-
service: z.ZodOptional<z.ZodEnum<{
|
|
128
|
-
email: "email";
|
|
129
|
-
push: "push";
|
|
130
|
-
}>>;
|
|
131
|
-
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
133
|
-
reminderType: z.ZodLiteral<"absolute">;
|
|
134
|
-
due: z.ZodOptional<z.ZodObject<{
|
|
135
|
-
string: z.ZodOptional<z.ZodString>;
|
|
136
|
-
isRecurring: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
-
date: z.ZodOptional<z.ZodString>;
|
|
138
|
-
timezone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
139
|
-
lang: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
140
|
-
}, z.core.$strict>>;
|
|
141
|
-
notifyUid: z.ZodOptional<z.ZodString>;
|
|
142
|
-
service: z.ZodOptional<z.ZodEnum<{
|
|
143
|
-
email: "email";
|
|
144
|
-
push: "push";
|
|
145
|
-
}>>;
|
|
146
|
-
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
147
|
-
}, z.core.$strict>], "reminderType">;
|
|
148
|
-
/**
|
|
149
|
-
* Arguments for updating an existing reminder.
|
|
150
|
-
* @see https://developer.todoist.com/api/v1/#tag/Reminders/operation/update_reminder_api_v1_reminders__reminder_id__post
|
|
151
|
-
*/
|
|
152
|
-
export type UpdateReminderArgs = UpdateRelativeReminderArgs | UpdateAbsoluteReminderArgs;
|
|
153
|
-
export declare const UpdateLocationReminderArgsSchema: z.ZodObject<{
|
|
154
|
-
notifyUid: z.ZodOptional<z.ZodString>;
|
|
155
|
-
name: z.ZodOptional<z.ZodString>;
|
|
156
|
-
locLat: z.ZodOptional<z.ZodString>;
|
|
157
|
-
locLong: z.ZodOptional<z.ZodString>;
|
|
158
|
-
locTrigger: z.ZodOptional<z.ZodEnum<{
|
|
159
|
-
on_enter: "on_enter";
|
|
160
|
-
on_leave: "on_leave";
|
|
161
|
-
}>>;
|
|
162
|
-
radius: z.ZodOptional<z.ZodNumber>;
|
|
163
|
-
}, z.core.$strict>;
|
|
164
|
-
/**
|
|
165
|
-
* Arguments for updating an existing location reminder.
|
|
166
|
-
*/
|
|
167
|
-
export type UpdateLocationReminderArgs = z.infer<typeof UpdateLocationReminderArgsSchema>;
|
|
168
|
-
/**
|
|
169
|
-
* Arguments for listing reminders.
|
|
170
|
-
* @see https://developer.todoist.com/api/v1/#tag/Reminders/operation/get_reminders_api_v1_reminders_get
|
|
171
|
-
*/
|
|
172
|
-
export type GetRemindersArgs = {
|
|
173
|
-
/** Filter by task ID. */
|
|
174
|
-
taskId?: string | null;
|
|
175
|
-
/** Cursor for pagination. */
|
|
176
|
-
cursor?: string | null;
|
|
177
|
-
/** Number of results per page (max 200, default 50). */
|
|
178
|
-
limit?: number;
|
|
179
|
-
};
|
|
180
|
-
/**
|
|
181
|
-
* Paginated response for reminders.
|
|
182
|
-
*/
|
|
183
|
-
export type GetRemindersResponse = {
|
|
184
|
-
results: Reminder[];
|
|
185
|
-
nextCursor: string | null;
|
|
186
|
-
};
|
|
187
|
-
/**
|
|
188
|
-
* Arguments for listing location reminders.
|
|
189
|
-
* @see https://developer.todoist.com/api/v1/#tag/Location-reminders/operation/get_location_reminders_api_v1_location_reminders_get
|
|
190
|
-
*/
|
|
191
|
-
export type GetLocationRemindersArgs = {
|
|
192
|
-
/** Filter by task ID. */
|
|
193
|
-
taskId?: string | null;
|
|
194
|
-
/** Cursor for pagination. */
|
|
195
|
-
cursor?: string | null;
|
|
196
|
-
/** Number of results per page (max 200, default 50). */
|
|
197
|
-
limit?: number;
|
|
198
|
-
};
|
|
199
|
-
/**
|
|
200
|
-
* Paginated response for location reminders.
|
|
201
|
-
*/
|
|
202
|
-
export type GetLocationRemindersResponse = {
|
|
203
|
-
results: LocationReminder[];
|
|
204
|
-
nextCursor: string | null;
|
|
205
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { SearchArgs } from '../common.js';
|
|
2
|
-
import type { Section } from './types.js';
|
|
3
|
-
/**
|
|
4
|
-
* Arguments for retrieving sections.
|
|
5
|
-
* @see https://developer.todoist.com/api/v1/#tag/Sections/operation/get_sections_api_v1_sections_get
|
|
6
|
-
*/
|
|
7
|
-
export type GetSectionsArgs = {
|
|
8
|
-
projectId?: string | null;
|
|
9
|
-
cursor?: string | null;
|
|
10
|
-
limit?: number;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Arguments for searching sections.
|
|
14
|
-
*/
|
|
15
|
-
export type SearchSectionsArgs = SearchArgs & {
|
|
16
|
-
projectId?: string | null;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Response from retrieving sections.
|
|
20
|
-
* @see https://developer.todoist.com/api/v1/#tag/Sections/operation/get_sections_api_v1_sections_get
|
|
21
|
-
*/
|
|
22
|
-
export type GetSectionsResponse = {
|
|
23
|
-
results: Section[];
|
|
24
|
-
nextCursor: string | null;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Arguments for creating a new section.
|
|
28
|
-
* @see https://developer.todoist.com/api/v1/#tag/Sections/operation/create_section_api_v1_sections_post
|
|
29
|
-
*/
|
|
30
|
-
export type AddSectionArgs = {
|
|
31
|
-
name: string;
|
|
32
|
-
projectId: string;
|
|
33
|
-
order?: number | null;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Arguments for updating a section.
|
|
37
|
-
* @see https://developer.todoist.com/api/v1/#tag/Sections/operation/update_section_api_v1_sections__section_id__post
|
|
38
|
-
*/
|
|
39
|
-
export type UpdateSectionArgs = {
|
|
40
|
-
name: string;
|
|
41
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const SectionSchema: z.ZodPipe<z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
userId: z.ZodString;
|
|
5
|
-
projectId: z.ZodString;
|
|
6
|
-
addedAt: z.ZodString;
|
|
7
|
-
updatedAt: z.ZodString;
|
|
8
|
-
archivedAt: z.ZodNullable<z.ZodString>;
|
|
9
|
-
name: z.ZodString;
|
|
10
|
-
sectionOrder: z.ZodNumber;
|
|
11
|
-
isArchived: z.ZodBoolean;
|
|
12
|
-
isDeleted: z.ZodBoolean;
|
|
13
|
-
isCollapsed: z.ZodBoolean;
|
|
14
|
-
}, z.core.$strip>, z.ZodTransform<{
|
|
15
|
-
url: string;
|
|
16
|
-
id: string;
|
|
17
|
-
userId: string;
|
|
18
|
-
projectId: string;
|
|
19
|
-
addedAt: string;
|
|
20
|
-
updatedAt: string;
|
|
21
|
-
archivedAt: string | null;
|
|
22
|
-
name: string;
|
|
23
|
-
sectionOrder: number;
|
|
24
|
-
isArchived: boolean;
|
|
25
|
-
isDeleted: boolean;
|
|
26
|
-
isCollapsed: boolean;
|
|
27
|
-
}, {
|
|
28
|
-
id: string;
|
|
29
|
-
userId: string;
|
|
30
|
-
projectId: string;
|
|
31
|
-
addedAt: string;
|
|
32
|
-
updatedAt: string;
|
|
33
|
-
archivedAt: string | null;
|
|
34
|
-
name: string;
|
|
35
|
-
sectionOrder: number;
|
|
36
|
-
isArchived: boolean;
|
|
37
|
-
isDeleted: boolean;
|
|
38
|
-
isCollapsed: boolean;
|
|
39
|
-
}>>;
|
|
40
|
-
/**
|
|
41
|
-
* Represents a section in a Todoist project.
|
|
42
|
-
* @see https://developer.todoist.com/api/v1/#tag/Sections
|
|
43
|
-
*/
|
|
44
|
-
export type Section = z.infer<typeof SectionSchema>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type CalendarUpdateArgs = {
|
|
2
|
-
id: string;
|
|
3
|
-
isVisible: boolean;
|
|
4
|
-
};
|
|
5
|
-
export type CalendarAccountUpdateArgs = {
|
|
6
|
-
id: string;
|
|
7
|
-
isEventsEnabled?: boolean;
|
|
8
|
-
isTasksEnabled?: boolean;
|
|
9
|
-
isAllDayTasksEnabled?: boolean;
|
|
10
|
-
pendingOperationUntil?: string | null;
|
|
11
|
-
};
|
|
12
|
-
export type CalendarAccountRestoreTaskCalendarArgs = {
|
|
13
|
-
id: string;
|
|
14
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { ColorKey } from '../../../utils/colors.js';
|
|
2
|
-
export type FilterAddArgs = {
|
|
3
|
-
name: string;
|
|
4
|
-
query: string;
|
|
5
|
-
color?: ColorKey;
|
|
6
|
-
itemOrder?: number;
|
|
7
|
-
isFavorite?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export type FilterUpdateArgs = {
|
|
10
|
-
id: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
query?: string;
|
|
13
|
-
color?: ColorKey;
|
|
14
|
-
itemOrder?: number;
|
|
15
|
-
isFavorite?: boolean;
|
|
16
|
-
};
|
|
17
|
-
export type FilterUpdateOrdersArgs = {
|
|
18
|
-
idOrderMapping: Record<string, number>;
|
|
19
|
-
};
|
|
20
|
-
export type FilterDeleteArgs = {
|
|
21
|
-
id: string;
|
|
22
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type FolderAddArgs = {
|
|
2
|
-
name: string;
|
|
3
|
-
workspaceId: string;
|
|
4
|
-
childOrder?: number;
|
|
5
|
-
defaultOrder?: number;
|
|
6
|
-
addProjectIds?: string[];
|
|
7
|
-
};
|
|
8
|
-
export type FolderUpdateArgs = {
|
|
9
|
-
id: string;
|
|
10
|
-
workspaceId: string;
|
|
11
|
-
name?: string;
|
|
12
|
-
addProjectIds?: string[];
|
|
13
|
-
removeProjectIds?: string[];
|
|
14
|
-
};
|
|
15
|
-
export type FolderDeleteArgs = {
|
|
16
|
-
id: string;
|
|
17
|
-
workspaceId: string;
|
|
18
|
-
};
|