@doist/todoist-api-typescript 7.9.1 → 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 -10
- 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 -73
- 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 -155
- 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 -7
- 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 -70
- 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 -152
- 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 -13
- 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 -142
- 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 -267
- 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 -1404
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import type { Color } from '../types/productivity/types.js';
|
|
2
|
-
export declare const berryRed: {
|
|
3
|
-
readonly key: "berry_red";
|
|
4
|
-
readonly displayName: "Berry Red";
|
|
5
|
-
readonly hexValue: "#b8255f";
|
|
6
|
-
};
|
|
7
|
-
export declare const red: {
|
|
8
|
-
readonly key: "red";
|
|
9
|
-
readonly displayName: "Red";
|
|
10
|
-
readonly hexValue: "#db4035";
|
|
11
|
-
};
|
|
12
|
-
export declare const orange: {
|
|
13
|
-
readonly key: "orange";
|
|
14
|
-
readonly displayName: "Orange";
|
|
15
|
-
readonly hexValue: "#ff9933";
|
|
16
|
-
};
|
|
17
|
-
export declare const yellow: {
|
|
18
|
-
readonly key: "yellow";
|
|
19
|
-
readonly displayName: "Yellow";
|
|
20
|
-
readonly hexValue: "#fad000";
|
|
21
|
-
};
|
|
22
|
-
export declare const oliveGreen: {
|
|
23
|
-
readonly key: "olive_green";
|
|
24
|
-
readonly displayName: "Olive Green";
|
|
25
|
-
readonly hexValue: "#afb83b";
|
|
26
|
-
};
|
|
27
|
-
export declare const limeGreen: {
|
|
28
|
-
readonly key: "lime_green";
|
|
29
|
-
readonly displayName: "Lime Green";
|
|
30
|
-
readonly hexValue: "#7ecc49";
|
|
31
|
-
};
|
|
32
|
-
export declare const green: {
|
|
33
|
-
readonly key: "green";
|
|
34
|
-
readonly displayName: "Green";
|
|
35
|
-
readonly hexValue: "#299438";
|
|
36
|
-
};
|
|
37
|
-
export declare const mintGreen: {
|
|
38
|
-
readonly key: "mint_green";
|
|
39
|
-
readonly displayName: "Mint Green";
|
|
40
|
-
readonly hexValue: "#6accbc";
|
|
41
|
-
};
|
|
42
|
-
export declare const teal: {
|
|
43
|
-
readonly key: "teal";
|
|
44
|
-
readonly displayName: "Teal";
|
|
45
|
-
readonly hexValue: "#158fad";
|
|
46
|
-
};
|
|
47
|
-
export declare const skyBlue: {
|
|
48
|
-
readonly key: "sky_blue";
|
|
49
|
-
readonly displayName: "Sky Blue";
|
|
50
|
-
readonly hexValue: "#14aaf5";
|
|
51
|
-
};
|
|
52
|
-
export declare const lightBlue: {
|
|
53
|
-
readonly key: "light_blue";
|
|
54
|
-
readonly displayName: "Light Blue";
|
|
55
|
-
readonly hexValue: "#96c3eb";
|
|
56
|
-
};
|
|
57
|
-
export declare const blue: {
|
|
58
|
-
readonly key: "blue";
|
|
59
|
-
readonly displayName: "Blue";
|
|
60
|
-
readonly hexValue: "#4073ff";
|
|
61
|
-
};
|
|
62
|
-
export declare const grape: {
|
|
63
|
-
readonly key: "grape";
|
|
64
|
-
readonly displayName: "Grape";
|
|
65
|
-
readonly hexValue: "#884dff";
|
|
66
|
-
};
|
|
67
|
-
export declare const violet: {
|
|
68
|
-
readonly key: "violet";
|
|
69
|
-
readonly displayName: "Violet";
|
|
70
|
-
readonly hexValue: "#af38eb";
|
|
71
|
-
};
|
|
72
|
-
export declare const lavender: {
|
|
73
|
-
readonly key: "lavender";
|
|
74
|
-
readonly displayName: "Lavender";
|
|
75
|
-
readonly hexValue: "#eb96eb";
|
|
76
|
-
};
|
|
77
|
-
export declare const magenta: {
|
|
78
|
-
readonly key: "magenta";
|
|
79
|
-
readonly displayName: "Magenta";
|
|
80
|
-
readonly hexValue: "#e05194";
|
|
81
|
-
};
|
|
82
|
-
export declare const salmon: {
|
|
83
|
-
readonly key: "salmon";
|
|
84
|
-
readonly displayName: "Salmon";
|
|
85
|
-
readonly hexValue: "#ff8d85";
|
|
86
|
-
};
|
|
87
|
-
export declare const charcoal: {
|
|
88
|
-
readonly key: "charcoal";
|
|
89
|
-
readonly displayName: "Charcoal";
|
|
90
|
-
readonly hexValue: "#808080";
|
|
91
|
-
};
|
|
92
|
-
export declare const grey: {
|
|
93
|
-
readonly key: "grey";
|
|
94
|
-
readonly displayName: "Grey";
|
|
95
|
-
readonly hexValue: "#b8b8b8";
|
|
96
|
-
};
|
|
97
|
-
export declare const taupe: {
|
|
98
|
-
readonly key: "taupe";
|
|
99
|
-
readonly displayName: "Taupe";
|
|
100
|
-
readonly hexValue: "#ccac93";
|
|
101
|
-
};
|
|
102
|
-
export declare const colors: readonly [{
|
|
103
|
-
readonly key: "berry_red";
|
|
104
|
-
readonly displayName: "Berry Red";
|
|
105
|
-
readonly hexValue: "#b8255f";
|
|
106
|
-
}, {
|
|
107
|
-
readonly key: "red";
|
|
108
|
-
readonly displayName: "Red";
|
|
109
|
-
readonly hexValue: "#db4035";
|
|
110
|
-
}, {
|
|
111
|
-
readonly key: "orange";
|
|
112
|
-
readonly displayName: "Orange";
|
|
113
|
-
readonly hexValue: "#ff9933";
|
|
114
|
-
}, {
|
|
115
|
-
readonly key: "yellow";
|
|
116
|
-
readonly displayName: "Yellow";
|
|
117
|
-
readonly hexValue: "#fad000";
|
|
118
|
-
}, {
|
|
119
|
-
readonly key: "olive_green";
|
|
120
|
-
readonly displayName: "Olive Green";
|
|
121
|
-
readonly hexValue: "#afb83b";
|
|
122
|
-
}, {
|
|
123
|
-
readonly key: "lime_green";
|
|
124
|
-
readonly displayName: "Lime Green";
|
|
125
|
-
readonly hexValue: "#7ecc49";
|
|
126
|
-
}, {
|
|
127
|
-
readonly key: "green";
|
|
128
|
-
readonly displayName: "Green";
|
|
129
|
-
readonly hexValue: "#299438";
|
|
130
|
-
}, {
|
|
131
|
-
readonly key: "mint_green";
|
|
132
|
-
readonly displayName: "Mint Green";
|
|
133
|
-
readonly hexValue: "#6accbc";
|
|
134
|
-
}, {
|
|
135
|
-
readonly key: "teal";
|
|
136
|
-
readonly displayName: "Teal";
|
|
137
|
-
readonly hexValue: "#158fad";
|
|
138
|
-
}, {
|
|
139
|
-
readonly key: "sky_blue";
|
|
140
|
-
readonly displayName: "Sky Blue";
|
|
141
|
-
readonly hexValue: "#14aaf5";
|
|
142
|
-
}, {
|
|
143
|
-
readonly key: "light_blue";
|
|
144
|
-
readonly displayName: "Light Blue";
|
|
145
|
-
readonly hexValue: "#96c3eb";
|
|
146
|
-
}, {
|
|
147
|
-
readonly key: "blue";
|
|
148
|
-
readonly displayName: "Blue";
|
|
149
|
-
readonly hexValue: "#4073ff";
|
|
150
|
-
}, {
|
|
151
|
-
readonly key: "grape";
|
|
152
|
-
readonly displayName: "Grape";
|
|
153
|
-
readonly hexValue: "#884dff";
|
|
154
|
-
}, {
|
|
155
|
-
readonly key: "violet";
|
|
156
|
-
readonly displayName: "Violet";
|
|
157
|
-
readonly hexValue: "#af38eb";
|
|
158
|
-
}, {
|
|
159
|
-
readonly key: "lavender";
|
|
160
|
-
readonly displayName: "Lavender";
|
|
161
|
-
readonly hexValue: "#eb96eb";
|
|
162
|
-
}, {
|
|
163
|
-
readonly key: "magenta";
|
|
164
|
-
readonly displayName: "Magenta";
|
|
165
|
-
readonly hexValue: "#e05194";
|
|
166
|
-
}, {
|
|
167
|
-
readonly key: "salmon";
|
|
168
|
-
readonly displayName: "Salmon";
|
|
169
|
-
readonly hexValue: "#ff8d85";
|
|
170
|
-
}, {
|
|
171
|
-
readonly key: "charcoal";
|
|
172
|
-
readonly displayName: "Charcoal";
|
|
173
|
-
readonly hexValue: "#808080";
|
|
174
|
-
}, {
|
|
175
|
-
readonly key: "grey";
|
|
176
|
-
readonly displayName: "Grey";
|
|
177
|
-
readonly hexValue: "#b8b8b8";
|
|
178
|
-
}, {
|
|
179
|
-
readonly key: "taupe";
|
|
180
|
-
readonly displayName: "Taupe";
|
|
181
|
-
readonly hexValue: "#ccac93";
|
|
182
|
-
}];
|
|
183
|
-
export type ColorKey = (typeof colors)[number]['key'];
|
|
184
|
-
export declare const defaultColor: Color;
|
|
185
|
-
/**
|
|
186
|
-
* Retrieves a {@link Color} object by its key identifier.
|
|
187
|
-
*
|
|
188
|
-
* @param colorKey - The unique key identifier of the color to find (e.g., 'berry_red', 'sky_blue')
|
|
189
|
-
* @returns The matching Color object if found, otherwise returns the default color (charcoal)
|
|
190
|
-
*
|
|
191
|
-
* @example
|
|
192
|
-
* ```typescript
|
|
193
|
-
* const color = getColorByKey('berry_red');
|
|
194
|
-
* console.log(color.hexValue); // '#b8255f'
|
|
195
|
-
* ```
|
|
196
|
-
*/
|
|
197
|
-
export declare function getColorByKey(colorKey: string): Color;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { CustomFetch } from '../types/http.js';
|
|
2
|
-
type UploadMultipartFileArgs = {
|
|
3
|
-
baseUrl: string;
|
|
4
|
-
authToken: string;
|
|
5
|
-
endpoint: string;
|
|
6
|
-
file: Buffer | NodeJS.ReadableStream | string | Blob;
|
|
7
|
-
fileName?: string;
|
|
8
|
-
additionalFields: Record<string, string | number | boolean>;
|
|
9
|
-
requestId?: string;
|
|
10
|
-
customFetch?: CustomFetch;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Uploads a file using multipart/form-data.
|
|
14
|
-
*
|
|
15
|
-
* This is a shared utility for uploading files to Todoist endpoints that require
|
|
16
|
-
* multipart/form-data content type (e.g., file uploads, workspace logo uploads).
|
|
17
|
-
*
|
|
18
|
-
* Supports both browser (Blob/File) and Node.js (Buffer/ReadableStream/path) environments.
|
|
19
|
-
*
|
|
20
|
-
* @param baseUrl - The base API URL (e.g., https://api.todoist.com/api/v1/)
|
|
21
|
-
* @param authToken - The authentication token
|
|
22
|
-
* @param endpoint - The relative endpoint path (e.g., 'uploads', 'workspaces/logo')
|
|
23
|
-
* @param file - The file content (Blob/File for browser, or Buffer/ReadableStream/path for Node)
|
|
24
|
-
* @param fileName - Optional file name (required for Buffer/Stream, optional for paths and File objects)
|
|
25
|
-
* @param additionalFields - Additional form fields to include (e.g., project_id, workspace_id)
|
|
26
|
-
* @param requestId - Optional request ID for idempotency
|
|
27
|
-
* @returns The response data from the server
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```typescript
|
|
31
|
-
* // Upload from a file path
|
|
32
|
-
* const result = await uploadMultipartFile(
|
|
33
|
-
* 'https://api.todoist.com/api/v1/',
|
|
34
|
-
* 'my-token',
|
|
35
|
-
* 'uploads',
|
|
36
|
-
* '/path/to/file.pdf',
|
|
37
|
-
* undefined,
|
|
38
|
-
* { project_id: '12345' }
|
|
39
|
-
* )
|
|
40
|
-
*
|
|
41
|
-
* // Upload from a Buffer
|
|
42
|
-
* const buffer = Buffer.from('file content')
|
|
43
|
-
* const result = await uploadMultipartFile(
|
|
44
|
-
* 'https://api.todoist.com/api/v1/',
|
|
45
|
-
* 'my-token',
|
|
46
|
-
* 'uploads',
|
|
47
|
-
* buffer,
|
|
48
|
-
* 'document.pdf',
|
|
49
|
-
* { project_id: '12345' }
|
|
50
|
-
* )
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
export declare function uploadMultipartFile<T>(args: UploadMultipartFileArgs): Promise<T>;
|
|
54
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function customCamelCase(input: string): string;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Task } from '../types/index.js';
|
|
2
|
-
export type TaskWithSanitizedContent = Task & {
|
|
3
|
-
sanitizedContent: string;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Sanitizes a string by removing Todoist's formatting syntax (e.g. bold, italic, code blocks, links).
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* // Removes bold/italic formatting
|
|
10
|
-
* getSanitizedContent('Some **bold** and *italic*') // 'Some bold and italic'
|
|
11
|
-
*
|
|
12
|
-
* // Removes markdown links
|
|
13
|
-
* getSanitizedContent('A [markdown](http://url.com) link') // 'A markdown link'
|
|
14
|
-
*
|
|
15
|
-
* // Removes app-specific links
|
|
16
|
-
* getSanitizedContent('A [[gmail=id, link from gmail]]') // 'A link from gmail'
|
|
17
|
-
*
|
|
18
|
-
* @param input - The string to sanitize
|
|
19
|
-
* @returns The sanitized string with all formatting removed
|
|
20
|
-
*/
|
|
21
|
-
export declare function getSanitizedContent(input: string): string;
|
|
22
|
-
/**
|
|
23
|
-
* Takes an array of tasks and returns a new array with sanitized content
|
|
24
|
-
* added as 'sanitizedContent' property to each task.
|
|
25
|
-
*
|
|
26
|
-
* @see {@link getSanitizedContent}
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* const tasks = [{ content: '**Bold** task', ... }]
|
|
30
|
-
* getSanitizedTasks(tasks) // [{ content: '**Bold** task', sanitizedContent: 'Bold task', ... }]
|
|
31
|
-
*
|
|
32
|
-
* @param tasks - Array of Task objects to sanitize
|
|
33
|
-
* @returns Array of tasks with added sanitizedContent property
|
|
34
|
-
*/
|
|
35
|
-
export declare function getSanitizedTasks(tasks: Task[]): TaskWithSanitizedContent[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { SyncCommandType, SyncCommandsMap, SyncCommand } from '../types/sync/commands/index.js';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a strongly-typed Sync API command with an auto-generated UUID.
|
|
4
|
-
*
|
|
5
|
-
* @param type - The command type (e.g. `'item_add'`, `'project_update'`).
|
|
6
|
-
* @param args - The command arguments, constrained by the command type.
|
|
7
|
-
* @param tempId - Optional temporary ID for referencing the created resource in subsequent commands.
|
|
8
|
-
* @returns A fully formed `SyncCommand` ready to include in a sync request.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```typescript
|
|
12
|
-
* const cmd = createCommand('item_add', { content: 'Buy milk', priority: 2 })
|
|
13
|
-
* // cmd.type === 'item_add'
|
|
14
|
-
* // cmd.args is typed as TaskAddArgs
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export declare function createCommand<T extends SyncCommandType>(type: T, args: SyncCommandsMap[T], tempId?: string): SyncCommand<T>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Adds the uncompletable prefix (* ) to task content if not already present
|
|
3
|
-
* @param content - The task content
|
|
4
|
-
* @returns Content with uncompletable prefix added
|
|
5
|
-
*/
|
|
6
|
-
export declare function addUncompletablePrefix(content: string): string;
|
|
7
|
-
/**
|
|
8
|
-
* Removes the uncompletable prefix (* ) from task content if present
|
|
9
|
-
* @param content - The task content
|
|
10
|
-
* @returns Content with uncompletable prefix removed
|
|
11
|
-
*/
|
|
12
|
-
export declare function removeUncompletablePrefix(content: string): string;
|
|
13
|
-
/**
|
|
14
|
-
* Checks if task content has the uncompletable prefix (* )
|
|
15
|
-
* @param content - The task content
|
|
16
|
-
* @returns True if content starts with uncompletable prefix
|
|
17
|
-
*/
|
|
18
|
-
export declare function hasUncompletablePrefix(content: string): boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Processes task content based on isUncompletable flag, with content prefix taking precedence
|
|
21
|
-
* @param content - The original task content
|
|
22
|
-
* @param isUncompletable - Optional flag to make task uncompletable
|
|
23
|
-
* @returns Processed content
|
|
24
|
-
*
|
|
25
|
-
* Logic:
|
|
26
|
-
* - If content already has * prefix, task is uncompletable regardless of flag
|
|
27
|
-
* - If content doesn't have * prefix and isUncompletable is true, add the prefix
|
|
28
|
-
* - If isUncompletable is undefined or false (and no prefix), leave content unchanged
|
|
29
|
-
*/
|
|
30
|
-
export declare function processTaskContent(content: string, isUncompletable?: boolean): string;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Formats a Date object to YYYY-MM-DD string format.
|
|
3
|
-
*
|
|
4
|
-
* @internal
|
|
5
|
-
* @param date The Date object to format.
|
|
6
|
-
* @returns The formatted date string in YYYY-MM-DD format.
|
|
7
|
-
*/
|
|
8
|
-
export declare function formatDateToYYYYMMDD(date: Date): string;
|
|
9
|
-
/**
|
|
10
|
-
* Generate the URL for a given task.
|
|
11
|
-
*
|
|
12
|
-
* @param taskId The ID of the task.
|
|
13
|
-
* @param content The content of the task.
|
|
14
|
-
* @returns The URL string for the task view.
|
|
15
|
-
*/
|
|
16
|
-
export declare function getTaskUrl(taskId: string, content?: string): string;
|
|
17
|
-
/**
|
|
18
|
-
* Generate the URL for a given project.
|
|
19
|
-
*
|
|
20
|
-
* @param projectId The ID of the project.
|
|
21
|
-
* @param name The name of the project.
|
|
22
|
-
* @returns The URL string for the project view.
|
|
23
|
-
*/
|
|
24
|
-
export declare function getProjectUrl(projectId: string, name?: string): string;
|
|
25
|
-
/**
|
|
26
|
-
* Generate the URL for a given section.
|
|
27
|
-
*
|
|
28
|
-
* @param sectionId The ID of the section.
|
|
29
|
-
* @param name The name of the section.
|
|
30
|
-
* @returns The URL string for the section view.
|
|
31
|
-
*/
|
|
32
|
-
export declare function getSectionUrl(sectionId: string, name?: string): string;
|