FortressApiService

Functions

Link copied to clipboard
abstract suspend fun archiveShipment(shipmentId: String, updatedById: String, archived: Boolean = true): Result<ShipmentRO>
Link copied to clipboard
abstract suspend fun archiveShipmentScan(shipmentScanId: String, updatedById: String, archived: Boolean = true): Result<ShipmentScanRO>
Link copied to clipboard
abstract suspend fun createDocument(documentInput: DocumentInput): Result<DocumentResponse>
Link copied to clipboard
abstract suspend fun createPickTicketShipmentEntry(shipmentId: String, shipmentScanId: String, jobId: String, fileName: String, createdById: String): Result<ShipmentEntryRO>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun createShipmentSharingRecord(userId: String, shipmentId: String, recipientEmail: String, expiration: String? = null): Result<ShipmentSharingRO>
Link copied to clipboard
abstract suspend fun <T : Any> delete(endpoint: String, body: Any, kClass: KClass<T>): Result<T>
Link copied to clipboard
abstract suspend fun downloadImageFile(storageKey: String): Result<ByteArray>
Link copied to clipboard
abstract suspend fun downloadPLYFile(storageKey: String): Result<ByteArray>
Link copied to clipboard
abstract suspend fun downloadPresignedUrl(url: String): Result<ByteArray>
Link copied to clipboard
abstract suspend fun fetchApiVersions(): Result<ApiVersions>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun fetchMostRecentShipmentEntries(shipmentIds: List<String>, entryType: String): Result<Map<String, ShipmentEntryRO>>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun fetchOrganization(organizationId: String): Result<OrganizationRO>
Link copied to clipboard
abstract suspend fun fetchOrganizationMembers(profileId: String, organizationId: String): Result<List<UserProfileRO>>
Link copied to clipboard
abstract suspend fun fetchShipmentEntries(shipmentScanId: String): Result<List<ShipmentEntryRO>>
Link copied to clipboard
abstract suspend fun fetchShipments(userId: String): Result<ShipmentWithSharingRO>
Link copied to clipboard
abstract suspend fun fetchShipmentScans(shipmentId: String): Result<List<ShipmentScanRO>>
abstract suspend fun fetchShipmentScans(shipmentIds: List<String>): Result<Map<String, List<ShipmentScanRO>>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun fetchUserProfile(authUserId: String): Result<UserProfileRO>
Link copied to clipboard
abstract suspend fun <T : Any> get(endpoint: String, kClass: KClass<T>): Result<T>
Link copied to clipboard
abstract suspend fun getJobStatus(jobId: String): Result<JobStatusResponse>
Link copied to clipboard
abstract suspend fun <T : Any> patch(endpoint: String, body: Any, kClass: KClass<T>): Result<T>
Link copied to clipboard
abstract suspend fun patchShipment(shipmentId: String, request: UpdateShipmentRequest, operationName: String): Result<ShipmentRO>
Link copied to clipboard
abstract suspend fun <T : Any> post(endpoint: String, body: Any, kClass: KClass<T>): Result<T>
Link copied to clipboard
abstract suspend fun queueProcessingJob(shipmentId: String, shipmentScanId: String, data: ByteArray): Result<SnapshotsRO>
Link copied to clipboard
abstract suspend fun renameShipment(shipmentId: String, updatedById: String, newTitle: String): Result<ShipmentRO>
Link copied to clipboard
abstract fun setBearerToken(token: String?)
Link copied to clipboard
abstract suspend fun setMyCarrierApiKey(mycarrierKey: String?, originLocationId: String?): Result<String>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun updateDocument(documentId: String, data: JsonObject): Result<DocumentResponse>
Link copied to clipboard
abstract suspend fun updateShipmentBarcodes(shipmentId: String, updatedById: String, barcodesDto: Map<String, List<BarcodeItemRO>>): Result<ShipmentRO>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun uploadLogLines(logList: List<LogEntry>): Result<String>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun uploadShipmentEntry(organizationId: String, shipmentId: String, shipmentScanId: String, fileName: String, data: ByteArray, type: ShipmentEntryType, createdById: String): Result<Pair<StorageRO, ShipmentEntryRO>>
Link copied to clipboard
abstract suspend fun uploadShipmentScanZip(organizationId: String, shipmentId: String, shipmentScanId: String, data: ByteArray): Result<SnapshotsRO>
Link copied to clipboard
abstract suspend fun verifyMyCarrierStatus(overrideAccessToken: String? = null): Result<Boolean>