@doist/todoist-sdk 9.2.0-next.1 → 9.3.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/dist/cjs/clients/app-client.js +24 -25
- package/dist/cjs/clients/comment-client.js +3 -4
- package/dist/cjs/clients/folder-client.js +3 -4
- package/dist/cjs/clients/insights-client.js +6 -7
- package/dist/cjs/clients/label-client.js +3 -4
- package/dist/cjs/clients/project-client.js +8 -9
- package/dist/cjs/clients/section-client.js +5 -6
- package/dist/cjs/clients/task-client.js +6 -7
- package/dist/cjs/clients/ui-extension-client.js +4 -5
- package/dist/cjs/clients/workspace-client.js +3 -4
- package/dist/cjs/consts/endpoints.js +1 -6
- package/dist/cjs/test-utils/test-defaults.js +3 -26
- package/dist/cjs/todoist-api.js +0 -33
- package/dist/cjs/types/apps/types.js +1 -0
- package/dist/cjs/types/index.js +0 -1
- package/dist/cjs/types/sync/commands/index.js +0 -1
- package/dist/cjs/types/sync/resource-types.js +0 -1
- package/dist/cjs/types/sync/response.js +10 -12
- package/dist/cjs/utils/validators.js +57 -54
- package/dist/esm/clients/app-client.js +25 -26
- package/dist/esm/clients/comment-client.js +4 -5
- package/dist/esm/clients/folder-client.js +4 -5
- package/dist/esm/clients/insights-client.js +7 -8
- package/dist/esm/clients/label-client.js +4 -5
- package/dist/esm/clients/project-client.js +9 -10
- package/dist/esm/clients/section-client.js +6 -7
- package/dist/esm/clients/task-client.js +7 -8
- package/dist/esm/clients/ui-extension-client.js +5 -6
- package/dist/esm/clients/workspace-client.js +4 -5
- package/dist/esm/consts/endpoints.js +0 -5
- package/dist/esm/test-utils/test-defaults.js +1 -24
- package/dist/esm/todoist-api.js +0 -33
- package/dist/esm/types/apps/types.js +1 -0
- package/dist/esm/types/index.js +0 -1
- package/dist/esm/types/sync/commands/index.js +0 -1
- package/dist/esm/types/sync/resource-types.js +0 -1
- package/dist/esm/types/sync/response.js +0 -2
- package/dist/esm/utils/validators.js +5 -2
- package/dist/types/clients/app-client.d.ts +1 -1
- package/dist/types/consts/endpoints.d.ts +0 -5
- package/dist/types/test-utils/test-defaults.d.ts +1 -4
- package/dist/types/todoist-api.d.ts +0 -12
- package/dist/types/types/apps/types.d.ts +4 -0
- package/dist/types/types/index.d.ts +0 -1
- package/dist/types/types/sync/commands/index.d.ts +0 -9
- package/dist/types/types/sync/resource-types.d.ts +1 -1
- package/dist/types/types/sync/resources/view-options.d.ts +6 -6
- package/dist/types/types/sync/response.d.ts +4 -29
- package/dist/types/types/tasks/requests.d.ts +0 -1
- package/dist/types/utils/validators.d.ts +15 -55
- package/package.json +1 -1
- package/dist/cjs/clients/goals-client.js +0 -145
- package/dist/cjs/types/goals/index.js +0 -18
- package/dist/cjs/types/goals/requests.js +0 -2
- package/dist/cjs/types/goals/types.js +0 -56
- package/dist/cjs/types/sync/commands/goals.js +0 -2
- package/dist/esm/clients/goals-client.js +0 -141
- package/dist/esm/types/goals/index.js +0 -2
- package/dist/esm/types/goals/requests.js +0 -1
- package/dist/esm/types/goals/types.js +0 -53
- package/dist/esm/types/sync/commands/goals.js +0 -1
- package/dist/types/clients/goals-client.d.ts +0 -20
- package/dist/types/types/goals/index.d.ts +0 -2
- package/dist/types/types/goals/requests.d.ts +0 -33
- package/dist/types/types/goals/types.d.ts +0 -51
- package/dist/types/types/sync/commands/goals.d.ts +0 -33
|
@@ -152,6 +152,7 @@ export declare const AppTokenScopesSchema: z.ZodPipe<z.ZodNullable<z.ZodString>,
|
|
|
152
152
|
*/
|
|
153
153
|
export declare const AppSchema: z.ZodObject<{
|
|
154
154
|
id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
|
|
155
|
+
clientId: z.ZodString;
|
|
155
156
|
status: z.ZodEnum<{
|
|
156
157
|
public: "public";
|
|
157
158
|
}>;
|
|
@@ -176,6 +177,7 @@ export type App = z.infer<typeof AppSchema>;
|
|
|
176
177
|
*/
|
|
177
178
|
export declare const AppWithUserCountSchema: z.ZodObject<{
|
|
178
179
|
id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
|
|
180
|
+
clientId: z.ZodString;
|
|
179
181
|
status: z.ZodEnum<{
|
|
180
182
|
public: "public";
|
|
181
183
|
}>;
|
|
@@ -328,6 +330,7 @@ export type AppWebhook = z.infer<typeof AppWebhookSchema>;
|
|
|
328
330
|
*/
|
|
329
331
|
export declare const InstalledIntegrationSchema: z.ZodObject<{
|
|
330
332
|
id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
|
|
333
|
+
clientId: z.ZodString;
|
|
331
334
|
status: z.ZodEnum<{
|
|
332
335
|
public: "public";
|
|
333
336
|
}>;
|
|
@@ -359,6 +362,7 @@ export declare const AppInstallationSchema: z.ZodObject<{
|
|
|
359
362
|
appTokenScopesValidated: z.ZodBoolean;
|
|
360
363
|
integration: z.ZodNullable<z.ZodObject<{
|
|
361
364
|
id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
|
|
365
|
+
clientId: z.ZodString;
|
|
362
366
|
status: z.ZodEnum<{
|
|
363
367
|
public: "public";
|
|
364
368
|
}>;
|
|
@@ -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';
|
|
@@ -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';
|
|
@@ -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", "
|
|
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];
|
|
@@ -32,7 +32,6 @@ export declare const GROUPED_BY_OPTIONS: readonly ["ASSIGNEE", "ADDED_DATE", "DU
|
|
|
32
32
|
/** Field to group tasks by. */
|
|
33
33
|
export type GroupedBy = (typeof GROUPED_BY_OPTIONS)[number];
|
|
34
34
|
export declare const GroupedBySchema: z.ZodNullable<z.ZodEnum<{
|
|
35
|
-
WORKSPACE: "WORKSPACE";
|
|
36
35
|
PROJECT: "PROJECT";
|
|
37
36
|
LABEL: "LABEL";
|
|
38
37
|
ASSIGNEE: "ASSIGNEE";
|
|
@@ -40,19 +39,20 @@ export declare const GroupedBySchema: z.ZodNullable<z.ZodEnum<{
|
|
|
40
39
|
DUE_DATE: "DUE_DATE";
|
|
41
40
|
DEADLINE: "DEADLINE";
|
|
42
41
|
PRIORITY: "PRIORITY";
|
|
42
|
+
WORKSPACE: "WORKSPACE";
|
|
43
43
|
}>>;
|
|
44
44
|
/** Available sorting options. */
|
|
45
45
|
export declare const SORTED_BY_OPTIONS: readonly ["MANUAL", "ALPHABETICALLY", "ASSIGNEE", "DUE_DATE", "DEADLINE", "ADDED_DATE", "PRIORITY", "PROJECT", "WORKSPACE"];
|
|
46
46
|
/** Field to sort tasks by. */
|
|
47
47
|
export type SortedBy = (typeof SORTED_BY_OPTIONS)[number];
|
|
48
48
|
export declare const SortedBySchema: z.ZodNullable<z.ZodEnum<{
|
|
49
|
-
WORKSPACE: "WORKSPACE";
|
|
50
49
|
PROJECT: "PROJECT";
|
|
51
50
|
ASSIGNEE: "ASSIGNEE";
|
|
52
51
|
ADDED_DATE: "ADDED_DATE";
|
|
53
52
|
DUE_DATE: "DUE_DATE";
|
|
54
53
|
DEADLINE: "DEADLINE";
|
|
55
54
|
PRIORITY: "PRIORITY";
|
|
55
|
+
WORKSPACE: "WORKSPACE";
|
|
56
56
|
MANUAL: "MANUAL";
|
|
57
57
|
ALPHABETICALLY: "ALPHABETICALLY";
|
|
58
58
|
}>>;
|
|
@@ -92,7 +92,6 @@ export declare const ViewOptionsSchema: z.ZodObject<{
|
|
|
92
92
|
}>;
|
|
93
93
|
objectId: z.ZodOptional<z.ZodString>;
|
|
94
94
|
groupedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
95
|
-
WORKSPACE: "WORKSPACE";
|
|
96
95
|
PROJECT: "PROJECT";
|
|
97
96
|
LABEL: "LABEL";
|
|
98
97
|
ASSIGNEE: "ASSIGNEE";
|
|
@@ -100,6 +99,7 @@ export declare const ViewOptionsSchema: z.ZodObject<{
|
|
|
100
99
|
DUE_DATE: "DUE_DATE";
|
|
101
100
|
DEADLINE: "DEADLINE";
|
|
102
101
|
PRIORITY: "PRIORITY";
|
|
102
|
+
WORKSPACE: "WORKSPACE";
|
|
103
103
|
}>>>;
|
|
104
104
|
filteredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
105
|
viewMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -109,13 +109,13 @@ export declare const ViewOptionsSchema: z.ZodObject<{
|
|
|
109
109
|
}>>;
|
|
110
110
|
showCompletedTasks: z.ZodOptional<z.ZodBoolean>;
|
|
111
111
|
sortedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
112
|
-
WORKSPACE: "WORKSPACE";
|
|
113
112
|
PROJECT: "PROJECT";
|
|
114
113
|
ASSIGNEE: "ASSIGNEE";
|
|
115
114
|
ADDED_DATE: "ADDED_DATE";
|
|
116
115
|
DUE_DATE: "DUE_DATE";
|
|
117
116
|
DEADLINE: "DEADLINE";
|
|
118
117
|
PRIORITY: "PRIORITY";
|
|
118
|
+
WORKSPACE: "WORKSPACE";
|
|
119
119
|
MANUAL: "MANUAL";
|
|
120
120
|
ALPHABETICALLY: "ALPHABETICALLY";
|
|
121
121
|
}>>>;
|
|
@@ -133,7 +133,6 @@ export declare const ProjectViewOptionsDefaultsSchema: z.ZodObject<{
|
|
|
133
133
|
CALENDAR: "CALENDAR";
|
|
134
134
|
}>>>;
|
|
135
135
|
groupedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
136
|
-
WORKSPACE: "WORKSPACE";
|
|
137
136
|
PROJECT: "PROJECT";
|
|
138
137
|
LABEL: "LABEL";
|
|
139
138
|
ASSIGNEE: "ASSIGNEE";
|
|
@@ -141,15 +140,16 @@ export declare const ProjectViewOptionsDefaultsSchema: z.ZodObject<{
|
|
|
141
140
|
DUE_DATE: "DUE_DATE";
|
|
142
141
|
DEADLINE: "DEADLINE";
|
|
143
142
|
PRIORITY: "PRIORITY";
|
|
143
|
+
WORKSPACE: "WORKSPACE";
|
|
144
144
|
}>>>;
|
|
145
145
|
sortedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
146
|
-
WORKSPACE: "WORKSPACE";
|
|
147
146
|
PROJECT: "PROJECT";
|
|
148
147
|
ASSIGNEE: "ASSIGNEE";
|
|
149
148
|
ADDED_DATE: "ADDED_DATE";
|
|
150
149
|
DUE_DATE: "DUE_DATE";
|
|
151
150
|
DEADLINE: "DEADLINE";
|
|
152
151
|
PRIORITY: "PRIORITY";
|
|
152
|
+
WORKSPACE: "WORKSPACE";
|
|
153
153
|
MANUAL: "MANUAL";
|
|
154
154
|
ALPHABETICALLY: "ALPHABETICALLY";
|
|
155
155
|
}>>>;
|
|
@@ -750,7 +750,6 @@ export declare const SyncResponseSchema: z.ZodObject<{
|
|
|
750
750
|
}>;
|
|
751
751
|
objectId: z.ZodOptional<z.ZodString>;
|
|
752
752
|
groupedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
753
|
-
WORKSPACE: "WORKSPACE";
|
|
754
753
|
PROJECT: "PROJECT";
|
|
755
754
|
LABEL: "LABEL";
|
|
756
755
|
ASSIGNEE: "ASSIGNEE";
|
|
@@ -758,6 +757,7 @@ export declare const SyncResponseSchema: z.ZodObject<{
|
|
|
758
757
|
DUE_DATE: "DUE_DATE";
|
|
759
758
|
DEADLINE: "DEADLINE";
|
|
760
759
|
PRIORITY: "PRIORITY";
|
|
760
|
+
WORKSPACE: "WORKSPACE";
|
|
761
761
|
}>>>;
|
|
762
762
|
filteredBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
763
763
|
viewMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -767,13 +767,13 @@ export declare const SyncResponseSchema: z.ZodObject<{
|
|
|
767
767
|
}>>;
|
|
768
768
|
showCompletedTasks: z.ZodOptional<z.ZodBoolean>;
|
|
769
769
|
sortedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
770
|
-
WORKSPACE: "WORKSPACE";
|
|
771
770
|
PROJECT: "PROJECT";
|
|
772
771
|
ASSIGNEE: "ASSIGNEE";
|
|
773
772
|
ADDED_DATE: "ADDED_DATE";
|
|
774
773
|
DUE_DATE: "DUE_DATE";
|
|
775
774
|
DEADLINE: "DEADLINE";
|
|
776
775
|
PRIORITY: "PRIORITY";
|
|
776
|
+
WORKSPACE: "WORKSPACE";
|
|
777
777
|
MANUAL: "MANUAL";
|
|
778
778
|
ALPHABETICALLY: "ALPHABETICALLY";
|
|
779
779
|
}>>>;
|
|
@@ -790,7 +790,6 @@ export declare const SyncResponseSchema: z.ZodObject<{
|
|
|
790
790
|
CALENDAR: "CALENDAR";
|
|
791
791
|
}>>>;
|
|
792
792
|
groupedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
793
|
-
WORKSPACE: "WORKSPACE";
|
|
794
793
|
PROJECT: "PROJECT";
|
|
795
794
|
LABEL: "LABEL";
|
|
796
795
|
ASSIGNEE: "ASSIGNEE";
|
|
@@ -798,15 +797,16 @@ export declare const SyncResponseSchema: z.ZodObject<{
|
|
|
798
797
|
DUE_DATE: "DUE_DATE";
|
|
799
798
|
DEADLINE: "DEADLINE";
|
|
800
799
|
PRIORITY: "PRIORITY";
|
|
800
|
+
WORKSPACE: "WORKSPACE";
|
|
801
801
|
}>>>;
|
|
802
802
|
sortedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
803
|
-
WORKSPACE: "WORKSPACE";
|
|
804
803
|
PROJECT: "PROJECT";
|
|
805
804
|
ASSIGNEE: "ASSIGNEE";
|
|
806
805
|
ADDED_DATE: "ADDED_DATE";
|
|
807
806
|
DUE_DATE: "DUE_DATE";
|
|
808
807
|
DEADLINE: "DEADLINE";
|
|
809
808
|
PRIORITY: "PRIORITY";
|
|
809
|
+
WORKSPACE: "WORKSPACE";
|
|
810
810
|
MANUAL: "MANUAL";
|
|
811
811
|
ALPHABETICALLY: "ALPHABETICALLY";
|
|
812
812
|
}>>>;
|
|
@@ -832,31 +832,6 @@ export declare const SyncResponseSchema: z.ZodObject<{
|
|
|
832
832
|
defaultOrder: z.ZodNumber;
|
|
833
833
|
childOrder: z.ZodNumber;
|
|
834
834
|
}, z.core.$loose>>>;
|
|
835
|
-
goals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
836
|
-
id: z.ZodString;
|
|
837
|
-
ownerType: z.ZodEnum<{
|
|
838
|
-
USER: "USER";
|
|
839
|
-
WORKSPACE: "WORKSPACE";
|
|
840
|
-
}>;
|
|
841
|
-
ownerId: z.ZodString;
|
|
842
|
-
name: z.ZodString;
|
|
843
|
-
description: z.ZodNullable<z.ZodString>;
|
|
844
|
-
deadline: z.ZodNullable<z.ZodString>;
|
|
845
|
-
parentGoalId: z.ZodNullable<z.ZodString>;
|
|
846
|
-
childOrder: z.ZodNumber;
|
|
847
|
-
isCompleted: z.ZodBoolean;
|
|
848
|
-
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
849
|
-
responsibleUid: z.ZodNullable<z.ZodString>;
|
|
850
|
-
isDeleted: z.ZodBoolean;
|
|
851
|
-
progress: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
852
|
-
totalTaskCount: z.ZodNumber;
|
|
853
|
-
completedTaskCount: z.ZodNumber;
|
|
854
|
-
percentage: z.ZodNumber;
|
|
855
|
-
}, z.core.$loose>>>;
|
|
856
|
-
creatorUid: z.ZodString;
|
|
857
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
858
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
859
|
-
}, z.core.$loose>>>;
|
|
860
835
|
workspaceGoals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
861
836
|
id: z.ZodString;
|
|
862
837
|
workspaceId: z.ZodString;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
import { type SyncResponse } from '../types/sync/response.js';
|
|
3
|
+
export declare const IdSchema: z.ZodString;
|
|
2
4
|
export declare const validateTask: (input: unknown) => {
|
|
3
5
|
isUncompletable: boolean;
|
|
4
6
|
url: string;
|
|
@@ -816,53 +818,6 @@ export declare const validateFolder: (input: unknown) => {
|
|
|
816
818
|
defaultOrder: number;
|
|
817
819
|
childOrder: number;
|
|
818
820
|
}[];
|
|
819
|
-
export declare const validateGoal: (input: unknown) => {
|
|
820
|
-
[x: string]: unknown;
|
|
821
|
-
id: string;
|
|
822
|
-
ownerType: "USER" | "WORKSPACE";
|
|
823
|
-
ownerId: string;
|
|
824
|
-
name: string;
|
|
825
|
-
description: string | null;
|
|
826
|
-
deadline: string | null;
|
|
827
|
-
parentGoalId: string | null;
|
|
828
|
-
childOrder: number;
|
|
829
|
-
isCompleted: boolean;
|
|
830
|
-
completedAt: Date | null;
|
|
831
|
-
responsibleUid: string | null;
|
|
832
|
-
isDeleted: boolean;
|
|
833
|
-
creatorUid: string;
|
|
834
|
-
createdAt: Date;
|
|
835
|
-
updatedAt: Date;
|
|
836
|
-
progress?: {
|
|
837
|
-
[x: string]: unknown;
|
|
838
|
-
totalTaskCount: number;
|
|
839
|
-
completedTaskCount: number;
|
|
840
|
-
percentage: number;
|
|
841
|
-
} | undefined;
|
|
842
|
-
}, validateGoalArray: (input: unknown) => {
|
|
843
|
-
[x: string]: unknown;
|
|
844
|
-
id: string;
|
|
845
|
-
ownerType: "USER" | "WORKSPACE";
|
|
846
|
-
ownerId: string;
|
|
847
|
-
name: string;
|
|
848
|
-
description: string | null;
|
|
849
|
-
deadline: string | null;
|
|
850
|
-
parentGoalId: string | null;
|
|
851
|
-
childOrder: number;
|
|
852
|
-
isCompleted: boolean;
|
|
853
|
-
completedAt: Date | null;
|
|
854
|
-
responsibleUid: string | null;
|
|
855
|
-
isDeleted: boolean;
|
|
856
|
-
creatorUid: string;
|
|
857
|
-
createdAt: Date;
|
|
858
|
-
updatedAt: Date;
|
|
859
|
-
progress?: {
|
|
860
|
-
[x: string]: unknown;
|
|
861
|
-
totalTaskCount: number;
|
|
862
|
-
completedTaskCount: number;
|
|
863
|
-
percentage: number;
|
|
864
|
-
} | undefined;
|
|
865
|
-
}[];
|
|
866
821
|
export declare const validateNote: (input: unknown) => {
|
|
867
822
|
[x: string]: unknown;
|
|
868
823
|
id: string;
|
|
@@ -1184,29 +1139,29 @@ export declare const validateViewOptions: (input: unknown) => {
|
|
|
1184
1139
|
[x: string]: unknown;
|
|
1185
1140
|
viewType: "PROJECT" | "TODAY" | "UPCOMING" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "OVERDUE" | "WORKSPACE_OVERVIEW";
|
|
1186
1141
|
objectId?: string | undefined;
|
|
1187
|
-
groupedBy?: "
|
|
1142
|
+
groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
|
|
1188
1143
|
filteredBy?: string | null | undefined;
|
|
1189
1144
|
viewMode?: "LIST" | "BOARD" | "CALENDAR" | undefined;
|
|
1190
1145
|
showCompletedTasks?: boolean | undefined;
|
|
1191
|
-
sortedBy?: "
|
|
1146
|
+
sortedBy?: "PROJECT" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "MANUAL" | "ALPHABETICALLY" | null | undefined;
|
|
1192
1147
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1193
1148
|
}, validateViewOptionsArray: (input: unknown) => {
|
|
1194
1149
|
[x: string]: unknown;
|
|
1195
1150
|
viewType: "PROJECT" | "TODAY" | "UPCOMING" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "OVERDUE" | "WORKSPACE_OVERVIEW";
|
|
1196
1151
|
objectId?: string | undefined;
|
|
1197
|
-
groupedBy?: "
|
|
1152
|
+
groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
|
|
1198
1153
|
filteredBy?: string | null | undefined;
|
|
1199
1154
|
viewMode?: "LIST" | "BOARD" | "CALENDAR" | undefined;
|
|
1200
1155
|
showCompletedTasks?: boolean | undefined;
|
|
1201
|
-
sortedBy?: "
|
|
1156
|
+
sortedBy?: "PROJECT" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "MANUAL" | "ALPHABETICALLY" | null | undefined;
|
|
1202
1157
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1203
1158
|
}[];
|
|
1204
1159
|
export declare const validateProjectViewOptionsDefaults: (input: unknown) => {
|
|
1205
1160
|
[x: string]: unknown;
|
|
1206
1161
|
projectId: string;
|
|
1207
1162
|
viewMode?: "LIST" | "BOARD" | "CALENDAR" | null | undefined;
|
|
1208
|
-
groupedBy?: "
|
|
1209
|
-
sortedBy?: "
|
|
1163
|
+
groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
|
|
1164
|
+
sortedBy?: "PROJECT" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "MANUAL" | "ALPHABETICALLY" | null | undefined;
|
|
1210
1165
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1211
1166
|
showCompletedTasks?: boolean | undefined;
|
|
1212
1167
|
filteredBy?: string | null | undefined;
|
|
@@ -1218,8 +1173,8 @@ export declare const validateProjectViewOptionsDefaults: (input: unknown) => {
|
|
|
1218
1173
|
[x: string]: unknown;
|
|
1219
1174
|
projectId: string;
|
|
1220
1175
|
viewMode?: "LIST" | "BOARD" | "CALENDAR" | null | undefined;
|
|
1221
|
-
groupedBy?: "
|
|
1222
|
-
sortedBy?: "
|
|
1176
|
+
groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
|
|
1177
|
+
sortedBy?: "PROJECT" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "MANUAL" | "ALPHABETICALLY" | null | undefined;
|
|
1223
1178
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1224
1179
|
showCompletedTasks?: boolean | undefined;
|
|
1225
1180
|
filteredBy?: string | null | undefined;
|
|
@@ -1569,6 +1524,7 @@ export declare const validateSuggestion: (input: unknown) => {
|
|
|
1569
1524
|
export declare function parseSyncResponse(raw: Record<string, unknown>): SyncResponse;
|
|
1570
1525
|
export declare const validateApp: (input: unknown) => {
|
|
1571
1526
|
id: string;
|
|
1527
|
+
clientId: string;
|
|
1572
1528
|
status: "public";
|
|
1573
1529
|
displayName: string;
|
|
1574
1530
|
userId: string;
|
|
@@ -1582,6 +1538,7 @@ export declare const validateApp: (input: unknown) => {
|
|
|
1582
1538
|
appTokenScopes: string[] | null;
|
|
1583
1539
|
}, validateAppArray: (input: unknown) => {
|
|
1584
1540
|
id: string;
|
|
1541
|
+
clientId: string;
|
|
1585
1542
|
status: "public";
|
|
1586
1543
|
displayName: string;
|
|
1587
1544
|
userId: string;
|
|
@@ -1596,6 +1553,7 @@ export declare const validateApp: (input: unknown) => {
|
|
|
1596
1553
|
}[];
|
|
1597
1554
|
export declare const validateAppWithUserCount: (input: unknown) => {
|
|
1598
1555
|
id: string;
|
|
1556
|
+
clientId: string;
|
|
1599
1557
|
status: "public";
|
|
1600
1558
|
displayName: string;
|
|
1601
1559
|
userId: string;
|
|
@@ -1649,6 +1607,7 @@ export declare const validateAppInstallation: (input: unknown) => {
|
|
|
1649
1607
|
appTokenScopesValidated: boolean;
|
|
1650
1608
|
integration: {
|
|
1651
1609
|
id: string;
|
|
1610
|
+
clientId: string;
|
|
1652
1611
|
status: "public";
|
|
1653
1612
|
displayName: string;
|
|
1654
1613
|
userId: string;
|
|
@@ -1669,6 +1628,7 @@ export declare const validateAppInstallation: (input: unknown) => {
|
|
|
1669
1628
|
appTokenScopesValidated: boolean;
|
|
1670
1629
|
integration: {
|
|
1671
1630
|
id: string;
|
|
1631
|
+
clientId: string;
|
|
1672
1632
|
status: "public";
|
|
1673
1633
|
displayName: string;
|
|
1674
1634
|
userId: string;
|
package/package.json
CHANGED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GoalsClient = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const endpoints_1 = require("../consts/endpoints");
|
|
6
|
-
const http_client_1 = require("../transport/http-client");
|
|
7
|
-
const request_helpers_1 = require("../utils/request-helpers");
|
|
8
|
-
const validators_1 = require("../utils/validators");
|
|
9
|
-
const base_client_1 = require("./base-client");
|
|
10
|
-
/**
|
|
11
|
-
* Internal sub-client handling all goal-domain endpoints.
|
|
12
|
-
*
|
|
13
|
-
* Instantiated by `TodoistApi`; every public goal method on `TodoistApi`
|
|
14
|
-
* delegates here. See `todoist-api.ts` for the user-facing JSDoc.
|
|
15
|
-
*/
|
|
16
|
-
class GoalsClient extends base_client_1.BaseClient {
|
|
17
|
-
async getGoals(args) {
|
|
18
|
-
const { data: { results, nextCursor }, } = await (0, http_client_1.request)({
|
|
19
|
-
httpMethod: 'GET',
|
|
20
|
-
baseUri: this.syncApiBase,
|
|
21
|
-
relativePath: endpoints_1.ENDPOINT_REST_GOALS,
|
|
22
|
-
apiToken: this.authToken,
|
|
23
|
-
customFetch: this.customFetch,
|
|
24
|
-
payload: args,
|
|
25
|
-
});
|
|
26
|
-
return {
|
|
27
|
-
results: (0, validators_1.validateGoalArray)(results),
|
|
28
|
-
nextCursor,
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
async searchGoals(args) {
|
|
32
|
-
const { data: { results, nextCursor }, } = await (0, http_client_1.request)({
|
|
33
|
-
httpMethod: 'GET',
|
|
34
|
-
baseUri: this.syncApiBase,
|
|
35
|
-
relativePath: endpoints_1.ENDPOINT_REST_GOALS_SEARCH,
|
|
36
|
-
apiToken: this.authToken,
|
|
37
|
-
customFetch: this.customFetch,
|
|
38
|
-
payload: args,
|
|
39
|
-
});
|
|
40
|
-
return {
|
|
41
|
-
results: (0, validators_1.validateGoalArray)(results),
|
|
42
|
-
nextCursor,
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
async getGoal(id) {
|
|
46
|
-
zod_1.z.string().parse(id);
|
|
47
|
-
const response = await (0, http_client_1.request)({
|
|
48
|
-
httpMethod: 'GET',
|
|
49
|
-
baseUri: this.syncApiBase,
|
|
50
|
-
relativePath: (0, request_helpers_1.generatePath)(endpoints_1.ENDPOINT_REST_GOALS, id),
|
|
51
|
-
apiToken: this.authToken,
|
|
52
|
-
customFetch: this.customFetch,
|
|
53
|
-
});
|
|
54
|
-
return (0, validators_1.validateGoal)(response.data);
|
|
55
|
-
}
|
|
56
|
-
async addGoal(args, requestId) {
|
|
57
|
-
const response = await (0, http_client_1.request)({
|
|
58
|
-
httpMethod: 'POST',
|
|
59
|
-
baseUri: this.syncApiBase,
|
|
60
|
-
relativePath: endpoints_1.ENDPOINT_REST_GOALS,
|
|
61
|
-
apiToken: this.authToken,
|
|
62
|
-
customFetch: this.customFetch,
|
|
63
|
-
payload: args,
|
|
64
|
-
requestId: requestId,
|
|
65
|
-
});
|
|
66
|
-
return (0, validators_1.validateGoal)(response.data);
|
|
67
|
-
}
|
|
68
|
-
async updateGoal(id, args, requestId) {
|
|
69
|
-
zod_1.z.string().parse(id);
|
|
70
|
-
const response = await (0, http_client_1.request)({
|
|
71
|
-
httpMethod: 'POST',
|
|
72
|
-
baseUri: this.syncApiBase,
|
|
73
|
-
relativePath: (0, request_helpers_1.generatePath)(endpoints_1.ENDPOINT_REST_GOALS, id),
|
|
74
|
-
apiToken: this.authToken,
|
|
75
|
-
customFetch: this.customFetch,
|
|
76
|
-
payload: args,
|
|
77
|
-
requestId: requestId,
|
|
78
|
-
});
|
|
79
|
-
return (0, validators_1.validateGoal)(response.data);
|
|
80
|
-
}
|
|
81
|
-
async deleteGoal(id, requestId) {
|
|
82
|
-
zod_1.z.string().parse(id);
|
|
83
|
-
const response = await (0, http_client_1.request)({
|
|
84
|
-
httpMethod: 'DELETE',
|
|
85
|
-
baseUri: this.syncApiBase,
|
|
86
|
-
relativePath: (0, request_helpers_1.generatePath)(endpoints_1.ENDPOINT_REST_GOALS, id),
|
|
87
|
-
apiToken: this.authToken,
|
|
88
|
-
customFetch: this.customFetch,
|
|
89
|
-
requestId: requestId,
|
|
90
|
-
});
|
|
91
|
-
return (0, http_client_1.isSuccess)(response);
|
|
92
|
-
}
|
|
93
|
-
async completeGoal(id, requestId) {
|
|
94
|
-
zod_1.z.string().parse(id);
|
|
95
|
-
const response = await (0, http_client_1.request)({
|
|
96
|
-
httpMethod: 'POST',
|
|
97
|
-
baseUri: this.syncApiBase,
|
|
98
|
-
relativePath: (0, request_helpers_1.generatePath)(endpoints_1.ENDPOINT_REST_GOALS, id, endpoints_1.GOAL_COMPLETE),
|
|
99
|
-
apiToken: this.authToken,
|
|
100
|
-
customFetch: this.customFetch,
|
|
101
|
-
requestId: requestId,
|
|
102
|
-
});
|
|
103
|
-
return (0, validators_1.validateGoal)(response.data);
|
|
104
|
-
}
|
|
105
|
-
async uncompleteGoal(id, requestId) {
|
|
106
|
-
zod_1.z.string().parse(id);
|
|
107
|
-
const response = await (0, http_client_1.request)({
|
|
108
|
-
httpMethod: 'POST',
|
|
109
|
-
baseUri: this.syncApiBase,
|
|
110
|
-
relativePath: (0, request_helpers_1.generatePath)(endpoints_1.ENDPOINT_REST_GOALS, id, endpoints_1.GOAL_UNCOMPLETE),
|
|
111
|
-
apiToken: this.authToken,
|
|
112
|
-
customFetch: this.customFetch,
|
|
113
|
-
requestId: requestId,
|
|
114
|
-
});
|
|
115
|
-
return (0, validators_1.validateGoal)(response.data);
|
|
116
|
-
}
|
|
117
|
-
async linkTaskToGoal({ goalId, taskId }, requestId) {
|
|
118
|
-
zod_1.z.string().parse(goalId);
|
|
119
|
-
zod_1.z.string().parse(taskId);
|
|
120
|
-
const response = await (0, http_client_1.request)({
|
|
121
|
-
httpMethod: 'POST',
|
|
122
|
-
baseUri: this.syncApiBase,
|
|
123
|
-
relativePath: (0, request_helpers_1.generatePath)(endpoints_1.ENDPOINT_REST_GOALS, goalId, endpoints_1.GOAL_TASKS),
|
|
124
|
-
apiToken: this.authToken,
|
|
125
|
-
customFetch: this.customFetch,
|
|
126
|
-
payload: { itemId: taskId },
|
|
127
|
-
requestId: requestId,
|
|
128
|
-
});
|
|
129
|
-
return (0, validators_1.validateGoal)(response.data);
|
|
130
|
-
}
|
|
131
|
-
async unlinkTaskFromGoal({ goalId, taskId }, requestId) {
|
|
132
|
-
zod_1.z.string().parse(goalId);
|
|
133
|
-
zod_1.z.string().parse(taskId);
|
|
134
|
-
const response = await (0, http_client_1.request)({
|
|
135
|
-
httpMethod: 'DELETE',
|
|
136
|
-
baseUri: this.syncApiBase,
|
|
137
|
-
relativePath: (0, request_helpers_1.generatePath)(endpoints_1.ENDPOINT_REST_GOALS, goalId, endpoints_1.GOAL_TASKS, taskId),
|
|
138
|
-
apiToken: this.authToken,
|
|
139
|
-
customFetch: this.customFetch,
|
|
140
|
-
requestId: requestId,
|
|
141
|
-
});
|
|
142
|
-
return (0, http_client_1.isSuccess)(response);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
exports.GoalsClient = GoalsClient;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types"), exports);
|
|
18
|
-
__exportStar(require("./requests"), exports);
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.GoalSchema = exports.GoalProgressSchema = exports.GOAL_OWNER_TYPES = void 0;
|
|
15
|
-
const zod_1 = require("zod");
|
|
16
|
-
/** Available goal owner types. */
|
|
17
|
-
exports.GOAL_OWNER_TYPES = ['USER', 'WORKSPACE'];
|
|
18
|
-
/**
|
|
19
|
-
* Progress of a {@link Goal}.
|
|
20
|
-
*
|
|
21
|
-
* The REST API returns these counts under `total_item_count` / `completed_item_count`,
|
|
22
|
-
* reflecting the backend's generic "item" terminology. The SDK normalizes them to
|
|
23
|
-
* `totalTaskCount` / `completedTaskCount` so the public surface consistently speaks
|
|
24
|
-
* in "tasks" (matching the rest of the SDK). The `preprocess` step below performs
|
|
25
|
-
* that rename after the transport layer's snake_case → camelCase conversion — do not
|
|
26
|
-
* remove it without also changing the downstream field names.
|
|
27
|
-
*/
|
|
28
|
-
exports.GoalProgressSchema = zod_1.z.preprocess((raw) => {
|
|
29
|
-
if (raw === null || raw === undefined || typeof raw !== 'object' || Array.isArray(raw)) {
|
|
30
|
-
return raw;
|
|
31
|
-
}
|
|
32
|
-
const _a = raw, { totalItemCount, completedItemCount, totalTaskCount, completedTaskCount } = _a, rest = __rest(_a, ["totalItemCount", "completedItemCount", "totalTaskCount", "completedTaskCount"]);
|
|
33
|
-
return Object.assign(Object.assign({}, rest), { totalTaskCount: totalTaskCount !== null && totalTaskCount !== void 0 ? totalTaskCount : totalItemCount, completedTaskCount: completedTaskCount !== null && completedTaskCount !== void 0 ? completedTaskCount : completedItemCount });
|
|
34
|
-
}, zod_1.z.looseObject({
|
|
35
|
-
totalTaskCount: zod_1.z.number().int(),
|
|
36
|
-
completedTaskCount: zod_1.z.number().int(),
|
|
37
|
-
percentage: zod_1.z.number(),
|
|
38
|
-
}));
|
|
39
|
-
exports.GoalSchema = zod_1.z.looseObject({
|
|
40
|
-
id: zod_1.z.string(),
|
|
41
|
-
ownerType: zod_1.z.enum(exports.GOAL_OWNER_TYPES),
|
|
42
|
-
ownerId: zod_1.z.string(),
|
|
43
|
-
name: zod_1.z.string(),
|
|
44
|
-
description: zod_1.z.string().nullable(),
|
|
45
|
-
deadline: zod_1.z.string().nullable(),
|
|
46
|
-
parentGoalId: zod_1.z.string().nullable(),
|
|
47
|
-
childOrder: zod_1.z.number().int(),
|
|
48
|
-
isCompleted: zod_1.z.boolean(),
|
|
49
|
-
completedAt: zod_1.z.coerce.date().nullable(),
|
|
50
|
-
responsibleUid: zod_1.z.string().nullable(),
|
|
51
|
-
isDeleted: zod_1.z.boolean(),
|
|
52
|
-
progress: exports.GoalProgressSchema.optional(),
|
|
53
|
-
creatorUid: zod_1.z.string(),
|
|
54
|
-
createdAt: zod_1.z.coerce.date(),
|
|
55
|
-
updatedAt: zod_1.z.coerce.date(),
|
|
56
|
-
});
|