From e3edcdbc8776129edf5a0da484e3ec7ec8562d69 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Sun, 13 Feb 2022 22:52:45 +0100 Subject: [PATCH] WIP --- index.js | 3 +++ parse/journey.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 15dc3ff85..1b66c6c10 100644 --- a/index.js +++ b/index.js @@ -859,6 +859,9 @@ const createClient = (profile, userAgent, opt = {}) => { const disableSubscription = _setSubscriptionStatus.bind(null, 'EXPIRED') const enableSubscription = _setSubscriptionStatus.bind(null, 'ACTIVE') + // todo: subscribeToJourneysInterval + // https://gist.github.com/derhuerst/d267ac179e49e927d38daa1a4bdf7760#file-6-subscriptions-http-L81-L132 + const subscribeToJourney = async (userId, channelIds, journeyRefreshToken, opt = {}) => { if (!isNonEmptyString(userId)) { throw new TypeError('userId must be a non-empty string') diff --git a/parse/journey.js b/parse/journey.js index 1c8aba307..33702c5d9 100644 --- a/parse/journey.js +++ b/parse/journey.js @@ -22,7 +22,7 @@ const parseScheduledDays = (sDaysB, year, profile) => { return res } -// todo: c.conSubscr (e.g. `F`) +// todo: c.conSubscr (e.g. `F`, `U`) – is this journey subscribed to? // todo: c.trfRes x vbb-parse-ticket // todo: c.sotRating, c.isSotCon, c.sotCtxt // todo: c.showARSLink