Assign inventory role to current user.
Inventory Role object.
Returns promise object that is resolved with the details of newly assigned inventory role.
Example
const inventoryRoleObject: IUserInventoryRole = {
...
};
(async () => {
const {data, res} = await userInventoryRoleService.create(inventoryRoleObject);
})();
Unassign inventory role from current user
Inventory Role id or Inventory Role object.
Returns promise object that is resolved with the IResult.
Example
const inventoryRoleId: number = 1;
(async () => {
const {data, res} = await userInventoryRoleService.delete(inventoryRoleId);
})();
Get a representation of a concrete current user's inventory role.
inventory role id or inventory role object.
Returns promise object that is resolved with the IUserInventoryRole wrapped by IResult.
Example
const inventoryRoleId: number = 1;
(async () => {
const {data, res} = await userInventoryRoleService.detail(inventoryRoleId);
})();
Required role: ROLE_TENANT_MANAGEMENT_READ
User password is never returned in GET response. Authentication mechanism is provided by another interface.
Gets the list the inventory roles applied to a current user.
Object containing filters for querying inventory roles.
Returns promise object that is resolved with the IUserInventoryRole wrapped by IResultList.
Example
const filter: object = {
severity: Severity.MAJOR,
pageSize: 100,
withTotalPages: true
};
(async () => {
const {data, res, paging} = await userInventoryRoleService.list(filter);
})();
Updates an inventory role.
Inventory Role object.
Description
This service allows for managing current user's inventory roles.