aboutsummaryrefslogtreecommitdiff
path: root/src/msg.ts
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-02-20 12:16:17 -0500
committerDeterminant <ted.sybil@gmail.com>2019-02-20 12:16:17 -0500
commitf23552831c5f2310a3afa4b16198e06a7283a069 (patch)
treef53df430019d24951f78803c0ebb9bbf5f16b870 /src/msg.ts
parentfbfef737e35ed4943df55e84505640d6eb54c09d (diff)
manage auth by background.js; fix bugs
Diffstat (limited to 'src/msg.ts')
-rw-r--r--src/msg.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/msg.ts b/src/msg.ts
index daef6f9..c43e80f 100644
--- a/src/msg.ts
+++ b/src/msg.ts
@@ -9,7 +9,12 @@ export enum MsgType {
updateConfig = "updateConfig",
getConfig = "getConfig",
getGraphData = "getGraphData",
- clearCache = "clearCache"
+ clearCache = "clearCache",
+ fetchCalendars = "fetchCalendars",
+ fetchColors = "fetchColors",
+ login = "login",
+ logout = "logout",
+ getLoggedIn = "getLoggedIn"
}
function stringifyMsgType(opt: MsgType): string { return MsgType[opt]; }
@@ -25,6 +30,11 @@ function parseMsgType(s: string): MsgType {
case "getConfig": return MsgType.getConfig;
case "getGraphData": return MsgType.getGraphData;
case "clearCache": return MsgType.clearCache;
+ case "fetchCalendars": return MsgType.fetchCalendars;
+ case "fetchColors": return MsgType.fetchColors;
+ case "login": return MsgType.login;
+ case "logout": return MsgType.logout;
+ case "getLoggedIn": return MsgType.getLoggedIn;
default: console.error(`unknown MsgType: ${s}`);
}
}