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", 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