Skip to content

Commit

Permalink
Merge pull request #1015 from balena-io/add-user-reverse-nav-props
Browse files Browse the repository at this point in the history
Add missing reverse navigation relations to User typings
  • Loading branch information
bulldozer-balena[bot] authored Oct 27, 2020
2 parents bc94068 + 597a99c commit c7fb681
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions typings/balena-sdk/models.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ export interface User extends JWTUser {
actor: number;
created_at: string;
username: string;

organization_membership: ReverseNavigationResource<OrganizationMembership>;
// TODO: Consider replacing with user_application_membership in the next major
user__is_member_of__application: ReverseNavigationResource<
ApplicationMembership
>;
team_membership: ReverseNavigationResource<TeamMembership>;
}

export type OrganizationMembershipRoles = 'administrator' | 'member';
Expand Down

0 comments on commit c7fb681

Please sign in to comment.