@doist/todoist-sdk 8.5.0-next.1 → 9.1.0-next.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/dist/cjs/test-utils/test-defaults.js +15 -12
- package/dist/cjs/types/activity/types.js +1 -1
- package/dist/cjs/types/comments/types.js +1 -1
- package/dist/cjs/types/insights/types.js +6 -4
- package/dist/cjs/types/projects/types.js +2 -2
- package/dist/cjs/types/sections/types.js +3 -3
- package/dist/cjs/types/sync/resources/live-notifications.js +1 -1
- package/dist/cjs/types/sync/resources/notes.js +1 -1
- package/dist/cjs/types/sync/resources/user.js +4 -4
- package/dist/cjs/types/sync/resources/workspace-filters.js +2 -2
- package/dist/cjs/types/sync/resources/workspace-goals.js +2 -2
- package/dist/cjs/types/sync/resources/workspaces.js +3 -3
- package/dist/cjs/types/tasks/types.js +3 -3
- package/dist/cjs/types/workspaces/types.js +3 -3
- package/dist/esm/test-utils/test-defaults.js +15 -12
- package/dist/esm/types/activity/types.js +1 -1
- package/dist/esm/types/comments/types.js +1 -1
- package/dist/esm/types/insights/types.js +6 -4
- package/dist/esm/types/projects/types.js +2 -2
- package/dist/esm/types/sections/types.js +3 -3
- package/dist/esm/types/sync/resources/live-notifications.js +1 -1
- package/dist/esm/types/sync/resources/notes.js +1 -1
- package/dist/esm/types/sync/resources/user.js +4 -4
- package/dist/esm/types/sync/resources/workspace-filters.js +2 -2
- package/dist/esm/types/sync/resources/workspace-goals.js +2 -2
- package/dist/esm/types/sync/resources/workspaces.js +3 -3
- package/dist/esm/types/tasks/types.js +3 -3
- package/dist/esm/types/workspaces/types.js +3 -3
- package/dist/types/consts/endpoints.d.ts +2 -2
- package/dist/types/test-utils/test-defaults.d.ts +13 -13
- package/dist/types/todoist-api.d.ts +1 -1
- package/dist/types/types/activity/types.d.ts +1 -1
- package/dist/types/types/comments/types.d.ts +4 -4
- package/dist/types/types/folders/requests.d.ts +2 -2
- package/dist/types/types/insights/types.d.ts +9 -9
- package/dist/types/types/projects/requests.d.ts +1 -1
- package/dist/types/types/projects/types.d.ts +18 -18
- package/dist/types/types/sections/types.d.ts +9 -9
- package/dist/types/types/sync/commands/workspaces.d.ts +1 -1
- package/dist/types/types/sync/resources/live-notifications.d.ts +1 -1
- package/dist/types/types/sync/resources/notes.d.ts +1 -1
- package/dist/types/types/sync/resources/user.d.ts +4 -4
- package/dist/types/types/sync/resources/workspace-filters.d.ts +2 -2
- package/dist/types/types/sync/resources/workspace-goals.d.ts +2 -2
- package/dist/types/types/sync/resources/workspaces.d.ts +8 -8
- package/dist/types/types/sync/response.d.ts +41 -41
- package/dist/types/types/tasks/types.d.ts +9 -9
- package/dist/types/types/workspaces/requests.d.ts +7 -7
- package/dist/types/types/workspaces/types.d.ts +6 -6
- package/dist/types/utils/validators.d.ts +56 -56
- package/package.json +1 -1
|
@@ -45,9 +45,9 @@ export declare const INVALID_TASK: {
|
|
|
45
45
|
} | null;
|
|
46
46
|
checked: boolean;
|
|
47
47
|
isDeleted: boolean;
|
|
48
|
-
addedAt:
|
|
49
|
-
completedAt:
|
|
50
|
-
updatedAt:
|
|
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:
|
|
67
|
+
createdAt: Date | null;
|
|
68
68
|
isArchived: boolean;
|
|
69
69
|
isDeleted: boolean;
|
|
70
70
|
isFavorite: boolean;
|
|
71
71
|
isFrozen: boolean;
|
|
72
|
-
updatedAt:
|
|
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:
|
|
90
|
-
updatedAt:
|
|
91
|
-
archivedAt:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
242
|
+
postedAt: Date;
|
|
243
243
|
fileAttachment: {
|
|
244
244
|
resourceType: string;
|
|
245
245
|
fileName?: string | null | undefined;
|
|
@@ -872,7 +872,7 @@ export declare class TodoistApi {
|
|
|
872
872
|
* @returns Array of email addresses with pending invitations.
|
|
873
873
|
*/
|
|
874
874
|
getAllWorkspaceInvitations(args?: {
|
|
875
|
-
workspaceId?:
|
|
875
|
+
workspaceId?: string;
|
|
876
876
|
}, requestId?: string): Promise<AllWorkspaceInvitationsResponse>;
|
|
877
877
|
/**
|
|
878
878
|
* 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.
|
|
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.
|
|
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.
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
13
|
+
workspaceId: string;
|
|
14
14
|
defaultOrder?: number | null;
|
|
15
15
|
childOrder?: number | null;
|
|
16
16
|
};
|
|
@@ -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.
|
|
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.
|
|
78
|
-
updatedAt: z.
|
|
79
|
-
completedAt: z.ZodNullable<z.
|
|
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.
|
|
105
|
-
updatedAt: z.
|
|
106
|
-
completedAt: z.ZodNullable<z.
|
|
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.
|
|
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.
|
|
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?:
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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.
|
|
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.
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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.
|
|
7
|
-
updatedAt: z.
|
|
8
|
-
archivedAt: z.ZodNullable<z.
|
|
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:
|
|
20
|
-
updatedAt:
|
|
21
|
-
archivedAt:
|
|
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:
|
|
32
|
-
updatedAt:
|
|
33
|
-
archivedAt:
|
|
31
|
+
addedAt: Date;
|
|
32
|
+
updatedAt: Date;
|
|
33
|
+
archivedAt: Date | null;
|
|
34
34
|
name: string;
|
|
35
35
|
sectionOrder: number;
|
|
36
36
|
isArchived: boolean;
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
112
|
+
resetDate: z.ZodCoercedDate<unknown>;
|
|
113
113
|
}, z.core.$strip>>>;
|
|
114
114
|
shareLimit: z.ZodNumber;
|
|
115
115
|
sortOrder: z.ZodNumber;
|
|
@@ -11,7 +11,7 @@ export declare const WorkspaceFilterSchema: z.ZodObject<{
|
|
|
11
11
|
isFrozen: z.ZodBoolean;
|
|
12
12
|
creatorUid: z.ZodString;
|
|
13
13
|
updaterUid: z.ZodString;
|
|
14
|
-
createdAt: z.
|
|
15
|
-
updatedAt: z.
|
|
14
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
15
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
16
16
|
}, z.core.$loose>;
|
|
17
17
|
export type WorkspaceFilter = z.infer<typeof WorkspaceFilterSchema>;
|
|
@@ -23,7 +23,7 @@ export declare const WorkspaceGoalSchema: z.ZodObject<{
|
|
|
23
23
|
totalItems: z.ZodNumber;
|
|
24
24
|
}, z.core.$loose>>;
|
|
25
25
|
creatorUid: z.ZodString;
|
|
26
|
-
createdAt: z.
|
|
27
|
-
updatedAt: z.
|
|
26
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
27
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
28
28
|
}, z.core.$loose>;
|
|
29
29
|
export type WorkspaceGoal = z.infer<typeof WorkspaceGoalSchema>;
|
|
@@ -15,8 +15,8 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
15
15
|
logoSmall: z.ZodOptional<z.ZodString>;
|
|
16
16
|
logoS640: z.ZodOptional<z.ZodString>;
|
|
17
17
|
creatorId: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
|
|
18
|
-
createdAt: z.ZodOptional<z.
|
|
19
|
-
dateCreated: z.ZodOptional<z.
|
|
18
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
19
|
+
dateCreated: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
20
20
|
isDeleted: z.ZodBoolean;
|
|
21
21
|
isCollapsed: z.ZodBoolean;
|
|
22
22
|
role: z.ZodOptional<z.ZodEnum<{
|
|
@@ -51,11 +51,11 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
51
51
|
projectSortPreference: z.ZodOptional<z.ZodString>;
|
|
52
52
|
defaultCollaborators: z.ZodOptional<z.ZodObject<{
|
|
53
53
|
predefinedGroupIds: z.ZodArray<z.ZodString>;
|
|
54
|
-
userIds: z.ZodArray<z.ZodNumber
|
|
54
|
+
userIds: z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>;
|
|
55
55
|
}, z.core.$strip>>;
|
|
56
56
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
57
57
|
}, z.core.$loose>, z.ZodTransform<{
|
|
58
|
-
createdAt:
|
|
58
|
+
createdAt: Date | undefined;
|
|
59
59
|
id: string;
|
|
60
60
|
name: string;
|
|
61
61
|
description: string;
|
|
@@ -92,7 +92,7 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
92
92
|
projectSortPreference?: string | undefined;
|
|
93
93
|
defaultCollaborators?: {
|
|
94
94
|
predefinedGroupIds: string[];
|
|
95
|
-
userIds:
|
|
95
|
+
userIds: string[];
|
|
96
96
|
} | undefined;
|
|
97
97
|
properties?: Record<string, unknown> | undefined;
|
|
98
98
|
}, {
|
|
@@ -112,8 +112,8 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
112
112
|
logoMedium?: string | undefined;
|
|
113
113
|
logoSmall?: string | undefined;
|
|
114
114
|
logoS640?: string | undefined;
|
|
115
|
-
createdAt?:
|
|
116
|
-
dateCreated?:
|
|
115
|
+
createdAt?: Date | undefined;
|
|
116
|
+
dateCreated?: Date | undefined;
|
|
117
117
|
role?: "ADMIN" | "MEMBER" | "GUEST" | undefined;
|
|
118
118
|
limits?: {
|
|
119
119
|
[x: string]: any;
|
|
@@ -135,7 +135,7 @@ export declare const SyncWorkspaceSchema: z.ZodPipe<z.ZodObject<{
|
|
|
135
135
|
projectSortPreference?: string | undefined;
|
|
136
136
|
defaultCollaborators?: {
|
|
137
137
|
predefinedGroupIds: string[];
|
|
138
|
-
userIds:
|
|
138
|
+
userIds: string[];
|
|
139
139
|
} | undefined;
|
|
140
140
|
properties?: Record<string, unknown> | undefined;
|
|
141
141
|
}>>;
|