Skip to content

Commit

Permalink
fix: add expiring application props to create and update models (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcschy committed Nov 23, 2022
1 parent 9cecae1 commit 237028d
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/types/models/applications.ts
Expand Up @@ -38,11 +38,19 @@ type Condition = {
value: string;
};

type CreateApplication = Pick<Application, 'name' | 'type'> &
Partial<Pick<Application, 'permissions' | 'rules'>>;
type CreateApplication = Pick<
Application,
| 'name'
| 'type'
| 'permissions'
| 'rules'
| 'canCreateExpiringApplications'
| 'expiresAt'
>;

type UpdateApplication = Partial<
Pick<Application, 'name' | 'permissions' | 'rules'>
type UpdateApplication = Pick<
Application,
'name' | 'permissions' | 'rules' | 'canCreateExpiringApplications'
>;

export type {
Expand Down

0 comments on commit 237028d

Please sign in to comment.