Update role endpoints
This commit is contained in:
parent
9877cafaf4
commit
fe916397ea
|
@ -1,6 +1,6 @@
|
||||||
import {
|
import {
|
||||||
AccessibleRolesResponse,
|
AccessibleRolesResponse,
|
||||||
DestroyRoleResponse,
|
DeleteRoleResponse,
|
||||||
FetchRolesResponse,
|
FetchRolesResponse,
|
||||||
SaveRoleRequest,
|
SaveRoleRequest,
|
||||||
SaveRoleResponse,
|
SaveRoleResponse,
|
||||||
|
@ -8,7 +8,7 @@ import {
|
||||||
import { BaseAPIClient } from "./types"
|
import { BaseAPIClient } from "./types"
|
||||||
|
|
||||||
export interface RoleEndpoints {
|
export interface RoleEndpoints {
|
||||||
deleteRole: (id: string, rev: string) => Promise<DestroyRoleResponse>
|
deleteRole: (id: string, rev: string) => Promise<DeleteRoleResponse>
|
||||||
saveRole: (role: SaveRoleRequest) => Promise<SaveRoleResponse>
|
saveRole: (role: SaveRoleRequest) => Promise<SaveRoleResponse>
|
||||||
getRoles: () => Promise<FetchRolesResponse>
|
getRoles: () => Promise<FetchRolesResponse>
|
||||||
getRolesForApp: (appId: string) => Promise<any>
|
getRolesForApp: (appId: string) => Promise<any>
|
||||||
|
|
Loading…
Reference in New Issue