Hierarchy

  • InspectionCosts

Properties

Methods - Inspection Costs

Methods - Labor Costs

Properties

currentActivityType: string

Storage of object's active activityType

Inspection Costs Methods

  • Add Inspection Equipment Costs

    Returns

    Returns Promise that represents an object describing

    Parameters

    • inspectionId: number

      the inspection to add the equipment costs to

    • options: Object

      additional options

    Returns Promise<unknown>

  • Add Inspection Labor Costs

    Returns

    Returns Promise that represents an object describing

    Parameters

    • inspectionId: number

      Inspection ID to add labor costs to

    • hours: number

      The hours to add to the inspection

    • Optional options: object

      Additional settings for hours setting

    • estimated: boolean = false

      Boolean, get estimated or real costs, defaults to false (get real by default)

    Returns Promise<unknown>

  • Delete Inspection Equipment Costs

    Returns

    Returns Promise that represents an object describing

    Parameters

    • equipmentCostIds: number[]

      the equipment cost IDs to delete.

    • estimated: boolean = false

      delete estimated equipment costs. Defaults to false.

    Returns Promise<unknown>

  • Delete Inspection Labor Costs

    Returns

    Returns Promise that represents an object describing

    Parameters

    • laborCostIds: number[]

      An array of inspection labor cost IDs to delete

    • estimated: boolean = false

      Boolean, delete estimated or real costs, defaults to false (delete real by default)

    Returns Promise<unknown>

  • Get Equipment Costs for Inspection(s)

    Returns

    Returns Promise that represents an object describing

    Parameters

    • inspectionIds: number

      the inspection to get the equipment costs for.

    • estimated: boolean = false

      get estimated equipment costs. Defaults to false.

    Returns Promise<unknown>

  • Get Labor Costs for a specific list of Inspections

    Returns

    Returns Promise that represents an object describing

    Parameters

    • inspectionIds: number[]

      An array of inspection IDs to get associated costs for.

    • estimated: boolean = false

      Boolean, get estimated or real costs, defaults to false (get real by default)

    Returns Promise<unknown>

Labor Costs Methods

  • Get Cost Codes

    Returns

    Returns Promise that represents an object describing

    Parameters

    • employeeSids: Object

      A list of Employee IDs for which to get the job codes.

    • commonOnly: boolean = false

      Set to true to get the Cost Codes that are common to ALL employees in the list, otherwise get all job codes that apply to at least one employee in the list.

    Returns Promise<unknown>

  • Get Job Codes

    Returns

    Returns Promise that represents an object describing

    Returns Promise<unknown>