// @generated — do not edit import { createDomainError } from "@tailor-platform/erp-kit/core"; export const InvalidStatusError = createDomainError( "InvalidStatusError", "INBOUND_SHIPMENT_INVALID_STATUS", (identifier: string) => `Target entity is not in a valid status for this operation: ${identifier}`, ); export const EmptyShipmentLinesError = createDomainError( "EmptyShipmentLinesError", "INBOUND_SHIPMENT_EMPTY_SHIPMENT_LINES", (identifier: string) => `No inbound shipment lines were provided: ${identifier}`, ); export const InvalidQuantityError = createDomainError( "InvalidQuantityError", "INBOUND_SHIPMENT_INVALID_QUANTITY", (identifier: string) => `Quantity is zero or negative: ${identifier}`, ); export const PrimaryUnitMismatchError = createDomainError( "PrimaryUnitMismatchError", "INBOUND_SHIPMENT_PRIMARY_UNIT_MISMATCH", (identifier: string) => `primaryUnitId differs from Item.unitId: ${identifier}`, ); export const InvalidUnitConversionRateError = createDomainError( "InvalidUnitConversionRateError", "INBOUND_SHIPMENT_INVALID_UNIT_CONVERSION_RATE", (identifier: string) => `Unit conversion rate is zero or negative: ${identifier}`, ); export const ItemNotFoundError = createDomainError( "ItemNotFoundError", "INBOUND_SHIPMENT_ITEM_NOT_FOUND", (identifier: string) => `Referenced item does not exist: ${identifier}`, ); export const StorageLocationNotFoundError = createDomainError( "StorageLocationNotFoundError", "INBOUND_SHIPMENT_STORAGE_LOCATION_NOT_FOUND", (identifier: string) => `Referenced storage location does not exist: ${identifier}`, ); export const PurchaseOrderReceiptSyncFailedError = createDomainError( "PurchaseOrderReceiptSyncFailedError", "INBOUND_SHIPMENT_PURCHASE_ORDER_RECEIPT_SYNC_FAILED", (identifier: string) => `Purchase-order receipt status sync failed for the inbound shipment: ${identifier}`, ); export const ShipmentLineNotFoundError = createDomainError( "ShipmentLineNotFoundError", "INBOUND_SHIPMENT_SHIPMENT_LINE_NOT_FOUND", (identifier: string) => `Referenced inbound shipment line does not exist on the target shipment: ${identifier}`, );