Skip to content

Commit

Permalink
fix(users): XXX-0 add_to_all_projects on create/update user
Browse files Browse the repository at this point in the history
  • Loading branch information
noticeeverything committed Mar 18, 2022
1 parent d13f347 commit c753abc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,12 @@ export type TimelyEventBulkUpdate = OptionalExceptFor<TimelyEvent, 'id'>

export type AddTimelyClient = OptionalExceptFor<TimelyClient, 'name'>

export type AddTimelyUser = OptionalExceptFor<TimelyUser, 'name' | 'email' | 'role_id' | 'projects'>
export type AddTimelyUser = AddToAllProjects &
OptionalExceptFor<TimelyUser, 'name' | 'email' | 'role_id'>

export interface UpdateTimelyUser extends Partial<TimelyUser> {
export type UpdateTimelyUser = Partial<TimelyUser & AddToAllProjects>

export interface AddToAllProjects {
add_to_all_projects?: boolean
}

Expand Down

0 comments on commit c753abc

Please sign in to comment.