Class IMI

Constructors

  • Parameters

    Returns IMI

Properties

api: Api

Methods

  • Parameters

    • jobOrderNo: string
    • lineNos: undefined | string[]
    • classCode: string

    Returns Promise<ApiResponse<DocumentFileLookupResult[], { message: string }>>

  • Parameters

    • params: { contract: string; shipment: string }

    Returns Promise<ApiResponse<IHandlingUnit[], { message: string }>>

  • Always returns an IOperation[] body, for both branches.

    Status-branch calls ({ status, contract, limit?, offset? }) return the current page as the array, with the total count across all pages in the x-count response header — read it off res.headers['x-count']. Callers already know the limit/offset they requested, so page through until offset + rows.length >= total.

    Shop-order-branch calls ({ contract, shopOrder }) return all operations for that shop order, unpaginated; there's no x-count header for these.

    Parameters

    Returns Promise<ApiResponse<IOperation[], { message: string }>>

  • Parameters

    • params: { contract: string; purchaseOrderId: string }

    Returns Promise<ApiResponse<IPurchaseOrderLine[], { message: string }>>

  • Parameters

    • contract: string
    • requisitions: string[]

    Returns Promise<ApiResponse<IRequisitionStatus[], { message: string }>>

  • Parameters

    • params: { shipmentId: string }

    Returns Promise<ApiResponse<IShipmentLine[], { message: string }>>

  • Parameters

    • params: { contract: string; shipments: string[] }

    Returns Promise<ApiResponse<IShipment[], { message: string }>>

  • Parameters

    • contract: string
    • shopOrders: string[]

    Returns Promise<ApiResponse<IShopOrder[], { message: string }>>

  • Parameters

    • logicalShareName: string
    • shareRelativePath: string

    Returns string