ShipmentUploadService

Types

Link copied to clipboard
data class BaseStatus(val stage: ShipmentUploadService.Stage, val message: String? = null, val shipmentId: String? = null, val scanId: String? = null) : ShipmentUploadService.Status
Link copied to clipboard
data class CurrentStatus(val queueId: String, val stage: ShipmentUploadService.Stage, val message: String? = null, val shipmentId: String? = null, val scanId: String? = null) : ShipmentUploadService.Status
Link copied to clipboard
data class DocumentStatus(val stage: ShipmentUploadService.Stage, val message: String? = null, val shipmentId: String? = null, val scanId: String? = null, val uploadJobId: String? = null) : ShipmentUploadService.Status
Link copied to clipboard
sealed class Queued
Link copied to clipboard
interface Stage
Link copied to clipboard
abstract class Status

Properties

Link copied to clipboard

A map that keys queue IDs to the status for the item. This includes completed queue items.

Link copied to clipboard

The status for the current queue item being uploaded.

Link copied to clipboard
abstract val queue: StateFlow<List<ShipmentUploadService.Queued>>

The waiting queue of 3D objects or documents to be uploaded.

Functions

Link copied to clipboard
abstract fun clearQueue()
Link copied to clipboard
abstract fun queueDocumentUpload(imageData: ByteArray, type: ShipmentScanType.DocumentType = ShipmentScanType.DocumentType.DOCUMENT, shipmentId: String? = null): String
Link copied to clipboard
abstract fun queueObjectUpload(dimensions: Dimensions?, weight: Float?, freightClass: String?, locationData: LocationData?, barcodeData: List<BaseBarcode>, scannerFolderId: String, jsonMetadata: Map<String, String>, validationResult: SnapshotValidation, shipmentId: String? = null): String
Link copied to clipboard
abstract fun removeQueueItem(id: String): Result<Unit>