@todoist/sdk 0.0.0-stage → 18.0.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/LICENSE +21 -0
- package/README.md +308 -2
- package/dist/esm/authentication.js +307 -0
- package/dist/esm/clients/activity-client.js +60 -0
- package/dist/esm/clients/app-client.js +366 -0
- package/dist/esm/clients/backup-client.js +47 -0
- package/dist/esm/clients/base-client.js +29 -0
- package/dist/esm/clients/billing-client.js +160 -0
- package/dist/esm/clients/comment-client.js +92 -0
- package/dist/esm/clients/email-client.js +41 -0
- package/dist/esm/clients/filter-client.js +26 -0
- package/dist/esm/clients/folder-client.js +80 -0
- package/dist/esm/clients/id-mapping-client.js +37 -0
- package/dist/esm/clients/insights-client.js +89 -0
- package/dist/esm/clients/label-client.js +131 -0
- package/dist/esm/clients/productivity-client.js +24 -0
- package/dist/esm/clients/project-client.js +284 -0
- package/dist/esm/clients/reminder-client.js +204 -0
- package/dist/esm/clients/section-client.js +121 -0
- package/dist/esm/clients/task-client.js +264 -0
- package/dist/esm/clients/template-client.js +89 -0
- package/dist/esm/clients/ui-extension-client.js +110 -0
- package/dist/esm/clients/upload-client.js +153 -0
- package/dist/esm/clients/view-options-client.js +21 -0
- package/dist/esm/clients/workspace-client.js +384 -0
- package/dist/esm/consts/endpoints.js +193 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/test-utils/asserts.js +8 -0
- package/dist/esm/test-utils/msw-setup.js +88 -0
- package/dist/esm/test-utils/obsidian-fetch-adapter.js +51 -0
- package/dist/esm/test-utils/test-defaults.js +367 -0
- package/dist/esm/test-utils/transport-seam.js +15 -0
- package/dist/esm/test-utils/webhook-fixtures.js +26 -0
- package/dist/esm/todoist-api.js +1757 -0
- package/dist/esm/transport/fetch-with-retry.js +216 -0
- package/dist/esm/transport/http-client.js +140 -0
- package/dist/esm/transport/http-dispatcher.js +158 -0
- package/dist/esm/transport/sync-request.js +106 -0
- package/dist/esm/types/activity/index.js +2 -0
- package/dist/esm/types/activity/requests.js +1 -0
- package/dist/esm/types/activity/types.js +45 -0
- package/dist/esm/types/apps/index.js +2 -0
- package/dist/esm/types/apps/requests.js +1 -0
- package/dist/esm/types/apps/types.js +249 -0
- package/dist/esm/types/backups/index.js +2 -0
- package/dist/esm/types/backups/requests.js +1 -0
- package/dist/esm/types/backups/types.js +5 -0
- package/dist/esm/types/billing/index.js +2 -0
- package/dist/esm/types/billing/requests.js +1 -0
- package/dist/esm/types/billing/types.js +89 -0
- package/dist/esm/types/comments/index.js +2 -0
- package/dist/esm/types/comments/requests.js +1 -0
- package/dist/esm/types/comments/types.js +57 -0
- package/dist/esm/types/common.js +7 -0
- package/dist/esm/types/emails/index.js +1 -0
- package/dist/esm/types/emails/requests.js +2 -0
- package/dist/esm/types/errors.js +41 -0
- package/dist/esm/types/folders/index.js +1 -0
- package/dist/esm/types/folders/requests.js +1 -0
- package/dist/esm/types/http.js +20 -0
- package/dist/esm/types/id-mappings/index.js +2 -0
- package/dist/esm/types/id-mappings/requests.js +17 -0
- package/dist/esm/types/id-mappings/types.js +9 -0
- package/dist/esm/types/index.js +24 -0
- package/dist/esm/types/insights/index.js +2 -0
- package/dist/esm/types/insights/requests.js +1 -0
- package/dist/esm/types/insights/types.js +77 -0
- package/dist/esm/types/labels/index.js +2 -0
- package/dist/esm/types/labels/requests.js +1 -0
- package/dist/esm/types/labels/types.js +8 -0
- package/dist/esm/types/productivity/index.js +1 -0
- package/dist/esm/types/productivity/types.js +65 -0
- package/dist/esm/types/projects/index.js +2 -0
- package/dist/esm/types/projects/requests.js +1 -0
- package/dist/esm/types/projects/types.js +65 -0
- package/dist/esm/types/reminders/index.js +1 -0
- package/dist/esm/types/reminders/requests.js +92 -0
- package/dist/esm/types/sections/index.js +2 -0
- package/dist/esm/types/sections/requests.js +1 -0
- package/dist/esm/types/sections/types.js +23 -0
- package/dist/esm/types/sync/commands/calendars.js +1 -0
- package/dist/esm/types/sync/commands/filters.js +1 -0
- package/dist/esm/types/sync/commands/folders.js +1 -0
- package/dist/esm/types/sync/commands/index.js +18 -0
- package/dist/esm/types/sync/commands/labels.js +2 -0
- package/dist/esm/types/sync/commands/notes.js +1 -0
- package/dist/esm/types/sync/commands/notifications.js +1 -0
- package/dist/esm/types/sync/commands/others.js +1 -0
- package/dist/esm/types/sync/commands/project-view-options.js +1 -0
- package/dist/esm/types/sync/commands/projects.js +1 -0
- package/dist/esm/types/sync/commands/reminders.js +1 -0
- package/dist/esm/types/sync/commands/sections.js +1 -0
- package/dist/esm/types/sync/commands/shared.js +16 -0
- package/dist/esm/types/sync/commands/sharing.js +1 -0
- package/dist/esm/types/sync/commands/tasks.js +1 -0
- package/dist/esm/types/sync/commands/view-options.js +1 -0
- package/dist/esm/types/sync/commands/workspace-filters.js +1 -0
- package/dist/esm/types/sync/commands/workspaces.js +1 -0
- package/dist/esm/types/sync/index.js +6 -0
- package/dist/esm/types/sync/request.js +1 -0
- package/dist/esm/types/sync/resource-types.js +36 -0
- package/dist/esm/types/sync/resources/calendars.js +24 -0
- package/dist/esm/types/sync/resources/collaborators.js +21 -0
- package/dist/esm/types/sync/resources/completed-info.js +21 -0
- package/dist/esm/types/sync/resources/filters.js +12 -0
- package/dist/esm/types/sync/resources/folders.js +10 -0
- package/dist/esm/types/sync/resources/index.js +18 -0
- package/dist/esm/types/sync/resources/labels.js +7 -0
- package/dist/esm/types/sync/resources/live-notifications.js +35 -0
- package/dist/esm/types/sync/resources/notes.js +18 -0
- package/dist/esm/types/sync/resources/reminders.js +58 -0
- package/dist/esm/types/sync/resources/suggestions.js +33 -0
- package/dist/esm/types/sync/resources/tooltips.js +5 -0
- package/dist/esm/types/sync/resources/user-plan-limits.js +21 -0
- package/dist/esm/types/sync/resources/user-settings.js +41 -0
- package/dist/esm/types/sync/resources/user-status.js +22 -0
- package/dist/esm/types/sync/resources/user.js +109 -0
- package/dist/esm/types/sync/resources/view-options.js +128 -0
- package/dist/esm/types/sync/resources/workspace-filters.js +17 -0
- package/dist/esm/types/sync/resources/workspaces.js +69 -0
- package/dist/esm/types/sync/response.js +57 -0
- package/dist/esm/types/sync/user-preferences.js +68 -0
- package/dist/esm/types/tasks/index.js +2 -0
- package/dist/esm/types/tasks/requests.js +1 -0
- package/dist/esm/types/tasks/types.js +56 -0
- package/dist/esm/types/templates/index.js +1 -0
- package/dist/esm/types/templates/requests.js +1 -0
- package/dist/esm/types/ui-extensions/index.js +2 -0
- package/dist/esm/types/ui-extensions/requests.js +1 -0
- package/dist/esm/types/ui-extensions/types.js +74 -0
- package/dist/esm/types/uploads/index.js +1 -0
- package/dist/esm/types/uploads/requests.js +1 -0
- package/dist/esm/types/users/index.js +1 -0
- package/dist/esm/types/users/types.js +49 -0
- package/dist/esm/types/webhooks/comments.js +93 -0
- package/dist/esm/types/webhooks/envelope.js +23 -0
- package/dist/esm/types/webhooks/filters.js +27 -0
- package/dist/esm/types/webhooks/index.js +9 -0
- package/dist/esm/types/webhooks/labels.js +51 -0
- package/dist/esm/types/webhooks/projects.js +33 -0
- package/dist/esm/types/webhooks/reminders.js +32 -0
- package/dist/esm/types/webhooks/sections.js +50 -0
- package/dist/esm/types/webhooks/tasks.js +65 -0
- package/dist/esm/types/webhooks/types.js +52 -0
- package/dist/esm/types/workspaces/index.js +2 -0
- package/dist/esm/types/workspaces/requests.js +1 -0
- package/dist/esm/types/workspaces/types.js +151 -0
- package/dist/esm/utils/activity-helpers.js +53 -0
- package/dist/esm/utils/case-conversion.js +84 -0
- package/dist/esm/utils/colors.js +145 -0
- package/dist/esm/utils/file-response.js +29 -0
- package/dist/esm/utils/filter-queries.js +231 -0
- package/dist/esm/utils/filter-query-definitions.js +2789 -0
- package/dist/esm/utils/headers.js +42 -0
- package/dist/esm/utils/index.js +11 -0
- package/dist/esm/utils/multipart-upload.js +267 -0
- package/dist/esm/utils/person-names.js +61 -0
- package/dist/esm/utils/processing-helpers.js +12 -0
- package/dist/esm/utils/project-helpers.js +29 -0
- package/dist/esm/utils/request-helpers.js +43 -0
- package/dist/esm/utils/sanitization.js +131 -0
- package/dist/esm/utils/sync-helpers.js +19 -0
- package/dist/esm/utils/task-sorting.js +280 -0
- package/dist/esm/utils/uncompletable-helpers.js +54 -0
- package/dist/esm/utils/url-helpers.js +196 -0
- package/dist/esm/utils/validators.js +102 -0
- package/dist/esm/utils/view-options.js +15 -0
- package/dist/esm/utils/webhook-parser.js +56 -0
- package/dist/types/authentication.d.ts +262 -0
- package/dist/types/clients/activity-client.d.ts +12 -0
- package/dist/types/clients/app-client.d.ts +37 -0
- package/dist/types/clients/backup-client.d.ts +14 -0
- package/dist/types/clients/base-client.d.ts +23 -0
- package/dist/types/clients/billing-client.d.ts +22 -0
- package/dist/types/clients/comment-client.d.ts +15 -0
- package/dist/types/clients/email-client.d.ts +13 -0
- package/dist/types/clients/filter-client.d.ts +10 -0
- package/dist/types/clients/folder-client.d.ts +16 -0
- package/dist/types/clients/id-mapping-client.d.ts +13 -0
- package/dist/types/clients/insights-client.d.ts +18 -0
- package/dist/types/clients/label-client.d.ts +19 -0
- package/dist/types/clients/productivity-client.d.ts +12 -0
- package/dist/types/clients/project-client.d.ts +22 -0
- package/dist/types/clients/reminder-client.d.ts +25 -0
- package/dist/types/clients/section-client.d.ts +18 -0
- package/dist/types/clients/task-client.d.ts +25 -0
- package/dist/types/clients/template-client.d.ts +17 -0
- package/dist/types/clients/ui-extension-client.d.ts +18 -0
- package/dist/types/clients/upload-client.d.ts +17 -0
- package/dist/types/clients/view-options-client.d.ts +8 -0
- package/dist/types/clients/workspace-client.d.ts +43 -0
- package/dist/types/consts/endpoints.d.ts +120 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/test-utils/asserts.d.ts +1 -0
- package/dist/types/test-utils/msw-setup.d.ts +33 -0
- package/dist/types/test-utils/obsidian-fetch-adapter.d.ts +29 -0
- package/dist/types/test-utils/test-defaults.d.ts +286 -0
- package/dist/types/test-utils/transport-seam.d.ts +1 -0
- package/dist/types/test-utils/webhook-fixtures.d.ts +13 -0
- package/dist/types/todoist-api.d.ts +1437 -0
- package/dist/types/transport/fetch-with-retry.d.ts +12 -0
- package/dist/types/transport/http-client.d.ts +25 -0
- package/dist/types/transport/http-dispatcher.d.ts +65 -0
- package/dist/types/transport/sync-request.d.ts +31 -0
- package/dist/types/types/activity/index.d.ts +2 -0
- package/dist/types/types/activity/requests.d.ts +85 -0
- package/dist/types/types/activity/types.d.ts +56 -0
- package/dist/types/types/apps/index.d.ts +2 -0
- package/dist/types/types/apps/requests.d.ts +89 -0
- package/dist/types/types/apps/types.d.ts +418 -0
- package/dist/types/types/backups/index.d.ts +2 -0
- package/dist/types/types/backups/requests.d.ts +16 -0
- package/dist/types/types/backups/types.d.ts +7 -0
- package/dist/types/types/billing/index.d.ts +2 -0
- package/dist/types/types/billing/requests.d.ts +62 -0
- package/dist/types/types/billing/types.d.ts +207 -0
- package/dist/types/types/comments/index.d.ts +2 -0
- package/dist/types/types/comments/requests.d.ts +64 -0
- package/dist/types/types/comments/types.d.ts +141 -0
- package/dist/types/types/common.d.ts +13 -0
- package/dist/types/types/emails/index.d.ts +1 -0
- package/dist/types/types/emails/requests.d.ts +30 -0
- package/dist/types/types/errors.d.ts +29 -0
- package/dist/types/types/folders/index.d.ts +1 -0
- package/dist/types/types/folders/requests.d.ts +20 -0
- package/dist/types/types/http.d.ts +104 -0
- package/dist/types/types/id-mappings/index.d.ts +2 -0
- package/dist/types/types/id-mappings/requests.d.ts +28 -0
- package/dist/types/types/id-mappings/types.d.ts +13 -0
- package/dist/types/types/index.d.ts +24 -0
- package/dist/types/types/insights/index.d.ts +2 -0
- package/dist/types/types/insights/requests.d.ts +26 -0
- package/dist/types/types/insights/types.d.ts +167 -0
- package/dist/types/types/labels/index.d.ts +2 -0
- package/dist/types/types/labels/requests.d.ts +75 -0
- package/dist/types/types/labels/types.d.ts +13 -0
- package/dist/types/types/productivity/index.d.ts +1 -0
- package/dist/types/types/productivity/types.d.ts +115 -0
- package/dist/types/types/projects/index.d.ts +2 -0
- package/dist/types/types/projects/requests.d.ts +206 -0
- package/dist/types/types/projects/types.d.ts +286 -0
- package/dist/types/types/reminders/index.d.ts +1 -0
- package/dist/types/types/reminders/requests.d.ts +205 -0
- package/dist/types/types/sections/index.d.ts +2 -0
- package/dist/types/types/sections/requests.d.ts +49 -0
- package/dist/types/types/sections/types.d.ts +70 -0
- package/dist/types/types/sync/commands/calendars.d.ts +14 -0
- package/dist/types/types/sync/commands/filters.d.ts +24 -0
- package/dist/types/types/sync/commands/folders.d.ts +20 -0
- package/dist/types/types/sync/commands/index.d.ts +167 -0
- package/dist/types/types/sync/commands/labels.d.ts +32 -0
- package/dist/types/types/sync/commands/notes.d.ts +27 -0
- package/dist/types/types/sync/commands/notifications.d.ts +10 -0
- package/dist/types/types/sync/commands/others.d.ts +61 -0
- package/dist/types/types/sync/commands/project-view-options.d.ts +13 -0
- package/dist/types/types/sync/commands/projects.d.ts +96 -0
- package/dist/types/types/sync/commands/reminders.d.ts +51 -0
- package/dist/types/types/sync/commands/sections.d.ts +36 -0
- package/dist/types/types/sync/commands/shared.d.ts +51 -0
- package/dist/types/types/sync/commands/sharing.d.ts +16 -0
- package/dist/types/types/sync/commands/tasks.d.ts +78 -0
- package/dist/types/types/sync/commands/view-options.d.ts +18 -0
- package/dist/types/types/sync/commands/workspace-filters.d.ts +25 -0
- package/dist/types/types/sync/commands/workspaces.d.ts +82 -0
- package/dist/types/types/sync/index.d.ts +6 -0
- package/dist/types/types/sync/request.d.ts +7 -0
- package/dist/types/types/sync/resource-types.d.ts +5 -0
- package/dist/types/types/sync/resources/calendars.d.ts +38 -0
- package/dist/types/types/sync/resources/collaborators.d.ts +45 -0
- package/dist/types/types/sync/resources/completed-info.d.ts +33 -0
- package/dist/types/types/sync/resources/filters.d.ts +13 -0
- package/dist/types/types/sync/resources/folders.d.ts +11 -0
- package/dist/types/types/sync/resources/index.d.ts +18 -0
- package/dist/types/types/sync/resources/labels.d.ts +12 -0
- package/dist/types/types/sync/resources/live-notifications.d.ts +32 -0
- package/dist/types/types/sync/resources/notes.d.ts +34 -0
- package/dist/types/types/sync/resources/reminders.d.ts +213 -0
- package/dist/types/types/sync/resources/suggestions.d.ts +96 -0
- package/dist/types/types/sync/resources/tooltips.d.ts +6 -0
- package/dist/types/types/sync/resources/user-plan-limits.d.ts +47 -0
- package/dist/types/types/sync/resources/user-settings.d.ts +40 -0
- package/dist/types/types/sync/resources/user-status.d.ts +46 -0
- package/dist/types/types/sync/resources/user.d.ts +151 -0
- package/dist/types/types/sync/resources/view-options.d.ts +157 -0
- package/dist/types/types/sync/resources/workspace-filters.d.ts +18 -0
- package/dist/types/types/sync/resources/workspaces.d.ts +142 -0
- package/dist/types/types/sync/response.d.ts +930 -0
- package/dist/types/types/sync/user-preferences.d.ts +39 -0
- package/dist/types/types/tasks/index.d.ts +2 -0
- package/dist/types/types/tasks/requests.d.ts +197 -0
- package/dist/types/types/tasks/types.d.ts +162 -0
- package/dist/types/types/templates/index.d.ts +1 -0
- package/dist/types/types/templates/requests.d.ts +92 -0
- package/dist/types/types/ui-extensions/index.d.ts +2 -0
- package/dist/types/types/ui-extensions/requests.d.ts +108 -0
- package/dist/types/types/ui-extensions/types.d.ts +185 -0
- package/dist/types/types/uploads/index.d.ts +1 -0
- package/dist/types/types/uploads/requests.d.ts +32 -0
- package/dist/types/types/users/index.d.ts +1 -0
- package/dist/types/types/users/types.d.ts +67 -0
- package/dist/types/types/webhooks/comments.d.ts +1600 -0
- package/dist/types/types/webhooks/envelope.d.ts +34 -0
- package/dist/types/types/webhooks/filters.d.ts +99 -0
- package/dist/types/types/webhooks/index.d.ts +9 -0
- package/dist/types/types/webhooks/labels.d.ts +160 -0
- package/dist/types/types/webhooks/projects.d.ts +365 -0
- package/dist/types/types/webhooks/reminders.d.ts +82 -0
- package/dist/types/types/webhooks/sections.d.ts +372 -0
- package/dist/types/types/webhooks/tasks.d.ts +981 -0
- package/dist/types/types/webhooks/types.d.ts +2606 -0
- package/dist/types/types/workspaces/index.d.ts +2 -0
- package/dist/types/types/workspaces/requests.d.ts +260 -0
- package/dist/types/types/workspaces/types.d.ts +266 -0
- package/dist/types/utils/activity-helpers.d.ts +28 -0
- package/dist/types/utils/case-conversion.d.ts +20 -0
- package/dist/types/utils/colors.d.ts +201 -0
- package/dist/types/utils/file-response.d.ts +15 -0
- package/dist/types/utils/filter-queries.d.ts +42 -0
- package/dist/types/utils/filter-query-definitions.d.ts +27 -0
- package/dist/types/utils/headers.d.ts +20 -0
- package/dist/types/utils/index.d.ts +15 -0
- package/dist/types/utils/multipart-upload.d.ts +58 -0
- package/dist/types/utils/person-names.d.ts +52 -0
- package/dist/types/utils/processing-helpers.d.ts +1 -0
- package/dist/types/utils/project-helpers.d.ts +21 -0
- package/dist/types/utils/request-helpers.d.ts +33 -0
- package/dist/types/utils/sanitization.d.ts +52 -0
- package/dist/types/utils/sync-helpers.d.ts +17 -0
- package/dist/types/utils/task-sorting.d.ts +46 -0
- package/dist/types/utils/uncompletable-helpers.d.ts +30 -0
- package/dist/types/utils/url-helpers.d.ts +120 -0
- package/dist/types/utils/validators.d.ts +1917 -0
- package/dist/types/utils/view-options.d.ts +11 -0
- package/dist/types/utils/webhook-parser.d.ts +48 -0
- package/package.json +88 -5
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ColorKey } from '../../../utils/colors.js';
|
|
2
|
+
export type WorkspaceFilterAddArgs = {
|
|
3
|
+
workspaceId: string;
|
|
4
|
+
name: string;
|
|
5
|
+
query: string;
|
|
6
|
+
description?: string | null;
|
|
7
|
+
color?: ColorKey;
|
|
8
|
+
itemOrder?: number;
|
|
9
|
+
isFavorite?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type WorkspaceFilterUpdateArgs = {
|
|
12
|
+
id: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
query?: string;
|
|
15
|
+
description?: string | null;
|
|
16
|
+
color?: ColorKey;
|
|
17
|
+
itemOrder?: number;
|
|
18
|
+
isFavorite?: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type WorkspaceFilterUpdateOrdersArgs = {
|
|
21
|
+
idOrderMapping: Record<string, number>;
|
|
22
|
+
};
|
|
23
|
+
export type WorkspaceFilterDeleteArgs = {
|
|
24
|
+
id: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
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?: string[];
|
|
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
|
+
/**
|
|
65
|
+
* @deprecated Set `defaultOrderKey` via `project_update` and `folder_update` instead.
|
|
66
|
+
*/
|
|
67
|
+
export type WorkspaceSetDefaultOrderArgs = {
|
|
68
|
+
projects: Array<{
|
|
69
|
+
id: string;
|
|
70
|
+
defaultOrder: number;
|
|
71
|
+
folderId?: string | null;
|
|
72
|
+
}>;
|
|
73
|
+
folders: Array<{
|
|
74
|
+
id: string;
|
|
75
|
+
defaultOrder: number;
|
|
76
|
+
}>;
|
|
77
|
+
workspaceId: string;
|
|
78
|
+
};
|
|
79
|
+
export type WorkspaceUpdateUserProjectSortPreferenceArgs = {
|
|
80
|
+
workspaceId: string;
|
|
81
|
+
projectSortPreference: WorkspaceProjectSortOrder;
|
|
82
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
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", "day_orders", "calendars", "calendar_accounts", "suggestions", "tooltips"];
|
|
5
|
+
export type SyncResourceType = (typeof SYNC_RESOURCE_TYPES)[number];
|
|
@@ -0,0 +1,38 @@
|
|
|
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>;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
9
|
+
message: z.ZodString;
|
|
10
|
+
emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
activeUntil: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
|
|
12
|
+
effects: z.ZodDefault<z.ZodObject<{
|
|
13
|
+
pauseNotifications: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
scope: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
mode: z.ZodString;
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
pauseActivity: z.ZodOptional<z.ZodObject<{
|
|
19
|
+
scope: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
mode: z.ZodString;
|
|
21
|
+
}, z.core.$loose>>;
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
|
+
}, z.core.$loose>>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
export type Collaborator = z.infer<typeof CollaboratorSchema>;
|
|
27
|
+
/** Available collaborator statuses. */
|
|
28
|
+
export declare const COLLABORATOR_STATUSES: readonly ["active", "invited"];
|
|
29
|
+
/** Status of a project collaborator. */
|
|
30
|
+
export type CollaboratorStatus = (typeof COLLABORATOR_STATUSES)[number];
|
|
31
|
+
export declare const CollaboratorStateSchema: z.ZodObject<{
|
|
32
|
+
userId: z.ZodString;
|
|
33
|
+
projectId: z.ZodString;
|
|
34
|
+
state: z.ZodEnum<{
|
|
35
|
+
active: "active";
|
|
36
|
+
invited: "invited";
|
|
37
|
+
}>;
|
|
38
|
+
isDeleted: z.ZodBoolean;
|
|
39
|
+
workspaceRole: z.ZodOptional<z.ZodEnum<{
|
|
40
|
+
ADMIN: "ADMIN";
|
|
41
|
+
MEMBER: "MEMBER";
|
|
42
|
+
GUEST: "GUEST";
|
|
43
|
+
}>>;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
|
+
export type CollaboratorState = z.infer<typeof CollaboratorStateSchema>;
|
|
@@ -0,0 +1,33 @@
|
|
|
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>;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
color: z.ZodString;
|
|
8
|
+
isDeleted: z.ZodBoolean;
|
|
9
|
+
isFavorite: z.ZodBoolean;
|
|
10
|
+
isFrozen: z.ZodBoolean;
|
|
11
|
+
itemOrder: z.ZodNumber;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
export type Filter = z.infer<typeof FilterSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
defaultOrderKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
childOrder: z.ZodNumber;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
export type Folder = z.infer<typeof FolderSchema>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './filters.js';
|
|
2
|
+
export * from './labels.js';
|
|
3
|
+
export * from './collaborators.js';
|
|
4
|
+
export * from './folders.js';
|
|
5
|
+
export * from './tooltips.js';
|
|
6
|
+
export * from './notes.js';
|
|
7
|
+
export * from './workspace-filters.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 './user-status.js';
|
|
18
|
+
export * from './suggestions.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** A label returned by the Sync API. */
|
|
3
|
+
export declare const SyncLabelSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
color: z.ZodString;
|
|
7
|
+
isFavorite: z.ZodBoolean;
|
|
8
|
+
order: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9
|
+
isDeleted: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
/** Represents a label returned by the Sync API. */
|
|
12
|
+
export type SyncLabel = z.infer<typeof SyncLabelSchema>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Live notification resource from the Sync API.
|
|
4
|
+
*
|
|
5
|
+
* Uses a loose object schema with commonly-present fields for forward
|
|
6
|
+
* compatibility. The Sync API returns 20+ notification variants; fully typing
|
|
7
|
+
* each is too fragile for a library, so we validate the common shape and
|
|
8
|
+
* preserve all extra fields.
|
|
9
|
+
*/
|
|
10
|
+
export declare const LiveNotificationSchema: z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
13
|
+
fromUid: z.ZodOptional<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.ZodNullable<z.ZodString>>;
|
|
21
|
+
assignedByUid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
fromUser: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
email: z.ZodString;
|
|
24
|
+
fullName: z.ZodString;
|
|
25
|
+
id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
|
|
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>;
|
|
@@ -0,0 +1,34 @@
|
|
|
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.ZodCoercedDate<unknown>;
|
|
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
|
+
pending: "pending";
|
|
21
|
+
completed: "completed";
|
|
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>;
|
|
@@ -0,0 +1,213 @@
|
|
|
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.$loose>;
|
|
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>;
|
|
127
|
+
export declare const SyncAbsoluteReminderSchema: z.ZodObject<{
|
|
128
|
+
id: z.ZodString;
|
|
129
|
+
notifyUid: z.ZodString;
|
|
130
|
+
itemId: z.ZodString;
|
|
131
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
132
|
+
isDeleted: z.ZodBoolean;
|
|
133
|
+
type: z.ZodLiteral<"absolute">;
|
|
134
|
+
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
+
due: z.ZodNullable<z.ZodObject<{
|
|
136
|
+
isRecurring: z.ZodBoolean;
|
|
137
|
+
string: z.ZodString;
|
|
138
|
+
date: z.ZodString;
|
|
139
|
+
datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
|
+
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
|
+
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
142
|
+
}, z.core.$strip>>;
|
|
143
|
+
}, z.core.$loose>;
|
|
144
|
+
export type SyncAbsoluteReminder = z.infer<typeof SyncAbsoluteReminderSchema>;
|
|
145
|
+
export declare const SyncRelativeReminderSchema: z.ZodObject<{
|
|
146
|
+
id: z.ZodString;
|
|
147
|
+
notifyUid: z.ZodString;
|
|
148
|
+
itemId: z.ZodString;
|
|
149
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
150
|
+
isDeleted: z.ZodBoolean;
|
|
151
|
+
type: z.ZodLiteral<"relative">;
|
|
152
|
+
minuteOffset: z.ZodNumber;
|
|
153
|
+
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
154
|
+
due: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
155
|
+
isRecurring: z.ZodBoolean;
|
|
156
|
+
string: z.ZodString;
|
|
157
|
+
date: z.ZodString;
|
|
158
|
+
datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
159
|
+
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
|
+
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
}, z.core.$strip>>>;
|
|
162
|
+
}, z.core.$loose>;
|
|
163
|
+
export type SyncRelativeReminder = z.infer<typeof SyncRelativeReminderSchema>;
|
|
164
|
+
export declare const SyncReminderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
165
|
+
id: z.ZodString;
|
|
166
|
+
notifyUid: z.ZodString;
|
|
167
|
+
itemId: z.ZodString;
|
|
168
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
169
|
+
isDeleted: z.ZodBoolean;
|
|
170
|
+
type: z.ZodLiteral<"location">;
|
|
171
|
+
name: z.ZodString;
|
|
172
|
+
locLat: z.ZodString;
|
|
173
|
+
locLong: z.ZodString;
|
|
174
|
+
locTrigger: z.ZodEnum<{
|
|
175
|
+
on_enter: "on_enter";
|
|
176
|
+
on_leave: "on_leave";
|
|
177
|
+
}>;
|
|
178
|
+
radius: z.ZodNumber;
|
|
179
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
180
|
+
id: z.ZodString;
|
|
181
|
+
notifyUid: z.ZodString;
|
|
182
|
+
itemId: z.ZodString;
|
|
183
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
184
|
+
isDeleted: z.ZodBoolean;
|
|
185
|
+
type: z.ZodLiteral<"absolute">;
|
|
186
|
+
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
187
|
+
due: z.ZodNullable<z.ZodObject<{
|
|
188
|
+
isRecurring: z.ZodBoolean;
|
|
189
|
+
string: z.ZodString;
|
|
190
|
+
date: z.ZodString;
|
|
191
|
+
datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
192
|
+
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
193
|
+
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
196
|
+
id: z.ZodString;
|
|
197
|
+
notifyUid: z.ZodString;
|
|
198
|
+
itemId: z.ZodString;
|
|
199
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
200
|
+
isDeleted: z.ZodBoolean;
|
|
201
|
+
type: z.ZodLiteral<"relative">;
|
|
202
|
+
minuteOffset: z.ZodNumber;
|
|
203
|
+
isUrgent: z.ZodOptional<z.ZodBoolean>;
|
|
204
|
+
due: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
205
|
+
isRecurring: z.ZodBoolean;
|
|
206
|
+
string: z.ZodString;
|
|
207
|
+
date: z.ZodString;
|
|
208
|
+
datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
209
|
+
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
210
|
+
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
211
|
+
}, z.core.$strip>>>;
|
|
212
|
+
}, z.core.$loose>], "type">;
|
|
213
|
+
export type SyncReminder = z.infer<typeof SyncReminderSchema>;
|