Project

General

Profile

Actions

Improvement #30079

open

Improvement #29635: Code Review, Upgrade and changes in Prompt of Email Boat

Step 3 - Flight API Service

Added by Sachin Suresh 5 months ago. Updated 5 months ago.

Status:
Fixed not Tested
Priority:
Normal
Assignee:
Target version:
-
Start date:
11/18/2025
Due date:
11/26/2025 (about 5 months late)
% Done:

50%

Estimated time:
16:00 h
Spent time:
remarks:
DB Changes:
Keys & Permissions:
Areas Affected:
Files Changed:

Description

Task 6.1: Add Flight API credentials (FLIGHT_API_URL, etc.) to .env.

Task 6.2: Create services/flightApi.js.

Task 6.3: Implement getAuthToken (the 2-step /BasicAuth and /token calls).

Task 6.4: Add token caching (with tokenExpiryTime) to getAuthToken.

Task 6.5: Implement getSearchId to call /api/Common/GetSearchId.

Task 6.6: Implement initiateFlightSearch to call /api/Flight/Search with the payload and headers.

Task 6.7: Implement pollFlightResults to poll /api/Flight/Result until PolStatus: false.

Task 6.8: Create the searchFlights wrapper function to run the full (auth -> id -> search -> poll) pipeline.

Task 6.9: Integrate searchFlights into the processMailbox loop in index.js.

Actions #1

Updated by Sachin Suresh 5 months ago

  • Status changed from Assigned to In Progress
Actions #2

Updated by Sachin Suresh 5 months ago

  • Due date set to 11/20/2025
Actions #3

Updated by Sachin Suresh 5 months ago

  • Status changed from In Progress to On hold
  • % Done changed from 0 to 50

All api calls implemented and flight results new api added for testing and future needs

holding task to implement flight filters such as price,departure and arrival times

Actions #4

Updated by Sachin Suresh 5 months ago

  • Due date changed from 11/20/2025 to 11/26/2025
  • Status changed from On hold to Fixed not Tested
Actions

Also available in: Atom PDF