@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,79 +0,0 @@
|
|
|
1
|
-
import type { WorkspaceRole } from '../../workspaces/types.js';
|
|
2
|
-
import type { DefaultAccessLevel, WorkspaceProjectSortOrder } from './shared.js';
|
|
3
|
-
export type SyncWorkspaceProperties = {
|
|
4
|
-
organizationSize?: string;
|
|
5
|
-
defaultAccessLevel?: DefaultAccessLevel;
|
|
6
|
-
teamAcquisitionCohort?: string;
|
|
7
|
-
acquisitionSource?: string;
|
|
8
|
-
industry?: string;
|
|
9
|
-
department?: string;
|
|
10
|
-
creatorRole?: string;
|
|
11
|
-
desktopWorkspaceModal?: string | null;
|
|
12
|
-
hdyhau?: string;
|
|
13
|
-
acquisitionLoopLastShow?: string | null;
|
|
14
|
-
};
|
|
15
|
-
export type DefaultCollaborators = {
|
|
16
|
-
predefinedGroupIds?: string[];
|
|
17
|
-
userIds?: number[];
|
|
18
|
-
} | null;
|
|
19
|
-
export type WorkspaceAddArgs = {
|
|
20
|
-
name: string;
|
|
21
|
-
description?: string;
|
|
22
|
-
isLinkSharingEnabled?: boolean;
|
|
23
|
-
isGuestAllowed?: boolean | null;
|
|
24
|
-
domainName?: string;
|
|
25
|
-
domainDiscovery?: boolean;
|
|
26
|
-
restrictEmailDomains?: boolean;
|
|
27
|
-
properties?: SyncWorkspaceProperties;
|
|
28
|
-
defaultCollaborators?: DefaultCollaborators;
|
|
29
|
-
};
|
|
30
|
-
export type WorkspaceUpdateArgs = {
|
|
31
|
-
id: string;
|
|
32
|
-
name?: string;
|
|
33
|
-
description?: string;
|
|
34
|
-
isCollapsed?: boolean;
|
|
35
|
-
isLinkSharingEnabled?: boolean;
|
|
36
|
-
isGuestAllowed?: boolean | null;
|
|
37
|
-
inviteCode?: string;
|
|
38
|
-
domainName?: string;
|
|
39
|
-
domainDiscovery?: boolean;
|
|
40
|
-
restrictEmailDomains?: boolean;
|
|
41
|
-
properties?: SyncWorkspaceProperties;
|
|
42
|
-
defaultCollaborators?: DefaultCollaborators;
|
|
43
|
-
};
|
|
44
|
-
export type WorkspaceDeleteArgs = {
|
|
45
|
-
id: string;
|
|
46
|
-
};
|
|
47
|
-
export type WorkspaceUpdateUserArgs = {
|
|
48
|
-
workspaceId: string;
|
|
49
|
-
userEmail: string;
|
|
50
|
-
role: WorkspaceRole;
|
|
51
|
-
};
|
|
52
|
-
export type WorkspaceDeleteUserArgs = {
|
|
53
|
-
workspaceId: string;
|
|
54
|
-
userEmail: string;
|
|
55
|
-
};
|
|
56
|
-
export type WorkspaceLeaveArgs = {
|
|
57
|
-
id: string;
|
|
58
|
-
};
|
|
59
|
-
export type WorkspaceInviteArgs = {
|
|
60
|
-
id: string;
|
|
61
|
-
emailList: string[];
|
|
62
|
-
role?: WorkspaceRole;
|
|
63
|
-
};
|
|
64
|
-
export type WorkspaceSetDefaultOrderArgs = {
|
|
65
|
-
projects: Array<{
|
|
66
|
-
id: string;
|
|
67
|
-
defaultOrder: number;
|
|
68
|
-
folderId?: string | null;
|
|
69
|
-
}>;
|
|
70
|
-
folders: Array<{
|
|
71
|
-
id: string;
|
|
72
|
-
defaultOrder: number;
|
|
73
|
-
}>;
|
|
74
|
-
workspaceId: string;
|
|
75
|
-
};
|
|
76
|
-
export type WorkspaceUpdateUserProjectSortPreferenceArgs = {
|
|
77
|
-
workspaceId: string;
|
|
78
|
-
projectSortPreference: WorkspaceProjectSortOrder;
|
|
79
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* All available Sync API resource types.
|
|
3
|
-
*/
|
|
4
|
-
export declare const SYNC_RESOURCE_TYPES: readonly ["labels", "projects", "items", "notes", "project_notes", "sections", "filters", "reminders", "reminders_location", "locations", "user", "live_notifications", "collaborators", "collaborator_states", "user_settings", "notification_settings", "user_plan_limits", "completed_info", "stats", "workspaces", "workspace_users", "workspace_filters", "view_options", "project_view_options_defaults", "role_actions", "folders", "workspace_goals", "day_orders", "calendars", "calendar_accounts", "suggestions", "tooltips"];
|
|
5
|
-
export type SyncResourceType = (typeof SYNC_RESOURCE_TYPES)[number];
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const CalendarSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
summary: z.ZodString;
|
|
5
|
-
color: z.ZodNullable<z.ZodString>;
|
|
6
|
-
accountId: z.ZodString;
|
|
7
|
-
isVisible: z.ZodBoolean;
|
|
8
|
-
isTaskCalendar: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
-
}, z.core.$loose>;
|
|
10
|
-
export type Calendar = z.infer<typeof CalendarSchema>;
|
|
11
|
-
/** Available calendar account provider types. */
|
|
12
|
-
export declare const CALENDAR_ACCOUNT_TYPES: readonly ["google", "microsoft", "apple"];
|
|
13
|
-
/** Calendar account provider type. */
|
|
14
|
-
export type CalendarAccountType = (typeof CALENDAR_ACCOUNT_TYPES)[number];
|
|
15
|
-
/** Available calendar sync states. */
|
|
16
|
-
export declare const CALENDAR_SYNC_STATES: readonly ["synced", "syncing", "error"];
|
|
17
|
-
/** Sync state of a calendar account. */
|
|
18
|
-
export type CalendarSyncState = (typeof CALENDAR_SYNC_STATES)[number];
|
|
19
|
-
export declare const CalendarAccountSchema: z.ZodObject<{
|
|
20
|
-
id: z.ZodString;
|
|
21
|
-
name: z.ZodString;
|
|
22
|
-
type: z.ZodEnum<{
|
|
23
|
-
google: "google";
|
|
24
|
-
microsoft: "microsoft";
|
|
25
|
-
apple: "apple";
|
|
26
|
-
}>;
|
|
27
|
-
isDeleted: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
isEventsEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
-
isTasksEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
-
isAllDayTasksEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
pendingOperationUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
-
calendarsSyncState: z.ZodOptional<z.ZodEnum<{
|
|
33
|
-
error: "error";
|
|
34
|
-
synced: "synced";
|
|
35
|
-
syncing: "syncing";
|
|
36
|
-
}>>;
|
|
37
|
-
}, z.core.$loose>;
|
|
38
|
-
export type CalendarAccount = z.infer<typeof CalendarAccountSchema>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const CollaboratorSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
email: z.ZodString;
|
|
5
|
-
fullName: z.ZodString;
|
|
6
|
-
timezone: z.ZodString;
|
|
7
|
-
imageId: z.ZodNullable<z.ZodString>;
|
|
8
|
-
}, z.core.$loose>;
|
|
9
|
-
export type Collaborator = z.infer<typeof CollaboratorSchema>;
|
|
10
|
-
/** Available collaborator statuses. */
|
|
11
|
-
export declare const COLLABORATOR_STATUSES: readonly ["active", "invited"];
|
|
12
|
-
/** Status of a project collaborator. */
|
|
13
|
-
export type CollaboratorStatus = (typeof COLLABORATOR_STATUSES)[number];
|
|
14
|
-
export declare const CollaboratorStateSchema: z.ZodObject<{
|
|
15
|
-
userId: z.ZodString;
|
|
16
|
-
projectId: z.ZodString;
|
|
17
|
-
state: z.ZodEnum<{
|
|
18
|
-
active: "active";
|
|
19
|
-
invited: "invited";
|
|
20
|
-
}>;
|
|
21
|
-
isDeleted: z.ZodBoolean;
|
|
22
|
-
workspaceRole: z.ZodOptional<z.ZodEnum<{
|
|
23
|
-
ADMIN: "ADMIN";
|
|
24
|
-
MEMBER: "MEMBER";
|
|
25
|
-
GUEST: "GUEST";
|
|
26
|
-
}>>;
|
|
27
|
-
}, z.core.$loose>;
|
|
28
|
-
export type CollaboratorState = z.infer<typeof CollaboratorStateSchema>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const CompletedProjectMetadataSchema: z.ZodObject<{
|
|
3
|
-
projectId: z.ZodString;
|
|
4
|
-
archivedSections: z.ZodNumber;
|
|
5
|
-
completedItems: z.ZodNumber;
|
|
6
|
-
}, z.core.$loose>;
|
|
7
|
-
export type CompletedProjectMetadata = z.infer<typeof CompletedProjectMetadataSchema>;
|
|
8
|
-
export declare const CompletedSectionMetadataSchema: z.ZodObject<{
|
|
9
|
-
sectionId: z.ZodString;
|
|
10
|
-
id: z.ZodString;
|
|
11
|
-
completedItems: z.ZodNumber;
|
|
12
|
-
}, z.core.$loose>;
|
|
13
|
-
export type CompletedSectionMetadata = z.infer<typeof CompletedSectionMetadataSchema>;
|
|
14
|
-
export declare const CompletedTaskMetadataSchema: z.ZodObject<{
|
|
15
|
-
itemId: z.ZodString;
|
|
16
|
-
id: z.ZodOptional<z.ZodString>;
|
|
17
|
-
completedItems: z.ZodNumber;
|
|
18
|
-
}, z.core.$loose>;
|
|
19
|
-
export type CompletedTaskMetadata = z.infer<typeof CompletedTaskMetadataSchema>;
|
|
20
|
-
export declare const CompletedInfoSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
21
|
-
projectId: z.ZodString;
|
|
22
|
-
archivedSections: z.ZodNumber;
|
|
23
|
-
completedItems: z.ZodNumber;
|
|
24
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
25
|
-
sectionId: z.ZodString;
|
|
26
|
-
id: z.ZodString;
|
|
27
|
-
completedItems: z.ZodNumber;
|
|
28
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
29
|
-
itemId: z.ZodString;
|
|
30
|
-
id: z.ZodOptional<z.ZodString>;
|
|
31
|
-
completedItems: z.ZodNumber;
|
|
32
|
-
}, z.core.$loose>]>;
|
|
33
|
-
export type CompletedInfo = z.infer<typeof CompletedInfoSchema>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const FilterSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
query: z.ZodString;
|
|
6
|
-
color: z.ZodString;
|
|
7
|
-
isDeleted: z.ZodBoolean;
|
|
8
|
-
isFavorite: z.ZodBoolean;
|
|
9
|
-
isFrozen: z.ZodBoolean;
|
|
10
|
-
itemOrder: z.ZodNumber;
|
|
11
|
-
}, z.core.$loose>;
|
|
12
|
-
export type Filter = z.infer<typeof FilterSchema>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const FolderSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
workspaceId: z.ZodString;
|
|
6
|
-
isDeleted: z.ZodBoolean;
|
|
7
|
-
defaultOrder: z.ZodNumber;
|
|
8
|
-
childOrder: z.ZodNumber;
|
|
9
|
-
}, z.core.$loose>;
|
|
10
|
-
export type Folder = z.infer<typeof FolderSchema>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export * from './filters.js';
|
|
2
|
-
export * from './collaborators.js';
|
|
3
|
-
export * from './folders.js';
|
|
4
|
-
export * from './tooltips.js';
|
|
5
|
-
export * from './notes.js';
|
|
6
|
-
export * from './workspace-filters.js';
|
|
7
|
-
export * from './workspace-goals.js';
|
|
8
|
-
export * from './calendars.js';
|
|
9
|
-
export * from './reminders.js';
|
|
10
|
-
export * from './completed-info.js';
|
|
11
|
-
export * from './view-options.js';
|
|
12
|
-
export * from './user-plan-limits.js';
|
|
13
|
-
export * from './live-notifications.js';
|
|
14
|
-
export * from './workspaces.js';
|
|
15
|
-
export * from './user.js';
|
|
16
|
-
export * from './user-settings.js';
|
|
17
|
-
export * from './suggestions.js';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* Live notification resource from the Sync API.
|
|
4
|
-
*
|
|
5
|
-
* Uses a base schema with commonly-present fields plus `.passthrough()` for
|
|
6
|
-
* forward compatibility. The Sync API returns 20+ notification variants;
|
|
7
|
-
* fully typing each is too fragile for a library, so we validate the common
|
|
8
|
-
* shape and preserve all extra fields.
|
|
9
|
-
*/
|
|
10
|
-
export declare const LiveNotificationSchema: z.ZodObject<{
|
|
11
|
-
id: z.ZodString;
|
|
12
|
-
createdAt: z.ZodString;
|
|
13
|
-
fromUid: z.ZodString;
|
|
14
|
-
notificationType: z.ZodString;
|
|
15
|
-
isUnread: z.ZodBoolean;
|
|
16
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
17
|
-
invitationId: z.ZodOptional<z.ZodString>;
|
|
18
|
-
itemId: z.ZodOptional<z.ZodString>;
|
|
19
|
-
itemContent: z.ZodOptional<z.ZodString>;
|
|
20
|
-
responsibleUid: z.ZodOptional<z.ZodString>;
|
|
21
|
-
assignedByUid: z.ZodOptional<z.ZodString>;
|
|
22
|
-
fromUser: z.ZodOptional<z.ZodObject<{
|
|
23
|
-
email: z.ZodString;
|
|
24
|
-
fullName: z.ZodString;
|
|
25
|
-
id: z.ZodString;
|
|
26
|
-
imageId: z.ZodNullable<z.ZodString>;
|
|
27
|
-
}, z.core.$strip>>;
|
|
28
|
-
projectName: z.ZodOptional<z.ZodString>;
|
|
29
|
-
isDeleted: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
-
invitationSecret: z.ZodOptional<z.ZodString>;
|
|
31
|
-
}, z.core.$loose>;
|
|
32
|
-
export type LiveNotification = z.infer<typeof LiveNotificationSchema>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* Sync API note (comment) resource.
|
|
4
|
-
* Separate from the REST `CommentSchema` which transforms `itemId` to `taskId`.
|
|
5
|
-
*/
|
|
6
|
-
export declare const NoteSchema: z.ZodObject<{
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
itemId: z.ZodOptional<z.ZodString>;
|
|
9
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
10
|
-
content: z.ZodString;
|
|
11
|
-
postedAt: z.ZodString;
|
|
12
|
-
fileAttachment: z.ZodNullable<z.ZodObject<{
|
|
13
|
-
resourceType: z.ZodString;
|
|
14
|
-
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
-
fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
16
|
-
fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
-
uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
20
|
-
completed: "completed";
|
|
21
|
-
pending: "pending";
|
|
22
|
-
}>>>;
|
|
23
|
-
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
-
imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
-
imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
-
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
-
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
-
}, z.core.$strip>>;
|
|
29
|
-
postedUid: z.ZodString;
|
|
30
|
-
uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
31
|
-
reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
32
|
-
isDeleted: z.ZodBoolean;
|
|
33
|
-
}, z.core.$loose>;
|
|
34
|
-
export type Note = z.infer<typeof NoteSchema>;
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const ReminderBaseSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
notifyUid: z.ZodString;
|
|
5
|
-
itemId: z.ZodString;
|
|
6
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
7
|
-
isDeleted: z.ZodBoolean;
|
|
8
|
-
}, z.core.$strip>;
|
|
9
|
-
/** Enum-like object of reminder type values. */
|
|
10
|
-
export declare const ReminderTypeEnum: {
|
|
11
|
-
readonly Relative: "relative";
|
|
12
|
-
readonly Absolute: "absolute";
|
|
13
|
-
readonly Location: "location";
|
|
14
|
-
};
|
|
15
|
-
/** Available reminder types. */
|
|
16
|
-
export declare const REMINDER_TYPES: readonly ["relative", "absolute", "location"];
|
|
17
|
-
/** Discriminator for reminder type. */
|
|
18
|
-
export type ReminderType = (typeof REMINDER_TYPES)[number];
|
|
19
|
-
/** Available location reminder triggers. */
|
|
20
|
-
export declare const LOCATION_TRIGGERS: readonly ["on_enter", "on_leave"];
|
|
21
|
-
/** Trigger condition for a location-based reminder. */
|
|
22
|
-
export type LocationTrigger = (typeof LOCATION_TRIGGERS)[number];
|
|
23
|
-
export declare const LocationReminderSchema: z.ZodObject<{
|
|
24
|
-
id: z.ZodString;
|
|
25
|
-
notifyUid: z.ZodString;
|
|
26
|
-
itemId: z.ZodString;
|
|
27
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
28
|
-
isDeleted: z.ZodBoolean;
|
|
29
|
-
type: z.ZodLiteral<"location">;
|
|
30
|
-
name: z.ZodString;
|
|
31
|
-
locLat: z.ZodString;
|
|
32
|
-
locLong: z.ZodString;
|
|
33
|
-
locTrigger: z.ZodEnum<{
|
|
34
|
-
on_enter: "on_enter";
|
|
35
|
-
on_leave: "on_leave";
|
|
36
|
-
}>;
|
|
37
|
-
radius: z.ZodNumber;
|
|
38
|
-
}, z.core.$loose>;
|
|
39
|
-
export type LocationReminder = z.infer<typeof LocationReminderSchema>;
|
|
40
|
-
export declare const AbsoluteReminderSchema: z.ZodObject<{
|
|
41
|
-
id: z.ZodString;
|
|
42
|
-
notifyUid: z.ZodString;
|
|
43
|
-
itemId: z.ZodString;
|
|
44
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
45
|
-
isDeleted: z.ZodBoolean;
|
|
46
|
-
type: z.ZodLiteral<"absolute">;
|
|
47
|
-
due: z.ZodObject<{
|
|
48
|
-
isRecurring: z.ZodBoolean;
|
|
49
|
-
string: z.ZodString;
|
|
50
|
-
date: z.ZodString;
|
|
51
|
-
datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
-
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
-
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
-
}, z.core.$loose>;
|
|
57
|
-
export type AbsoluteReminder = z.infer<typeof AbsoluteReminderSchema>;
|
|
58
|
-
export declare const RelativeReminderSchema: z.ZodObject<{
|
|
59
|
-
id: z.ZodString;
|
|
60
|
-
notifyUid: z.ZodString;
|
|
61
|
-
itemId: z.ZodString;
|
|
62
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
63
|
-
isDeleted: z.ZodBoolean;
|
|
64
|
-
type: z.ZodLiteral<"relative">;
|
|
65
|
-
minuteOffset: z.ZodNumber;
|
|
66
|
-
due: z.ZodOptional<z.ZodObject<{
|
|
67
|
-
isRecurring: z.ZodBoolean;
|
|
68
|
-
string: z.ZodString;
|
|
69
|
-
date: z.ZodString;
|
|
70
|
-
datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
-
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
-
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
-
}, z.core.$strip>>;
|
|
74
|
-
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
75
|
-
}, z.core.$loose>;
|
|
76
|
-
export type RelativeReminder = z.infer<typeof RelativeReminderSchema>;
|
|
77
|
-
export declare const ReminderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
78
|
-
id: z.ZodString;
|
|
79
|
-
notifyUid: z.ZodString;
|
|
80
|
-
itemId: z.ZodString;
|
|
81
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
82
|
-
isDeleted: z.ZodBoolean;
|
|
83
|
-
type: z.ZodLiteral<"location">;
|
|
84
|
-
name: z.ZodString;
|
|
85
|
-
locLat: z.ZodString;
|
|
86
|
-
locLong: z.ZodString;
|
|
87
|
-
locTrigger: z.ZodEnum<{
|
|
88
|
-
on_enter: "on_enter";
|
|
89
|
-
on_leave: "on_leave";
|
|
90
|
-
}>;
|
|
91
|
-
radius: z.ZodNumber;
|
|
92
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
93
|
-
id: z.ZodString;
|
|
94
|
-
notifyUid: z.ZodString;
|
|
95
|
-
itemId: z.ZodString;
|
|
96
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
97
|
-
isDeleted: z.ZodBoolean;
|
|
98
|
-
type: z.ZodLiteral<"absolute">;
|
|
99
|
-
due: z.ZodObject<{
|
|
100
|
-
isRecurring: z.ZodBoolean;
|
|
101
|
-
string: z.ZodString;
|
|
102
|
-
date: z.ZodString;
|
|
103
|
-
datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
-
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
-
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
-
}, z.core.$strip>;
|
|
107
|
-
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
109
|
-
id: z.ZodString;
|
|
110
|
-
notifyUid: z.ZodString;
|
|
111
|
-
itemId: z.ZodString;
|
|
112
|
-
projectId: z.ZodOptional<z.ZodString>;
|
|
113
|
-
isDeleted: z.ZodBoolean;
|
|
114
|
-
type: z.ZodLiteral<"relative">;
|
|
115
|
-
minuteOffset: z.ZodNumber;
|
|
116
|
-
due: z.ZodOptional<z.ZodObject<{
|
|
117
|
-
isRecurring: z.ZodBoolean;
|
|
118
|
-
string: z.ZodString;
|
|
119
|
-
date: z.ZodString;
|
|
120
|
-
datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
-
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
-
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
|
-
}, z.core.$strip>>;
|
|
124
|
-
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
-
}, z.core.$loose>], "type">;
|
|
126
|
-
export type Reminder = z.infer<typeof ReminderSchema>;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/** Available template types. */
|
|
3
|
-
export declare const TEMPLATE_TYPES: readonly ["project", "setup"];
|
|
4
|
-
/** Type of template suggestion. */
|
|
5
|
-
export type TemplateType = (typeof TEMPLATE_TYPES)[number];
|
|
6
|
-
export declare const TemplateSuggestionSchema: z.ZodObject<{
|
|
7
|
-
id: z.ZodString;
|
|
8
|
-
name: z.ZodString;
|
|
9
|
-
templateType: z.ZodEnum<{
|
|
10
|
-
project: "project";
|
|
11
|
-
setup: "setup";
|
|
12
|
-
}>;
|
|
13
|
-
}, z.core.$loose>;
|
|
14
|
-
export type TemplateSuggestion = z.infer<typeof TemplateSuggestionSchema>;
|
|
15
|
-
export declare const WorkspaceTemplateSuggestionSchema: z.ZodObject<{
|
|
16
|
-
id: z.ZodString;
|
|
17
|
-
name: z.ZodString;
|
|
18
|
-
templateType: z.ZodEnum<{
|
|
19
|
-
project: "project";
|
|
20
|
-
setup: "setup";
|
|
21
|
-
}>;
|
|
22
|
-
workspaceId: z.ZodNullable<z.ZodString>;
|
|
23
|
-
}, z.core.$loose>;
|
|
24
|
-
export type WorkspaceTemplateSuggestion = z.infer<typeof WorkspaceTemplateSuggestionSchema>;
|
|
25
|
-
/** Available suggestion section types. */
|
|
26
|
-
export declare const SUGGESTION_SECTION_TYPES: readonly ["templates", "most_used_user_templates"];
|
|
27
|
-
/** Type of suggestion section. */
|
|
28
|
-
export type SuggestionSectionType = (typeof SUGGESTION_SECTION_TYPES)[number];
|
|
29
|
-
export declare const SyncTemplateSuggestionsSchema: z.ZodObject<{
|
|
30
|
-
type: z.ZodEnum<{
|
|
31
|
-
templates: "templates";
|
|
32
|
-
most_used_user_templates: "most_used_user_templates";
|
|
33
|
-
}>;
|
|
34
|
-
content: z.ZodObject<{
|
|
35
|
-
templates: z.ZodArray<z.ZodObject<{
|
|
36
|
-
id: z.ZodString;
|
|
37
|
-
name: z.ZodString;
|
|
38
|
-
templateType: z.ZodEnum<{
|
|
39
|
-
project: "project";
|
|
40
|
-
setup: "setup";
|
|
41
|
-
}>;
|
|
42
|
-
}, z.core.$loose>>;
|
|
43
|
-
locale: z.ZodString;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
isDeleted: z.ZodBoolean;
|
|
46
|
-
}, z.core.$loose>;
|
|
47
|
-
export declare const SyncWorkspaceTemplateSuggestionsSchema: z.ZodObject<{
|
|
48
|
-
type: z.ZodLiteral<"most_used_workspace_templates">;
|
|
49
|
-
content: z.ZodObject<{
|
|
50
|
-
templates: z.ZodArray<z.ZodObject<{
|
|
51
|
-
id: z.ZodString;
|
|
52
|
-
name: z.ZodString;
|
|
53
|
-
templateType: z.ZodEnum<{
|
|
54
|
-
project: "project";
|
|
55
|
-
setup: "setup";
|
|
56
|
-
}>;
|
|
57
|
-
workspaceId: z.ZodNullable<z.ZodString>;
|
|
58
|
-
}, z.core.$loose>>;
|
|
59
|
-
locale: z.ZodString;
|
|
60
|
-
}, z.core.$strip>;
|
|
61
|
-
isDeleted: z.ZodBoolean;
|
|
62
|
-
}, z.core.$loose>;
|
|
63
|
-
export declare const SuggestionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
64
|
-
type: z.ZodLiteral<"most_used_workspace_templates">;
|
|
65
|
-
content: z.ZodObject<{
|
|
66
|
-
templates: z.ZodArray<z.ZodObject<{
|
|
67
|
-
id: z.ZodString;
|
|
68
|
-
name: z.ZodString;
|
|
69
|
-
templateType: z.ZodEnum<{
|
|
70
|
-
project: "project";
|
|
71
|
-
setup: "setup";
|
|
72
|
-
}>;
|
|
73
|
-
workspaceId: z.ZodNullable<z.ZodString>;
|
|
74
|
-
}, z.core.$loose>>;
|
|
75
|
-
locale: z.ZodString;
|
|
76
|
-
}, z.core.$strip>;
|
|
77
|
-
isDeleted: z.ZodBoolean;
|
|
78
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
79
|
-
type: z.ZodEnum<{
|
|
80
|
-
templates: "templates";
|
|
81
|
-
most_used_user_templates: "most_used_user_templates";
|
|
82
|
-
}>;
|
|
83
|
-
content: z.ZodObject<{
|
|
84
|
-
templates: z.ZodArray<z.ZodObject<{
|
|
85
|
-
id: z.ZodString;
|
|
86
|
-
name: z.ZodString;
|
|
87
|
-
templateType: z.ZodEnum<{
|
|
88
|
-
project: "project";
|
|
89
|
-
setup: "setup";
|
|
90
|
-
}>;
|
|
91
|
-
}, z.core.$loose>>;
|
|
92
|
-
locale: z.ZodString;
|
|
93
|
-
}, z.core.$strip>;
|
|
94
|
-
isDeleted: z.ZodBoolean;
|
|
95
|
-
}, z.core.$loose>]>;
|
|
96
|
-
export type Suggestion = z.infer<typeof SuggestionSchema>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const PlanLimitsSchema: z.ZodObject<{
|
|
3
|
-
activeProjects: z.ZodOptional<z.ZodNumber>;
|
|
4
|
-
activityLog: z.ZodOptional<z.ZodNumber>;
|
|
5
|
-
collaboratorsPerProject: z.ZodOptional<z.ZodNumber>;
|
|
6
|
-
commentsPerTask: z.ZodOptional<z.ZodNumber>;
|
|
7
|
-
fileUploadsPerComment: z.ZodOptional<z.ZodNumber>;
|
|
8
|
-
filtersPerUser: z.ZodOptional<z.ZodNumber>;
|
|
9
|
-
labelsPerTask: z.ZodOptional<z.ZodNumber>;
|
|
10
|
-
remindersPerUser: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
sectionsPerProject: z.ZodOptional<z.ZodNumber>;
|
|
12
|
-
tasksPerProject: z.ZodOptional<z.ZodNumber>;
|
|
13
|
-
}, z.core.$loose>;
|
|
14
|
-
export type PlanLimits = z.infer<typeof PlanLimitsSchema>;
|
|
15
|
-
export declare const UserPlanLimitsSchema: z.ZodObject<{
|
|
16
|
-
current: z.ZodObject<{
|
|
17
|
-
activeProjects: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
activityLog: z.ZodOptional<z.ZodNumber>;
|
|
19
|
-
collaboratorsPerProject: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
commentsPerTask: z.ZodOptional<z.ZodNumber>;
|
|
21
|
-
fileUploadsPerComment: z.ZodOptional<z.ZodNumber>;
|
|
22
|
-
filtersPerUser: z.ZodOptional<z.ZodNumber>;
|
|
23
|
-
labelsPerTask: z.ZodOptional<z.ZodNumber>;
|
|
24
|
-
remindersPerUser: z.ZodOptional<z.ZodNumber>;
|
|
25
|
-
sectionsPerProject: z.ZodOptional<z.ZodNumber>;
|
|
26
|
-
tasksPerProject: z.ZodOptional<z.ZodNumber>;
|
|
27
|
-
}, z.core.$loose>;
|
|
28
|
-
next: z.ZodNullable<z.ZodObject<{
|
|
29
|
-
activeProjects: z.ZodOptional<z.ZodNumber>;
|
|
30
|
-
activityLog: z.ZodOptional<z.ZodNumber>;
|
|
31
|
-
collaboratorsPerProject: z.ZodOptional<z.ZodNumber>;
|
|
32
|
-
commentsPerTask: z.ZodOptional<z.ZodNumber>;
|
|
33
|
-
fileUploadsPerComment: z.ZodOptional<z.ZodNumber>;
|
|
34
|
-
filtersPerUser: z.ZodOptional<z.ZodNumber>;
|
|
35
|
-
labelsPerTask: z.ZodOptional<z.ZodNumber>;
|
|
36
|
-
remindersPerUser: z.ZodOptional<z.ZodNumber>;
|
|
37
|
-
sectionsPerProject: z.ZodOptional<z.ZodNumber>;
|
|
38
|
-
tasksPerProject: z.ZodOptional<z.ZodNumber>;
|
|
39
|
-
}, z.core.$loose>>;
|
|
40
|
-
}, z.core.$loose>;
|
|
41
|
-
export type UserPlanLimits = z.infer<typeof UserPlanLimitsSchema>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const NavigationFeatureSchema: z.ZodObject<{
|
|
3
|
-
name: z.ZodString;
|
|
4
|
-
shown: z.ZodBoolean;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
export declare const QuickAddFeatureSchema: z.ZodObject<{
|
|
7
|
-
name: z.ZodString;
|
|
8
|
-
shown: z.ZodBoolean;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
/**
|
|
11
|
-
* Sync API user settings resource.
|
|
12
|
-
*/
|
|
13
|
-
export declare const UserSettingsSchema: z.ZodObject<{
|
|
14
|
-
completedSoundDesktop: z.ZodBoolean;
|
|
15
|
-
completedSoundMobile: z.ZodBoolean;
|
|
16
|
-
debugLogSendingEnabledUntil: z.ZodNullable<z.ZodString>;
|
|
17
|
-
legacyPricing: z.ZodBoolean;
|
|
18
|
-
navigation: z.ZodObject<{
|
|
19
|
-
countsShown: z.ZodBoolean;
|
|
20
|
-
features: z.ZodArray<z.ZodObject<{
|
|
21
|
-
name: z.ZodString;
|
|
22
|
-
shown: z.ZodBoolean;
|
|
23
|
-
}, z.core.$strip>>;
|
|
24
|
-
}, z.core.$loose>;
|
|
25
|
-
reminderDesktop: z.ZodBoolean;
|
|
26
|
-
reminderEmail: z.ZodBoolean;
|
|
27
|
-
reminderPush: z.ZodBoolean;
|
|
28
|
-
resetRecurringSubtasks: z.ZodBoolean;
|
|
29
|
-
aiEmailAssist: z.ZodBoolean;
|
|
30
|
-
theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
-
syncTheme: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
quickAdd: z.ZodObject<{
|
|
33
|
-
labelsShown: z.ZodBoolean;
|
|
34
|
-
features: z.ZodArray<z.ZodObject<{
|
|
35
|
-
name: z.ZodString;
|
|
36
|
-
shown: z.ZodBoolean;
|
|
37
|
-
}, z.core.$strip>>;
|
|
38
|
-
}, z.core.$loose>;
|
|
39
|
-
}, z.core.$loose>;
|
|
40
|
-
export type UserSettings = z.infer<typeof UserSettingsSchema>;
|