ShipmentsRepository
Core repository for managing Dockware shipments, scans, and associated entries.
This repository serves as the single source of truth for shipment data, providing reactive streams (StateFlow) for UI observation and suspended functions for data manipulation and API interaction.
Inheritors
Functions
Soft-deletes a shipment, moving it to the archive.
Deletes a specific scan record.
Creates an entry linking a previously uploaded pick ticket to a specific shipment and scan.
Records a new scan event for a shipment.
Triggers a full refresh of all shipment data, including scans and entries.
Fetches the most recent entries for a list of shipments (e.g., latest thumbnail and PLY file).
Fetches both the shipment details and its scans in parallel.
Fetches all entries (files, images, point clouds) attached to a specific scan.
Fetches all scans associated with a specific shipment.
Fetches scans for multiple shipments in a single request.
Fetches the latest shipment hierarchy from the server.
Submits captured snapshot data to the cloud for volumetric dimensioning.
Updates the title of an existing shipment.
Shares a shipment with another user via email.
Provides a reactive stream of entries for a single shipment.
Provides a reactive stream of entries (files/metadata) for a set of shipment IDs.
Provides a reactive stream of scans for a single shipment.
Provides a reactive stream of scans for a specific set of shipment IDs.
Returns a reactive stream for a specific ShipmentTree.
Restores a soft-deleted shipment from the archive.
Updates raw metadata for a specific scan.
Updates a scan with manually measured dimensions.
Updates the quality approval status for a scan, usually triggered by manual user review.
Changes the classification type of an existing scan.
Updates the bounding box/user-adjusted dimensions for a 3D scan.
Updates the weight of the scanned object.
Uploads detected barcode data and associates it with the specified scan.
Uploads a list of images as JPG entries for a specific scan.
Uploads SDK/Application logs to the Dockware server for troubleshooting.