|
|
@ -55,12 +55,17 @@ requestRoutes.get<Record<string, unknown>, RequestResultsResponse>(
|
|
|
|
case 'failed':
|
|
|
|
case 'failed':
|
|
|
|
statusFilter = [MediaRequestStatus.FAILED];
|
|
|
|
statusFilter = [MediaRequestStatus.FAILED];
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'completed':
|
|
|
|
|
|
|
|
case 'deleted':
|
|
|
|
|
|
|
|
statusFilter = [MediaRequestStatus.COMPLETED];
|
|
|
|
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
statusFilter = [
|
|
|
|
statusFilter = [
|
|
|
|
MediaRequestStatus.PENDING,
|
|
|
|
MediaRequestStatus.PENDING,
|
|
|
|
MediaRequestStatus.APPROVED,
|
|
|
|
MediaRequestStatus.APPROVED,
|
|
|
|
MediaRequestStatus.DECLINED,
|
|
|
|
MediaRequestStatus.DECLINED,
|
|
|
|
MediaRequestStatus.FAILED,
|
|
|
|
MediaRequestStatus.FAILED,
|
|
|
|
|
|
|
|
MediaRequestStatus.COMPLETED,
|
|
|
|
];
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -79,6 +84,9 @@ requestRoutes.get<Record<string, unknown>, RequestResultsResponse>(
|
|
|
|
MediaStatus.PARTIALLY_AVAILABLE,
|
|
|
|
MediaStatus.PARTIALLY_AVAILABLE,
|
|
|
|
];
|
|
|
|
];
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 'deleted':
|
|
|
|
|
|
|
|
mediaStatusFilter = [MediaStatus.DELETED];
|
|
|
|
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
mediaStatusFilter = [
|
|
|
|
mediaStatusFilter = [
|
|
|
|
MediaStatus.UNKNOWN,
|
|
|
|
MediaStatus.UNKNOWN,
|
|
|
@ -86,6 +94,7 @@ requestRoutes.get<Record<string, unknown>, RequestResultsResponse>(
|
|
|
|
MediaStatus.PROCESSING,
|
|
|
|
MediaStatus.PROCESSING,
|
|
|
|
MediaStatus.PARTIALLY_AVAILABLE,
|
|
|
|
MediaStatus.PARTIALLY_AVAILABLE,
|
|
|
|
MediaStatus.AVAILABLE,
|
|
|
|
MediaStatus.AVAILABLE,
|
|
|
|
|
|
|
|
MediaStatus.DELETED,
|
|
|
|
];
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|