@doist/todoist-sdk 8.5.0-next.1 → 9.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.
Files changed (82) hide show
  1. package/dist/cjs/consts/endpoints.js +1 -6
  2. package/dist/cjs/test-utils/test-defaults.js +15 -12
  3. package/dist/cjs/todoist-api.js +0 -128
  4. package/dist/cjs/types/activity/types.js +1 -1
  5. package/dist/cjs/types/comments/types.js +1 -1
  6. package/dist/cjs/types/index.js +0 -1
  7. package/dist/cjs/types/insights/types.js +6 -4
  8. package/dist/cjs/types/projects/types.js +2 -2
  9. package/dist/cjs/types/sections/types.js +3 -3
  10. package/dist/cjs/types/sync/commands/index.js +0 -1
  11. package/dist/cjs/types/sync/resource-types.js +0 -1
  12. package/dist/cjs/types/sync/resources/live-notifications.js +1 -1
  13. package/dist/cjs/types/sync/resources/notes.js +1 -1
  14. package/dist/cjs/types/sync/resources/user.js +4 -4
  15. package/dist/cjs/types/sync/resources/workspace-filters.js +2 -2
  16. package/dist/cjs/types/sync/resources/workspace-goals.js +2 -2
  17. package/dist/cjs/types/sync/resources/workspaces.js +3 -3
  18. package/dist/cjs/types/sync/response.js +10 -12
  19. package/dist/cjs/types/tasks/types.js +3 -3
  20. package/dist/cjs/types/workspaces/types.js +3 -3
  21. package/dist/cjs/utils/validators.js +46 -48
  22. package/dist/esm/consts/endpoints.js +0 -5
  23. package/dist/esm/test-utils/test-defaults.js +15 -12
  24. package/dist/esm/todoist-api.js +2 -130
  25. package/dist/esm/types/activity/types.js +1 -1
  26. package/dist/esm/types/comments/types.js +1 -1
  27. package/dist/esm/types/index.js +0 -1
  28. package/dist/esm/types/insights/types.js +6 -4
  29. package/dist/esm/types/projects/types.js +2 -2
  30. package/dist/esm/types/sections/types.js +3 -3
  31. package/dist/esm/types/sync/commands/index.js +0 -1
  32. package/dist/esm/types/sync/resource-types.js +0 -1
  33. package/dist/esm/types/sync/resources/live-notifications.js +1 -1
  34. package/dist/esm/types/sync/resources/notes.js +1 -1
  35. package/dist/esm/types/sync/resources/user.js +4 -4
  36. package/dist/esm/types/sync/resources/workspace-filters.js +2 -2
  37. package/dist/esm/types/sync/resources/workspace-goals.js +2 -2
  38. package/dist/esm/types/sync/resources/workspaces.js +3 -3
  39. package/dist/esm/types/sync/response.js +0 -2
  40. package/dist/esm/types/tasks/types.js +3 -3
  41. package/dist/esm/types/workspaces/types.js +3 -3
  42. package/dist/esm/utils/validators.js +0 -2
  43. package/dist/types/consts/endpoints.d.ts +2 -7
  44. package/dist/types/test-utils/test-defaults.d.ts +13 -13
  45. package/dist/types/todoist-api.d.ts +1 -12
  46. package/dist/types/types/activity/types.d.ts +1 -1
  47. package/dist/types/types/comments/types.d.ts +4 -4
  48. package/dist/types/types/folders/requests.d.ts +2 -2
  49. package/dist/types/types/index.d.ts +0 -1
  50. package/dist/types/types/insights/types.d.ts +9 -9
  51. package/dist/types/types/projects/requests.d.ts +1 -1
  52. package/dist/types/types/projects/types.d.ts +18 -18
  53. package/dist/types/types/sections/types.d.ts +9 -9
  54. package/dist/types/types/sync/commands/index.d.ts +0 -9
  55. package/dist/types/types/sync/commands/workspaces.d.ts +1 -1
  56. package/dist/types/types/sync/resource-types.d.ts +1 -1
  57. package/dist/types/types/sync/resources/live-notifications.d.ts +1 -1
  58. package/dist/types/types/sync/resources/notes.d.ts +1 -1
  59. package/dist/types/types/sync/resources/user.d.ts +4 -4
  60. package/dist/types/types/sync/resources/view-options.d.ts +6 -6
  61. package/dist/types/types/sync/resources/workspace-filters.d.ts +2 -2
  62. package/dist/types/types/sync/resources/workspace-goals.d.ts +2 -2
  63. package/dist/types/types/sync/resources/workspaces.d.ts +8 -8
  64. package/dist/types/types/sync/response.d.ts +45 -70
  65. package/dist/types/types/tasks/requests.d.ts +0 -1
  66. package/dist/types/types/tasks/types.d.ts +9 -9
  67. package/dist/types/types/workspaces/requests.d.ts +7 -7
  68. package/dist/types/types/workspaces/types.d.ts +6 -6
  69. package/dist/types/utils/validators.d.ts +64 -111
  70. package/package.json +1 -1
  71. package/dist/cjs/types/goals/index.js +0 -18
  72. package/dist/cjs/types/goals/requests.js +0 -2
  73. package/dist/cjs/types/goals/types.js +0 -29
  74. package/dist/cjs/types/sync/commands/goals.js +0 -2
  75. package/dist/esm/types/goals/index.js +0 -2
  76. package/dist/esm/types/goals/requests.js +0 -1
  77. package/dist/esm/types/goals/types.js +0 -26
  78. package/dist/esm/types/sync/commands/goals.js +0 -1
  79. package/dist/types/types/goals/index.d.ts +0 -2
  80. package/dist/types/types/goals/requests.d.ts +0 -33
  81. package/dist/types/types/goals/types.d.ts +0 -41
  82. package/dist/types/types/sync/commands/goals.d.ts +0 -33
@@ -71,7 +71,7 @@ export const WorkspacePlanDetailsSchema = z.object({
71
71
  currentActiveProjects: z.number(),
72
72
  maximumActiveProjects: z.number(),
73
73
  priceList: z.array(FormattedPriceListingSchema),
74
- workspaceId: z.number(),
74
+ workspaceId: StringOrNumberSchema,
75
75
  isTrialing: z.boolean(),
76
76
  trialEndsAt: z.string().nullable(),
77
77
  cancelAtPeriodEnd: z.boolean(),
@@ -122,8 +122,8 @@ export const WorkspaceSchema = z
122
122
  logoMedium: z.string().nullish(),
123
123
  logoSmall: z.string().nullish(),
124
124
  logoS640: z.string().nullish(),
125
- createdAt: z.string().optional(),
126
- dateCreated: z.string().optional(),
125
+ createdAt: z.coerce.date().optional(),
126
+ dateCreated: z.coerce.date().optional(),
127
127
  creatorId: StringOrNumberSchema,
128
128
  properties: WorkspacePropertiesSchema,
129
129
  })
@@ -2,7 +2,6 @@ import { z } from 'zod';
2
2
  import { ActivityEventSchema } from '../types/activity/types.js';
3
3
  import { BackupSchema } from '../types/backups/types.js';
4
4
  import { AttachmentSchema, CommentSchema } from '../types/comments/types.js';
5
- import { GoalSchema } from '../types/goals/types.js';
6
5
  import { IdMappingSchema, MovedIdSchema } from '../types/id-mappings/types.js';
7
6
  import { ProjectActivityStatsSchema, ProjectHealthSchema, ProjectHealthContextSchema, ProjectProgressSchema, WorkspaceInsightsSchema, } from '../types/insights/types.js';
8
7
  import { LabelSchema } from '../types/labels/types.js';
@@ -57,7 +56,6 @@ export const { validate: validateFilter, validateArray: validateFilterArray } =
57
56
  export const { validate: validateCollaborator, validateArray: validateCollaboratorArray } = createValidator(CollaboratorSchema);
58
57
  export const { validate: validateCollaboratorState, validateArray: validateCollaboratorStateArray, } = createValidator(CollaboratorStateSchema);
59
58
  export const { validate: validateFolder, validateArray: validateFolderArray } = createValidator(FolderSchema);
60
- export const { validate: validateGoal, validateArray: validateGoalArray } = createValidator(GoalSchema);
61
59
  export const { validate: validateNote, validateArray: validateNoteArray } = createValidator(NoteSchema);
62
60
  export const { validate: validateTooltips } = createValidator(TooltipsSchema);
63
61
  export const { validate: validateWorkspaceFilter, validateArray: validateWorkspaceFilterArray } = createValidator(WorkspaceFilterSchema);
@@ -58,11 +58,6 @@ export declare const ENDPOINT_GET_TOKEN = "access_token";
58
58
  export declare const ENDPOINT_REVOKE = "revoke";
59
59
  export declare const ENDPOINT_REGISTER = "register";
60
60
  export declare const ENDPOINT_REST_FOLDERS = "folders";
61
- export declare const ENDPOINT_REST_GOALS = "goals";
62
- export declare const ENDPOINT_REST_GOALS_SEARCH: string;
63
- export declare const GOAL_COMPLETE = "complete";
64
- export declare const GOAL_UNCOMPLETE = "uncomplete";
65
- export declare const GOAL_TASKS = "items";
66
61
  export declare const ENDPOINT_REST_WORKSPACES = "workspaces";
67
62
  export declare const ENDPOINT_WORKSPACE_INVITATIONS = "workspaces/invitations";
68
63
  export declare const ENDPOINT_WORKSPACE_INVITATIONS_ALL = "workspaces/invitations/all";
@@ -83,5 +78,5 @@ export declare const ENDPOINT_WORKSPACE_MEMBERS = "workspaces/members";
83
78
  export declare function getWorkspaceUserTasksEndpoint(workspaceId: string, userId: string): string;
84
79
  export declare function getWorkspaceInviteUsersEndpoint(workspaceId: string): string;
85
80
  export declare function getWorkspaceUserEndpoint(workspaceId: string, userId: string): string;
86
- export declare function getWorkspaceActiveProjectsEndpoint(workspaceId: number): string;
87
- export declare function getWorkspaceArchivedProjectsEndpoint(workspaceId: number): string;
81
+ export declare function getWorkspaceActiveProjectsEndpoint(workspaceId: string): string;
82
+ export declare function getWorkspaceArchivedProjectsEndpoint(workspaceId: string): string;
@@ -45,9 +45,9 @@ export declare const INVALID_TASK: {
45
45
  } | null;
46
46
  checked: boolean;
47
47
  isDeleted: boolean;
48
- addedAt: string | null;
49
- completedAt: string | null;
50
- updatedAt: string | null;
48
+ addedAt: Date | null;
49
+ completedAt: Date | null;
50
+ updatedAt: Date | null;
51
51
  priority: number;
52
52
  childOrder: number;
53
53
  content: string;
@@ -64,12 +64,12 @@ export declare const INVALID_PROJECT: {
64
64
  canAssignTasks: boolean;
65
65
  childOrder: number;
66
66
  color: string;
67
- createdAt: string | null;
67
+ createdAt: Date | null;
68
68
  isArchived: boolean;
69
69
  isDeleted: boolean;
70
70
  isFavorite: boolean;
71
71
  isFrozen: boolean;
72
- updatedAt: string | null;
72
+ updatedAt: Date | null;
73
73
  viewStyle: string;
74
74
  defaultOrder: number;
75
75
  description: string;
@@ -86,9 +86,9 @@ export declare const INVALID_SECTION: {
86
86
  url: string;
87
87
  id: string;
88
88
  userId: string;
89
- addedAt: string;
90
- updatedAt: string;
91
- archivedAt: string | null;
89
+ addedAt: Date;
90
+ updatedAt: Date;
91
+ archivedAt: Date | null;
92
92
  name: string;
93
93
  sectionOrder: number;
94
94
  isArchived: boolean;
@@ -130,7 +130,7 @@ export declare const DEFAULT_COMMENT: {
130
130
  itemId: undefined;
131
131
  id: string;
132
132
  content: string;
133
- postedAt: string;
133
+ postedAt: Date;
134
134
  fileAttachment: {
135
135
  resourceType: string;
136
136
  fileName?: string | null | undefined;
@@ -159,7 +159,7 @@ export declare const INVALID_COMMENT: {
159
159
  isDeleted: string;
160
160
  id: string;
161
161
  content: string;
162
- postedAt: string;
162
+ postedAt: Date;
163
163
  fileAttachment: {
164
164
  resourceType: string;
165
165
  fileName?: string | null | undefined;
@@ -186,7 +186,7 @@ export declare const COMMENT_WITH_OPTIONALS_AS_NULL_TASK: {
186
186
  itemId: undefined;
187
187
  id: string;
188
188
  content: string;
189
- postedAt: string;
189
+ postedAt: Date;
190
190
  fileAttachment: {
191
191
  resourceType: string;
192
192
  fileName?: string | null | undefined;
@@ -213,7 +213,7 @@ export declare const COMMENT_WITH_ATTACHMENT_WITH_OPTIONALS_AS_NULL: {
213
213
  itemId: undefined;
214
214
  id: string;
215
215
  content: string;
216
- postedAt: string;
216
+ postedAt: Date;
217
217
  fileAttachment: {
218
218
  resourceType: string;
219
219
  fileName?: string | null | undefined;
@@ -239,7 +239,7 @@ export declare const COMMENT_WITH_OPTIONALS_AS_NULL_PROJECT: {
239
239
  taskId: undefined;
240
240
  id: string;
241
241
  content: string;
242
- postedAt: string;
242
+ postedAt: Date;
243
243
  fileAttachment: {
244
244
  resourceType: string;
245
245
  fileName?: string | null | undefined;
@@ -4,7 +4,6 @@ import { Backup, GetBackupsArgs, DownloadBackupArgs } from './types/backups/inde
4
4
  import { Attachment, Comment, AddCommentArgs, UpdateCommentArgs, GetProjectCommentsArgs, GetTaskCommentsArgs, GetCommentsResponse } from './types/comments/index.js';
5
5
  import { GetOrCreateEmailArgs, GetOrCreateEmailResponse, DisableEmailArgs } from './types/emails/index.js';
6
6
  import { GetFoldersArgs, GetFoldersResponse, AddFolderArgs, UpdateFolderArgs } from './types/folders/index.js';
7
- import type { Goal, GetGoalsArgs, GetGoalsResponse, SearchGoalsArgs, AddGoalArgs, UpdateGoalArgs, TaskLinkingArgs } from './types/goals/index.js';
8
7
  import { CustomFetch, CustomFetchResponse } from './types/http.js';
9
8
  import { IdMapping, MovedId, GetIdMappingsArgs, GetMovedIdsArgs } from './types/id-mappings/index.js';
10
9
  import { ProjectActivityStats, ProjectHealth, ProjectHealthContext, ProjectProgress, WorkspaceInsights, GetProjectActivityStatsArgs, GetWorkspaceInsightsArgs } from './types/insights/index.js';
@@ -764,16 +763,6 @@ export declare class TodoistApi {
764
763
  * @returns A promise that resolves to `true` if successful.
765
764
  */
766
765
  deleteFolder(id: string, requestId?: string): Promise<boolean>;
767
- getGoals(args?: GetGoalsArgs): Promise<GetGoalsResponse>;
768
- searchGoals(args: SearchGoalsArgs): Promise<GetGoalsResponse>;
769
- getGoal(id: string): Promise<Goal>;
770
- addGoal(args: AddGoalArgs, requestId?: string): Promise<Goal>;
771
- updateGoal(id: string, args: UpdateGoalArgs, requestId?: string): Promise<Goal>;
772
- deleteGoal(id: string, requestId?: string): Promise<boolean>;
773
- completeGoal(id: string, requestId?: string): Promise<Goal>;
774
- uncompleteGoal(id: string, requestId?: string): Promise<Goal>;
775
- linkTaskToGoal({ goalId, taskId }: TaskLinkingArgs, requestId?: string): Promise<Goal>;
776
- unlinkTaskFromGoal({ goalId, taskId }: TaskLinkingArgs, requestId?: string): Promise<boolean>;
777
766
  /**
778
767
  * Retrieves a list of available backups.
779
768
  *
@@ -872,7 +861,7 @@ export declare class TodoistApi {
872
861
  * @returns Array of email addresses with pending invitations.
873
862
  */
874
863
  getAllWorkspaceInvitations(args?: {
875
- workspaceId?: number;
864
+ workspaceId?: string;
876
865
  }, requestId?: string): Promise<AllWorkspaceInvitationsResponse>;
877
866
  /**
878
867
  * Deletes a workspace invitation (admin only).
@@ -35,7 +35,7 @@ export declare const ActivityEventSchema: z.ZodObject<{
35
35
  objectType: z.ZodString;
36
36
  objectId: z.ZodString;
37
37
  eventType: z.ZodString;
38
- eventDate: z.ZodString;
38
+ eventDate: z.ZodCoercedDate<unknown>;
39
39
  id: z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
40
40
  parentProjectId: z.ZodNullable<z.ZodString>;
41
41
  parentItemId: z.ZodNullable<z.ZodString>;
@@ -30,7 +30,7 @@ export declare const RawCommentSchema: z.ZodObject<{
30
30
  itemId: z.ZodOptional<z.ZodString>;
31
31
  projectId: z.ZodOptional<z.ZodString>;
32
32
  content: z.ZodString;
33
- postedAt: z.ZodString;
33
+ postedAt: z.ZodCoercedDate<unknown>;
34
34
  fileAttachment: z.ZodNullable<z.ZodObject<{
35
35
  resourceType: z.ZodString;
36
36
  fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -63,7 +63,7 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
63
63
  itemId: z.ZodOptional<z.ZodString>;
64
64
  projectId: z.ZodOptional<z.ZodString>;
65
65
  content: z.ZodString;
66
- postedAt: z.ZodString;
66
+ postedAt: z.ZodCoercedDate<unknown>;
67
67
  fileAttachment: z.ZodNullable<z.ZodObject<{
68
68
  resourceType: z.ZodString;
69
69
  fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -89,7 +89,7 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
89
89
  taskId: string | undefined;
90
90
  id: string;
91
91
  content: string;
92
- postedAt: string;
92
+ postedAt: Date;
93
93
  fileAttachment: {
94
94
  resourceType: string;
95
95
  fileName?: string | null | undefined;
@@ -112,7 +112,7 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
112
112
  }, {
113
113
  id: string;
114
114
  content: string;
115
- postedAt: string;
115
+ postedAt: Date;
116
116
  fileAttachment: {
117
117
  resourceType: string;
118
118
  fileName?: string | null | undefined;
@@ -1,6 +1,6 @@
1
1
  import type { Folder } from '../sync/resources/folders.js';
2
2
  export type GetFoldersArgs = {
3
- workspaceId: number;
3
+ workspaceId: string;
4
4
  cursor?: string | null;
5
5
  limit?: number;
6
6
  };
@@ -10,7 +10,7 @@ export type GetFoldersResponse = {
10
10
  };
11
11
  export type AddFolderArgs = {
12
12
  name: string;
13
- workspaceId: number;
13
+ workspaceId: string;
14
14
  defaultOrder?: number | null;
15
15
  childOrder?: number | null;
16
16
  };
@@ -9,7 +9,6 @@ export * from './productivity/index.js';
9
9
  export * from './activity/index.js';
10
10
  export * from './workspaces/index.js';
11
11
  export * from './folders/index.js';
12
- export * from './goals/index.js';
13
12
  export * from './insights/index.js';
14
13
  export * from './backups/index.js';
15
14
  export * from './id-mappings/index.js';
@@ -51,7 +51,7 @@ export declare const ProjectHealthSchema: z.ZodObject<{
51
51
  recommendation: z.ZodString;
52
52
  }, z.core.$strip>>>>;
53
53
  projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
55
55
  isStale: z.ZodDefault<z.ZodBoolean>;
56
56
  updateInProgress: z.ZodDefault<z.ZodBoolean>;
57
57
  }, z.core.$strip>;
@@ -74,9 +74,9 @@ export declare const TaskContextSchema: z.ZodObject<{
74
74
  deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
75
  priority: z.ZodString;
76
76
  isCompleted: z.ZodBoolean;
77
- createdAt: z.ZodString;
78
- updatedAt: z.ZodString;
79
- completedAt: z.ZodNullable<z.ZodString>;
77
+ createdAt: z.ZodCoercedDate<unknown>;
78
+ updatedAt: z.ZodCoercedDate<unknown>;
79
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
80
80
  completedByUid: z.ZodNullable<z.ZodString>;
81
81
  labels: z.ZodArray<z.ZodString>;
82
82
  }, z.core.$strip>;
@@ -101,9 +101,9 @@ export declare const ProjectHealthContextSchema: z.ZodObject<{
101
101
  deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
102
  priority: z.ZodString;
103
103
  isCompleted: z.ZodBoolean;
104
- createdAt: z.ZodString;
105
- updatedAt: z.ZodString;
106
- completedAt: z.ZodNullable<z.ZodString>;
104
+ createdAt: z.ZodCoercedDate<unknown>;
105
+ updatedAt: z.ZodCoercedDate<unknown>;
106
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
107
107
  completedByUid: z.ZodNullable<z.ZodString>;
108
108
  labels: z.ZodArray<z.ZodString>;
109
109
  }, z.core.$strip>>;
@@ -137,7 +137,7 @@ export declare const ProjectInsightSchema: z.ZodObject<{
137
137
  recommendation: z.ZodString;
138
138
  }, z.core.$strip>>>>;
139
139
  projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
140
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
141
141
  isStale: z.ZodDefault<z.ZodBoolean>;
142
142
  updateInProgress: z.ZodDefault<z.ZodBoolean>;
143
143
  }, z.core.$strip>>;
@@ -170,7 +170,7 @@ export declare const WorkspaceInsightsSchema: z.ZodObject<{
170
170
  recommendation: z.ZodString;
171
171
  }, z.core.$strip>>>>;
172
172
  projectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodCoercedDate<unknown>>>;
174
174
  isStale: z.ZodDefault<z.ZodBoolean>;
175
175
  updateInProgress: z.ZodDefault<z.ZodBoolean>;
176
176
  }, z.core.$strip>>;
@@ -110,7 +110,7 @@ export type MoveProjectToPersonalArgs = {
110
110
  * @see https://developer.todoist.com/api/v1/#tag/Projects/operation/count_projects_archived_api_v1_projects_archived_count_get
111
111
  */
112
112
  export type GetArchivedProjectsCountArgs = {
113
- workspaceId?: number | null;
113
+ workspaceId?: string | null;
114
114
  joined?: boolean | null;
115
115
  };
116
116
  /**
@@ -8,13 +8,13 @@ export declare const BaseProjectSchema: z.ZodObject<{
8
8
  canAssignTasks: z.ZodBoolean;
9
9
  childOrder: z.ZodNumber;
10
10
  color: z.ZodString;
11
- createdAt: z.ZodNullable<z.ZodString>;
11
+ createdAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
12
12
  isArchived: z.ZodBoolean;
13
13
  isDeleted: z.ZodBoolean;
14
14
  isFavorite: z.ZodBoolean;
15
15
  isFrozen: z.ZodBoolean;
16
16
  name: z.ZodString;
17
- updatedAt: z.ZodNullable<z.ZodString>;
17
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
18
18
  viewStyle: z.ZodString;
19
19
  defaultOrder: z.ZodNumber;
20
20
  description: z.ZodString;
@@ -29,13 +29,13 @@ export declare const PersonalProjectSchema: z.ZodPipe<z.ZodObject<{
29
29
  canAssignTasks: z.ZodBoolean;
30
30
  childOrder: z.ZodNumber;
31
31
  color: z.ZodString;
32
- createdAt: z.ZodNullable<z.ZodString>;
32
+ createdAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
33
33
  isArchived: z.ZodBoolean;
34
34
  isDeleted: z.ZodBoolean;
35
35
  isFavorite: z.ZodBoolean;
36
36
  isFrozen: z.ZodBoolean;
37
37
  name: z.ZodString;
38
- updatedAt: z.ZodNullable<z.ZodString>;
38
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
39
39
  viewStyle: z.ZodString;
40
40
  defaultOrder: z.ZodNumber;
41
41
  description: z.ZodString;
@@ -49,13 +49,13 @@ export declare const PersonalProjectSchema: z.ZodPipe<z.ZodObject<{
49
49
  canAssignTasks: boolean;
50
50
  childOrder: number;
51
51
  color: string;
52
- createdAt: string | null;
52
+ createdAt: Date | null;
53
53
  isArchived: boolean;
54
54
  isDeleted: boolean;
55
55
  isFavorite: boolean;
56
56
  isFrozen: boolean;
57
57
  name: string;
58
- updatedAt: string | null;
58
+ updatedAt: Date | null;
59
59
  viewStyle: string;
60
60
  defaultOrder: number;
61
61
  description: string;
@@ -68,13 +68,13 @@ export declare const PersonalProjectSchema: z.ZodPipe<z.ZodObject<{
68
68
  canAssignTasks: boolean;
69
69
  childOrder: number;
70
70
  color: string;
71
- createdAt: string | null;
71
+ createdAt: Date | null;
72
72
  isArchived: boolean;
73
73
  isDeleted: boolean;
74
74
  isFavorite: boolean;
75
75
  isFrozen: boolean;
76
76
  name: string;
77
- updatedAt: string | null;
77
+ updatedAt: Date | null;
78
78
  viewStyle: string;
79
79
  defaultOrder: number;
80
80
  description: string;
@@ -100,13 +100,13 @@ export declare const WorkspaceProjectSchema: z.ZodPipe<z.ZodObject<{
100
100
  canAssignTasks: z.ZodBoolean;
101
101
  childOrder: z.ZodNumber;
102
102
  color: z.ZodString;
103
- createdAt: z.ZodNullable<z.ZodString>;
103
+ createdAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
104
104
  isArchived: z.ZodBoolean;
105
105
  isDeleted: z.ZodBoolean;
106
106
  isFavorite: z.ZodBoolean;
107
107
  isFrozen: z.ZodBoolean;
108
108
  name: z.ZodString;
109
- updatedAt: z.ZodNullable<z.ZodString>;
109
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
110
110
  viewStyle: z.ZodString;
111
111
  defaultOrder: z.ZodNumber;
112
112
  description: z.ZodString;
@@ -132,13 +132,13 @@ export declare const WorkspaceProjectSchema: z.ZodPipe<z.ZodObject<{
132
132
  canAssignTasks: boolean;
133
133
  childOrder: number;
134
134
  color: string;
135
- createdAt: string | null;
135
+ createdAt: Date | null;
136
136
  isArchived: boolean;
137
137
  isDeleted: boolean;
138
138
  isFavorite: boolean;
139
139
  isFrozen: boolean;
140
140
  name: string;
141
- updatedAt: string | null;
141
+ updatedAt: Date | null;
142
142
  viewStyle: string;
143
143
  defaultOrder: number;
144
144
  description: string;
@@ -159,13 +159,13 @@ export declare const WorkspaceProjectSchema: z.ZodPipe<z.ZodObject<{
159
159
  canAssignTasks: boolean;
160
160
  childOrder: number;
161
161
  color: string;
162
- createdAt: string | null;
162
+ createdAt: Date | null;
163
163
  isArchived: boolean;
164
164
  isDeleted: boolean;
165
165
  isFavorite: boolean;
166
166
  isFrozen: boolean;
167
167
  name: string;
168
- updatedAt: string | null;
168
+ updatedAt: Date | null;
169
169
  viewStyle: string;
170
170
  defaultOrder: number;
171
171
  description: string;
@@ -202,13 +202,13 @@ export declare const ProjectSchema: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
202
202
  canAssignTasks: boolean;
203
203
  childOrder: number;
204
204
  color: string;
205
- createdAt: string | null;
205
+ createdAt: Date | null;
206
206
  isArchived: boolean;
207
207
  isDeleted: boolean;
208
208
  isFavorite: boolean;
209
209
  isFrozen: boolean;
210
210
  name: string;
211
- updatedAt: string | null;
211
+ updatedAt: Date | null;
212
212
  viewStyle: string;
213
213
  defaultOrder: number;
214
214
  description: string;
@@ -222,13 +222,13 @@ export declare const ProjectSchema: z.ZodPipe<z.ZodUnknown, z.ZodTransform<{
222
222
  canAssignTasks: boolean;
223
223
  childOrder: number;
224
224
  color: string;
225
- createdAt: string | null;
225
+ createdAt: Date | null;
226
226
  isArchived: boolean;
227
227
  isDeleted: boolean;
228
228
  isFavorite: boolean;
229
229
  isFrozen: boolean;
230
230
  name: string;
231
- updatedAt: string | null;
231
+ updatedAt: Date | null;
232
232
  viewStyle: string;
233
233
  defaultOrder: number;
234
234
  description: string;
@@ -3,9 +3,9 @@ export declare const SectionSchema: z.ZodPipe<z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  userId: z.ZodString;
5
5
  projectId: z.ZodString;
6
- addedAt: z.ZodString;
7
- updatedAt: z.ZodString;
8
- archivedAt: z.ZodNullable<z.ZodString>;
6
+ addedAt: z.ZodCoercedDate<unknown>;
7
+ updatedAt: z.ZodCoercedDate<unknown>;
8
+ archivedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
9
9
  name: z.ZodString;
10
10
  sectionOrder: z.ZodNumber;
11
11
  isArchived: z.ZodBoolean;
@@ -16,9 +16,9 @@ export declare const SectionSchema: z.ZodPipe<z.ZodObject<{
16
16
  id: string;
17
17
  userId: string;
18
18
  projectId: string;
19
- addedAt: string;
20
- updatedAt: string;
21
- archivedAt: string | null;
19
+ addedAt: Date;
20
+ updatedAt: Date;
21
+ archivedAt: Date | null;
22
22
  name: string;
23
23
  sectionOrder: number;
24
24
  isArchived: boolean;
@@ -28,9 +28,9 @@ export declare const SectionSchema: z.ZodPipe<z.ZodObject<{
28
28
  id: string;
29
29
  userId: string;
30
30
  projectId: string;
31
- addedAt: string;
32
- updatedAt: string;
33
- archivedAt: string | null;
31
+ addedAt: Date;
32
+ updatedAt: Date;
33
+ archivedAt: Date | null;
34
34
  name: string;
35
35
  sectionOrder: number;
36
36
  isArchived: boolean;
@@ -1,7 +1,6 @@
1
1
  import type { CalendarUpdateArgs, CalendarAccountUpdateArgs, CalendarAccountRestoreTaskCalendarArgs } from './calendars.js';
2
2
  import type { FilterAddArgs, FilterUpdateArgs, FilterUpdateOrdersArgs, FilterDeleteArgs } from './filters.js';
3
3
  import type { FolderAddArgs, FolderUpdateArgs, FolderDeleteArgs } from './folders.js';
4
- import type { GoalAddArgs, GoalUpdateArgs, GoalCompleteArgs, GoalUncompleteArgs, GoalDeleteArgs, GoalLinkItemArgs, GoalUnlinkItemArgs } from './goals.js';
5
4
  import type { LabelAddArgs, LabelRenameArgs, LabelUpdateArgs, LabelUpdateOrdersArgs, LabelDeleteArgs, LabelDeleteOccurrencesArgs } from './labels.js';
6
5
  import type { NoteAddArgs, NoteUpdateArgs, NoteDeleteArgs, NoteReactionAddArgs, NoteReactionRemoveArgs } from './notes.js';
7
6
  import type { LiveNotificationsMarkUnreadArgs, LiveNotificationsMarkReadArgs, LiveNotificationsMarkReadAllArgs, LiveNotificationsSetLastReadArgs } from './notifications.js';
@@ -97,13 +96,6 @@ export type SyncCommandsMap = {
97
96
  workspace_goal_delete: WorkspaceGoalDeleteArgs;
98
97
  workspace_goal_project_add: WorkspaceGoalProjectAddArgs;
99
98
  workspace_goal_project_remove: WorkspaceGoalProjectRemoveArgs;
100
- goal_add: GoalAddArgs;
101
- goal_update: GoalUpdateArgs;
102
- goal_complete: GoalCompleteArgs;
103
- goal_uncomplete: GoalUncompleteArgs;
104
- goal_delete: GoalDeleteArgs;
105
- goal_link_item: GoalLinkItemArgs;
106
- goal_unlink_item: GoalUnlinkItemArgs;
107
99
  live_notifications_mark_unread: LiveNotificationsMarkUnreadArgs;
108
100
  live_notifications_mark_read: LiveNotificationsMarkReadArgs;
109
101
  live_notifications_mark_read_all: LiveNotificationsMarkReadAllArgs;
@@ -171,7 +163,6 @@ export * from './workspaces.js';
171
163
  export * from './folders.js';
172
164
  export * from './workspace-filters.js';
173
165
  export * from './workspace-goals.js';
174
- export * from './goals.js';
175
166
  export * from './notifications.js';
176
167
  export * from './sharing.js';
177
168
  export * from './view-options.js';
@@ -14,7 +14,7 @@ export type SyncWorkspaceProperties = {
14
14
  };
15
15
  export type DefaultCollaborators = {
16
16
  predefinedGroupIds?: string[];
17
- userIds?: number[];
17
+ userIds?: string[];
18
18
  } | null;
19
19
  export type WorkspaceAddArgs = {
20
20
  name: string;
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * All available Sync API resource types.
3
3
  */
4
- export declare const SYNC_RESOURCE_TYPES: readonly ["labels", "projects", "items", "notes", "project_notes", "sections", "filters", "reminders", "reminders_location", "locations", "user", "live_notifications", "collaborators", "collaborator_states", "user_settings", "notification_settings", "user_plan_limits", "completed_info", "stats", "workspaces", "workspace_users", "workspace_filters", "view_options", "project_view_options_defaults", "role_actions", "folders", "workspace_goals", "goals", "day_orders", "calendars", "calendar_accounts", "suggestions", "tooltips"];
4
+ export declare const SYNC_RESOURCE_TYPES: readonly ["labels", "projects", "items", "notes", "project_notes", "sections", "filters", "reminders", "reminders_location", "locations", "user", "live_notifications", "collaborators", "collaborator_states", "user_settings", "notification_settings", "user_plan_limits", "completed_info", "stats", "workspaces", "workspace_users", "workspace_filters", "view_options", "project_view_options_defaults", "role_actions", "folders", "workspace_goals", "day_orders", "calendars", "calendar_accounts", "suggestions", "tooltips"];
5
5
  export type SyncResourceType = (typeof SYNC_RESOURCE_TYPES)[number];
@@ -9,7 +9,7 @@ import { z } from 'zod';
9
9
  */
10
10
  export declare const LiveNotificationSchema: z.ZodObject<{
11
11
  id: z.ZodString;
12
- createdAt: z.ZodString;
12
+ createdAt: z.ZodCoercedDate<unknown>;
13
13
  fromUid: z.ZodString;
14
14
  notificationType: z.ZodString;
15
15
  isUnread: z.ZodBoolean;
@@ -8,7 +8,7 @@ export declare const NoteSchema: z.ZodObject<{
8
8
  itemId: z.ZodOptional<z.ZodString>;
9
9
  projectId: z.ZodOptional<z.ZodString>;
10
10
  content: z.ZodString;
11
- postedAt: z.ZodString;
11
+ postedAt: z.ZodCoercedDate<unknown>;
12
12
  fileAttachment: z.ZodNullable<z.ZodObject<{
13
13
  resourceType: z.ZodString;
14
14
  fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -63,7 +63,7 @@ export declare const SyncUserSchema: z.ZodObject<{
63
63
  goldTheme: z.ZodOptional<z.ZodBoolean>;
64
64
  migratedFromTdb: z.ZodOptional<z.ZodBoolean>;
65
65
  }, z.core.$loose>;
66
- freeTrailExpires: z.ZodOptional<z.ZodString>;
66
+ freeTrailExpires: z.ZodOptional<z.ZodCoercedDate<unknown>>;
67
67
  hasMagicNumber: z.ZodBoolean;
68
68
  hasPassword: z.ZodBoolean;
69
69
  hasStartedATrial: z.ZodOptional<z.ZodBoolean>;
@@ -76,7 +76,7 @@ export declare const SyncUserSchema: z.ZodObject<{
76
76
  workspaceName: z.ZodString;
77
77
  memberCount: z.ZodNumber;
78
78
  }, z.core.$loose>>;
79
- joinedAt: z.ZodString;
79
+ joinedAt: z.ZodCoercedDate<unknown>;
80
80
  gettingStartedGuideProjects: z.ZodNullable<z.ZodArray<z.ZodObject<{
81
81
  onboardingUseCase: z.ZodString;
82
82
  projectId: z.ZodString;
@@ -104,12 +104,12 @@ export declare const SyncUserSchema: z.ZodObject<{
104
104
  legacy_personal_plan: "legacy_personal_plan";
105
105
  teams_business_member: "teams_business_member";
106
106
  }>;
107
- premiumUntil: z.ZodNullable<z.ZodString>;
107
+ premiumUntil: z.ZodNullable<z.ZodCoercedDate<unknown>>;
108
108
  rambleSessionsUsage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
109
109
  currentCount: z.ZodNumber;
110
110
  limit: z.ZodNumber;
111
111
  remaining: z.ZodNumber;
112
- resetDate: z.ZodString;
112
+ resetDate: z.ZodCoercedDate<unknown>;
113
113
  }, z.core.$strip>>>;
114
114
  shareLimit: z.ZodNumber;
115
115
  sortOrder: z.ZodNumber;