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.
Properties
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.
Downloads the image bytes of a URL.
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 shipment sharing links that the user created to share with others.
Fetches shipment sharing links where the user is the recipient.
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.
Polls for scans of a shipment until all scans have a completion status (processed or error), saving the state in this repository.
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.
Restores a soft-deleted shipment from the archive.
Updates a specific scan with a request built using UpdateShipmentScanRequest.Builder.
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.
Updates a review status for a scan in the metadata, additionally updating a user approval key.
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.