Optional
realtime: RealtimeGets the details of inventory role.
Response wrapped in IResult
Example
const inventoryRoleId: number = 1;
(async () => {
const {data, res} = await inventoryRoleService.detail(inventoryRoleId);
})();
Entity or Id of the entity.
Object containing filters for querying alarms.
Example
const filter: object = {
pageSize: 100,
withTotalPages: true
};
(async () => {
const {data, res, paging} = await inventoryRoleService.list(filter);
})();
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.
Returns
Response wrapped in IResult
Example