Skip to content

Cloud Functions API Documentation

Overview

Cloud Functions provides serverless backend logic for operations requiring server-side validation, transactions, and external integrations.

Available Functions

Rental Management

  • createRental() - Create new rental
  • endRental() - Complete rental
  • cancelRental() - Cancel rental with reason
  • validateRental() - Validate booking request

Notifications

  • sendNotification() - Send email/SMS notifications
  • sendConfirmation() - Send booking confirmation
  • sendReminder() - Send rental reminders

Reporting

  • generateReport() - Generate statistics report
  • exportData() - Export data for analysis
  • calculateMetrics() - Compute key metrics

Admin Functions

  • setUserRole() - Assign user roles
  • createClubAdmin() - Create admin account
  • migrateData() - Data migration utilities

Deployment

Cloud Functions are deployed with Node.js 20 runtime to Firebase.

See API Overview for complete API reference.