Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InventoryRoleService

Hierarchy

Index

Constructors

Methods

Constructors

constructor

Methods

create

  • Parameters

    Returns Promise<IResult<IIdentified>>

    Response wrapped in IResult

    Example

    
     const newRole: IIdentified = {
       name: 'Custom role'
     };
    
     (async () => {
       const {data, res} = await inventoryRoleService.create(newRole);
     })();
    

delete

  • Parameters

    Returns Promise<IResult<null>>

    Response wrapped in IResult

detail

  • Parameters

    Returns Promise<IResult<IIdentified>>

    Response wrapped in IResult

    Example

    
       const inventoryRoleId: number = 1;
    
       (async () => {
         const {data, res} = await inventoryRoleService.detail(inventoryRoleId);
      })();
    

list

update

  • Parameters

    Returns Promise<IResult<IIdentified>>

    Response wrapped in IResult

    Example

    
     const updateObject: IIdentified = {
       id: 1,
       name: 'changed role'
     };
    
     (async () => {
       const {data, res} = await inventoryRoleService.update(updateObject);
     })();
    

Generated using TypeDoc