From 312af9bc10d9cf2982e66153fbc1cd949ad1f169 Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Thu, 16 Feb 2023 13:55:40 -0700 Subject: Add flag to connect over socket and retrieve action response, simple systemd service, and more actions --- src/constants.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/constants.js') diff --git a/src/constants.js b/src/constants.js index 1044d40..1f8a8e0 100644 --- a/src/constants.js +++ b/src/constants.js @@ -3,11 +3,14 @@ export const KILL_SIGNALS = ["SIGINT", "SIGTERM", "SIGQUIT"]; export const AGGIETIME_DOMAIN = "aggietimeultra.usu.edu"; export const AGGIETIME_URI = `https://${AGGIETIME_DOMAIN}`; +export const REFRESH_JWT_MS = 5 * 1000 * 60; export const LOGIN_PATH = "api/v1/auth/login"; export const LOGOUT_PATH = "api/v1/auth/logout"; export const CLOCKIN_PATH = "api/v1/positions/:position/clock_in"; +export const CLOCKOUT_PATH = "api/v1/positions/:position/clock_out"; export const USER_PATH = "api/v1/auth/get_user_info"; -export const REFRESH_JWT_MS = 5 * 1000 * 60; +export const OPEN_SHIFT_PATH = "api/v1/users/:anumber/open_shift"; +export const OPEN_SHIFT_EXP_SEC = 60; export const EXECUTION_SELECTOR = "input[type=hidden][name=execution]"; export const DUO_IFRAME_SELECTOR = "#duo_iframe"; -- cgit v1.2.3-70-g09d2