Function validateContentForDownload

  • Determines if the user is eligible for bulk download based on the size and item count of the content.

    Parameters

    • content: ContentForBulkDownload

      An object containing the content to be validated for download.

    • OptionalabortSignal: AbortSignal

      An optional AbortSignal to cancel the request.

    Returns Promise<{
        message?: string;
        valid: boolean;
    }>

    A Promise that resolves when the validation is complete.