@doist/todoist-sdk 8.2.0 → 8.2.1-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/todoist-api.js +3 -9
- 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/resources/index.js +0 -1
- package/dist/cjs/utils/validators.js +4 -2
- package/dist/esm/todoist-api.js +4 -10
- 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/resources/index.js +0 -1
- package/dist/esm/utils/validators.js +2 -0
- 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/index.d.ts +0 -1
- package/dist/types/types/sync/resources/view-options.d.ts +6 -6
- package/dist/types/types/sync/response.d.ts +1 -2
- package/dist/types/utils/validators.d.ts +66 -8
- package/package.json +1 -1
- package/dist/cjs/types/sync/commands/goals.js +0 -2
- package/dist/cjs/types/sync/resources/goals.js +0 -33
- package/dist/esm/types/sync/commands/goals.js +0 -1
- package/dist/esm/types/sync/resources/goals.js +0 -30
- package/dist/types/types/sync/commands/goals.d.ts +0 -33
- package/dist/types/types/sync/resources/goals.d.ts +0 -37
package/dist/cjs/todoist-api.js
CHANGED
|
@@ -15,9 +15,7 @@ exports.TodoistApi = void 0;
|
|
|
15
15
|
const zod_1 = require("zod");
|
|
16
16
|
const endpoints_1 = require("./consts/endpoints");
|
|
17
17
|
const http_client_1 = require("./transport/http-client");
|
|
18
|
-
const projects_1 = require("./types/projects");
|
|
19
18
|
const reminders_1 = require("./types/reminders");
|
|
20
|
-
const goals_1 = require("./types/sync/resources/goals");
|
|
21
19
|
const activity_helpers_1 = require("./utils/activity-helpers");
|
|
22
20
|
const case_conversion_1 = require("./utils/case-conversion");
|
|
23
21
|
const multipart_upload_1 = require("./utils/multipart-upload");
|
|
@@ -136,11 +134,7 @@ class TodoistApi {
|
|
|
136
134
|
throw new types_1.TodoistRequestError(value.error, value.httpCode, value.errorExtra);
|
|
137
135
|
});
|
|
138
136
|
}
|
|
139
|
-
|
|
140
|
-
if (data.goals) {
|
|
141
|
-
data.goals = data.goals.map((goal) => goals_1.GoalSchema.parse(goal));
|
|
142
|
-
}
|
|
143
|
-
return data;
|
|
137
|
+
return response.data;
|
|
144
138
|
}
|
|
145
139
|
/**
|
|
146
140
|
* Executes a raw Sync API request.
|
|
@@ -797,14 +791,14 @@ class TodoistApi {
|
|
|
797
791
|
requestId: requestId,
|
|
798
792
|
});
|
|
799
793
|
return {
|
|
800
|
-
project:
|
|
794
|
+
project: (0, validators_1.validateWorkspaceProject)(data.project),
|
|
801
795
|
tasks: (0, validators_1.validateTaskArray)(data.tasks),
|
|
802
796
|
sections: (0, validators_1.validateSectionArray)(data.sections),
|
|
803
797
|
comments: (0, validators_1.validateNoteArray)(data.comments),
|
|
804
798
|
collaborators: (0, validators_1.validateCollaboratorArray)(data.collaborators),
|
|
805
799
|
collaboratorStates: (0, validators_1.validateCollaboratorStateArray)(data.collaboratorStates),
|
|
806
800
|
folder: data.folder ? (0, validators_1.validateFolder)(data.folder) : null,
|
|
807
|
-
subprojects:
|
|
801
|
+
subprojects: (0, validators_1.validateWorkspaceProjectArray)(data.subprojects),
|
|
808
802
|
};
|
|
809
803
|
}
|
|
810
804
|
/**
|
|
@@ -27,7 +27,6 @@ __exportStar(require("./workspaces"), exports);
|
|
|
27
27
|
__exportStar(require("./folders"), exports);
|
|
28
28
|
__exportStar(require("./workspace-filters"), exports);
|
|
29
29
|
__exportStar(require("./workspace-goals"), exports);
|
|
30
|
-
__exportStar(require("./goals"), exports);
|
|
31
30
|
__exportStar(require("./notifications"), exports);
|
|
32
31
|
__exportStar(require("./sharing"), exports);
|
|
33
32
|
__exportStar(require("./view-options"), exports);
|
|
@@ -21,7 +21,6 @@ __exportStar(require("./tooltips"), exports);
|
|
|
21
21
|
__exportStar(require("./notes"), exports);
|
|
22
22
|
__exportStar(require("./workspace-filters"), exports);
|
|
23
23
|
__exportStar(require("./workspace-goals"), exports);
|
|
24
|
-
__exportStar(require("./goals"), exports);
|
|
25
24
|
__exportStar(require("./calendars"), exports);
|
|
26
25
|
__exportStar(require("./reminders"), exports);
|
|
27
26
|
__exportStar(require("./completed-info"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.validateSuggestionArray = exports.validateSuggestion = exports.validateUserSettings = exports.validateSyncUser = exports.validateSyncWorkspaceArray = exports.validateSyncWorkspace = exports.validateLiveNotificationArray = exports.validateLiveNotification = exports.validateUserPlanLimits = exports.validateProjectViewOptionsDefaultsArray = exports.validateProjectViewOptionsDefaults = exports.validateViewOptionsArray = exports.validateViewOptions = exports.validateCompletedInfoArray = exports.validateCompletedInfo = exports.validateLocationReminderArray = exports.validateLocationReminder = exports.validateReminderArray = exports.validateReminder = exports.validateCalendarAccountArray = exports.validateCalendarAccount = exports.validateCalendarArray = exports.validateCalendar = exports.validateWorkspaceGoalArray = exports.validateWorkspaceGoal = void 0;
|
|
3
|
+
exports.validateTooltips = exports.validateNoteArray = exports.validateNote = exports.validateFolderArray = exports.validateFolder = exports.validateCollaboratorStateArray = exports.validateCollaboratorState = exports.validateCollaboratorArray = exports.validateCollaborator = exports.validateFilterArray = exports.validateFilter = exports.validateMovedIdArray = exports.validateMovedId = exports.validateIdMappingArray = exports.validateIdMapping = exports.validateBackupArray = exports.validateBackup = exports.validateWorkspaceInsights = exports.validateProjectProgress = exports.validateProjectHealthContext = exports.validateProjectHealth = exports.validateProjectActivityStats = exports.validateWorkspaceUserTaskArray = exports.validateWorkspaceUserTask = exports.validateMemberActivityInfoArray = exports.validateMemberActivityInfo = exports.validateWorkspaceArray = exports.validateWorkspace = exports.validateJoinWorkspaceResult = exports.validateWorkspacePlanDetails = exports.validateWorkspaceInvitationArray = exports.validateWorkspaceInvitation = exports.validateWorkspaceUser = exports.validateAttachment = exports.validateActivityEventArray = exports.validateActivityEvent = exports.validateCurrentUser = exports.validateProductivityStats = exports.validateUserArray = exports.validateUser = exports.validateCommentArray = exports.validateComment = exports.validateLabelArray = exports.validateLabel = exports.validateSectionArray = exports.validateSection = exports.validateWorkspaceProjectArray = exports.validateWorkspaceProject = exports.validateTaskArray = exports.validateTask = void 0;
|
|
4
|
+
exports.validateSuggestionArray = exports.validateSuggestion = exports.validateUserSettings = exports.validateSyncUser = exports.validateSyncWorkspaceArray = exports.validateSyncWorkspace = exports.validateLiveNotificationArray = exports.validateLiveNotification = exports.validateUserPlanLimits = exports.validateProjectViewOptionsDefaultsArray = exports.validateProjectViewOptionsDefaults = exports.validateViewOptionsArray = exports.validateViewOptions = exports.validateCompletedInfoArray = exports.validateCompletedInfo = exports.validateLocationReminderArray = exports.validateLocationReminder = exports.validateReminderArray = exports.validateReminder = exports.validateCalendarAccountArray = exports.validateCalendarAccount = exports.validateCalendarArray = exports.validateCalendar = exports.validateWorkspaceGoalArray = exports.validateWorkspaceGoal = exports.validateWorkspaceFilterArray = exports.validateWorkspaceFilter = void 0;
|
|
5
5
|
exports.isWorkspaceProject = isWorkspaceProject;
|
|
6
6
|
exports.isPersonalProject = isPersonalProject;
|
|
7
7
|
exports.validateProject = validateProject;
|
|
@@ -59,6 +59,8 @@ function validateProject(input) {
|
|
|
59
59
|
function validateProjectArray(input) {
|
|
60
60
|
return input.map(validateProject);
|
|
61
61
|
}
|
|
62
|
+
exports.validateWorkspaceProject = createValidator(types_8.WorkspaceProjectSchema);
|
|
63
|
+
exports.validateWorkspaceProjectArray = createArrayValidator(exports.validateWorkspaceProject);
|
|
62
64
|
exports.validateSection = createValidator(types_9.SectionSchema);
|
|
63
65
|
exports.validateSectionArray = createArrayValidator(exports.validateSection);
|
|
64
66
|
exports.validateLabel = createValidator(types_6.LabelSchema);
|
package/dist/esm/todoist-api.js
CHANGED
|
@@ -12,15 +12,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { z } from 'zod';
|
|
13
13
|
import { getSyncBaseUri, ENDPOINT_REST_TASKS, ENDPOINT_REST_TASKS_FILTER, ENDPOINT_REST_TASKS_COMPLETED_BY_COMPLETION_DATE, ENDPOINT_REST_TASKS_COMPLETED_BY_DUE_DATE, ENDPOINT_REST_TASKS_COMPLETED_SEARCH, ENDPOINT_REST_TASKS_COMPLETED, ENDPOINT_REST_TEMPLATES_FILE, ENDPOINT_REST_TEMPLATES_URL, ENDPOINT_REST_TEMPLATES_CREATE_FROM_FILE, ENDPOINT_REST_TEMPLATES_IMPORT_FROM_FILE, ENDPOINT_REST_TEMPLATES_IMPORT_FROM_ID, ENDPOINT_REST_PROJECTS, ENDPOINT_REST_PROJECTS_SEARCH, ENDPOINT_SYNC_QUICK_ADD, ENDPOINT_REST_TASK_CLOSE, ENDPOINT_REST_TASK_REOPEN, ENDPOINT_REST_TASK_MOVE, ENDPOINT_REST_LABELS, ENDPOINT_REST_LABELS_SEARCH, ENDPOINT_REST_PROJECT_COLLABORATORS, ENDPOINT_REST_SECTIONS, ENDPOINT_REST_SECTIONS_SEARCH, ENDPOINT_REST_COMMENTS, ENDPOINT_REST_LOCATION_REMINDERS, ENDPOINT_REST_REMINDERS, ENDPOINT_REST_LABELS_SHARED, ENDPOINT_REST_LABELS_SHARED_RENAME, ENDPOINT_REST_LABELS_SHARED_REMOVE, ENDPOINT_SYNC, PROJECT_ARCHIVE, PROJECT_UNARCHIVE, ENDPOINT_REST_PROJECTS_MOVE_TO_WORKSPACE, ENDPOINT_REST_PROJECTS_MOVE_TO_PERSONAL, ENDPOINT_REST_PROJECTS_ARCHIVED, ENDPOINT_REST_PROJECTS_ARCHIVED_COUNT, ENDPOINT_REST_PROJECTS_PERMISSIONS, ENDPOINT_REST_PROJECT_FULL, ENDPOINT_REST_PROJECT_JOIN, SECTION_ARCHIVE, SECTION_UNARCHIVE, ENDPOINT_REST_USER, ENDPOINT_REST_PRODUCTIVITY, ENDPOINT_REST_ACTIVITIES, ENDPOINT_REST_UPLOADS, getProjectInsightsActivityStatsEndpoint, getProjectInsightsHealthEndpoint, getProjectInsightsHealthContextEndpoint, getProjectInsightsProgressEndpoint, getProjectInsightsHealthAnalyzeEndpoint, getWorkspaceInsightsEndpoint, ENDPOINT_REST_BACKUPS, ENDPOINT_REST_BACKUPS_DOWNLOAD, ENDPOINT_REST_EMAILS, ENDPOINT_REST_ID_MAPPINGS, ENDPOINT_REST_MOVED_IDS, ENDPOINT_REST_WORKSPACES, ENDPOINT_WORKSPACE_MEMBERS, getWorkspaceUserTasksEndpoint, getWorkspaceInviteUsersEndpoint, getWorkspaceUserEndpoint, ENDPOINT_WORKSPACE_INVITATIONS, ENDPOINT_WORKSPACE_INVITATIONS_ALL, ENDPOINT_WORKSPACE_INVITATIONS_DELETE, getWorkspaceInvitationAcceptEndpoint, getWorkspaceInvitationRejectEndpoint, ENDPOINT_WORKSPACE_JOIN, ENDPOINT_WORKSPACE_LOGO, ENDPOINT_WORKSPACE_PLAN_DETAILS, ENDPOINT_WORKSPACE_USERS, getWorkspaceActiveProjectsEndpoint, getWorkspaceArchivedProjectsEndpoint, ENDPOINT_REST_FOLDERS, } from './consts/endpoints.js';
|
|
14
14
|
import { request, isSuccess } from './transport/http-client.js';
|
|
15
|
-
import { WorkspaceProjectSchema, } from './types/projects/index.js';
|
|
16
15
|
import { UpdateReminderArgsSchema, UpdateLocationReminderArgsSchema, ReminderIdSchema, } from './types/reminders/index.js';
|
|
17
|
-
import { GoalSchema } from './types/sync/resources/goals.js';
|
|
18
16
|
import { normalizeObjectEventTypeForApi, denormalizeObjectTypeFromApi, } from './utils/activity-helpers.js';
|
|
19
17
|
import { camelCaseKeys } from './utils/case-conversion.js';
|
|
20
18
|
import { uploadMultipartFile } from './utils/multipart-upload.js';
|
|
21
19
|
import { processTaskContent } from './utils/uncompletable-helpers.js';
|
|
22
20
|
import { formatDateToYYYYMMDD } from './utils/url-helpers.js';
|
|
23
|
-
import { validateAttachment, validateComment, validateCommentArray, validateCurrentUser, validateLabel, validateLabelArray, validateProject, validateProjectArray, validateSection, validateSectionArray, validateTask, validateTaskArray, validateUserArray, validateProductivityStats, validateReminder, validateReminderArray, validateLocationReminderArray, validateActivityEventArray, validateWorkspaceUserArray, validateWorkspaceInvitation, validateWorkspaceInvitationArray, validateWorkspacePlanDetails, validateJoinWorkspaceResult, validateWorkspace, validateWorkspaceArray, validateMemberActivityInfoArray, validateWorkspaceUserTaskArray, validateProjectActivityStats, validateProjectHealth, validateProjectHealthContext, validateProjectProgress, validateWorkspaceInsights, validateBackupArray, validateIdMappingArray, validateMovedIdArray, validateFolder, validateFolderArray, validateCollaboratorArray, validateCollaboratorStateArray, validateNoteArray, } from './utils/validators.js';
|
|
21
|
+
import { validateAttachment, validateComment, validateCommentArray, validateCurrentUser, validateLabel, validateLabelArray, validateProject, validateProjectArray, validateSection, validateSectionArray, validateTask, validateTaskArray, validateUserArray, validateProductivityStats, validateReminder, validateReminderArray, validateLocationReminderArray, validateActivityEventArray, validateWorkspaceUserArray, validateWorkspaceInvitation, validateWorkspaceInvitationArray, validateWorkspacePlanDetails, validateJoinWorkspaceResult, validateWorkspace, validateWorkspaceArray, validateMemberActivityInfoArray, validateWorkspaceUserTaskArray, validateProjectActivityStats, validateProjectHealth, validateProjectHealthContext, validateProjectProgress, validateWorkspaceInsights, validateBackupArray, validateIdMappingArray, validateMovedIdArray, validateFolder, validateFolderArray, validateCollaboratorArray, validateCollaboratorStateArray, validateNoteArray, validateWorkspaceProject, validateWorkspaceProjectArray, } from './utils/validators.js';
|
|
24
22
|
import { v4 as uuidv4 } from 'uuid';
|
|
25
23
|
import { TodoistArgumentError, TodoistRequestError } from './types/index.js';
|
|
26
24
|
import { DATE_FORMAT_TO_API, TIME_FORMAT_TO_API, DAY_OF_WEEK_TO_API, } from './types/sync/index.js';
|
|
@@ -133,11 +131,7 @@ export class TodoistApi {
|
|
|
133
131
|
throw new TodoistRequestError(value.error, value.httpCode, value.errorExtra);
|
|
134
132
|
});
|
|
135
133
|
}
|
|
136
|
-
|
|
137
|
-
if (data.goals) {
|
|
138
|
-
data.goals = data.goals.map((goal) => GoalSchema.parse(goal));
|
|
139
|
-
}
|
|
140
|
-
return data;
|
|
134
|
+
return response.data;
|
|
141
135
|
}
|
|
142
136
|
/**
|
|
143
137
|
* Executes a raw Sync API request.
|
|
@@ -794,14 +788,14 @@ export class TodoistApi {
|
|
|
794
788
|
requestId: requestId,
|
|
795
789
|
});
|
|
796
790
|
return {
|
|
797
|
-
project:
|
|
791
|
+
project: validateWorkspaceProject(data.project),
|
|
798
792
|
tasks: validateTaskArray(data.tasks),
|
|
799
793
|
sections: validateSectionArray(data.sections),
|
|
800
794
|
comments: validateNoteArray(data.comments),
|
|
801
795
|
collaborators: validateCollaboratorArray(data.collaborators),
|
|
802
796
|
collaboratorStates: validateCollaboratorStateArray(data.collaboratorStates),
|
|
803
797
|
folder: data.folder ? validateFolder(data.folder) : null,
|
|
804
|
-
subprojects: data.subprojects
|
|
798
|
+
subprojects: validateWorkspaceProjectArray(data.subprojects),
|
|
805
799
|
};
|
|
806
800
|
}
|
|
807
801
|
/**
|
|
@@ -11,7 +11,6 @@ export * from './workspaces.js';
|
|
|
11
11
|
export * from './folders.js';
|
|
12
12
|
export * from './workspace-filters.js';
|
|
13
13
|
export * from './workspace-goals.js';
|
|
14
|
-
export * from './goals.js';
|
|
15
14
|
export * from './notifications.js';
|
|
16
15
|
export * from './sharing.js';
|
|
17
16
|
export * from './view-options.js';
|
|
@@ -5,7 +5,6 @@ export * from './tooltips.js';
|
|
|
5
5
|
export * from './notes.js';
|
|
6
6
|
export * from './workspace-filters.js';
|
|
7
7
|
export * from './workspace-goals.js';
|
|
8
|
-
export * from './goals.js';
|
|
9
8
|
export * from './calendars.js';
|
|
10
9
|
export * from './reminders.js';
|
|
11
10
|
export * from './completed-info.js';
|
|
@@ -50,6 +50,8 @@ export function validateProject(input) {
|
|
|
50
50
|
export function validateProjectArray(input) {
|
|
51
51
|
return input.map(validateProject);
|
|
52
52
|
}
|
|
53
|
+
export const validateWorkspaceProject = createValidator(WorkspaceProjectSchema);
|
|
54
|
+
export const validateWorkspaceProjectArray = createArrayValidator(validateWorkspaceProject);
|
|
53
55
|
export const validateSection = createValidator(SectionSchema);
|
|
54
56
|
export const validateSectionArray = createArrayValidator(validateSection);
|
|
55
57
|
export const validateLabel = createValidator(LabelSchema);
|
|
@@ -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];
|
|
@@ -5,7 +5,6 @@ export * from './tooltips.js';
|
|
|
5
5
|
export * from './notes.js';
|
|
6
6
|
export * from './workspace-filters.js';
|
|
7
7
|
export * from './workspace-goals.js';
|
|
8
|
-
export * from './goals.js';
|
|
9
8
|
export * from './calendars.js';
|
|
10
9
|
export * from './reminders.js';
|
|
11
10
|
export * from './completed-info.js';
|
|
@@ -33,13 +33,13 @@ export declare const GROUPED_BY_OPTIONS: readonly ["ASSIGNEE", "ADDED_DATE", "DU
|
|
|
33
33
|
export type GroupedBy = (typeof GROUPED_BY_OPTIONS)[number];
|
|
34
34
|
export declare const GroupedBySchema: z.ZodNullable<z.ZodEnum<{
|
|
35
35
|
PROJECT: "PROJECT";
|
|
36
|
-
WORKSPACE: "WORKSPACE";
|
|
37
36
|
LABEL: "LABEL";
|
|
38
37
|
ASSIGNEE: "ASSIGNEE";
|
|
39
38
|
ADDED_DATE: "ADDED_DATE";
|
|
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"];
|
|
@@ -47,12 +47,12 @@ export declare const SORTED_BY_OPTIONS: readonly ["MANUAL", "ALPHABETICALLY", "A
|
|
|
47
47
|
export type SortedBy = (typeof SORTED_BY_OPTIONS)[number];
|
|
48
48
|
export declare const SortedBySchema: z.ZodNullable<z.ZodEnum<{
|
|
49
49
|
PROJECT: "PROJECT";
|
|
50
|
-
WORKSPACE: "WORKSPACE";
|
|
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
|
}>>;
|
|
@@ -93,13 +93,13 @@ export declare const ViewOptionsSchema: z.ZodObject<{
|
|
|
93
93
|
objectId: z.ZodOptional<z.ZodString>;
|
|
94
94
|
groupedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
95
95
|
PROJECT: "PROJECT";
|
|
96
|
-
WORKSPACE: "WORKSPACE";
|
|
97
96
|
LABEL: "LABEL";
|
|
98
97
|
ASSIGNEE: "ASSIGNEE";
|
|
99
98
|
ADDED_DATE: "ADDED_DATE";
|
|
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<{
|
|
@@ -110,12 +110,12 @@ export declare const ViewOptionsSchema: z.ZodObject<{
|
|
|
110
110
|
showCompletedTasks: z.ZodOptional<z.ZodBoolean>;
|
|
111
111
|
sortedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
112
112
|
PROJECT: "PROJECT";
|
|
113
|
-
WORKSPACE: "WORKSPACE";
|
|
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
|
}>>>;
|
|
@@ -134,22 +134,22 @@ export declare const ProjectViewOptionsDefaultsSchema: z.ZodObject<{
|
|
|
134
134
|
}>>>;
|
|
135
135
|
groupedBy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
136
136
|
PROJECT: "PROJECT";
|
|
137
|
-
WORKSPACE: "WORKSPACE";
|
|
138
137
|
LABEL: "LABEL";
|
|
139
138
|
ASSIGNEE: "ASSIGNEE";
|
|
140
139
|
ADDED_DATE: "ADDED_DATE";
|
|
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
146
|
PROJECT: "PROJECT";
|
|
147
|
-
WORKSPACE: "WORKSPACE";
|
|
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
|
}>>>;
|
|
@@ -3,7 +3,7 @@ import type { PersonalProject, WorkspaceProject } from '../projects/types.js';
|
|
|
3
3
|
import type { Section } from '../sections/types.js';
|
|
4
4
|
import type { Task } from '../tasks/types.js';
|
|
5
5
|
import type { WorkspaceUser } from '../workspaces/types.js';
|
|
6
|
-
import type { Filter, Collaborator, CollaboratorState, Folder, Note, Tooltips, WorkspaceFilter, WorkspaceGoal,
|
|
6
|
+
import type { Filter, Collaborator, CollaboratorState, Folder, Note, Tooltips, WorkspaceFilter, WorkspaceGoal, Calendar, CalendarAccount, Reminder, CompletedInfo, ViewOptions, ProjectViewOptionsDefaults, UserPlanLimits, LiveNotification, SyncWorkspace, SyncUser, UserSettings, LocationReminder, Suggestion } from './resources/index.js';
|
|
7
7
|
export type SyncError = {
|
|
8
8
|
error: string;
|
|
9
9
|
errorCode: number;
|
|
@@ -43,7 +43,6 @@ export type SyncResponse = {
|
|
|
43
43
|
roleActions?: Record<string, unknown>[];
|
|
44
44
|
folders?: Folder[];
|
|
45
45
|
workspaceGoals?: WorkspaceGoal[];
|
|
46
|
-
goals?: Goal[];
|
|
47
46
|
dayOrders?: Record<string, number>;
|
|
48
47
|
calendars?: Calendar[];
|
|
49
48
|
calendarAccounts?: CalendarAccount[];
|
|
@@ -99,6 +99,64 @@ export declare function isPersonalProject(project: PersonalProject | WorkspacePr
|
|
|
99
99
|
*/
|
|
100
100
|
export declare function validateProject(input: unknown): PersonalProject | WorkspaceProject;
|
|
101
101
|
export declare function validateProjectArray(input: unknown[]): (PersonalProject | WorkspaceProject)[];
|
|
102
|
+
export declare const validateWorkspaceProject: (input: unknown) => {
|
|
103
|
+
url: string;
|
|
104
|
+
id: string;
|
|
105
|
+
canAssignTasks: boolean;
|
|
106
|
+
childOrder: number;
|
|
107
|
+
color: string;
|
|
108
|
+
createdAt: string | null;
|
|
109
|
+
isArchived: boolean;
|
|
110
|
+
isDeleted: boolean;
|
|
111
|
+
isFavorite: boolean;
|
|
112
|
+
isFrozen: boolean;
|
|
113
|
+
name: string;
|
|
114
|
+
updatedAt: string | null;
|
|
115
|
+
viewStyle: string;
|
|
116
|
+
defaultOrder: number;
|
|
117
|
+
description: string;
|
|
118
|
+
isCollapsed: boolean;
|
|
119
|
+
isShared: boolean;
|
|
120
|
+
collaboratorRoleDefault: string;
|
|
121
|
+
folderId: string | null;
|
|
122
|
+
isInviteOnly: boolean | null;
|
|
123
|
+
isLinkSharingEnabled: boolean;
|
|
124
|
+
role: string | null;
|
|
125
|
+
status: string;
|
|
126
|
+
workspaceId: string;
|
|
127
|
+
access?: {
|
|
128
|
+
visibility: "restricted" | "team" | "public";
|
|
129
|
+
} | undefined;
|
|
130
|
+
};
|
|
131
|
+
export declare const validateWorkspaceProjectArray: (input: unknown[]) => {
|
|
132
|
+
url: string;
|
|
133
|
+
id: string;
|
|
134
|
+
canAssignTasks: boolean;
|
|
135
|
+
childOrder: number;
|
|
136
|
+
color: string;
|
|
137
|
+
createdAt: string | null;
|
|
138
|
+
isArchived: boolean;
|
|
139
|
+
isDeleted: boolean;
|
|
140
|
+
isFavorite: boolean;
|
|
141
|
+
isFrozen: boolean;
|
|
142
|
+
name: string;
|
|
143
|
+
updatedAt: string | null;
|
|
144
|
+
viewStyle: string;
|
|
145
|
+
defaultOrder: number;
|
|
146
|
+
description: string;
|
|
147
|
+
isCollapsed: boolean;
|
|
148
|
+
isShared: boolean;
|
|
149
|
+
collaboratorRoleDefault: string;
|
|
150
|
+
folderId: string | null;
|
|
151
|
+
isInviteOnly: boolean | null;
|
|
152
|
+
isLinkSharingEnabled: boolean;
|
|
153
|
+
role: string | null;
|
|
154
|
+
status: string;
|
|
155
|
+
workspaceId: string;
|
|
156
|
+
access?: {
|
|
157
|
+
visibility: "restricted" | "team" | "public";
|
|
158
|
+
} | undefined;
|
|
159
|
+
}[];
|
|
102
160
|
export declare const validateSection: (input: unknown) => {
|
|
103
161
|
url: string;
|
|
104
162
|
id: string;
|
|
@@ -1015,30 +1073,30 @@ export declare const validateViewOptions: (input: unknown) => {
|
|
|
1015
1073
|
[x: string]: unknown;
|
|
1016
1074
|
viewType: "PROJECT" | "TODAY" | "UPCOMING" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "OVERDUE" | "WORKSPACE_OVERVIEW";
|
|
1017
1075
|
objectId?: string | undefined;
|
|
1018
|
-
groupedBy?: "PROJECT" | "
|
|
1076
|
+
groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
|
|
1019
1077
|
filteredBy?: string | null | undefined;
|
|
1020
1078
|
viewMode?: "LIST" | "BOARD" | "CALENDAR" | undefined;
|
|
1021
1079
|
showCompletedTasks?: boolean | undefined;
|
|
1022
|
-
sortedBy?: "PROJECT" | "
|
|
1080
|
+
sortedBy?: "PROJECT" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "MANUAL" | "ALPHABETICALLY" | null | undefined;
|
|
1023
1081
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1024
1082
|
};
|
|
1025
1083
|
export declare const validateViewOptionsArray: (input: unknown[]) => {
|
|
1026
1084
|
[x: string]: unknown;
|
|
1027
1085
|
viewType: "PROJECT" | "TODAY" | "UPCOMING" | "LABEL" | "FILTER" | "WORKSPACE_FILTER" | "SEARCH" | "TEMPLATE_PREVIEW" | "TASK_DETAIL" | "AUTOMATION" | "ASSIGNED" | "OVERDUE" | "WORKSPACE_OVERVIEW";
|
|
1028
1086
|
objectId?: string | undefined;
|
|
1029
|
-
groupedBy?: "PROJECT" | "
|
|
1087
|
+
groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
|
|
1030
1088
|
filteredBy?: string | null | undefined;
|
|
1031
1089
|
viewMode?: "LIST" | "BOARD" | "CALENDAR" | undefined;
|
|
1032
1090
|
showCompletedTasks?: boolean | undefined;
|
|
1033
|
-
sortedBy?: "PROJECT" | "
|
|
1091
|
+
sortedBy?: "PROJECT" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "MANUAL" | "ALPHABETICALLY" | null | undefined;
|
|
1034
1092
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1035
1093
|
}[];
|
|
1036
1094
|
export declare const validateProjectViewOptionsDefaults: (input: unknown) => {
|
|
1037
1095
|
[x: string]: unknown;
|
|
1038
1096
|
projectId: string;
|
|
1039
1097
|
viewMode?: "LIST" | "BOARD" | "CALENDAR" | null | undefined;
|
|
1040
|
-
groupedBy?: "PROJECT" | "
|
|
1041
|
-
sortedBy?: "PROJECT" | "
|
|
1098
|
+
groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
|
|
1099
|
+
sortedBy?: "PROJECT" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "MANUAL" | "ALPHABETICALLY" | null | undefined;
|
|
1042
1100
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1043
1101
|
showCompletedTasks?: boolean | undefined;
|
|
1044
1102
|
filteredBy?: string | null | undefined;
|
|
@@ -1051,8 +1109,8 @@ export declare const validateProjectViewOptionsDefaultsArray: (input: unknown[])
|
|
|
1051
1109
|
[x: string]: unknown;
|
|
1052
1110
|
projectId: string;
|
|
1053
1111
|
viewMode?: "LIST" | "BOARD" | "CALENDAR" | null | undefined;
|
|
1054
|
-
groupedBy?: "PROJECT" | "
|
|
1055
|
-
sortedBy?: "PROJECT" | "
|
|
1112
|
+
groupedBy?: "PROJECT" | "LABEL" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | null | undefined;
|
|
1113
|
+
sortedBy?: "PROJECT" | "ASSIGNEE" | "ADDED_DATE" | "DUE_DATE" | "DEADLINE" | "PRIORITY" | "WORKSPACE" | "MANUAL" | "ALPHABETICALLY" | null | undefined;
|
|
1056
1114
|
sortOrder?: "ASC" | "DESC" | null | undefined;
|
|
1057
1115
|
showCompletedTasks?: boolean | undefined;
|
|
1058
1116
|
filteredBy?: string | null | undefined;
|
package/package.json
CHANGED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GoalSchema = exports.GoalProgressSchema = exports.GOAL_OWNER_TYPES = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
/** Available goal owner types. */
|
|
6
|
-
exports.GOAL_OWNER_TYPES = ['USER', 'WORKSPACE'];
|
|
7
|
-
exports.GoalProgressSchema = zod_1.z
|
|
8
|
-
.object({
|
|
9
|
-
totalItemCount: zod_1.z.number().int(),
|
|
10
|
-
completedItemCount: zod_1.z.number().int(),
|
|
11
|
-
percentage: zod_1.z.number(),
|
|
12
|
-
})
|
|
13
|
-
.passthrough();
|
|
14
|
-
exports.GoalSchema = zod_1.z
|
|
15
|
-
.object({
|
|
16
|
-
id: zod_1.z.string(),
|
|
17
|
-
ownerType: zod_1.z.enum(exports.GOAL_OWNER_TYPES),
|
|
18
|
-
ownerId: zod_1.z.string(),
|
|
19
|
-
name: zod_1.z.string(),
|
|
20
|
-
description: zod_1.z.string().nullable(),
|
|
21
|
-
deadline: zod_1.z.string().nullable(),
|
|
22
|
-
parentGoalId: zod_1.z.string().nullable(),
|
|
23
|
-
childOrder: zod_1.z.number().int(),
|
|
24
|
-
isCompleted: zod_1.z.boolean(),
|
|
25
|
-
completedAt: zod_1.z.coerce.date().nullable(),
|
|
26
|
-
responsibleUid: zod_1.z.string().nullable(),
|
|
27
|
-
isDeleted: zod_1.z.boolean(),
|
|
28
|
-
progress: exports.GoalProgressSchema.optional(),
|
|
29
|
-
creatorUid: zod_1.z.string(),
|
|
30
|
-
createdAt: zod_1.z.coerce.date(),
|
|
31
|
-
updatedAt: zod_1.z.coerce.date(),
|
|
32
|
-
})
|
|
33
|
-
.passthrough();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/** Available goal owner types. */
|
|
3
|
-
export const GOAL_OWNER_TYPES = ['USER', 'WORKSPACE'];
|
|
4
|
-
export const GoalProgressSchema = z
|
|
5
|
-
.object({
|
|
6
|
-
totalItemCount: z.number().int(),
|
|
7
|
-
completedItemCount: z.number().int(),
|
|
8
|
-
percentage: z.number(),
|
|
9
|
-
})
|
|
10
|
-
.passthrough();
|
|
11
|
-
export const GoalSchema = z
|
|
12
|
-
.object({
|
|
13
|
-
id: z.string(),
|
|
14
|
-
ownerType: z.enum(GOAL_OWNER_TYPES),
|
|
15
|
-
ownerId: z.string(),
|
|
16
|
-
name: z.string(),
|
|
17
|
-
description: z.string().nullable(),
|
|
18
|
-
deadline: z.string().nullable(),
|
|
19
|
-
parentGoalId: z.string().nullable(),
|
|
20
|
-
childOrder: z.number().int(),
|
|
21
|
-
isCompleted: z.boolean(),
|
|
22
|
-
completedAt: z.coerce.date().nullable(),
|
|
23
|
-
responsibleUid: z.string().nullable(),
|
|
24
|
-
isDeleted: z.boolean(),
|
|
25
|
-
progress: GoalProgressSchema.optional(),
|
|
26
|
-
creatorUid: z.string(),
|
|
27
|
-
createdAt: z.coerce.date(),
|
|
28
|
-
updatedAt: z.coerce.date(),
|
|
29
|
-
})
|
|
30
|
-
.passthrough();
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { GoalOwnerType } from '../resources/goals.js';
|
|
2
|
-
export type GoalAddArgs = {
|
|
3
|
-
ownerType: GoalOwnerType;
|
|
4
|
-
ownerId: string;
|
|
5
|
-
name: string;
|
|
6
|
-
description?: string | null;
|
|
7
|
-
deadline?: string | null;
|
|
8
|
-
responsibleUid?: string | null;
|
|
9
|
-
};
|
|
10
|
-
export type GoalUpdateArgs = {
|
|
11
|
-
id: string;
|
|
12
|
-
name?: string;
|
|
13
|
-
description?: string | null;
|
|
14
|
-
deadline?: string | null;
|
|
15
|
-
responsibleUid?: string | null;
|
|
16
|
-
};
|
|
17
|
-
export type GoalCompleteArgs = {
|
|
18
|
-
id: string;
|
|
19
|
-
};
|
|
20
|
-
export type GoalUncompleteArgs = {
|
|
21
|
-
id: string;
|
|
22
|
-
};
|
|
23
|
-
export type GoalDeleteArgs = {
|
|
24
|
-
id: string;
|
|
25
|
-
};
|
|
26
|
-
export type GoalLinkItemArgs = {
|
|
27
|
-
goalId: string;
|
|
28
|
-
itemId: string;
|
|
29
|
-
};
|
|
30
|
-
export type GoalUnlinkItemArgs = {
|
|
31
|
-
goalId: string;
|
|
32
|
-
itemId: string;
|
|
33
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/** Available goal owner types. */
|
|
3
|
-
export declare const GOAL_OWNER_TYPES: readonly ["USER", "WORKSPACE"];
|
|
4
|
-
/** Goal owner type. */
|
|
5
|
-
export type GoalOwnerType = (typeof GOAL_OWNER_TYPES)[number];
|
|
6
|
-
export declare const GoalProgressSchema: z.ZodObject<{
|
|
7
|
-
totalItemCount: z.ZodNumber;
|
|
8
|
-
completedItemCount: z.ZodNumber;
|
|
9
|
-
percentage: z.ZodNumber;
|
|
10
|
-
}, z.core.$loose>;
|
|
11
|
-
export type GoalProgress = z.infer<typeof GoalProgressSchema>;
|
|
12
|
-
export declare const GoalSchema: z.ZodObject<{
|
|
13
|
-
id: z.ZodString;
|
|
14
|
-
ownerType: z.ZodEnum<{
|
|
15
|
-
USER: "USER";
|
|
16
|
-
WORKSPACE: "WORKSPACE";
|
|
17
|
-
}>;
|
|
18
|
-
ownerId: z.ZodString;
|
|
19
|
-
name: z.ZodString;
|
|
20
|
-
description: z.ZodNullable<z.ZodString>;
|
|
21
|
-
deadline: z.ZodNullable<z.ZodString>;
|
|
22
|
-
parentGoalId: z.ZodNullable<z.ZodString>;
|
|
23
|
-
childOrder: z.ZodNumber;
|
|
24
|
-
isCompleted: z.ZodBoolean;
|
|
25
|
-
completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
26
|
-
responsibleUid: z.ZodNullable<z.ZodString>;
|
|
27
|
-
isDeleted: z.ZodBoolean;
|
|
28
|
-
progress: z.ZodOptional<z.ZodObject<{
|
|
29
|
-
totalItemCount: z.ZodNumber;
|
|
30
|
-
completedItemCount: z.ZodNumber;
|
|
31
|
-
percentage: z.ZodNumber;
|
|
32
|
-
}, z.core.$loose>>;
|
|
33
|
-
creatorUid: z.ZodString;
|
|
34
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
35
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
36
|
-
}, z.core.$loose>;
|
|
37
|
-
export type Goal = z.infer<typeof GoalSchema>;
|