diff --git a/src/types/models/applications.ts b/src/types/models/applications.ts index 34839ada..aac8b90f 100644 --- a/src/types/models/applications.ts +++ b/src/types/models/applications.ts @@ -38,11 +38,19 @@ type Condition = { value: string; }; -type CreateApplication = Pick & - Partial>; +type CreateApplication = Pick< + Application, + | 'name' + | 'type' + | 'permissions' + | 'rules' + | 'canCreateExpiringApplications' + | 'expiresAt' +>; -type UpdateApplication = Partial< - Pick +type UpdateApplication = Pick< + Application, + 'name' | 'permissions' | 'rules' | 'canCreateExpiringApplications' >; export type {