Optional
realtime: RealtimeResponse wrapped in [[IResult]]
Example
const newRole: IIdentified = {
name: 'Custom role'
};
(async () => {
const {data, res} = await inventoryRoleService.create(newRole);
})();
Removes an inventory role with given id.
Response wrapped in [[IResult]]
Gets the details of inventory role.
Entity or Id of the entity.
Response wrapped in [[IResult]]
Example
const inventoryRoleId: number = 1;
(async () => {
const {data, res} = await inventoryRoleService.detail(inventoryRoleId);
})();
Gets the list of inventory roles filtered by parameters.
Object containing filters for querying alarms.
Example
const filter: object = {
pageSize: 100,
withTotalPages: true
};
(async () => {
const {data, res, paging} = await inventoryRoleService.list(filter);
})();
Response wrapped in [[IResultList]]
Updates inventory role data.
Response wrapped in [[IResult]]
Example
const updateObject: IIdentified = {
id: 1,
name: 'changed role'
};
(async () => {
const {data, res} = await inventoryRoleService.update(updateObject);
})();
Creates a new inventory role.