@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,171 +0,0 @@
|
|
|
1
|
-
import type { TaskAddArgs, TaskUpdateArgs, TaskCompleteArgs, TaskCompleteUndoArgs, TaskMoveArgs, TaskReorderArgs, TaskUncompleteArgs, TaskUpdateDateCompleteArgs, TaskDeleteArgs, TaskUpdateDayOrderArgs } from './tasks.js';
|
|
2
|
-
import type { ProjectAddArgs, ProjectUpdateArgs, ProjectMoveArgs, ProjectReorderArgs, ShareProjectArgs, ProjectLeaveArgs, ProjectArchiveArgs, ProjectUnarchiveArgs, ProjectDeleteArgs, ProjectMoveToWorkspaceArgs, ProjectMoveToPersonalArgs } from './projects.js';
|
|
3
|
-
import type { SectionAddArgs, SectionUpdateArgs, SectionMoveArgs, SectionReorderArgs, SectionArchiveArgs, SectionUnarchiveArgs, SectionDeleteArgs } from './sections.js';
|
|
4
|
-
import type { LabelAddArgs, LabelRenameArgs, LabelUpdateArgs, LabelUpdateOrdersArgs, LabelDeleteArgs, LabelDeleteOccurrencesArgs } from './labels.js';
|
|
5
|
-
import type { FilterAddArgs, FilterUpdateArgs, FilterUpdateOrdersArgs, FilterDeleteArgs } from './filters.js';
|
|
6
|
-
import type { NoteAddArgs, NoteUpdateArgs, NoteDeleteArgs, NoteReactionAddArgs, NoteReactionRemoveArgs } from './notes.js';
|
|
7
|
-
import type { ReminderAddArgs, ReminderUpdateArgs, ReminderDeleteArgs } from './reminders.js';
|
|
8
|
-
import type { WorkspaceAddArgs, WorkspaceUpdateArgs, WorkspaceDeleteArgs, WorkspaceUpdateUserArgs, WorkspaceDeleteUserArgs, WorkspaceLeaveArgs, WorkspaceInviteArgs, WorkspaceSetDefaultOrderArgs, WorkspaceUpdateUserProjectSortPreferenceArgs } from './workspaces.js';
|
|
9
|
-
import type { FolderAddArgs, FolderUpdateArgs, FolderDeleteArgs } from './folders.js';
|
|
10
|
-
import type { WorkspaceFilterAddArgs, WorkspaceFilterUpdateArgs, WorkspaceFilterUpdateOrdersArgs, WorkspaceFilterDeleteArgs } from './workspace-filters.js';
|
|
11
|
-
import type { WorkspaceGoalAddArgs, WorkspaceGoalUpdateArgs, WorkspaceGoalDeleteArgs, WorkspaceGoalProjectAddArgs, WorkspaceGoalProjectRemoveArgs } from './workspace-goals.js';
|
|
12
|
-
import type { LiveNotificationsMarkUnreadArgs, LiveNotificationsMarkReadArgs, LiveNotificationsMarkReadAllArgs, LiveNotificationsSetLastReadArgs } from './notifications.js';
|
|
13
|
-
import type { AcceptInvitationArgs, RejectInvitationArgs, BizAcceptInvitationArgs, BizRejectInvitationArgs } from './sharing.js';
|
|
14
|
-
import type { ViewOptionsSetArgs, ViewOptionsDeleteArgs } from './view-options.js';
|
|
15
|
-
import type { ProjectViewOptionsDefaultsSetArgs } from './project-view-options.js';
|
|
16
|
-
import type { CalendarUpdateArgs, CalendarAccountUpdateArgs, CalendarAccountRestoreTaskCalendarArgs } from './calendars.js';
|
|
17
|
-
import type { UserUpdateArgs, DeleteCollaboratorArgs, IdMappingArgs, SuggestionDeleteArgs, UserSettingsUpdateArgs, UpdateGoalsArgs } from './others.js';
|
|
18
|
-
/**
|
|
19
|
-
* Maps each Sync API command type string to its corresponding argument type.
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```typescript
|
|
23
|
-
* // TypeScript will enforce the correct args shape:
|
|
24
|
-
* const command: SyncCommand<'item_add'> = {
|
|
25
|
-
* type: 'item_add',
|
|
26
|
-
* uuid: '...',
|
|
27
|
-
* args: { content: 'Buy milk' } // Must satisfy TaskAddArgs
|
|
28
|
-
* }
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export type SyncCommandsMap = {
|
|
32
|
-
item_add: TaskAddArgs;
|
|
33
|
-
item_update: TaskUpdateArgs;
|
|
34
|
-
item_complete: TaskCompleteArgs;
|
|
35
|
-
item_complete_undo: TaskCompleteUndoArgs;
|
|
36
|
-
item_move: TaskMoveArgs;
|
|
37
|
-
item_reorder: TaskReorderArgs;
|
|
38
|
-
item_uncomplete: TaskUncompleteArgs;
|
|
39
|
-
item_update_date_complete: TaskUpdateDateCompleteArgs;
|
|
40
|
-
item_delete: TaskDeleteArgs;
|
|
41
|
-
item_update_day_orders: TaskUpdateDayOrderArgs;
|
|
42
|
-
project_add: ProjectAddArgs;
|
|
43
|
-
project_update: ProjectUpdateArgs;
|
|
44
|
-
project_move: ProjectMoveArgs;
|
|
45
|
-
project_reorder: ProjectReorderArgs;
|
|
46
|
-
share_project: ShareProjectArgs;
|
|
47
|
-
project_leave: ProjectLeaveArgs;
|
|
48
|
-
project_archive: ProjectArchiveArgs;
|
|
49
|
-
project_unarchive: ProjectUnarchiveArgs;
|
|
50
|
-
project_delete: ProjectDeleteArgs;
|
|
51
|
-
project_move_to_workspace: ProjectMoveToWorkspaceArgs;
|
|
52
|
-
project_move_to_personal: ProjectMoveToPersonalArgs;
|
|
53
|
-
section_add: SectionAddArgs;
|
|
54
|
-
section_update: SectionUpdateArgs;
|
|
55
|
-
section_move: SectionMoveArgs;
|
|
56
|
-
section_reorder: SectionReorderArgs;
|
|
57
|
-
section_archive: SectionArchiveArgs;
|
|
58
|
-
section_unarchive: SectionUnarchiveArgs;
|
|
59
|
-
section_delete: SectionDeleteArgs;
|
|
60
|
-
label_add: LabelAddArgs;
|
|
61
|
-
label_rename: LabelRenameArgs;
|
|
62
|
-
label_update: LabelUpdateArgs;
|
|
63
|
-
label_update_orders: LabelUpdateOrdersArgs;
|
|
64
|
-
label_delete: LabelDeleteArgs;
|
|
65
|
-
label_delete_occurrences: LabelDeleteOccurrencesArgs;
|
|
66
|
-
filter_add: FilterAddArgs;
|
|
67
|
-
filter_update: FilterUpdateArgs;
|
|
68
|
-
filter_update_orders: FilterUpdateOrdersArgs;
|
|
69
|
-
filter_delete: FilterDeleteArgs;
|
|
70
|
-
note_add: NoteAddArgs;
|
|
71
|
-
note_update: NoteUpdateArgs;
|
|
72
|
-
note_delete: NoteDeleteArgs;
|
|
73
|
-
note_reaction_add: NoteReactionAddArgs;
|
|
74
|
-
note_reaction_remove: NoteReactionRemoveArgs;
|
|
75
|
-
reminder_add: ReminderAddArgs;
|
|
76
|
-
reminder_update: ReminderUpdateArgs;
|
|
77
|
-
reminder_delete: ReminderDeleteArgs;
|
|
78
|
-
workspace_add: WorkspaceAddArgs;
|
|
79
|
-
workspace_update: WorkspaceUpdateArgs;
|
|
80
|
-
workspace_delete: WorkspaceDeleteArgs;
|
|
81
|
-
workspace_update_user: WorkspaceUpdateUserArgs;
|
|
82
|
-
workspace_delete_user: WorkspaceDeleteUserArgs;
|
|
83
|
-
workspace_leave: WorkspaceLeaveArgs;
|
|
84
|
-
workspace_invite: WorkspaceInviteArgs;
|
|
85
|
-
workspace_set_default_project_ordering: WorkspaceSetDefaultOrderArgs;
|
|
86
|
-
workspace_update_user_project_sort_preference: WorkspaceUpdateUserProjectSortPreferenceArgs;
|
|
87
|
-
folder_add: FolderAddArgs;
|
|
88
|
-
folder_update: FolderUpdateArgs;
|
|
89
|
-
folder_delete: FolderDeleteArgs;
|
|
90
|
-
workspace_filter_add: WorkspaceFilterAddArgs;
|
|
91
|
-
workspace_filter_update: WorkspaceFilterUpdateArgs;
|
|
92
|
-
workspace_filter_update_orders: WorkspaceFilterUpdateOrdersArgs;
|
|
93
|
-
workspace_filter_delete: WorkspaceFilterDeleteArgs;
|
|
94
|
-
workspace_goal_add: WorkspaceGoalAddArgs;
|
|
95
|
-
workspace_goal_update: WorkspaceGoalUpdateArgs;
|
|
96
|
-
workspace_goal_delete: WorkspaceGoalDeleteArgs;
|
|
97
|
-
workspace_goal_project_add: WorkspaceGoalProjectAddArgs;
|
|
98
|
-
workspace_goal_project_remove: WorkspaceGoalProjectRemoveArgs;
|
|
99
|
-
live_notifications_mark_unread: LiveNotificationsMarkUnreadArgs;
|
|
100
|
-
live_notifications_mark_read: LiveNotificationsMarkReadArgs;
|
|
101
|
-
live_notifications_mark_read_all: LiveNotificationsMarkReadAllArgs;
|
|
102
|
-
live_notifications_set_last_read: LiveNotificationsSetLastReadArgs;
|
|
103
|
-
accept_invitation: AcceptInvitationArgs;
|
|
104
|
-
reject_invitation: RejectInvitationArgs;
|
|
105
|
-
biz_accept_invitation: BizAcceptInvitationArgs;
|
|
106
|
-
biz_reject_invitation: BizRejectInvitationArgs;
|
|
107
|
-
view_options_set: ViewOptionsSetArgs;
|
|
108
|
-
view_options_delete: ViewOptionsDeleteArgs;
|
|
109
|
-
project_view_options_defaults_set: ProjectViewOptionsDefaultsSetArgs;
|
|
110
|
-
calendar_update: CalendarUpdateArgs;
|
|
111
|
-
calendar_account_update: CalendarAccountUpdateArgs;
|
|
112
|
-
calendar_account_restore_task_calendar: CalendarAccountRestoreTaskCalendarArgs;
|
|
113
|
-
user_update: UserUpdateArgs;
|
|
114
|
-
user_settings_update: UserSettingsUpdateArgs;
|
|
115
|
-
update_goals: UpdateGoalsArgs;
|
|
116
|
-
delete_collaborator: DeleteCollaboratorArgs;
|
|
117
|
-
id_mapping: IdMappingArgs;
|
|
118
|
-
suggestion_delete: SuggestionDeleteArgs;
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* All known Sync API command type strings.
|
|
122
|
-
*/
|
|
123
|
-
export type SyncCommandType = keyof SyncCommandsMap;
|
|
124
|
-
/**
|
|
125
|
-
* A strongly-typed Sync API command.
|
|
126
|
-
*
|
|
127
|
-
* When `Type` is a known command type (e.g. `'item_add'`), `args` is constrained
|
|
128
|
-
* to the corresponding argument type. For unknown command types, `args` falls back
|
|
129
|
-
* to `Record<string, unknown>`.
|
|
130
|
-
*
|
|
131
|
-
* @example
|
|
132
|
-
* ```typescript
|
|
133
|
-
* // Strongly typed:
|
|
134
|
-
* const cmd: SyncCommand<'item_add'> = {
|
|
135
|
-
* type: 'item_add',
|
|
136
|
-
* uuid: 'abc-123',
|
|
137
|
-
* args: { content: 'Buy milk' },
|
|
138
|
-
* }
|
|
139
|
-
*
|
|
140
|
-
* // Untyped (backwards compatible):
|
|
141
|
-
* const cmd2: SyncCommand = {
|
|
142
|
-
* type: 'custom_command',
|
|
143
|
-
* uuid: 'def-456',
|
|
144
|
-
* args: { foo: 'bar' },
|
|
145
|
-
* }
|
|
146
|
-
* ```
|
|
147
|
-
*/
|
|
148
|
-
export type SyncCommand<Type extends SyncCommandType | string = string> = {
|
|
149
|
-
type: Type;
|
|
150
|
-
uuid: string;
|
|
151
|
-
args: Type extends SyncCommandType ? SyncCommandsMap[Type] : Record<string, unknown>;
|
|
152
|
-
tempId?: string;
|
|
153
|
-
};
|
|
154
|
-
export * from './shared.js';
|
|
155
|
-
export * from './tasks.js';
|
|
156
|
-
export * from './projects.js';
|
|
157
|
-
export * from './sections.js';
|
|
158
|
-
export * from './labels.js';
|
|
159
|
-
export * from './filters.js';
|
|
160
|
-
export * from './notes.js';
|
|
161
|
-
export * from './reminders.js';
|
|
162
|
-
export * from './workspaces.js';
|
|
163
|
-
export * from './folders.js';
|
|
164
|
-
export * from './workspace-filters.js';
|
|
165
|
-
export * from './workspace-goals.js';
|
|
166
|
-
export * from './notifications.js';
|
|
167
|
-
export * from './sharing.js';
|
|
168
|
-
export * from './view-options.js';
|
|
169
|
-
export * from './project-view-options.js';
|
|
170
|
-
export * from './calendars.js';
|
|
171
|
-
export * from './others.js';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { ColorKey } from '../../../utils/colors.js';
|
|
2
|
-
export type LabelAddArgs = {
|
|
3
|
-
name: string;
|
|
4
|
-
color?: ColorKey;
|
|
5
|
-
itemOrder?: number;
|
|
6
|
-
isFavorite?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export type LabelRenameArgs = {
|
|
9
|
-
nameOld: string;
|
|
10
|
-
nameNew: string;
|
|
11
|
-
};
|
|
12
|
-
export type LabelUpdateArgs = {
|
|
13
|
-
id: string;
|
|
14
|
-
name?: string;
|
|
15
|
-
color?: ColorKey;
|
|
16
|
-
itemOrder?: number;
|
|
17
|
-
isFavorite?: boolean;
|
|
18
|
-
};
|
|
19
|
-
export type LabelUpdateOrdersArgs = {
|
|
20
|
-
idOrderMapping: Record<string, number>;
|
|
21
|
-
};
|
|
22
|
-
/** Available label delete cascade modes. */
|
|
23
|
-
export declare const LABEL_DELETE_CASCADE_MODES: readonly ["none", "all"];
|
|
24
|
-
/** Cascade mode when deleting a label. */
|
|
25
|
-
export type LabelDeleteCascadeMode = (typeof LABEL_DELETE_CASCADE_MODES)[number];
|
|
26
|
-
export type LabelDeleteArgs = {
|
|
27
|
-
id: string;
|
|
28
|
-
cascade?: LabelDeleteCascadeMode;
|
|
29
|
-
};
|
|
30
|
-
export type LabelDeleteOccurrencesArgs = {
|
|
31
|
-
name: string;
|
|
32
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export type NoteAddArgs = {
|
|
2
|
-
itemId?: string;
|
|
3
|
-
projectId?: string;
|
|
4
|
-
content?: string;
|
|
5
|
-
fileAttachment?: unknown;
|
|
6
|
-
uidsToNotify?: string[];
|
|
7
|
-
postedAt: string;
|
|
8
|
-
};
|
|
9
|
-
export type NoteUpdateArgs = {
|
|
10
|
-
id: string;
|
|
11
|
-
itemId?: string;
|
|
12
|
-
projectId?: string;
|
|
13
|
-
content?: string;
|
|
14
|
-
fileAttachment?: unknown;
|
|
15
|
-
uidsToNotify?: string[];
|
|
16
|
-
};
|
|
17
|
-
export type NoteDeleteArgs = {
|
|
18
|
-
id: string;
|
|
19
|
-
};
|
|
20
|
-
export type NoteReactionAddArgs = {
|
|
21
|
-
id: string;
|
|
22
|
-
reaction: string;
|
|
23
|
-
};
|
|
24
|
-
export type NoteReactionRemoveArgs = {
|
|
25
|
-
id: string;
|
|
26
|
-
reaction: string;
|
|
27
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type LiveNotificationsMarkUnreadArgs = {
|
|
2
|
-
ids: string[];
|
|
3
|
-
};
|
|
4
|
-
export type LiveNotificationsMarkReadArgs = {
|
|
5
|
-
ids: string[];
|
|
6
|
-
};
|
|
7
|
-
export type LiveNotificationsMarkReadAllArgs = Record<never, never>;
|
|
8
|
-
export type LiveNotificationsSetLastReadArgs = {
|
|
9
|
-
id: string;
|
|
10
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { DateFormat, DayOfWeek, TimeFormat } from '../user-preferences.js';
|
|
2
|
-
export type UserUpdateArgs = {
|
|
3
|
-
fullName?: string;
|
|
4
|
-
autoReminder?: number;
|
|
5
|
-
dateFormat?: DateFormat;
|
|
6
|
-
nextWeek?: DayOfWeek;
|
|
7
|
-
startDay?: DayOfWeek;
|
|
8
|
-
startPage?: string;
|
|
9
|
-
themeId?: string;
|
|
10
|
-
timeFormat?: TimeFormat;
|
|
11
|
-
timezone?: string;
|
|
12
|
-
};
|
|
13
|
-
export type DeleteCollaboratorArgs = {
|
|
14
|
-
projectId: string;
|
|
15
|
-
email: string;
|
|
16
|
-
};
|
|
17
|
-
export type IdMappingArgs = {
|
|
18
|
-
items?: Record<string, string>;
|
|
19
|
-
sections?: Record<string, string>;
|
|
20
|
-
notes?: Record<string, string>;
|
|
21
|
-
reminders?: Record<string, string>;
|
|
22
|
-
};
|
|
23
|
-
export type SuggestionDeleteArgs = {
|
|
24
|
-
type: 'templates';
|
|
25
|
-
};
|
|
26
|
-
export type UserSettingsUpdateArgs = {
|
|
27
|
-
reminderPush?: boolean;
|
|
28
|
-
reminderDesktop?: boolean;
|
|
29
|
-
reminderEmail?: boolean;
|
|
30
|
-
completedSoundDesktop?: boolean;
|
|
31
|
-
completedSoundMobile?: boolean;
|
|
32
|
-
};
|
|
33
|
-
export type UpdateGoalsArgs = {
|
|
34
|
-
dailyGoal?: number;
|
|
35
|
-
weeklyGoal?: number;
|
|
36
|
-
ignoreDays?: number[];
|
|
37
|
-
vacationMode?: boolean;
|
|
38
|
-
karmaDisabled?: boolean;
|
|
39
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ViewMode, GroupedBy, SortedBy, SortOrder, CalendarLayout } from '../resources/view-options.js';
|
|
2
|
-
export type CalendarSettings = {
|
|
3
|
-
layout?: CalendarLayout;
|
|
4
|
-
};
|
|
5
|
-
export type ProjectViewOptionsDefaultsSetArgs = {
|
|
6
|
-
projectId: string;
|
|
7
|
-
viewMode?: ViewMode | null;
|
|
8
|
-
groupedBy?: GroupedBy | null;
|
|
9
|
-
sortedBy?: SortedBy | null;
|
|
10
|
-
sortOrder?: SortOrder | null;
|
|
11
|
-
showCompletedTasks?: boolean;
|
|
12
|
-
filteredBy?: string | null;
|
|
13
|
-
calendarSettings?: CalendarSettings | null;
|
|
14
|
-
};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import type { ProjectViewStyle, ProjectVisibility } from '../../projects/types.js';
|
|
2
|
-
import type { WorkspaceRole, CollaboratorRole } from '../../workspaces/types.js';
|
|
3
|
-
import type { ProjectStatus } from './shared.js';
|
|
4
|
-
import type { ColorKey } from '../../../utils/colors.js';
|
|
5
|
-
export type ProjectAccessConfig = {
|
|
6
|
-
visibility: ProjectVisibility;
|
|
7
|
-
configuration?: {
|
|
8
|
-
hideCollaboratorDetails?: boolean;
|
|
9
|
-
disableDuplication?: boolean;
|
|
10
|
-
} | null;
|
|
11
|
-
};
|
|
12
|
-
export type ProjectAddArgs = {
|
|
13
|
-
name: string;
|
|
14
|
-
parentId?: string | null;
|
|
15
|
-
workspaceId?: string;
|
|
16
|
-
folderId?: string | null;
|
|
17
|
-
childOrder?: number;
|
|
18
|
-
defaultOrder?: number;
|
|
19
|
-
color?: ColorKey;
|
|
20
|
-
description?: string;
|
|
21
|
-
isFavorite?: boolean;
|
|
22
|
-
isInviteOnly?: boolean;
|
|
23
|
-
isLinkSharingEnabled?: boolean;
|
|
24
|
-
viewStyle?: ProjectViewStyle;
|
|
25
|
-
status?: ProjectStatus;
|
|
26
|
-
collaboratorRoleDefault?: CollaboratorRole;
|
|
27
|
-
access?: ProjectAccessConfig;
|
|
28
|
-
};
|
|
29
|
-
export type ProjectUpdateArgs = {
|
|
30
|
-
id: string;
|
|
31
|
-
folderId?: string | null;
|
|
32
|
-
name?: string;
|
|
33
|
-
color?: ColorKey;
|
|
34
|
-
description?: string;
|
|
35
|
-
isFavorite?: boolean;
|
|
36
|
-
isCollapsed?: boolean;
|
|
37
|
-
isInviteOnly?: boolean;
|
|
38
|
-
isLinkSharingEnabled?: boolean;
|
|
39
|
-
isProjectInsightsEnabled?: boolean;
|
|
40
|
-
viewStyle?: ProjectViewStyle;
|
|
41
|
-
status?: ProjectStatus;
|
|
42
|
-
collaboratorRoleDefault?: CollaboratorRole;
|
|
43
|
-
access?: ProjectAccessConfig;
|
|
44
|
-
};
|
|
45
|
-
export type ProjectMoveArgs = {
|
|
46
|
-
id: string;
|
|
47
|
-
parentId?: string | null;
|
|
48
|
-
};
|
|
49
|
-
export type ProjectReorderArgs = {
|
|
50
|
-
projects: Array<{
|
|
51
|
-
id: string;
|
|
52
|
-
childOrder: number;
|
|
53
|
-
}>;
|
|
54
|
-
};
|
|
55
|
-
export type ShareProjectArgs = {
|
|
56
|
-
projectId: string;
|
|
57
|
-
email: string;
|
|
58
|
-
message?: string;
|
|
59
|
-
workspaceRole?: WorkspaceRole;
|
|
60
|
-
} | {
|
|
61
|
-
projectId: string;
|
|
62
|
-
groupId: string;
|
|
63
|
-
message?: string;
|
|
64
|
-
workspaceRole?: WorkspaceRole;
|
|
65
|
-
};
|
|
66
|
-
export type ProjectLeaveArgs = {
|
|
67
|
-
projectId: string;
|
|
68
|
-
};
|
|
69
|
-
export type ProjectArchiveArgs = {
|
|
70
|
-
id: string;
|
|
71
|
-
};
|
|
72
|
-
export type ProjectUnarchiveArgs = {
|
|
73
|
-
id: string;
|
|
74
|
-
};
|
|
75
|
-
export type ProjectDeleteArgs = {
|
|
76
|
-
id: string;
|
|
77
|
-
};
|
|
78
|
-
export type ProjectMoveToWorkspaceArgs = {
|
|
79
|
-
projectId: string;
|
|
80
|
-
workspaceId: string;
|
|
81
|
-
isInviteOnly?: boolean;
|
|
82
|
-
publicAccess?: boolean;
|
|
83
|
-
access?: ProjectAccessConfig;
|
|
84
|
-
folderId?: string | null;
|
|
85
|
-
useLro?: boolean;
|
|
86
|
-
};
|
|
87
|
-
export type ProjectMoveToPersonalArgs = {
|
|
88
|
-
projectId: string;
|
|
89
|
-
useLro?: boolean;
|
|
90
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { SyncDueDate, ReminderService } from './shared.js';
|
|
2
|
-
import type { LocationTrigger, ReminderType } from '../resources/reminders.js';
|
|
3
|
-
export type ReminderAddArgs = {
|
|
4
|
-
type: Extract<ReminderType, 'absolute'>;
|
|
5
|
-
itemId: string;
|
|
6
|
-
service?: ReminderService;
|
|
7
|
-
notifyUid?: string;
|
|
8
|
-
due?: SyncDueDate;
|
|
9
|
-
} | {
|
|
10
|
-
type: Extract<ReminderType, 'relative'>;
|
|
11
|
-
itemId: string;
|
|
12
|
-
service?: ReminderService;
|
|
13
|
-
notifyUid?: string;
|
|
14
|
-
minuteOffset?: number;
|
|
15
|
-
due?: SyncDueDate;
|
|
16
|
-
} | {
|
|
17
|
-
type: Extract<ReminderType, 'location'>;
|
|
18
|
-
itemId: string;
|
|
19
|
-
name: string;
|
|
20
|
-
locLat: string;
|
|
21
|
-
locLong: string;
|
|
22
|
-
radius?: number;
|
|
23
|
-
locTrigger?: LocationTrigger;
|
|
24
|
-
notifyUid?: string;
|
|
25
|
-
};
|
|
26
|
-
export type ReminderUpdateArgs = {
|
|
27
|
-
id: string;
|
|
28
|
-
type: Extract<ReminderType, 'absolute'>;
|
|
29
|
-
service?: ReminderService;
|
|
30
|
-
notifyUid?: string;
|
|
31
|
-
due?: SyncDueDate;
|
|
32
|
-
} | {
|
|
33
|
-
id: string;
|
|
34
|
-
type: Extract<ReminderType, 'relative'>;
|
|
35
|
-
service?: ReminderService;
|
|
36
|
-
notifyUid?: string;
|
|
37
|
-
minuteOffset?: number;
|
|
38
|
-
due?: SyncDueDate;
|
|
39
|
-
} | {
|
|
40
|
-
id: string;
|
|
41
|
-
type: Extract<ReminderType, 'location'>;
|
|
42
|
-
name?: string;
|
|
43
|
-
locLat?: string;
|
|
44
|
-
locLong?: string;
|
|
45
|
-
radius?: number;
|
|
46
|
-
locTrigger?: LocationTrigger;
|
|
47
|
-
notifyUid?: string;
|
|
48
|
-
};
|
|
49
|
-
export type ReminderDeleteArgs = {
|
|
50
|
-
id: string;
|
|
51
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export type SectionAddArgs = {
|
|
2
|
-
projectId: string;
|
|
3
|
-
name: string;
|
|
4
|
-
sectionOrder?: number;
|
|
5
|
-
addedAt?: string;
|
|
6
|
-
};
|
|
7
|
-
export type SectionUpdateArgs = {
|
|
8
|
-
id: string;
|
|
9
|
-
name?: string;
|
|
10
|
-
isCollapsed?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export type SectionMoveArgs = {
|
|
13
|
-
id: string;
|
|
14
|
-
projectId: string;
|
|
15
|
-
};
|
|
16
|
-
export type SectionReorderArgs = {
|
|
17
|
-
sections: Array<{
|
|
18
|
-
id: string;
|
|
19
|
-
sectionOrder: number;
|
|
20
|
-
}>;
|
|
21
|
-
};
|
|
22
|
-
export type SectionArchiveArgs = {
|
|
23
|
-
id: string;
|
|
24
|
-
archivedAt?: string;
|
|
25
|
-
};
|
|
26
|
-
export type SectionUnarchiveArgs = {
|
|
27
|
-
id: string;
|
|
28
|
-
};
|
|
29
|
-
export type SectionDeleteArgs = {
|
|
30
|
-
id: string;
|
|
31
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared types used across multiple Sync API command argument types.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Due date for Sync API create/update operations.
|
|
6
|
-
* Unlike the REST API `DueDate` (which has required fields on responses),
|
|
7
|
-
* this type represents the input shape where all fields are optional.
|
|
8
|
-
*/
|
|
9
|
-
export type SyncDueDate = {
|
|
10
|
-
date?: string;
|
|
11
|
-
string?: string;
|
|
12
|
-
timezone?: string | null;
|
|
13
|
-
lang?: string;
|
|
14
|
-
isRecurring?: boolean;
|
|
15
|
-
} | null;
|
|
16
|
-
/**
|
|
17
|
-
* Deadline for Sync API create/update operations.
|
|
18
|
-
* Unlike the REST API `Deadline` (which requires `lang`),
|
|
19
|
-
* this type makes `lang` optional for input.
|
|
20
|
-
*/
|
|
21
|
-
export type SyncDeadline = {
|
|
22
|
-
date: string;
|
|
23
|
-
lang?: string;
|
|
24
|
-
} | null;
|
|
25
|
-
/**
|
|
26
|
-
* Duration for Sync API create/update operations.
|
|
27
|
-
*/
|
|
28
|
-
export type SyncDuration = {
|
|
29
|
-
amount: number;
|
|
30
|
-
unit: string;
|
|
31
|
-
} | null;
|
|
32
|
-
/** Task priority: 1 = normal, 2 = medium, 3 = high, 4 = urgent. */
|
|
33
|
-
export type TaskPriority = 1 | 2 | 3 | 4;
|
|
34
|
-
/** Available project workflow statuses. */
|
|
35
|
-
export declare const PROJECT_STATUSES: readonly ["PLANNED", "IN_PROGRESS", "PAUSED", "COMPLETED", "CANCELED"];
|
|
36
|
-
/** Project workflow status. */
|
|
37
|
-
export type ProjectStatus = (typeof PROJECT_STATUSES)[number];
|
|
38
|
-
export { COLLABORATOR_ROLES, type CollaboratorRole } from '../../workspaces/types.js';
|
|
39
|
-
/** Available reminder notification services. */
|
|
40
|
-
export declare const REMINDER_SERVICES: readonly ["default", "email", "mobile", "push", "no_default"];
|
|
41
|
-
/** Reminder notification service. */
|
|
42
|
-
export type ReminderService = (typeof REMINDER_SERVICES)[number];
|
|
43
|
-
/**
|
|
44
|
-
* Default access level for workspaces.
|
|
45
|
-
* Same values as {@link ProjectVisibility} from entities.
|
|
46
|
-
*/
|
|
47
|
-
export { type ProjectVisibility as DefaultAccessLevel } from '../../projects/types.js';
|
|
48
|
-
/** Available workspace project sort orders. */
|
|
49
|
-
export declare const WORKSPACE_PROJECT_SORT_ORDERS: readonly ["MANUAL", "A_TO_Z", "Z_TO_A"];
|
|
50
|
-
/** Workspace project sort order preference. */
|
|
51
|
-
export type WorkspaceProjectSortOrder = (typeof WORKSPACE_PROJECT_SORT_ORDERS)[number];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type AcceptInvitationArgs = {
|
|
2
|
-
invitationId: string;
|
|
3
|
-
invitationSecret: string;
|
|
4
|
-
};
|
|
5
|
-
export type RejectInvitationArgs = {
|
|
6
|
-
invitationId: string;
|
|
7
|
-
invitationSecret: string;
|
|
8
|
-
};
|
|
9
|
-
export type BizAcceptInvitationArgs = {
|
|
10
|
-
invitationId: string;
|
|
11
|
-
invitationSecret: string;
|
|
12
|
-
};
|
|
13
|
-
export type BizRejectInvitationArgs = {
|
|
14
|
-
invitationId: string;
|
|
15
|
-
invitationSecret: string;
|
|
16
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { SyncDueDate, SyncDeadline, SyncDuration, TaskPriority } from './shared.js';
|
|
2
|
-
export type TaskAddArgs = {
|
|
3
|
-
content: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
projectId?: string;
|
|
6
|
-
due?: SyncDueDate;
|
|
7
|
-
deadline?: SyncDeadline;
|
|
8
|
-
duration?: SyncDuration;
|
|
9
|
-
priority?: TaskPriority;
|
|
10
|
-
parentId?: string | null;
|
|
11
|
-
childOrder?: number;
|
|
12
|
-
sectionId?: string | null;
|
|
13
|
-
dayOrder?: number;
|
|
14
|
-
isCollapsed?: boolean;
|
|
15
|
-
labels?: string[];
|
|
16
|
-
assignedByUid?: string | null;
|
|
17
|
-
responsibleUid?: string | null;
|
|
18
|
-
autoReminder?: boolean;
|
|
19
|
-
autoParseLabels?: boolean;
|
|
20
|
-
};
|
|
21
|
-
export type TaskUpdateArgs = {
|
|
22
|
-
id: string;
|
|
23
|
-
content?: string;
|
|
24
|
-
description?: string;
|
|
25
|
-
due?: SyncDueDate;
|
|
26
|
-
deadline?: SyncDeadline;
|
|
27
|
-
duration?: SyncDuration;
|
|
28
|
-
priority?: TaskPriority;
|
|
29
|
-
isCollapsed?: boolean;
|
|
30
|
-
labels?: string[];
|
|
31
|
-
assignedByUid?: string | null;
|
|
32
|
-
responsibleUid?: string | null;
|
|
33
|
-
dayOrder?: number;
|
|
34
|
-
};
|
|
35
|
-
export type TaskCompleteArgs = {
|
|
36
|
-
id: string;
|
|
37
|
-
completedAt: string;
|
|
38
|
-
forceHistory?: boolean;
|
|
39
|
-
fromUndo?: boolean;
|
|
40
|
-
};
|
|
41
|
-
export type TaskCompleteUndoArgs = {
|
|
42
|
-
id: string;
|
|
43
|
-
descendants: Array<{
|
|
44
|
-
id: string;
|
|
45
|
-
checked?: boolean;
|
|
46
|
-
}>;
|
|
47
|
-
};
|
|
48
|
-
export type TaskMoveArgs = {
|
|
49
|
-
id: string;
|
|
50
|
-
parentId: string | null;
|
|
51
|
-
} | {
|
|
52
|
-
id: string;
|
|
53
|
-
sectionId: string | null;
|
|
54
|
-
} | {
|
|
55
|
-
id: string;
|
|
56
|
-
projectId: string;
|
|
57
|
-
};
|
|
58
|
-
export type TaskReorderArgs = {
|
|
59
|
-
items: Array<{
|
|
60
|
-
id: string;
|
|
61
|
-
childOrder: number;
|
|
62
|
-
}>;
|
|
63
|
-
};
|
|
64
|
-
export type TaskUncompleteArgs = {
|
|
65
|
-
id: string;
|
|
66
|
-
};
|
|
67
|
-
export type TaskUpdateDateCompleteArgs = {
|
|
68
|
-
id: string;
|
|
69
|
-
due: SyncDueDate;
|
|
70
|
-
isForward: boolean;
|
|
71
|
-
resetSubtasks?: boolean;
|
|
72
|
-
};
|
|
73
|
-
export type TaskDeleteArgs = {
|
|
74
|
-
id: string;
|
|
75
|
-
};
|
|
76
|
-
export type TaskUpdateDayOrderArgs = {
|
|
77
|
-
idsToOrders: Record<string, number | undefined>;
|
|
78
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ViewType, ViewMode, GroupedBy, SortedBy, SortOrder } from '../resources/view-options.js';
|
|
2
|
-
export type ViewOptionsSetArgs = {
|
|
3
|
-
viewType: ViewType;
|
|
4
|
-
objectId?: string;
|
|
5
|
-
groupedBy?: GroupedBy | null;
|
|
6
|
-
filteredBy?: string | null;
|
|
7
|
-
viewMode?: ViewMode;
|
|
8
|
-
showCompletedTasks?: boolean;
|
|
9
|
-
sortedBy?: SortedBy | null;
|
|
10
|
-
sortOrder?: SortOrder | null;
|
|
11
|
-
};
|
|
12
|
-
export type ViewOptionsDeleteArgs = {
|
|
13
|
-
viewType: ViewType;
|
|
14
|
-
objectId?: string;
|
|
15
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { ColorKey } from '../../../utils/colors.js';
|
|
2
|
-
export type WorkspaceFilterAddArgs = {
|
|
3
|
-
workspaceId: string;
|
|
4
|
-
name: string;
|
|
5
|
-
query: string;
|
|
6
|
-
color?: ColorKey;
|
|
7
|
-
itemOrder?: number;
|
|
8
|
-
isFavorite?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export type WorkspaceFilterUpdateArgs = {
|
|
11
|
-
id: string;
|
|
12
|
-
name?: string;
|
|
13
|
-
query?: string;
|
|
14
|
-
color?: ColorKey;
|
|
15
|
-
itemOrder?: number;
|
|
16
|
-
isFavorite?: boolean;
|
|
17
|
-
};
|
|
18
|
-
export type WorkspaceFilterUpdateOrdersArgs = {
|
|
19
|
-
idOrderMapping: Record<string, number>;
|
|
20
|
-
};
|
|
21
|
-
export type WorkspaceFilterDeleteArgs = {
|
|
22
|
-
id: string;
|
|
23
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export type WorkspaceGoalAddArgs = {
|
|
2
|
-
workspaceId: string;
|
|
3
|
-
title: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
deadline?: string | null;
|
|
6
|
-
projectIds: string[];
|
|
7
|
-
};
|
|
8
|
-
export type WorkspaceGoalUpdateArgs = {
|
|
9
|
-
id: string;
|
|
10
|
-
title?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
deadline?: string | null;
|
|
13
|
-
};
|
|
14
|
-
export type WorkspaceGoalDeleteArgs = {
|
|
15
|
-
id: string;
|
|
16
|
-
};
|
|
17
|
-
export type WorkspaceGoalProjectAddArgs = {
|
|
18
|
-
goalId: string;
|
|
19
|
-
projectId: string;
|
|
20
|
-
};
|
|
21
|
-
export type WorkspaceGoalProjectRemoveArgs = {
|
|
22
|
-
goalId: string;
|
|
23
|
-
projectId: string;
|
|
24
|
-
};
|