Skip to content

Commit e37e0b6

Browse files
committed
feat: add type for user typeToFetch
1 parent 3e889ce commit e37e0b6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Pages/GlobalConfigurations/Authorization/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
export * from './constants'
1818
export type { UserListFilterParams, UserRoleGroup, UserGroupDTO, UserGroupType } from './types'
19+
export { UserTypeToFetchType } from './types'
1920
export * from './shared'
2021
export * from './service'
2122
export { getUserAndApiTokenOption } from './utils'

src/Pages/GlobalConfigurations/Authorization/types.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,18 @@
1717
import { BaseFilterQueryParams } from '../../../Shared'
1818
import { UserListSortableKeys, UserStatus } from './constants'
1919

20+
export enum UserTypeToFetchType {
21+
includeDeleted = 'includeDeleted',
22+
excludeDelete = 'excludeDelete',
23+
onlyDeleted = 'onlyDeleted',
24+
}
25+
2026
export type UserListFilterParams = BaseFilterQueryParams<UserListSortableKeys> & {
2127
/**
2228
* Selected statuses (if any)
2329
*/
2430
status: UserStatus[]
31+
typeToFetch?: UserTypeToFetchType
2532
}
2633

2734
export interface UserMinType {

0 commit comments

Comments
 (0)