Skip to content

Commit 43f92bf

Browse files
committed
chore: Expose premiumStatus user field
1 parent 0cefa48 commit 43f92bf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/todoist-api.user.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const DEFAULT_CURRENT_USER_RESPONSE: CurrentUser = {
1717
avatarSmall: 'https://example.com/avatars/test_user_small.jpg',
1818
businessAccountId: null,
1919
isPremium: true,
20+
premiumStatus: 'current_personal_plan',
2021
dateFormat: 0,
2122
timeFormat: 0,
2223
weeklyGoal: 100,

src/types/entities.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ export const CurrentUserSchema = z.object({
285285
avatarSmall: z.string().nullish(),
286286
businessAccountId: z.string().nullable(),
287287
isPremium: z.boolean(),
288+
premiumStatus: z.string(),
288289
dateFormat: z.number().int(),
289290
timeFormat: z.number().int(),
290291
weeklyGoal: z.number().int(),

0 commit comments

Comments
 (0)