task-l.1
This commit is contained in:
13
src/features/foundation/crm-role-assignments/api/queries.ts
Normal file
13
src/features/foundation/crm-role-assignments/api/queries.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { queryOptions } from '@tanstack/react-query';
|
||||
import { getCrmUserRoleAssignments } from './service';
|
||||
|
||||
export const crmUserRoleAssignmentQueryKeys = {
|
||||
all: ['crm-user-role-assignments'] as const
|
||||
};
|
||||
|
||||
export function crmUserRoleAssignmentsQueryOptions() {
|
||||
return queryOptions({
|
||||
queryKey: crmUserRoleAssignmentQueryKeys.all,
|
||||
queryFn: getCrmUserRoleAssignments
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user