careersgateway/wrangler.toml
King Omar ce771edec5 Add daily document expiry cron + update VAC fees to 2025-26
Document expiry notifications (NEW):
- Cloudflare Cron Trigger: runs daily at 9am AEST (23:00 UTC)
- Queries ALL users' documents expiring within 30 days
- Sends HTML email to Cgabijendra@gmail.com grouped by urgency:
  🔴 Already expired / 🟠 Within 7 days / 🟡 Within 30 days
- Includes client name, email, phone, expiry date in each row
- Also logs to Google Sheet for record

VAC Fees updated to 2025-26 (effective 1 July 2025):
- 189/190/491/186/187/494: $4,990 / $2,495 / $1,250
- 482 TSS: $3,270 / $1,635 / $1,635
- 500 Student: $750 / $375 / $375
- 485 Graduate: $1,985 / $995 / $500
- 820/309 Partner: $9,265 / $4,635
- 600 Visitor: $195
- Added "as at 1 July 2025" disclaimer with link to verify at DHA

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-10 14:46:00 +10:00

32 lines
873 B
TOML

name = "careersgateway"
main = "src/index.js"
compatibility_date = "2024-11-01"
compatibility_flags = ["nodejs_compat"]
[triggers]
# Run daily at 9am AEST (23:00 UTC previous day)
crons = ["0 23 * * *"]
[[custom_domains]]
pattern = "careers.bored.investments"
[[custom_domains]]
pattern = "careersgateway.com.au"
[[custom_domains]]
pattern = "www.careersgateway.com.au"
[[d1_databases]]
binding = "DB"
database_name = "careersgateway-db"
database_id = "d898aeb4-5568-48d5-ba20-4244e467b5de"
[[kv_namespaces]]
binding = "SESSIONS"
id = "5b40ceec3c6446409351805028e63453"
[vars]
SITE_NAME = "Careers Gateway"
CONTACT_EMAIL = "Cgabijendra@gmail.com"
KONPARE_KEY = "ViL_0iMMCdHrXNoEQKFm4P5092ISFcYzEyLmf5MFBKds7Hw5BmORaXu3oGsMB5Lk"
GOOGLE_SHEET_WEBHOOK = "https://script.google.com/macros/s/AKfycbxthk7AYT1Qaoh55-KlbUPmCTVAysH3O5Mv5GQ2_QV2Amh9j0eLvBBbRRCdFnM9Axoo/exec"