MCPcopy Create free account

hub / github.com/Eywek/tgvmax-bot / functions

Functions77 in github.com/Eywek/tgvmax-bot

↓ 39 callersMethodsend
(message: string)
backend/src/notify/interface.ts:8
↓ 6 callersFunctiongetHumanDate
(date: Date, withHour = true)
backend/src/utils/date.ts:29
↓ 5 callersMethodrequest
(endpoint: string, params: RequestInit)
backend/src/book/trainline.ts:268
↓ 4 callersMethoduniqueIdForTrip
(trip: Trip)
backend/src/book/trainline.ts:523
↓ 3 callersMethodcheckToken
()
backend/src/book/trainline.ts:306
↓ 3 callersFunctiongetDate
(date: Date)
backend/src/utils/date.ts:11
↓ 3 callersMethodlogin
()
backend/src/book/trainline.ts:282
↓ 3 callersMethodrun
()
backend/src/entities/cronTravel.entity.ts:59
↓ 2 callersMethodbookAndPay
( authentifier: TrainlineAuthentifier, trip: { segmentIds: string[], folderId: string, searchId: strin
backend/src/book/trainline.ts:322
↓ 2 callersMethoddelete
()
backend/src/entities/travel.entity.ts:66
↓ 2 callersMethoddeleteOld
()
backend/src/entities/travel.entity.ts:80
↓ 2 callersMethoddestroy
()
backend/src/book/interface.ts:12
↓ 2 callersMethodfilterTrips
(trips: Trip[], minDate: Date, maxDate: Date)
backend/src/book/trainline.ts:615
↓ 2 callersMethodformatTrip
(trip: SearchedTrip)
backend/src/book/trainline.ts:507
↓ 2 callersMethodfrom
()
backend/src/book/ouisncf.ts:39
↓ 2 callersFunctiongetHourFromDate
(date: Date)
backend/src/utils/date.ts:3
↓ 2 callersFunctiongetTimezoneOffset
(tz: string)
backend/src/utils/date.ts:20
↓ 2 callersMethodgetToken
()
backend/src/book/trainline.ts:261
↓ 2 callersMethodgetTrips
(maxDate: Date = new Date(this.travel.date))
backend/src/book/trainline.ts:534
↓ 2 callersMethodinsertAndCrawl
(args: QueryDeepPartialEntity<TravelEntity>)
backend/src/entities/travel.entity.ts:72
↓ 2 callersMethodreloadAll
()
backend/src/entities/cronTravel.entity.ts:123
↓ 2 callersMethodsearch
(input: { departure: Date departureStationId: string, arrivalStationId: string })
backend/src/book/trainline.ts:645
↓ 1 callersMethodbook
( authentifier: TrainlineAuthentifier, input: { segmentIds: string[] folderId: string
backend/src/book/trainline.ts:335
↓ 1 callersMethodcheck
()
backend/src/book/trainline.ts:727
↓ 1 callersMethodcheck
()
backend/src/book/ouisncf.ts:49
↓ 1 callersMethodconfirm
( authentifier: TrainlineAuthentifier, input: { paymentId: string, pnrIds: string[] } )
backend/src/book/trainline.ts:413
↓ 1 callersMethodconnect
()
backend/src/utils/database.ts:33
↓ 1 callersFunctioncreateBooker
(type: BookerType, travel: TravelEntity, notifier: NotifierInterface, credentials: Credentials)
backend/src/book/interface.ts:20
↓ 1 callersMethoddelete
(req: express.Request, res: express.Response)
backend/src/controllers/cronTravel.controller.ts:26
↓ 1 callersMethoddelete
(req: express.Request, res: express.Response)
backend/src/controllers/travel.controller.ts:42
↓ 1 callersMethoddelete
(req: express.Request, res: express.Response)
backend/src/controllers/notifier.controller.ts:26
↓ 1 callersMethoddelete
(req: express.Request, res: express.Response)
backend/src/controllers/booker.controller.ts:26
↓ 1 callersMethoddeleteById
(id: string | number)
backend/src/entities/cronTravel.entity.ts:108
↓ 1 callersMethoddestroy
()
backend/src/book/trainline.ts:490
↓ 1 callersMethodformatMessage
(tickets: Array<Ticket>)
backend/src/book/ouisncf.ts:70
↓ 1 callersMethodformatMessageAvailable
(trips: SearchedTrip[])
backend/src/book/trainline.ts:766
↓ 1 callersMethodformatMessageBooked
(trip: Trip, confirm: ConfirmResponse)
backend/src/book/trainline.ts:778
↓ 1 callersMethodinit
(travel: TravelEntity, notifier: NotifierInterface)
backend/src/entities/booker.entity.ts:34
↓ 1 callersMethodinit
()
backend/src/entities/travel.entity.ts:58
↓ 1 callersMethodinsertAndInit
(args: QueryDeepPartialEntity<CronTravelEntity>)
backend/src/entities/cronTravel.entity.ts:94
↓ 1 callersMethodlist
()
backend/src/book/trainline.ts:492
↓ 1 callersFunctionmain
()
backend/utils/fetch_trainline_stations.ts:6
↓ 1 callersMethodnext
()
backend/src/book/trainline.ts:555
↓ 1 callersMethodpayment
( authentifier: TrainlineAuthentifier, input: { pnrIds: string[] } )
backend/src/book/trainline.ts:367
↓ 1 callersMethodsearchNext
(search: SearchTrainResponse['search'] & { currentDate: Date departure: Date departureStationId: s
backend/src/book/trainline.ts:682
↓ 1 callersMethodstart
()
backend/src/notify/telegram.ts:30
MethodbookJourney
(req: express.Request, res: express.Response)
backend/src/controllers/travel.controller.ts:99
Methodconstructor
(credentials: Credentials)
backend/src/book/trainline.ts:256
Methodconstructor
(travel: TrainlineSearcher['travel'], credentials: TrainlineAuthentifier | Credentials)
backend/src/book/trainline.ts:472
Methodconstructor
(travel: TravelEntity, notifier: NotifierInterface, credentials: Credentials)
backend/src/book/trainline.ts:709
Methodconstructor
(travel: TravelEntity, notifier: NotifierInterface)
backend/src/book/ouisncf.ts:23
Methodconstructor
()
backend/src/utils/database.ts:12
Methodconstructor
(credentials: Credentials)
backend/src/notify/telegram.ts:26
Methodconstructor
(credentials: Credentials)
backend/src/notify/sms.ts:7
Methodcreate
(req: express.Request, res: express.Response)
backend/src/controllers/cronTravel.controller.ts:19
Methodcreate
(req: express.Request, res: express.Response)
backend/src/controllers/travel.controller.ts:35
Methodcreate
(req: express.Request, res: express.Response)
backend/src/controllers/notifier.controller.ts:21
Methodcreate
(req: express.Request, res: express.Response)
backend/src/controllers/booker.controller.ts:21
Methoddestroy
()
backend/src/book/trainline.ts:722
Methoddestroy
()
backend/src/book/ouisncf.ts:35
Methodinit
()
backend/src/entities/notifier.entity.ts:40
Methodlist
(req: express.Request, res: express.Response)
backend/src/controllers/cronTravel.controller.ts:14
Methodlist
(req: express.Request, res: express.Response)
backend/src/controllers/travel.controller.ts:23
Methodlist
(req: express.Request, res: express.Response)
backend/src/controllers/notifier.controller.ts:16
Methodlist
(req: express.Request, res: express.Response)
backend/src/controllers/booker.controller.ts:16
MethodlistJourneys
(req: express.Request, res: express.Response)
backend/src/controllers/travel.controller.ts:49
MethodreloadCronTravel
(id: number)
backend/src/entities/cronTravel.entity.ts:118
Methodrouter
()
backend/src/controllers/cronTravel.controller.ts:6
Methodrouter
()
backend/src/controllers/travel.controller.ts:13
Methodrouter
()
backend/src/controllers/notifier.controller.ts:8
Methodrouter
()
backend/src/controllers/booker.controller.ts:8
Methodsend
(message: string)
backend/src/notify/telegram.ts:110
Methodsend
(message: string)
backend/src/notify/sms.ts:11
Methodto
()
backend/src/book/ouisncf.ts:44
MethodtoJSON
()
backend/src/entities/booker.entity.ts:30
MethodtoJSON
()
backend/src/entities/notifier.entity.ts:36
Methodtransform
({ trips, lastDate }: AsyncIteratorResult<ReturnType<TrainlineSearcher['getTrips']>>, encoding, next)
backend/src/controllers/travel.controller.ts:85