From fb5b96bdf8762b9d8a65bb7e536f279c743dd65b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Grimm?= Date: Wed, 25 Jun 2025 15:48:47 -0500 Subject: [PATCH 1/2] fix: Set `folderId` type to `string` not `boolean` --- src/types/entities.ts | 2 +- .../docs/api/interfaces/WorkspaceProject.md | 50 +++++++++---------- .../api/variables/WorkspaceProjectSchema.md | 10 ++-- 3 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/types/entities.ts b/src/types/entities.ts index 7319a09..bb66ec5 100644 --- a/src/types/entities.ts +++ b/src/types/entities.ts @@ -117,7 +117,7 @@ export const PersonalProjectSchema = BaseProjectSchema.extend({ */ export const WorkspaceProjectSchema = BaseProjectSchema.extend({ collaboratorRoleDefault: z.string(), - folderId: z.boolean().nullable(), + folderId: z.string().nullable(), isInviteOnly: z.boolean().nullable(), isLinkSharingEnabled: z.boolean(), role: z.string().nullable(), diff --git a/website/docs/api/interfaces/WorkspaceProject.md b/website/docs/api/interfaces/WorkspaceProject.md index c27702d..ac4e2e0 100644 --- a/website/docs/api/interfaces/WorkspaceProject.md +++ b/website/docs/api/interfaces/WorkspaceProject.md @@ -12,29 +12,29 @@ https://todoist.com/api/v1/docs#tag/Projects ## Properties -| Property | Type | -| ------ | ------ | -| `canAssignTasks` | `boolean` | -| `childOrder` | `number` | -| `collaboratorRoleDefault` | `string` | -| `color` | `string` | -| `createdAt` | `null` \| `string` | -| `defaultOrder` | `number` | -| `description` | `string` | -| `folderId` | `null` \| `boolean` | -| `id` | `string` | -| `isArchived` | `boolean` | -| `isCollapsed` | `boolean` | -| `isDeleted` | `boolean` | -| `isFavorite` | `boolean` | -| `isFrozen` | `boolean` | +| Property | Type | +| ------ |---------------------| +| `canAssignTasks` | `boolean` | +| `childOrder` | `number` | +| `collaboratorRoleDefault` | `string` | +| `color` | `string` | +| `createdAt` | `null` \| `string` | +| `defaultOrder` | `number` | +| `description` | `string` | +| `folderId` | `null` \| `string` | +| `id` | `string` | +| `isArchived` | `boolean` | +| `isCollapsed` | `boolean` | +| `isDeleted` | `boolean` | +| `isFavorite` | `boolean` | +| `isFrozen` | `boolean` | | `isInviteOnly` | `null` \| `boolean` | -| `isLinkSharingEnabled` | `boolean` | -| `isShared` | `boolean` | -| `name` | `string` | -| `role` | `null` \| `string` | -| `status` | `string` | -| `updatedAt` | `null` \| `string` | -| `url` | `string` | -| `viewStyle` | `string` | -| `workspaceId` | `string` | +| `isLinkSharingEnabled` | `boolean` | +| `isShared` | `boolean` | +| `name` | `string` | +| `role` | `null` \| `string` | +| `status` | `string` | +| `updatedAt` | `null` \| `string` | +| `url` | `string` | +| `viewStyle` | `string` | +| `workspaceId` | `string` | diff --git a/website/docs/api/variables/WorkspaceProjectSchema.md b/website/docs/api/variables/WorkspaceProjectSchema.md index af8e2fe..9963f30 100644 --- a/website/docs/api/variables/WorkspaceProjectSchema.md +++ b/website/docs/api/variables/WorkspaceProjectSchema.md @@ -20,7 +20,7 @@ const WorkspaceProjectSchema: ZodEffects; + folderId: ZodNullable; isInviteOnly: ZodNullable; isLinkSharingEnabled: ZodBoolean; role: ZodNullable; @@ -34,7 +34,7 @@ const WorkspaceProjectSchema: ZodEffects Date: Wed, 25 Jun 2025 15:50:41 -0500 Subject: [PATCH 2/2] chore: Bump minor version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 34f0b8d..c408914 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@doist/todoist-api-typescript", - "version": "5.0.1", + "version": "5.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@doist/todoist-api-typescript", - "version": "5.0.1", + "version": "5.0.2", "license": "MIT", "dependencies": { "axios": "^1.0.0", diff --git a/package.json b/package.json index 21ad04f..16f9950 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@doist/todoist-api-typescript", - "version": "5.0.1", + "version": "5.0.2", "description": "A typescript wrapper for the Todoist REST API.", "author": "Doist developers", "repository": "git@github.com:doist/todoist-api-typescript.git",