@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,134 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const FeaturesSchema: z.ZodObject<{
|
|
3
|
-
karmaDisabled: z.ZodBoolean;
|
|
4
|
-
restriction: z.ZodNumber;
|
|
5
|
-
karmaVacation: z.ZodBoolean;
|
|
6
|
-
dateistLang: z.ZodAny;
|
|
7
|
-
beta: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>;
|
|
8
|
-
hasPushReminders: z.ZodBoolean;
|
|
9
|
-
dateistInlineDisabled: z.ZodBoolean;
|
|
10
|
-
autoInviteDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
-
goldTheme: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
migratedFromTdb: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
-
}, z.core.$loose>;
|
|
14
|
-
export declare const TzInfoSchema: z.ZodObject<{
|
|
15
|
-
timezone: z.ZodString;
|
|
16
|
-
hours: z.ZodNumber;
|
|
17
|
-
minutes: z.ZodNumber;
|
|
18
|
-
isDst: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>;
|
|
19
|
-
gmtString: z.ZodString;
|
|
20
|
-
}, z.core.$loose>;
|
|
21
|
-
export declare const JoinableWorkspaceSchema: z.ZodObject<{
|
|
22
|
-
workspaceId: z.ZodString;
|
|
23
|
-
workspaceName: z.ZodString;
|
|
24
|
-
memberCount: z.ZodNumber;
|
|
25
|
-
}, z.core.$loose>;
|
|
26
|
-
export declare const GettingStartedGuideProjectSchema: z.ZodObject<{
|
|
27
|
-
onboardingUseCase: z.ZodString;
|
|
28
|
-
projectId: z.ZodString;
|
|
29
|
-
completed: z.ZodBoolean;
|
|
30
|
-
closed: z.ZodBoolean;
|
|
31
|
-
}, z.core.$loose>;
|
|
32
|
-
/**
|
|
33
|
-
* Sync API user resource.
|
|
34
|
-
*
|
|
35
|
-
* This is a superset of the REST `CurrentUserSchema` — the Sync API returns
|
|
36
|
-
* many additional fields for features, onboarding state, and account details.
|
|
37
|
-
*/
|
|
38
|
-
export declare const SyncUserSchema: z.ZodObject<{
|
|
39
|
-
id: z.ZodString;
|
|
40
|
-
email: z.ZodString;
|
|
41
|
-
fullName: z.ZodString;
|
|
42
|
-
activatedUser: z.ZodBoolean;
|
|
43
|
-
autoReminder: z.ZodNumber;
|
|
44
|
-
avatarBig: z.ZodOptional<z.ZodString>;
|
|
45
|
-
avatarMedium: z.ZodOptional<z.ZodString>;
|
|
46
|
-
avatarS640: z.ZodOptional<z.ZodString>;
|
|
47
|
-
avatarSmall: z.ZodOptional<z.ZodString>;
|
|
48
|
-
businessAccountId: z.ZodNullable<z.ZodString>;
|
|
49
|
-
dailyGoal: z.ZodNumber;
|
|
50
|
-
dateFormat: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"DD/MM/YYYY" | "MM/DD/YYYY", 0 | 1>>;
|
|
51
|
-
dateistLang: z.ZodNullable<z.ZodString>;
|
|
52
|
-
daysOff: z.ZodArray<z.ZodNumber>;
|
|
53
|
-
featureIdentifier: z.ZodString;
|
|
54
|
-
features: z.ZodObject<{
|
|
55
|
-
karmaDisabled: z.ZodBoolean;
|
|
56
|
-
restriction: z.ZodNumber;
|
|
57
|
-
karmaVacation: z.ZodBoolean;
|
|
58
|
-
dateistLang: z.ZodAny;
|
|
59
|
-
beta: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>;
|
|
60
|
-
hasPushReminders: z.ZodBoolean;
|
|
61
|
-
dateistInlineDisabled: z.ZodBoolean;
|
|
62
|
-
autoInviteDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
-
goldTheme: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
-
migratedFromTdb: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
-
}, z.core.$loose>;
|
|
66
|
-
freeTrailExpires: z.ZodOptional<z.ZodString>;
|
|
67
|
-
hasMagicNumber: z.ZodBoolean;
|
|
68
|
-
hasPassword: z.ZodBoolean;
|
|
69
|
-
hasStartedATrial: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
-
imageId: z.ZodNullable<z.ZodString>;
|
|
71
|
-
inboxProjectId: z.ZodString;
|
|
72
|
-
isCelebrationsEnabled: z.ZodBoolean;
|
|
73
|
-
isPremium: z.ZodBoolean;
|
|
74
|
-
joinableWorkspace: z.ZodNullable<z.ZodObject<{
|
|
75
|
-
workspaceId: z.ZodString;
|
|
76
|
-
workspaceName: z.ZodString;
|
|
77
|
-
memberCount: z.ZodNumber;
|
|
78
|
-
}, z.core.$loose>>;
|
|
79
|
-
joinedAt: z.ZodString;
|
|
80
|
-
gettingStartedGuideProjects: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
81
|
-
onboardingUseCase: z.ZodString;
|
|
82
|
-
projectId: z.ZodString;
|
|
83
|
-
completed: z.ZodBoolean;
|
|
84
|
-
closed: z.ZodBoolean;
|
|
85
|
-
}, z.core.$loose>>>;
|
|
86
|
-
karma: z.ZodNumber;
|
|
87
|
-
karmaTrend: z.ZodString;
|
|
88
|
-
lang: z.ZodString;
|
|
89
|
-
mfaEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
-
mobileHost: z.ZodNullable<z.ZodString>;
|
|
91
|
-
mobileNumber: z.ZodNullable<z.ZodString>;
|
|
92
|
-
nextWeek: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>]>, z.ZodTransform<"Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday", 2 | 1 | 3 | 4 | 5 | 6 | 7>>;
|
|
93
|
-
onboardingLevel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
-
onboardingRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
-
onboardingPersona: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
-
onboardingInitiated: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
97
|
-
onboardingCompleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
98
|
-
onboardingSkipped: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
-
onboardingTeamMode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
100
|
-
onboardingUseCases: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
101
|
-
premiumStatus: z.ZodEnum<{
|
|
102
|
-
not_premium: "not_premium";
|
|
103
|
-
current_personal_plan: "current_personal_plan";
|
|
104
|
-
legacy_personal_plan: "legacy_personal_plan";
|
|
105
|
-
teams_business_member: "teams_business_member";
|
|
106
|
-
}>;
|
|
107
|
-
premiumUntil: z.ZodNullable<z.ZodString>;
|
|
108
|
-
rambleSessionsUsage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
109
|
-
currentCount: z.ZodNumber;
|
|
110
|
-
limit: z.ZodNumber;
|
|
111
|
-
remaining: z.ZodNumber;
|
|
112
|
-
resetDate: z.ZodString;
|
|
113
|
-
}, z.core.$strip>>>;
|
|
114
|
-
shareLimit: z.ZodNumber;
|
|
115
|
-
sortOrder: z.ZodNumber;
|
|
116
|
-
startDay: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>]>, z.ZodTransform<"Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday", 2 | 1 | 3 | 4 | 5 | 6 | 7>>;
|
|
117
|
-
startPage: z.ZodString;
|
|
118
|
-
themeId: z.ZodString;
|
|
119
|
-
timeFormat: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"24h" | "12h", 0 | 1>>;
|
|
120
|
-
token: z.ZodString;
|
|
121
|
-
tzInfo: z.ZodObject<{
|
|
122
|
-
timezone: z.ZodString;
|
|
123
|
-
hours: z.ZodNumber;
|
|
124
|
-
minutes: z.ZodNumber;
|
|
125
|
-
isDst: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>;
|
|
126
|
-
gmtString: z.ZodString;
|
|
127
|
-
}, z.core.$loose>;
|
|
128
|
-
uniquePrefix: z.ZodNumber;
|
|
129
|
-
verificationStatus: z.ZodString;
|
|
130
|
-
websocketUrl: z.ZodString;
|
|
131
|
-
weekendStartDay: z.ZodNumber;
|
|
132
|
-
weeklyGoal: z.ZodNumber;
|
|
133
|
-
}, z.core.$loose>;
|
|
134
|
-
export type SyncUser = z.infer<typeof SyncUserSchema>;
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/** Available view types. */
|
|
3
|
-
export declare const VIEW_TYPES: readonly ["TODAY", "UPCOMING", "PROJECT", "LABEL", "FILTER", "WORKSPACE_FILTER", "SEARCH", "TEMPLATE_PREVIEW", "TASK_DETAIL", "AUTOMATION", "ASSIGNED", "OVERDUE", "WORKSPACE_OVERVIEW"];
|
|
4
|
-
/** Type of view in the Todoist UI. */
|
|
5
|
-
export type ViewType = (typeof VIEW_TYPES)[number];
|
|
6
|
-
export declare const ViewTypeSchema: z.ZodEnum<{
|
|
7
|
-
PROJECT: "PROJECT";
|
|
8
|
-
TODAY: "TODAY";
|
|
9
|
-
UPCOMING: "UPCOMING";
|
|
10
|
-
LABEL: "LABEL";
|
|
11
|
-
FILTER: "FILTER";
|
|
12
|
-
WORKSPACE_FILTER: "WORKSPACE_FILTER";
|
|
13
|
-
SEARCH: "SEARCH";
|
|
14
|
-
TEMPLATE_PREVIEW: "TEMPLATE_PREVIEW";
|
|
15
|
-
TASK_DETAIL: "TASK_DETAIL";
|
|
16
|
-
AUTOMATION: "AUTOMATION";
|
|
17
|
-
ASSIGNED: "ASSIGNED";
|
|
18
|
-
OVERDUE: "OVERDUE";
|
|
19
|
-
WORKSPACE_OVERVIEW: "WORKSPACE_OVERVIEW";
|
|
20
|
-
}>;
|
|
21
|
-
/** Available view modes. */
|
|
22
|
-
export declare const VIEW_MODES: readonly ["LIST", "BOARD", "CALENDAR"];
|
|
23
|
-
/** Display mode for a view. */
|
|
24
|
-
export type ViewMode = (typeof VIEW_MODES)[number];
|
|
25
|
-
export declare const ViewModeSchema: z.ZodEnum<{
|
|
26
|
-
LIST: "LIST";
|
|
27
|
-
BOARD: "BOARD";
|
|
28
|
-
CALENDAR: "CALENDAR";
|
|
29
|
-
}>;
|
|
30
|
-
/** Available grouping options. */
|
|
31
|
-
export declare const GROUPED_BY_OPTIONS: readonly ["ASSIGNEE", "ADDED_DATE", "DUE_DATE", "DEADLINE", "LABEL", "PRIORITY", "PROJECT", "WORKSPACE"];
|
|
32
|
-
/** Field to group tasks by. */
|
|
33
|
-
export type GroupedBy = (typeof GROUPED_BY_OPTIONS)[number];
|
|
34
|
-
export declare const GroupedBySchema: z.ZodNullable<z.ZodEnum<{
|
|
35
|
-
PROJECT: "PROJECT";
|
|
36
|
-
LABEL: "LABEL";
|
|
37
|
-
ASSIGNEE: "ASSIGNEE";
|
|
38
|
-
ADDED_DATE: "ADDED_DATE";
|
|
39
|
-
DUE_DATE: "DUE_DATE";
|
|
40
|
-
DEADLINE: "DEADLINE";
|
|
41
|
-
PRIORITY: "PRIORITY";
|
|
42
|
-
WORKSPACE: "WORKSPACE";
|
|
43
|
-
}>>;
|
|
44
|
-
/** Available sorting options. */
|
|
45
|
-
export declare const SORTED_BY_OPTIONS: readonly ["MANUAL", "ALPHABETICALLY", "ASSIGNEE", "DUE_DATE", "DEADLINE", "ADDED_DATE", "PRIORITY", "PROJECT", "WORKSPACE"];
|
|
46
|
-
/** Field to sort tasks by. */
|
|
47
|
-
export type SortedBy = (typeof SORTED_BY_OPTIONS)[number];
|
|
48
|
-
export declare const SortedBySchema: z.ZodNullable<z.ZodEnum<{
|
|
49
|
-
PROJECT: "PROJECT";
|
|
50
|
-
MANUAL: "MANUAL";
|
|
51
|
-
ASSIGNEE: "ASSIGNEE";
|
|
52
|
-
ADDED_DATE: "ADDED_DATE";
|
|
53
|
-
DUE_DATE: "DUE_DATE";
|
|
54
|
-
DEADLINE: "DEADLINE";
|
|
55
|
-
PRIORITY: "PRIORITY";
|
|
56
|
-
WORKSPACE: "WORKSPACE";
|
|
57
|
-
ALPHABETICALLY: "ALPHABETICALLY";
|
|
58
|
-
}>>;
|
|
59
|
-
/** Available sort directions. */
|
|
60
|
-
export declare const SORT_ORDERS: readonly ["ASC", "DESC"];
|
|
61
|
-
/** Sort direction. */
|
|
62
|
-
export type SortOrder = (typeof SORT_ORDERS)[number];
|
|
63
|
-
export declare const SortOrderSchema: z.ZodNullable<z.ZodEnum<{
|
|
64
|
-
ASC: "ASC";
|
|
65
|
-
DESC: "DESC";
|
|
66
|
-
}>>;
|
|
67
|
-
/** Available calendar layout modes. */
|
|
68
|
-
export declare const CALENDAR_LAYOUTS: readonly ["WEEK", "MONTH"];
|
|
69
|
-
/** Calendar layout mode. */
|
|
70
|
-
export type CalendarLayout = (typeof CALENDAR_LAYOUTS)[number];
|
|
71
|
-
export declare const CalendarSettingsSchema: z.ZodObject<{
|
|
72
|
-
layout: z.ZodOptional<z.ZodEnum<{
|
|
73
|
-
WEEK: "WEEK";
|
|
74
|
-
MONTH: "MONTH";
|
|
75
|
-
}>>;
|
|
76
|
-
}, z.core.$loose>;
|
|
77
|
-
export declare const ViewOptionsSchema: z.ZodObject<{
|
|
78
|
-
viewType: z.ZodEnum<{
|
|
79
|
-
PROJECT: "PROJECT";
|
|
80
|
-
TODAY: "TODAY";
|
|
81
|
-
UPCOMING: "UPCOMING";
|
|
82
|
-
LABEL: "LABEL";
|
|
83
|
-
FILTER: "FILTER";
|
|
84
|
-
WORKSPACE_FILTER: "WORKSPACE_FILTER";
|
|
85
|
-
SEARCH: "SEARCH";
|
|
86
|
-
TEMPLATE_PREVIEW: "TEMPLATE_PREVIEW";
|
|
87
|
-
TASK_DETAIL: "TASK_DETAIL";
|
|
88
|
-
AUTOMATION: "AUTOMATION";
|
|
89
|
-
ASSIGNED: "ASSIGNED";
|
|
90
|
-
OVERDUE: "OVERDUE";
|
|
91
|
-
WORKSPACE_OVERVIEW: "WORKSPACE_OVERVIEW";
|
|
92
|
-
}>;
|
|
93
|
-
objectId: z.ZodOptional<z.ZodString>;
|
|
94
|
-
groupedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
95
|
-
PROJECT: "PROJECT";
|
|
96
|
-
LABEL: "LABEL";
|
|
97
|
-
ASSIGNEE: "ASSIGNEE";
|
|
98
|
-
ADDED_DATE: "ADDED_DATE";
|
|
99
|
-
DUE_DATE: "DUE_DATE";
|
|
100
|
-
DEADLINE: "DEADLINE";
|
|
101
|
-
PRIORITY: "PRIORITY";
|
|
102
|
-
WORKSPACE: "WORKSPACE";
|
|
103
|
-
}>>>;
|
|
104
|
-
filteredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
-
viewMode: z.ZodOptional<z.ZodEnum<{
|
|
106
|
-
LIST: "LIST";
|
|
107
|
-
BOARD: "BOARD";
|
|
108
|
-
CALENDAR: "CALENDAR";
|
|
109
|
-
}>>;
|
|
110
|
-
showCompletedTasks: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
-
sortedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
112
|
-
PROJECT: "PROJECT";
|
|
113
|
-
MANUAL: "MANUAL";
|
|
114
|
-
ASSIGNEE: "ASSIGNEE";
|
|
115
|
-
ADDED_DATE: "ADDED_DATE";
|
|
116
|
-
DUE_DATE: "DUE_DATE";
|
|
117
|
-
DEADLINE: "DEADLINE";
|
|
118
|
-
PRIORITY: "PRIORITY";
|
|
119
|
-
WORKSPACE: "WORKSPACE";
|
|
120
|
-
ALPHABETICALLY: "ALPHABETICALLY";
|
|
121
|
-
}>>>;
|
|
122
|
-
sortOrder: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
123
|
-
ASC: "ASC";
|
|
124
|
-
DESC: "DESC";
|
|
125
|
-
}>>>;
|
|
126
|
-
}, z.core.$loose>;
|
|
127
|
-
export type ViewOptions = z.infer<typeof ViewOptionsSchema>;
|
|
128
|
-
export declare const ProjectViewOptionsDefaultsSchema: z.ZodObject<{
|
|
129
|
-
projectId: z.ZodString;
|
|
130
|
-
viewMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
131
|
-
LIST: "LIST";
|
|
132
|
-
BOARD: "BOARD";
|
|
133
|
-
CALENDAR: "CALENDAR";
|
|
134
|
-
}>>>;
|
|
135
|
-
groupedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
136
|
-
PROJECT: "PROJECT";
|
|
137
|
-
LABEL: "LABEL";
|
|
138
|
-
ASSIGNEE: "ASSIGNEE";
|
|
139
|
-
ADDED_DATE: "ADDED_DATE";
|
|
140
|
-
DUE_DATE: "DUE_DATE";
|
|
141
|
-
DEADLINE: "DEADLINE";
|
|
142
|
-
PRIORITY: "PRIORITY";
|
|
143
|
-
WORKSPACE: "WORKSPACE";
|
|
144
|
-
}>>>;
|
|
145
|
-
sortedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
146
|
-
PROJECT: "PROJECT";
|
|
147
|
-
MANUAL: "MANUAL";
|
|
148
|
-
ASSIGNEE: "ASSIGNEE";
|
|
149
|
-
ADDED_DATE: "ADDED_DATE";
|
|
150
|
-
DUE_DATE: "DUE_DATE";
|
|
151
|
-
DEADLINE: "DEADLINE";
|
|
152
|
-
PRIORITY: "PRIORITY";
|
|
153
|
-
WORKSPACE: "WORKSPACE";
|
|
154
|
-
ALPHABETICALLY: "ALPHABETICALLY";
|
|
155
|
-
}>>>;
|
|
156
|
-
sortOrder: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
157
|
-
ASC: "ASC";
|
|
158
|
-
DESC: "DESC";
|
|
159
|
-
}>>>;
|
|
160
|
-
showCompletedTasks: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
-
filteredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
162
|
-
calendarSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
163
|
-
layout: z.ZodOptional<z.ZodEnum<{
|
|
164
|
-
WEEK: "WEEK";
|
|
165
|
-
MONTH: "MONTH";
|
|
166
|
-
}>>;
|
|
167
|
-
}, z.core.$loose>>>;
|
|
168
|
-
}, z.core.$loose>;
|
|
169
|
-
export type ProjectViewOptionsDefaults = z.infer<typeof ProjectViewOptionsDefaultsSchema>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const WorkspaceFilterSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
workspaceId: z.ZodString;
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
query: z.ZodString;
|
|
7
|
-
color: z.ZodString;
|
|
8
|
-
itemOrder: z.ZodNumber;
|
|
9
|
-
isDeleted: z.ZodBoolean;
|
|
10
|
-
isFavorite: z.ZodBoolean;
|
|
11
|
-
isFrozen: z.ZodBoolean;
|
|
12
|
-
creatorUid: z.ZodString;
|
|
13
|
-
updaterUid: z.ZodString;
|
|
14
|
-
createdAt: z.ZodString;
|
|
15
|
-
updatedAt: z.ZodString;
|
|
16
|
-
}, z.core.$loose>;
|
|
17
|
-
export type WorkspaceFilter = z.infer<typeof WorkspaceFilterSchema>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const WorkspaceGoalMilestoneSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
title: z.ZodString;
|
|
5
|
-
isCompleted: z.ZodBoolean;
|
|
6
|
-
}, z.core.$loose>;
|
|
7
|
-
export type WorkspaceGoalMilestone = z.infer<typeof WorkspaceGoalMilestoneSchema>;
|
|
8
|
-
export declare const WorkspaceGoalProgressSchema: z.ZodObject<{
|
|
9
|
-
completedItems: z.ZodNumber;
|
|
10
|
-
totalItems: z.ZodNumber;
|
|
11
|
-
}, z.core.$loose>;
|
|
12
|
-
export type WorkspaceGoalProgress = z.infer<typeof WorkspaceGoalProgressSchema>;
|
|
13
|
-
export declare const WorkspaceGoalSchema: z.ZodObject<{
|
|
14
|
-
id: z.ZodString;
|
|
15
|
-
workspaceId: z.ZodString;
|
|
16
|
-
title: z.ZodString;
|
|
17
|
-
description: z.ZodNullable<z.ZodString>;
|
|
18
|
-
deadline: z.ZodNullable<z.ZodString>;
|
|
19
|
-
isDeleted: z.ZodBoolean;
|
|
20
|
-
projectIds: z.ZodArray<z.ZodString>;
|
|
21
|
-
progress: z.ZodNullable<z.ZodObject<{
|
|
22
|
-
completedItems: z.ZodNumber;
|
|
23
|
-
totalItems: z.ZodNumber;
|
|
24
|
-
}, z.core.$loose>>;
|
|
25
|
-
creatorUid: z.ZodString;
|
|
26
|
-
createdAt: z.ZodString;
|
|
27
|
-
updatedAt: z.ZodString;
|
|
28
|
-
}, z.core.$loose>;
|
|
29
|
-
export type WorkspaceGoal = z.infer<typeof WorkspaceGoalSchema>;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* Sync API workspace resource.
|
|
4
|
-
*
|
|
5
|
-
* This is a superset of the REST `WorkspaceSchema` — the Sync API returns
|
|
6
|
-
* additional fields like description, isDeleted, isCollapsed, member counts,
|
|
7
|
-
* domain settings, and sorting preferences.
|
|
8
|
-
*/
|
|
9
|
-
export declare const SyncWorkspaceSchema: z.ZodObject<{
|
|
10
|
-
id: z.ZodString;
|
|
11
|
-
name: z.ZodString;
|
|
12
|
-
description: z.ZodString;
|
|
13
|
-
logoBig: z.ZodOptional<z.ZodString>;
|
|
14
|
-
logoMedium: z.ZodOptional<z.ZodString>;
|
|
15
|
-
logoSmall: z.ZodOptional<z.ZodString>;
|
|
16
|
-
logoS640: z.ZodOptional<z.ZodString>;
|
|
17
|
-
creatorId: z.ZodString;
|
|
18
|
-
createdAt: z.ZodString;
|
|
19
|
-
isDeleted: z.ZodBoolean;
|
|
20
|
-
isCollapsed: z.ZodBoolean;
|
|
21
|
-
role: z.ZodEnum<{
|
|
22
|
-
ADMIN: "ADMIN";
|
|
23
|
-
MEMBER: "MEMBER";
|
|
24
|
-
GUEST: "GUEST";
|
|
25
|
-
}>;
|
|
26
|
-
plan: z.ZodEnum<{
|
|
27
|
-
STARTER: "STARTER";
|
|
28
|
-
BUSINESS: "BUSINESS";
|
|
29
|
-
}>;
|
|
30
|
-
limits: z.ZodObject<{
|
|
31
|
-
current: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
32
|
-
next: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
33
|
-
}, z.core.$catchall<z.ZodAny>>;
|
|
34
|
-
inviteCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
isLinkSharingEnabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
36
|
-
isGuestAllowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
37
|
-
currentActiveProjects: z.ZodNullable<z.ZodNumber>;
|
|
38
|
-
currentMemberCount: z.ZodNullable<z.ZodNumber>;
|
|
39
|
-
memberCountByType: z.ZodOptional<z.ZodObject<{
|
|
40
|
-
adminCount: z.ZodNumber;
|
|
41
|
-
guestCount: z.ZodNumber;
|
|
42
|
-
memberCount: z.ZodNumber;
|
|
43
|
-
}, z.core.$strip>>;
|
|
44
|
-
currentTemplateCount: z.ZodNullable<z.ZodNumber>;
|
|
45
|
-
pendingInvitations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
46
|
-
domainName: z.ZodOptional<z.ZodString>;
|
|
47
|
-
domainDiscovery: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
-
restrictEmailDomains: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
-
adminSortingApplied: z.ZodBoolean;
|
|
50
|
-
projectSortPreference: z.ZodOptional<z.ZodString>;
|
|
51
|
-
defaultCollaborators: z.ZodOptional<z.ZodObject<{
|
|
52
|
-
predefinedGroupIds: z.ZodArray<z.ZodString>;
|
|
53
|
-
userIds: z.ZodArray<z.ZodNumber>;
|
|
54
|
-
}, z.core.$strip>>;
|
|
55
|
-
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
56
|
-
}, z.core.$loose>;
|
|
57
|
-
export type SyncWorkspace = z.infer<typeof SyncWorkspaceSchema>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { Task } from '../tasks/types.js';
|
|
2
|
-
import type { PersonalProject, WorkspaceProject } from '../projects/types.js';
|
|
3
|
-
import type { Section } from '../sections/types.js';
|
|
4
|
-
import type { Label } from '../labels/types.js';
|
|
5
|
-
import type { WorkspaceUser } from '../workspaces/types.js';
|
|
6
|
-
import type { Filter, Collaborator, CollaboratorState, Folder, Note, Tooltips, WorkspaceFilter, WorkspaceGoal, Calendar, CalendarAccount, Reminder, CompletedInfo, ViewOptions, ProjectViewOptionsDefaults, UserPlanLimits, LiveNotification, SyncWorkspace, SyncUser, UserSettings, LocationReminder, Suggestion } from './resources/index.js';
|
|
7
|
-
export type SyncError = {
|
|
8
|
-
error: string;
|
|
9
|
-
errorCode: number;
|
|
10
|
-
errorExtra: Record<string, unknown>;
|
|
11
|
-
errorTag: string;
|
|
12
|
-
httpCode: number;
|
|
13
|
-
};
|
|
14
|
-
export type SyncResponse = {
|
|
15
|
-
syncToken?: string;
|
|
16
|
-
fullSync?: boolean;
|
|
17
|
-
syncStatus?: Record<string, 'ok' | SyncError>;
|
|
18
|
-
tempIdMapping?: Record<string, string>;
|
|
19
|
-
items?: Task[];
|
|
20
|
-
projects?: (PersonalProject | WorkspaceProject)[];
|
|
21
|
-
sections?: Section[];
|
|
22
|
-
labels?: Label[];
|
|
23
|
-
notes?: Note[];
|
|
24
|
-
projectNotes?: Note[];
|
|
25
|
-
filters?: Filter[];
|
|
26
|
-
reminders?: Reminder[];
|
|
27
|
-
remindersLocation?: LocationReminder[];
|
|
28
|
-
locations?: Record<string, unknown>[];
|
|
29
|
-
user?: SyncUser;
|
|
30
|
-
liveNotifications?: LiveNotification[];
|
|
31
|
-
collaborators?: Collaborator[];
|
|
32
|
-
collaboratorStates?: CollaboratorState[];
|
|
33
|
-
userSettings?: UserSettings;
|
|
34
|
-
notificationSettings?: Record<string, boolean>;
|
|
35
|
-
userPlanLimits?: UserPlanLimits;
|
|
36
|
-
completedInfo?: CompletedInfo[];
|
|
37
|
-
stats?: Record<string, unknown>;
|
|
38
|
-
workspaces?: SyncWorkspace[];
|
|
39
|
-
workspaceUsers?: WorkspaceUser[];
|
|
40
|
-
workspaceFilters?: WorkspaceFilter[];
|
|
41
|
-
viewOptions?: ViewOptions[];
|
|
42
|
-
projectViewOptionsDefaults?: ProjectViewOptionsDefaults[];
|
|
43
|
-
roleActions?: Record<string, unknown>[];
|
|
44
|
-
folders?: Folder[];
|
|
45
|
-
workspaceGoals?: WorkspaceGoal[];
|
|
46
|
-
dayOrders?: Record<string, number>;
|
|
47
|
-
calendars?: Calendar[];
|
|
48
|
-
calendarAccounts?: CalendarAccount[];
|
|
49
|
-
suggestions?: Suggestion[];
|
|
50
|
-
tooltips?: Tooltips;
|
|
51
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/** Available date format options. */
|
|
3
|
-
export declare const DATE_FORMATS: readonly ["DD/MM/YYYY", "MM/DD/YYYY"];
|
|
4
|
-
/** User date format preference. */
|
|
5
|
-
export type DateFormat = (typeof DATE_FORMATS)[number];
|
|
6
|
-
/** Available time format options. */
|
|
7
|
-
export declare const TIME_FORMATS: readonly ["24h", "12h"];
|
|
8
|
-
/** User time format preference. */
|
|
9
|
-
export type TimeFormat = (typeof TIME_FORMATS)[number];
|
|
10
|
-
/** Available days of the week. */
|
|
11
|
-
export declare const DAYS_OF_WEEK: readonly ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];
|
|
12
|
-
/** Day of the week. */
|
|
13
|
-
export type DayOfWeek = (typeof DAYS_OF_WEEK)[number];
|
|
14
|
-
export declare const DATE_FORMAT_FROM_API: {
|
|
15
|
-
readonly 0: "DD/MM/YYYY";
|
|
16
|
-
readonly 1: "MM/DD/YYYY";
|
|
17
|
-
};
|
|
18
|
-
export declare const TIME_FORMAT_FROM_API: {
|
|
19
|
-
readonly 0: "24h";
|
|
20
|
-
readonly 1: "12h";
|
|
21
|
-
};
|
|
22
|
-
export declare const DAY_OF_WEEK_FROM_API: {
|
|
23
|
-
readonly 1: "Monday";
|
|
24
|
-
readonly 2: "Tuesday";
|
|
25
|
-
readonly 3: "Wednesday";
|
|
26
|
-
readonly 4: "Thursday";
|
|
27
|
-
readonly 5: "Friday";
|
|
28
|
-
readonly 6: "Saturday";
|
|
29
|
-
readonly 7: "Sunday";
|
|
30
|
-
};
|
|
31
|
-
export declare const DATE_FORMAT_TO_API: Record<DateFormat, 0 | 1>;
|
|
32
|
-
export declare const TIME_FORMAT_TO_API: Record<TimeFormat, 0 | 1>;
|
|
33
|
-
export declare const DAY_OF_WEEK_TO_API: Record<DayOfWeek, 1 | 2 | 3 | 4 | 5 | 6 | 7>;
|
|
34
|
-
/** Zod read-schema: parse API 0/1 integer, emit boolean */
|
|
35
|
-
export declare const BooleanFromZeroOneSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<boolean, 0 | 1>>;
|
|
36
|
-
/** Zod read-schemas: parse API numbers, emit descriptive strings */
|
|
37
|
-
export declare const DateFormatSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"DD/MM/YYYY" | "MM/DD/YYYY", 0 | 1>>;
|
|
38
|
-
export declare const TimeFormatSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>, z.ZodTransform<"24h" | "12h", 0 | 1>>;
|
|
39
|
-
export declare const DayOfWeekSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>]>, z.ZodTransform<"Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday", 2 | 1 | 3 | 4 | 5 | 6 | 7>>;
|