Spaces:
Sleeping
Sleeping
Download apps/api/src/services/notification/notification_string.ts from s-eto-hub/firecrawl-api: direct link, hf CLI and curl.
- Browser
- Download file 649 Bytes
-
https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/api/src/services/notification/notification_string.ts
- Command line
-
hf download hf://spaces/s-eto-hub/firecrawl-api/apps/api/src/services/notification/notification_string.ts
-
curl -L -o notification_string.ts https://huggingface.co/spaces/s-eto-hub/firecrawl-api/resolve/main/apps/api/src/services/notification/notification_string.ts
649 Bytes
| import { NotificationType } from "../../types"; | |
| // depending on the notification type, return the appropriate string | |
| export function getNotificationString( | |
| notificationType: NotificationType, | |
| ): string { | |
| switch (notificationType) { | |
| case NotificationType.RATE_LIMIT_REACHED: | |
| return "Rate limit reached"; | |
| case NotificationType.AUTO_RECHARGE_SUCCESS: | |
| return "Auto-recharge successful"; | |
| case NotificationType.AUTO_RECHARGE_FAILED: | |
| return "Auto-recharge failed"; | |
| case NotificationType.CONCURRENCY_LIMIT_REACHED: | |
| return "Concurrency limit reached"; | |
| default: | |
| return "Unknown notification type"; | |
| } | |
| } | |