@doist/todoist-sdk 0.0.1 → 8.0.1
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 +194 -29
- package/dist/cjs/authentication.js +204 -0
- package/dist/cjs/consts/endpoints.js +141 -0
- package/dist/cjs/index.js +20 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/test-utils/asserts.js +11 -0
- package/dist/cjs/test-utils/msw-setup.js +97 -0
- package/dist/cjs/test-utils/obsidian-fetch-adapter.js +53 -0
- package/dist/cjs/test-utils/test-defaults.js +290 -0
- package/dist/cjs/todoist-api.js +2636 -0
- package/dist/cjs/transport/fetch-with-retry.js +206 -0
- package/dist/cjs/transport/http-client.js +133 -0
- package/dist/cjs/transport/http-dispatcher.js +72 -0
- package/dist/cjs/types/activity/index.js +18 -0
- package/dist/cjs/types/activity/requests.js +2 -0
- package/dist/cjs/types/activity/types.js +28 -0
- package/dist/cjs/types/backups/index.js +18 -0
- package/dist/cjs/types/backups/requests.js +2 -0
- package/dist/cjs/types/backups/types.js +8 -0
- package/dist/cjs/types/comments/index.js +18 -0
- package/dist/cjs/types/comments/requests.js +2 -0
- package/dist/cjs/types/comments/types.js +60 -0
- package/dist/cjs/types/common.js +10 -0
- package/dist/cjs/types/emails/index.js +17 -0
- package/dist/cjs/types/emails/requests.js +5 -0
- package/dist/cjs/types/errors.js +29 -0
- package/dist/cjs/types/folders/index.js +17 -0
- package/dist/cjs/types/folders/requests.js +2 -0
- package/dist/cjs/types/http.js +24 -0
- package/dist/cjs/types/id-mappings/index.js +18 -0
- package/dist/cjs/types/id-mappings/requests.js +20 -0
- package/dist/cjs/types/id-mappings/types.js +12 -0
- package/dist/cjs/types/index.js +36 -0
- package/dist/cjs/types/insights/index.js +18 -0
- package/dist/cjs/types/insights/requests.js +2 -0
- package/dist/cjs/types/insights/types.js +84 -0
- package/dist/cjs/types/labels/index.js +18 -0
- package/dist/cjs/types/labels/requests.js +2 -0
- package/dist/cjs/types/labels/types.js +11 -0
- package/dist/cjs/types/productivity/index.js +17 -0
- package/dist/cjs/types/productivity/types.js +67 -0
- package/dist/cjs/types/projects/index.js +18 -0
- package/dist/cjs/types/projects/requests.js +2 -0
- package/dist/cjs/types/projects/types.js +56 -0
- package/dist/cjs/types/reminders/index.js +17 -0
- package/dist/cjs/types/reminders/requests.js +95 -0
- package/dist/cjs/types/sections/index.js +18 -0
- package/dist/cjs/types/sections/requests.js +2 -0
- package/dist/cjs/types/sections/types.js +22 -0
- package/dist/cjs/types/sync/commands/calendars.js +2 -0
- package/dist/cjs/types/sync/commands/filters.js +2 -0
- package/dist/cjs/types/sync/commands/folders.js +2 -0
- package/dist/cjs/types/sync/commands/index.js +35 -0
- package/dist/cjs/types/sync/commands/labels.js +5 -0
- package/dist/cjs/types/sync/commands/notes.js +2 -0
- package/dist/cjs/types/sync/commands/notifications.js +2 -0
- package/dist/cjs/types/sync/commands/others.js +2 -0
- package/dist/cjs/types/sync/commands/project-view-options.js +2 -0
- package/dist/cjs/types/sync/commands/projects.js +2 -0
- package/dist/cjs/types/sync/commands/reminders.js +2 -0
- package/dist/cjs/types/sync/commands/sections.js +2 -0
- package/dist/cjs/types/sync/commands/shared.js +20 -0
- package/dist/cjs/types/sync/commands/sharing.js +2 -0
- package/dist/cjs/types/sync/commands/tasks.js +2 -0
- package/dist/cjs/types/sync/commands/view-options.js +2 -0
- package/dist/cjs/types/sync/commands/workspace-filters.js +2 -0
- package/dist/cjs/types/sync/commands/workspace-goals.js +2 -0
- package/dist/cjs/types/sync/commands/workspaces.js +2 -0
- package/dist/cjs/types/sync/index.js +22 -0
- package/dist/cjs/types/sync/request.js +2 -0
- package/dist/cjs/types/sync/resource-types.js +40 -0
- package/dist/cjs/types/sync/resources/calendars.js +31 -0
- package/dist/cjs/types/sync/resources/collaborators.js +25 -0
- package/dist/cjs/types/sync/resources/completed-info.js +30 -0
- package/dist/cjs/types/sync/resources/filters.js +16 -0
- package/dist/cjs/types/sync/resources/folders.js +14 -0
- package/dist/cjs/types/sync/resources/index.js +33 -0
- package/dist/cjs/types/sync/resources/live-notifications.js +39 -0
- package/dist/cjs/types/sync/resources/notes.js +23 -0
- package/dist/cjs/types/sync/resources/reminders.js +50 -0
- package/dist/cjs/types/sync/resources/suggestions.js +42 -0
- package/dist/cjs/types/sync/resources/tooltips.js +10 -0
- package/dist/cjs/types/sync/resources/user-plan-limits.js +24 -0
- package/dist/cjs/types/sync/resources/user-settings.js +42 -0
- package/dist/cjs/types/sync/resources/user.js +120 -0
- package/dist/cjs/types/sync/resources/view-options.js +83 -0
- package/dist/cjs/types/sync/resources/workspace-filters.js +21 -0
- package/dist/cjs/types/sync/resources/workspace-goals.js +32 -0
- package/dist/cjs/types/sync/resources/workspaces.js +73 -0
- package/dist/cjs/types/sync/response.js +2 -0
- package/dist/cjs/types/sync/user-preferences.js +71 -0
- package/dist/cjs/types/tasks/index.js +18 -0
- package/dist/cjs/types/tasks/requests.js +2 -0
- package/dist/cjs/types/tasks/types.js +59 -0
- package/dist/cjs/types/templates/index.js +17 -0
- package/dist/cjs/types/templates/requests.js +2 -0
- package/dist/cjs/types/uploads/index.js +17 -0
- package/dist/cjs/types/uploads/requests.js +2 -0
- package/dist/cjs/types/users/index.js +17 -0
- package/dist/cjs/types/users/types.js +51 -0
- package/dist/cjs/types/workspaces/index.js +18 -0
- package/dist/cjs/types/workspaces/requests.js +2 -0
- package/dist/cjs/types/workspaces/types.js +155 -0
- package/dist/cjs/utils/activity-helpers.js +58 -0
- package/dist/cjs/utils/case-conversion.js +69 -0
- package/dist/cjs/utils/colors.js +143 -0
- package/dist/cjs/utils/index.js +25 -0
- package/dist/cjs/utils/multipart-upload.js +178 -0
- package/dist/cjs/utils/processing-helpers.js +18 -0
- package/dist/cjs/utils/sanitization.js +116 -0
- package/dist/cjs/utils/sync-helpers.js +22 -0
- package/dist/cjs/utils/uncompletable-helpers.js +60 -0
- package/dist/cjs/utils/url-helpers.js +74 -0
- package/dist/cjs/utils/validators.js +141 -0
- package/dist/esm/authentication.js +196 -0
- package/dist/esm/consts/endpoints.js +122 -0
- package/dist/esm/index.js +4 -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 +50 -0
- package/dist/esm/test-utils/test-defaults.js +287 -0
- package/dist/esm/todoist-api.js +2632 -0
- package/dist/esm/transport/fetch-with-retry.js +203 -0
- package/dist/esm/transport/http-client.js +128 -0
- package/dist/esm/transport/http-dispatcher.js +35 -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 +25 -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/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 +24 -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 +20 -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 +81 -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 +64 -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 +53 -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 +19 -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 +19 -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/workspace-goals.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 +37 -0
- package/dist/esm/types/sync/resources/calendars.js +28 -0
- package/dist/esm/types/sync/resources/collaborators.js +22 -0
- package/dist/esm/types/sync/resources/completed-info.js +27 -0
- package/dist/esm/types/sync/resources/filters.js +13 -0
- package/dist/esm/types/sync/resources/folders.js +11 -0
- package/dist/esm/types/sync/resources/index.js +17 -0
- package/dist/esm/types/sync/resources/live-notifications.js +36 -0
- package/dist/esm/types/sync/resources/notes.js +20 -0
- package/dist/esm/types/sync/resources/reminders.js +47 -0
- package/dist/esm/types/sync/resources/suggestions.js +39 -0
- package/dist/esm/types/sync/resources/tooltips.js +7 -0
- package/dist/esm/types/sync/resources/user-plan-limits.js +21 -0
- package/dist/esm/types/sync/resources/user-settings.js +39 -0
- package/dist/esm/types/sync/resources/user.js +117 -0
- package/dist/esm/types/sync/resources/view-options.js +80 -0
- package/dist/esm/types/sync/resources/workspace-filters.js +18 -0
- package/dist/esm/types/sync/resources/workspace-goals.js +29 -0
- package/dist/esm/types/sync/resources/workspaces.js +70 -0
- package/dist/esm/types/sync/response.js +1 -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/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 +48 -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 +152 -0
- package/dist/esm/utils/activity-helpers.js +53 -0
- package/dist/esm/utils/case-conversion.js +61 -0
- package/dist/esm/utils/colors.js +139 -0
- package/dist/esm/utils/index.js +4 -0
- package/dist/esm/utils/multipart-upload.js +142 -0
- package/dist/esm/utils/processing-helpers.js +12 -0
- package/dist/esm/utils/sanitization.js +112 -0
- package/dist/esm/utils/sync-helpers.js +19 -0
- package/dist/esm/utils/uncompletable-helpers.js +54 -0
- package/dist/esm/utils/url-helpers.js +68 -0
- package/dist/esm/utils/validators.js +132 -0
- package/dist/types/authentication.d.ts +158 -0
- package/dist/types/consts/endpoints.d.ts +81 -0
- package/dist/types/index.d.ts +4 -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 +267 -0
- package/dist/types/todoist-api.d.ts +1021 -0
- package/dist/types/transport/fetch-with-retry.d.ts +12 -0
- package/dist/types/transport/http-client.d.ts +16 -0
- package/dist/types/transport/http-dispatcher.d.ts +3 -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 +49 -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/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 +12 -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 +85 -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 +20 -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 +186 -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 +190 -0
- package/dist/types/types/projects/types.d.ts +201 -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 +41 -0
- package/dist/types/types/sections/types.d.ts +44 -0
- package/dist/types/types/sync/commands/calendars.d.ts +14 -0
- package/dist/types/types/sync/commands/filters.d.ts +22 -0
- package/dist/types/types/sync/commands/folders.d.ts +18 -0
- package/dist/types/types/sync/commands/index.d.ts +171 -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 +39 -0
- package/dist/types/types/sync/commands/project-view-options.d.ts +14 -0
- package/dist/types/types/sync/commands/projects.d.ts +90 -0
- package/dist/types/types/sync/commands/reminders.d.ts +51 -0
- package/dist/types/types/sync/commands/sections.d.ts +31 -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 +15 -0
- package/dist/types/types/sync/commands/workspace-filters.d.ts +23 -0
- package/dist/types/types/sync/commands/workspace-goals.d.ts +24 -0
- package/dist/types/types/sync/commands/workspaces.d.ts +79 -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 +28 -0
- package/dist/types/types/sync/resources/completed-info.d.ts +33 -0
- package/dist/types/types/sync/resources/filters.d.ts +12 -0
- package/dist/types/types/sync/resources/folders.d.ts +10 -0
- package/dist/types/types/sync/resources/index.d.ts +17 -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 +126 -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 +41 -0
- package/dist/types/types/sync/resources/user-settings.d.ts +40 -0
- package/dist/types/types/sync/resources/user.d.ts +134 -0
- package/dist/types/types/sync/resources/view-options.d.ts +169 -0
- package/dist/types/types/sync/resources/workspace-filters.d.ts +17 -0
- package/dist/types/types/sync/resources/workspace-goals.d.ts +29 -0
- package/dist/types/types/sync/resources/workspaces.d.ts +142 -0
- package/dist/types/types/sync/response.d.ts +51 -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/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 +66 -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 +267 -0
- package/dist/types/utils/activity-helpers.d.ts +28 -0
- package/dist/types/utils/case-conversion.d.ts +12 -0
- package/dist/types/utils/colors.d.ts +197 -0
- package/dist/types/utils/index.d.ts +4 -0
- package/dist/types/utils/multipart-upload.d.ts +54 -0
- package/dist/types/utils/processing-helpers.d.ts +1 -0
- package/dist/types/utils/sanitization.d.ts +35 -0
- package/dist/types/utils/sync-helpers.d.ts +17 -0
- package/dist/types/utils/uncompletable-helpers.d.ts +30 -0
- package/dist/types/utils/url-helpers.d.ts +32 -0
- package/dist/types/utils/validators.d.ts +1404 -0
- package/package.json +99 -8
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RequestUrlParam, RequestUrlResponse } from 'obsidian';
|
|
2
|
+
import type { CustomFetch } from '../types/http.js';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a CustomFetch adapter for Obsidian's requestUrl API.
|
|
5
|
+
*
|
|
6
|
+
* This adapter bridges the gap between Obsidian's requestUrl interface and the
|
|
7
|
+
* standard fetch-like interface expected by the Todoist API SDK.
|
|
8
|
+
*
|
|
9
|
+
* Key differences handled by this adapter:
|
|
10
|
+
* - Obsidian returns response data as properties (response.json, response.text)
|
|
11
|
+
* while the SDK expects methods (response.json(), response.text())
|
|
12
|
+
* - Obsidian's requestUrl bypasses CORS restrictions that would block standard fetch
|
|
13
|
+
* - Obsidian throws on HTTP errors by default; we set throw: false to handle manually
|
|
14
|
+
* - Obsidian doesn't provide statusText; we default to empty string
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import { requestUrl } from 'obsidian';
|
|
19
|
+
* import { createObsidianFetchAdapter } from './obsidian-fetch-adapter.js';
|
|
20
|
+
*
|
|
21
|
+
* const api = new TodoistApi('your-token', {
|
|
22
|
+
* customFetch: createObsidianFetchAdapter(requestUrl)
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @param requestUrl - The Obsidian requestUrl function
|
|
27
|
+
* @returns A CustomFetch function compatible with the Todoist API SDK
|
|
28
|
+
*/
|
|
29
|
+
export declare function createObsidianFetchAdapter(requestUrl: (request: RequestUrlParam | string) => Promise<RequestUrlResponse>): CustomFetch;
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
import { Label, Section, Task, User, Attachment, Duration, Deadline, RawComment, PersonalProject, WorkspaceProject, Reminder, Folder } from '../types/index.js';
|
|
2
|
+
import type { Collaborator, CollaboratorState } from '../types/sync/resources/collaborators.js';
|
|
3
|
+
import type { Note } from '../types/sync/resources/notes.js';
|
|
4
|
+
export declare const DEFAULT_TASK_ID = "1234";
|
|
5
|
+
export declare const DEFAULT_TASK_CONTENT = "This is a task";
|
|
6
|
+
export declare const DEFAULT_TASK_DESCRIPTION = "A description";
|
|
7
|
+
export declare const DEFAULT_TASK_PRIORITY = 1;
|
|
8
|
+
export declare const DEFAULT_ORDER = 3;
|
|
9
|
+
export declare const DEFAULT_PROJECT_ID = "123";
|
|
10
|
+
export declare const DEFAULT_PROJECT_NAME = "This is a project";
|
|
11
|
+
export declare const DEFAULT_PROJECT_VIEW_STYLE = "list";
|
|
12
|
+
export declare const DEFAULT_AUTH_TOKEN = "AToken";
|
|
13
|
+
export declare const DEFAULT_REQUEST_ID = "ARequestID";
|
|
14
|
+
export declare const INVALID_ENTITY_ID = 1234;
|
|
15
|
+
export declare const DEFAULT_DUE_DATE: {
|
|
16
|
+
isRecurring: boolean;
|
|
17
|
+
string: string;
|
|
18
|
+
date: string;
|
|
19
|
+
lang: string;
|
|
20
|
+
timezone: null;
|
|
21
|
+
};
|
|
22
|
+
export declare const DEFAULT_DURATION: Duration;
|
|
23
|
+
export declare const DEFAULT_DEADLINE: Deadline;
|
|
24
|
+
export declare const DEFAULT_TASK: Task;
|
|
25
|
+
export declare const INVALID_TASK: {
|
|
26
|
+
due: string;
|
|
27
|
+
isUncompletable: boolean;
|
|
28
|
+
url: string;
|
|
29
|
+
id: string;
|
|
30
|
+
userId: string;
|
|
31
|
+
projectId: string;
|
|
32
|
+
sectionId: string | null;
|
|
33
|
+
parentId: string | null;
|
|
34
|
+
addedByUid: string | null;
|
|
35
|
+
assignedByUid: string | null;
|
|
36
|
+
responsibleUid: string | null;
|
|
37
|
+
labels: string[];
|
|
38
|
+
deadline: {
|
|
39
|
+
date: string;
|
|
40
|
+
lang: string;
|
|
41
|
+
} | null;
|
|
42
|
+
duration: {
|
|
43
|
+
amount: number;
|
|
44
|
+
unit: "minute" | "day";
|
|
45
|
+
} | null;
|
|
46
|
+
checked: boolean;
|
|
47
|
+
isDeleted: boolean;
|
|
48
|
+
addedAt: string | null;
|
|
49
|
+
completedAt: string | null;
|
|
50
|
+
updatedAt: string | null;
|
|
51
|
+
priority: number;
|
|
52
|
+
childOrder: number;
|
|
53
|
+
content: string;
|
|
54
|
+
description: string;
|
|
55
|
+
dayOrder: number;
|
|
56
|
+
isCollapsed: boolean;
|
|
57
|
+
};
|
|
58
|
+
export declare const TASK_WITH_OPTIONALS_AS_NULL: Task;
|
|
59
|
+
export declare const DEFAULT_PROJECT: PersonalProject;
|
|
60
|
+
export declare const INVALID_PROJECT: {
|
|
61
|
+
name: number;
|
|
62
|
+
url: string;
|
|
63
|
+
id: string;
|
|
64
|
+
canAssignTasks: boolean;
|
|
65
|
+
childOrder: number;
|
|
66
|
+
color: string;
|
|
67
|
+
createdAt: string | null;
|
|
68
|
+
isArchived: boolean;
|
|
69
|
+
isDeleted: boolean;
|
|
70
|
+
isFavorite: boolean;
|
|
71
|
+
isFrozen: boolean;
|
|
72
|
+
updatedAt: string | null;
|
|
73
|
+
viewStyle: string;
|
|
74
|
+
defaultOrder: number;
|
|
75
|
+
description: string;
|
|
76
|
+
isCollapsed: boolean;
|
|
77
|
+
isShared: boolean;
|
|
78
|
+
parentId: string | null;
|
|
79
|
+
inboxProject: boolean;
|
|
80
|
+
};
|
|
81
|
+
export declare const PROJECT_WITH_OPTIONALS_AS_NULL: PersonalProject;
|
|
82
|
+
export declare const DEFAULT_WORKSPACE_PROJECT: WorkspaceProject;
|
|
83
|
+
export declare const DEFAULT_SECTION: Section;
|
|
84
|
+
export declare const INVALID_SECTION: {
|
|
85
|
+
projectId: undefined;
|
|
86
|
+
url: string;
|
|
87
|
+
id: string;
|
|
88
|
+
userId: string;
|
|
89
|
+
addedAt: string;
|
|
90
|
+
updatedAt: string;
|
|
91
|
+
archivedAt: string | null;
|
|
92
|
+
name: string;
|
|
93
|
+
sectionOrder: number;
|
|
94
|
+
isArchived: boolean;
|
|
95
|
+
isDeleted: boolean;
|
|
96
|
+
isCollapsed: boolean;
|
|
97
|
+
};
|
|
98
|
+
export declare const DEFAULT_LABEL: Label;
|
|
99
|
+
export declare const INVALID_LABEL: {
|
|
100
|
+
isFavorite: string;
|
|
101
|
+
id: string;
|
|
102
|
+
order: number | null;
|
|
103
|
+
name: string;
|
|
104
|
+
color: string;
|
|
105
|
+
};
|
|
106
|
+
export declare const DEFAULT_USER: User;
|
|
107
|
+
export declare const INVALID_USER: {
|
|
108
|
+
email: undefined;
|
|
109
|
+
id: string;
|
|
110
|
+
name: string;
|
|
111
|
+
};
|
|
112
|
+
export declare const DEFAULT_ATTACHMENT: Attachment;
|
|
113
|
+
export declare const INVALID_ATTACHMENT: {
|
|
114
|
+
uploadState: string;
|
|
115
|
+
resourceType: string;
|
|
116
|
+
fileName?: string | null | undefined;
|
|
117
|
+
fileSize?: number | null | undefined;
|
|
118
|
+
fileType?: string | null | undefined;
|
|
119
|
+
fileUrl?: string | null | undefined;
|
|
120
|
+
fileDuration?: number | null | undefined;
|
|
121
|
+
image?: string | null | undefined;
|
|
122
|
+
imageWidth?: number | null | undefined;
|
|
123
|
+
imageHeight?: number | null | undefined;
|
|
124
|
+
url?: string | null | undefined;
|
|
125
|
+
title?: string | null | undefined;
|
|
126
|
+
};
|
|
127
|
+
export declare const DEFAULT_RAW_COMMENT: RawComment;
|
|
128
|
+
export declare const DEFAULT_COMMENT: {
|
|
129
|
+
taskId: string | undefined;
|
|
130
|
+
itemId: undefined;
|
|
131
|
+
id: string;
|
|
132
|
+
content: string;
|
|
133
|
+
postedAt: string;
|
|
134
|
+
fileAttachment: {
|
|
135
|
+
resourceType: string;
|
|
136
|
+
fileName?: string | null | undefined;
|
|
137
|
+
fileSize?: number | null | undefined;
|
|
138
|
+
fileType?: string | null | undefined;
|
|
139
|
+
fileUrl?: string | null | undefined;
|
|
140
|
+
fileDuration?: number | null | undefined;
|
|
141
|
+
uploadState?: "completed" | "pending" | null | undefined;
|
|
142
|
+
image?: string | null | undefined;
|
|
143
|
+
imageWidth?: number | null | undefined;
|
|
144
|
+
imageHeight?: number | null | undefined;
|
|
145
|
+
url?: string | null | undefined;
|
|
146
|
+
title?: string | null | undefined;
|
|
147
|
+
} | null;
|
|
148
|
+
postedUid: string;
|
|
149
|
+
uidsToNotify: string[] | null;
|
|
150
|
+
reactions: Record<string, string[]> | null;
|
|
151
|
+
isDeleted: boolean;
|
|
152
|
+
projectId?: string | undefined;
|
|
153
|
+
};
|
|
154
|
+
export declare const DEFAULT_REMINDER_ID = "6XGgmFQrx44wfGHr";
|
|
155
|
+
export declare const DEFAULT_RELATIVE_REMINDER: Reminder;
|
|
156
|
+
export declare const DEFAULT_ABSOLUTE_REMINDER: Reminder;
|
|
157
|
+
export declare const DEFAULT_LOCATION_REMINDER: Reminder;
|
|
158
|
+
export declare const INVALID_COMMENT: {
|
|
159
|
+
isDeleted: string;
|
|
160
|
+
id: string;
|
|
161
|
+
content: string;
|
|
162
|
+
postedAt: string;
|
|
163
|
+
fileAttachment: {
|
|
164
|
+
resourceType: string;
|
|
165
|
+
fileName?: string | null | undefined;
|
|
166
|
+
fileSize?: number | null | undefined;
|
|
167
|
+
fileType?: string | null | undefined;
|
|
168
|
+
fileUrl?: string | null | undefined;
|
|
169
|
+
fileDuration?: number | null | undefined;
|
|
170
|
+
uploadState?: "completed" | "pending" | null | undefined;
|
|
171
|
+
image?: string | null | undefined;
|
|
172
|
+
imageWidth?: number | null | undefined;
|
|
173
|
+
imageHeight?: number | null | undefined;
|
|
174
|
+
url?: string | null | undefined;
|
|
175
|
+
title?: string | null | undefined;
|
|
176
|
+
} | null;
|
|
177
|
+
postedUid: string;
|
|
178
|
+
uidsToNotify: string[] | null;
|
|
179
|
+
reactions: Record<string, string[]> | null;
|
|
180
|
+
itemId?: string | undefined;
|
|
181
|
+
projectId?: string | undefined;
|
|
182
|
+
};
|
|
183
|
+
export declare const RAW_COMMENT_WITH_OPTIONALS_AS_NULL_TASK: RawComment;
|
|
184
|
+
export declare const COMMENT_WITH_OPTIONALS_AS_NULL_TASK: {
|
|
185
|
+
taskId: string | undefined;
|
|
186
|
+
itemId: undefined;
|
|
187
|
+
id: string;
|
|
188
|
+
content: string;
|
|
189
|
+
postedAt: string;
|
|
190
|
+
fileAttachment: {
|
|
191
|
+
resourceType: string;
|
|
192
|
+
fileName?: string | null | undefined;
|
|
193
|
+
fileSize?: number | null | undefined;
|
|
194
|
+
fileType?: string | null | undefined;
|
|
195
|
+
fileUrl?: string | null | undefined;
|
|
196
|
+
fileDuration?: number | null | undefined;
|
|
197
|
+
uploadState?: "completed" | "pending" | null | undefined;
|
|
198
|
+
image?: string | null | undefined;
|
|
199
|
+
imageWidth?: number | null | undefined;
|
|
200
|
+
imageHeight?: number | null | undefined;
|
|
201
|
+
url?: string | null | undefined;
|
|
202
|
+
title?: string | null | undefined;
|
|
203
|
+
} | null;
|
|
204
|
+
postedUid: string;
|
|
205
|
+
uidsToNotify: string[] | null;
|
|
206
|
+
reactions: Record<string, string[]> | null;
|
|
207
|
+
isDeleted: boolean;
|
|
208
|
+
projectId?: string | undefined;
|
|
209
|
+
};
|
|
210
|
+
export declare const RAW_COMMENT_WITH_ATTACHMENT_WITH_OPTIONALS_AS_NULL: RawComment;
|
|
211
|
+
export declare const COMMENT_WITH_ATTACHMENT_WITH_OPTIONALS_AS_NULL: {
|
|
212
|
+
taskId: string | undefined;
|
|
213
|
+
itemId: undefined;
|
|
214
|
+
id: string;
|
|
215
|
+
content: string;
|
|
216
|
+
postedAt: string;
|
|
217
|
+
fileAttachment: {
|
|
218
|
+
resourceType: string;
|
|
219
|
+
fileName?: string | null | undefined;
|
|
220
|
+
fileSize?: number | null | undefined;
|
|
221
|
+
fileType?: string | null | undefined;
|
|
222
|
+
fileUrl?: string | null | undefined;
|
|
223
|
+
fileDuration?: number | null | undefined;
|
|
224
|
+
uploadState?: "completed" | "pending" | null | undefined;
|
|
225
|
+
image?: string | null | undefined;
|
|
226
|
+
imageWidth?: number | null | undefined;
|
|
227
|
+
imageHeight?: number | null | undefined;
|
|
228
|
+
url?: string | null | undefined;
|
|
229
|
+
title?: string | null | undefined;
|
|
230
|
+
} | null;
|
|
231
|
+
postedUid: string;
|
|
232
|
+
uidsToNotify: string[] | null;
|
|
233
|
+
reactions: Record<string, string[]> | null;
|
|
234
|
+
isDeleted: boolean;
|
|
235
|
+
projectId?: string | undefined;
|
|
236
|
+
};
|
|
237
|
+
export declare const RAW_COMMENT_WITH_OPTIONALS_AS_NULL_PROJECT: RawComment;
|
|
238
|
+
export declare const COMMENT_WITH_OPTIONALS_AS_NULL_PROJECT: {
|
|
239
|
+
taskId: undefined;
|
|
240
|
+
id: string;
|
|
241
|
+
content: string;
|
|
242
|
+
postedAt: string;
|
|
243
|
+
fileAttachment: {
|
|
244
|
+
resourceType: string;
|
|
245
|
+
fileName?: string | null | undefined;
|
|
246
|
+
fileSize?: number | null | undefined;
|
|
247
|
+
fileType?: string | null | undefined;
|
|
248
|
+
fileUrl?: string | null | undefined;
|
|
249
|
+
fileDuration?: number | null | undefined;
|
|
250
|
+
uploadState?: "completed" | "pending" | null | undefined;
|
|
251
|
+
image?: string | null | undefined;
|
|
252
|
+
imageWidth?: number | null | undefined;
|
|
253
|
+
imageHeight?: number | null | undefined;
|
|
254
|
+
url?: string | null | undefined;
|
|
255
|
+
title?: string | null | undefined;
|
|
256
|
+
} | null;
|
|
257
|
+
postedUid: string;
|
|
258
|
+
uidsToNotify: string[] | null;
|
|
259
|
+
reactions: Record<string, string[]> | null;
|
|
260
|
+
isDeleted: boolean;
|
|
261
|
+
itemId?: string | undefined;
|
|
262
|
+
projectId?: string | undefined;
|
|
263
|
+
};
|
|
264
|
+
export declare const DEFAULT_FOLDER: Folder;
|
|
265
|
+
export declare const DEFAULT_COLLABORATOR: Collaborator;
|
|
266
|
+
export declare const DEFAULT_COLLABORATOR_STATE: CollaboratorState;
|
|
267
|
+
export declare const DEFAULT_NOTE: Note;
|