From c1ab0669d1f7d8d807537346a863b173c182dfce Mon Sep 17 00:00:00 2001 From: josh97josh Date: Wed, 7 Feb 2018 18:28:24 +0000 Subject: added UUID --- src/db/db.sql | 832 +++++++++++++++++++++++----------------------------------- 1 file changed, 334 insertions(+), 498 deletions(-) diff --git a/src/db/db.sql b/src/db/db.sql index 771d362..45c2338 100644 --- a/src/db/db.sql +++ b/src/db/db.sql @@ -5,7 +5,7 @@ -- Dumped from database version 10.1 -- Dumped by pg_dump version 10.0 --- Started on 2018-02-07 00:18:25 GMT +-- Started on 2018-02-07 18:20:04 GMT SET statement_timeout = 0; SET lock_timeout = 0; @@ -17,7 +17,7 @@ SET client_min_messages = warning; SET row_security = off; -- --- TOC entry 9 (class 2615 OID 17274) +-- TOC entry 10 (class 2615 OID 17274) -- Name: project_permissions; Type: SCHEMA; Schema: -; Owner: joshlee -- @@ -27,7 +27,7 @@ CREATE SCHEMA project_permissions; ALTER SCHEMA project_permissions OWNER TO joshlee; -- --- TOC entry 7 (class 2615 OID 16582) +-- TOC entry 8 (class 2615 OID 16582) -- Name: user_permissions; Type: SCHEMA; Schema: -; Owner: joshlee -- @@ -45,7 +45,7 @@ CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; -- --- TOC entry 2727 (class 0 OID 0) +-- TOC entry 2776 (class 0 OID 0) -- Dependencies: 1 -- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -- @@ -53,10 +53,27 @@ CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog; COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language'; +-- +-- TOC entry 2 (class 3079 OID 17619) +-- Name: pgcrypto; Type: EXTENSION; Schema: -; Owner: +-- + +CREATE EXTENSION IF NOT EXISTS pgcrypto WITH SCHEMA public; + + +-- +-- TOC entry 2777 (class 0 OID 0) +-- Dependencies: 2 +-- Name: EXTENSION pgcrypto; Type: COMMENT; Schema: -; Owner: +-- + +COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions'; + + SET search_path = project_permissions, pg_catalog; -- --- TOC entry 233 (class 1255 OID 17515) +-- TOC entry 240 (class 1255 OID 17515) -- Name: add_permission(); Type: FUNCTION; Schema: project_permissions; Owner: joshlee -- @@ -80,7 +97,7 @@ $_$; ALTER FUNCTION project_permissions.add_permission() OWNER TO joshlee; -- --- TOC entry 241 (class 1255 OID 17371) +-- TOC entry 254 (class 1255 OID 17371) -- Name: check_permission(text, text, text); Type: FUNCTION; Schema: project_permissions; Owner: joshlee -- @@ -100,7 +117,7 @@ $_$; ALTER FUNCTION project_permissions.check_permission(username text, permission text, project text) OWNER TO joshlee; -- --- TOC entry 237 (class 1255 OID 17281) +-- TOC entry 247 (class 1255 OID 17281) -- Name: prevent_edit(); Type: FUNCTION; Schema: project_permissions; Owner: joshlee -- @@ -121,7 +138,7 @@ $$; ALTER FUNCTION project_permissions.prevent_edit() OWNER TO joshlee; -- --- TOC entry 250 (class 1255 OID 17279) +-- TOC entry 275 (class 1255 OID 17279) -- Name: prevent_owner_delete(); Type: FUNCTION; Schema: project_permissions; Owner: joshlee -- @@ -153,7 +170,7 @@ $_$; ALTER FUNCTION project_permissions.prevent_owner_delete() OWNER TO joshlee; -- --- TOC entry 244 (class 1255 OID 17280) +-- TOC entry 262 (class 1255 OID 17280) -- Name: prevent_undefined_project_grant(); Type: FUNCTION; Schema: project_permissions; Owner: joshlee -- @@ -187,7 +204,7 @@ ALTER FUNCTION project_permissions.prevent_undefined_project_grant() OWNER TO jo SET search_path = public, pg_catalog; -- --- TOC entry 235 (class 1255 OID 17312) +-- TOC entry 245 (class 1255 OID 17312) -- Name: give_owner_permissions(); Type: FUNCTION; Schema: public; Owner: joshlee -- @@ -218,7 +235,7 @@ $_$; ALTER FUNCTION public.give_owner_permissions() OWNER TO joshlee; -- --- TOC entry 254 (class 1255 OID 17577) +-- TOC entry 286 (class 1255 OID 17577) -- Name: set_user_permissions(); Type: FUNCTION; Schema: public; Owner: joshlee -- @@ -236,7 +253,7 @@ ALTER FUNCTION public.set_user_permissions() OWNER TO joshlee; SET search_path = user_permissions, pg_catalog; -- --- TOC entry 245 (class 1255 OID 17579) +-- TOC entry 269 (class 1255 OID 17579) -- Name: add_permission(); Type: FUNCTION; Schema: user_permissions; Owner: joshlee -- @@ -254,7 +271,7 @@ $_$; ALTER FUNCTION user_permissions.add_permission() OWNER TO joshlee; -- --- TOC entry 257 (class 1255 OID 17370) +-- TOC entry 292 (class 1255 OID 17370) -- Name: check_permission(text, text); Type: FUNCTION; Schema: user_permissions; Owner: joshlee -- @@ -271,7 +288,7 @@ $_$; ALTER FUNCTION user_permissions.check_permission(username text, permission text) OWNER TO joshlee; -- --- TOC entry 240 (class 1255 OID 16907) +-- TOC entry 251 (class 1255 OID 16907) -- Name: prevent_admin_delete(); Type: FUNCTION; Schema: user_permissions; Owner: joshlee -- @@ -290,7 +307,7 @@ $$; ALTER FUNCTION user_permissions.prevent_admin_delete() OWNER TO joshlee; -- --- TOC entry 242 (class 1255 OID 16911) +-- TOC entry 255 (class 1255 OID 16911) -- Name: prevent_edit(); Type: FUNCTION; Schema: user_permissions; Owner: joshlee -- @@ -308,7 +325,7 @@ $$; ALTER FUNCTION user_permissions.prevent_edit() OWNER TO joshlee; -- --- TOC entry 249 (class 1255 OID 16924) +-- TOC entry 274 (class 1255 OID 16924) -- Name: prevent_undefined_grant(); Type: FUNCTION; Schema: user_permissions; Owner: joshlee -- @@ -327,7 +344,7 @@ $$; ALTER FUNCTION user_permissions.prevent_undefined_grant() OWNER TO joshlee; -- --- TOC entry 255 (class 1255 OID 16726) +-- TOC entry 288 (class 1255 OID 16726) -- Name: userexists(text); Type: FUNCTION; Schema: user_permissions; Owner: joshlee -- @@ -349,7 +366,7 @@ ALTER FUNCTION user_permissions.userexists(usertocheck text) OWNER TO joshlee; SET search_path = public, pg_catalog; -- --- TOC entry 220 (class 1259 OID 17314) +-- TOC entry 219 (class 1259 OID 17314) -- Name: af_id_seq; Type: SEQUENCE; Schema: public; Owner: joshlee -- @@ -370,7 +387,7 @@ SET default_tablespace = ''; SET default_with_oids = false; -- --- TOC entry 211 (class 1259 OID 17030) +-- TOC entry 210 (class 1259 OID 17030) -- Name: add_files; Type: TABLE; Schema: project_permissions; Owner: joshlee -- @@ -387,7 +404,7 @@ ALTER TABLE add_files OWNER TO joshlee; SET search_path = public, pg_catalog; -- --- TOC entry 221 (class 1259 OID 17317) +-- TOC entry 220 (class 1259 OID 17317) -- Name: ef_id_seq; Type: SEQUENCE; Schema: public; Owner: joshlee -- @@ -404,7 +421,7 @@ ALTER TABLE ef_id_seq OWNER TO joshlee; SET search_path = project_permissions, pg_catalog; -- --- TOC entry 212 (class 1259 OID 17086) +-- TOC entry 211 (class 1259 OID 17086) -- Name: edit_files; Type: TABLE; Schema: project_permissions; Owner: joshlee -- @@ -419,7 +436,7 @@ CREATE TABLE edit_files ( ALTER TABLE edit_files OWNER TO joshlee; -- --- TOC entry 231 (class 1259 OID 17475) +-- TOC entry 230 (class 1259 OID 17475) -- Name: project_permissions_list; Type: TABLE; Schema: project_permissions; Owner: joshlee -- @@ -438,7 +455,7 @@ ALTER TABLE project_permissions_list OWNER TO joshlee; SET search_path = public, pg_catalog; -- --- TOC entry 222 (class 1259 OID 17320) +-- TOC entry 221 (class 1259 OID 17320) -- Name: rf_id_seq; Type: SEQUENCE; Schema: public; Owner: joshlee -- @@ -455,7 +472,7 @@ ALTER TABLE rf_id_seq OWNER TO joshlee; SET search_path = project_permissions, pg_catalog; -- --- TOC entry 213 (class 1259 OID 17110) +-- TOC entry 212 (class 1259 OID 17110) -- Name: remove_files; Type: TABLE; Schema: project_permissions; Owner: joshlee -- @@ -472,7 +489,7 @@ ALTER TABLE remove_files OWNER TO joshlee; SET search_path = public, pg_catalog; -- --- TOC entry 224 (class 1259 OID 17326) +-- TOC entry 223 (class 1259 OID 17326) -- Name: vf_id_seq; Type: SEQUENCE; Schema: public; Owner: joshlee -- @@ -489,7 +506,7 @@ ALTER TABLE vf_id_seq OWNER TO joshlee; SET search_path = project_permissions, pg_catalog; -- --- TOC entry 214 (class 1259 OID 17158) +-- TOC entry 213 (class 1259 OID 17158) -- Name: view_files; Type: TABLE; Schema: project_permissions; Owner: joshlee -- @@ -506,45 +523,7 @@ ALTER TABLE view_files OWNER TO joshlee; SET search_path = public, pg_catalog; -- --- TOC entry 200 (class 1259 OID 16447) --- Name: folder; Type: TABLE; Schema: public; Owner: joshlee --- - -CREATE TABLE folder ( - object_id integer NOT NULL, - folder_name pg_catalog.text DEFAULT '"new folder"'::pg_catalog.text -); - - -ALTER TABLE folder OWNER TO joshlee; - --- --- TOC entry 199 (class 1259 OID 16445) --- Name: Folder _id_seq; Type: SEQUENCE; Schema: public; Owner: joshlee --- - -CREATE SEQUENCE "Folder _id_seq" - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - -ALTER TABLE "Folder _id_seq" OWNER TO joshlee; - --- --- TOC entry 2732 (class 0 OID 0) --- Dependencies: 199 --- Name: Folder _id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: joshlee --- - -ALTER SEQUENCE "Folder _id_seq" OWNED BY folder.object_id; - - --- --- TOC entry 225 (class 1259 OID 17329) +-- TOC entry 224 (class 1259 OID 17329) -- Name: cp_id_seq; Type: SEQUENCE; Schema: public; Owner: joshlee -- @@ -559,7 +538,7 @@ CREATE SEQUENCE cp_id_seq ALTER TABLE cp_id_seq OWNER TO joshlee; -- --- TOC entry 226 (class 1259 OID 17332) +-- TOC entry 225 (class 1259 OID 17332) -- Name: cu_id_seq; Type: SEQUENCE; Schema: public; Owner: joshlee -- @@ -574,26 +553,25 @@ CREATE SEQUENCE cu_id_seq ALTER TABLE cu_id_seq OWNER TO joshlee; -- --- TOC entry 210 (class 1259 OID 16969) +-- TOC entry 209 (class 1259 OID 16969) -- Name: dirent; Type: TABLE; Schema: public; Owner: joshlee -- CREATE TABLE dirent ( - object_id integer NOT NULL, - super_folder integer, - project_name pg_catalog.text + project_name pg_catalog.text, + "UUID" uuid DEFAULT gen_random_uuid() NOT NULL, + super_folder uuid ); ALTER TABLE dirent OWNER TO joshlee; -- --- TOC entry 209 (class 1259 OID 16967) --- Name: dirent_object_id_seq; Type: SEQUENCE; Schema: public; Owner: joshlee +-- TOC entry 226 (class 1259 OID 17335) +-- Name: eu_id_seq; Type: SEQUENCE; Schema: public; Owner: joshlee -- -CREATE SEQUENCE dirent_object_id_seq - AS integer +CREATE SEQUENCE eu_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE @@ -601,31 +579,20 @@ CREATE SEQUENCE dirent_object_id_seq CACHE 1; -ALTER TABLE dirent_object_id_seq OWNER TO joshlee; - --- --- TOC entry 2734 (class 0 OID 0) --- Dependencies: 209 --- Name: dirent_object_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: joshlee --- - -ALTER SEQUENCE dirent_object_id_seq OWNED BY dirent.object_id; - +ALTER TABLE eu_id_seq OWNER TO joshlee; -- --- TOC entry 227 (class 1259 OID 17335) --- Name: eu_id_seq; Type: SEQUENCE; Schema: public; Owner: joshlee +-- TOC entry 200 (class 1259 OID 16447) +-- Name: folder; Type: TABLE; Schema: public; Owner: joshlee -- -CREATE SEQUENCE eu_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; +CREATE TABLE folder ( + folder_name pg_catalog.text DEFAULT '"new folder"'::pg_catalog.text, + "UUID" uuid NOT NULL +); -ALTER TABLE eu_id_seq OWNER TO joshlee; +ALTER TABLE folder OWNER TO joshlee; -- -- TOC entry 201 (class 1259 OID 16494) @@ -633,9 +600,8 @@ ALTER TABLE eu_id_seq OWNER TO joshlee; -- CREATE TABLE image ( - object_id integer NOT NULL, image_name pg_catalog.text, - "UUID" uuid + "UUID" uuid NOT NULL ); @@ -672,14 +638,16 @@ CREATE SEQUENCE permission_seq ALTER TABLE permission_seq OWNER TO joshlee; -- --- TOC entry 198 (class 1259 OID 16396) +-- TOC entry 199 (class 1259 OID 16396) -- Name: project; Type: TABLE; Schema: public; Owner: joshlee -- CREATE TABLE project ( project_name pg_catalog.text NOT NULL, - "date created" date DEFAULT CURRENT_DATE, - owner pg_catalog.text NOT NULL + owner pg_catalog.text NOT NULL, + public_metadata json, + private_metadata json, + admin_metadata json ); @@ -701,7 +669,7 @@ CREATE SEQUENCE project_name ALTER TABLE project_name OWNER TO joshlee; -- --- TOC entry 223 (class 1259 OID 17323) +-- TOC entry 222 (class 1259 OID 17323) -- Name: rp_id_seq; Type: SEQUENCE; Schema: public; Owner: joshlee -- @@ -716,7 +684,7 @@ CREATE SEQUENCE rp_id_seq ALTER TABLE rp_id_seq OWNER TO joshlee; -- --- TOC entry 228 (class 1259 OID 17338) +-- TOC entry 227 (class 1259 OID 17338) -- Name: ru_id_seq; Type: SEQUENCE; Schema: public; Owner: joshlee -- @@ -736,9 +704,8 @@ ALTER TABLE ru_id_seq OWNER TO joshlee; -- CREATE TABLE text ( - object_id integer NOT NULL, text_name pg_catalog.text, - "UUID" uuid + "UUID" uuid NOT NULL ); @@ -751,7 +718,11 @@ ALTER TABLE text OWNER TO joshlee; CREATE TABLE "user" ( username pg_catalog.text NOT NULL, - password character(32) + password character(32), + public_user_metadata json, + private_user_metadata json, + public_admin_metadata json, + private_admin_metadata json ); @@ -773,7 +744,65 @@ CREATE SEQUENCE user_id_seq ALTER TABLE user_id_seq OWNER TO joshlee; -- --- TOC entry 229 (class 1259 OID 17341) +-- TOC entry 233 (class 1259 OID 17603) +-- Name: view_current_user; Type: VIEW; Schema: public; Owner: joshlee +-- + +CREATE VIEW view_current_user AS + SELECT "user".username, + "user".public_user_metadata, + "user".private_user_metadata, + "user".public_admin_metadata + FROM "user"; + + +ALTER TABLE view_current_user OWNER TO joshlee; + +-- +-- TOC entry 234 (class 1259 OID 17611) +-- Name: view_projects_public; Type: VIEW; Schema: public; Owner: joshlee +-- + +CREATE VIEW view_projects_public AS + SELECT project.project_name, + project.owner, + project.public_metadata + FROM project; + + +ALTER TABLE view_projects_public OWNER TO joshlee; + +-- +-- TOC entry 235 (class 1259 OID 17615) +-- Name: view_projects_regular; Type: VIEW; Schema: public; Owner: joshlee +-- + +CREATE VIEW view_projects_regular AS + SELECT project.project_name, + project.owner, + project.public_metadata, + project.private_metadata + FROM project; + + +ALTER TABLE view_projects_regular OWNER TO joshlee; + +-- +-- TOC entry 232 (class 1259 OID 17599) +-- Name: view_users_public; Type: VIEW; Schema: public; Owner: joshlee +-- + +CREATE VIEW view_users_public AS + SELECT "user".username, + "user".public_user_metadata, + "user".public_admin_metadata + FROM "user"; + + +ALTER TABLE view_users_public OWNER TO joshlee; + +-- +-- TOC entry 228 (class 1259 OID 17341) -- Name: vp_id_seq; Type: SEQUENCE; Schema: public; Owner: joshlee -- @@ -788,7 +817,7 @@ CREATE SEQUENCE vp_id_seq ALTER TABLE vp_id_seq OWNER TO joshlee; -- --- TOC entry 230 (class 1259 OID 17344) +-- TOC entry 229 (class 1259 OID 17344) -- Name: vu_id_seq; Type: SEQUENCE; Schema: public; Owner: joshlee -- @@ -805,7 +834,7 @@ ALTER TABLE vu_id_seq OWNER TO joshlee; SET search_path = user_permissions, pg_catalog; -- --- TOC entry 215 (class 1259 OID 17182) +-- TOC entry 214 (class 1259 OID 17182) -- Name: create_project; Type: TABLE; Schema: user_permissions; Owner: joshlee -- @@ -833,7 +862,7 @@ CREATE TABLE create_users ( ALTER TABLE create_users OWNER TO joshlee; -- --- TOC entry 216 (class 1259 OID 17201) +-- TOC entry 215 (class 1259 OID 17201) -- Name: edit_users; Type: TABLE; Schema: user_permissions; Owner: joshlee -- @@ -847,7 +876,7 @@ CREATE TABLE edit_users ( ALTER TABLE edit_users OWNER TO joshlee; -- --- TOC entry 217 (class 1259 OID 17220) +-- TOC entry 216 (class 1259 OID 17220) -- Name: remove_users; Type: TABLE; Schema: user_permissions; Owner: joshlee -- @@ -861,7 +890,7 @@ CREATE TABLE remove_users ( ALTER TABLE remove_users OWNER TO joshlee; -- --- TOC entry 232 (class 1259 OID 17533) +-- TOC entry 231 (class 1259 OID 17533) -- Name: user_permissions_list; Type: TABLE; Schema: user_permissions; Owner: joshlee -- @@ -879,7 +908,7 @@ CREATE TABLE user_permissions_list ( ALTER TABLE user_permissions_list OWNER TO joshlee; -- --- TOC entry 218 (class 1259 OID 17233) +-- TOC entry 217 (class 1259 OID 17233) -- Name: view_projects; Type: TABLE; Schema: user_permissions; Owner: joshlee -- @@ -893,7 +922,7 @@ CREATE TABLE view_projects ( ALTER TABLE view_projects OWNER TO joshlee; -- --- TOC entry 219 (class 1259 OID 17246) +-- TOC entry 218 (class 1259 OID 17246) -- Name: view_users; Type: TABLE; Schema: user_permissions; Owner: joshlee -- @@ -906,83 +935,60 @@ CREATE TABLE view_users ( ALTER TABLE view_users OWNER TO joshlee; -SET search_path = public, pg_catalog; - --- --- TOC entry 2426 (class 2604 OID 16972) --- Name: dirent object_id; Type: DEFAULT; Schema: public; Owner: joshlee --- - -ALTER TABLE ONLY dirent ALTER COLUMN object_id SET DEFAULT nextval('dirent_object_id_seq'::regclass); - - --- --- TOC entry 2423 (class 2604 OID 16450) --- Name: folder object_id; Type: DEFAULT; Schema: public; Owner: joshlee --- - -ALTER TABLE ONLY folder ALTER COLUMN object_id SET DEFAULT nextval('"Folder _id_seq"'::regclass); - - SET search_path = project_permissions, pg_catalog; -- --- TOC entry 2697 (class 0 OID 17030) --- Dependencies: 211 +-- TOC entry 2746 (class 0 OID 17030) +-- Dependencies: 210 -- Data for Name: add_files; Type: TABLE DATA; Schema: project_permissions; Owner: joshlee -- -INSERT INTO add_files VALUES ('josh', 35, NULL, 'project 1'); -- --- TOC entry 2698 (class 0 OID 17086) --- Dependencies: 212 +-- TOC entry 2747 (class 0 OID 17086) +-- Dependencies: 211 -- Data for Name: edit_files; Type: TABLE DATA; Schema: project_permissions; Owner: joshlee -- -INSERT INTO edit_files VALUES ('josh', 30, NULL, 'project 1'); -- --- TOC entry 2717 (class 0 OID 17475) --- Dependencies: 231 +-- TOC entry 2766 (class 0 OID 17475) +-- Dependencies: 230 -- Data for Name: project_permissions_list; Type: TABLE DATA; Schema: project_permissions; Owner: joshlee -- -INSERT INTO project_permissions_list VALUES ('josh', 35, 30, 31, 22, 'project 1'); -- --- TOC entry 2699 (class 0 OID 17110) --- Dependencies: 213 +-- TOC entry 2748 (class 0 OID 17110) +-- Dependencies: 212 -- Data for Name: remove_files; Type: TABLE DATA; Schema: project_permissions; Owner: joshlee -- -INSERT INTO remove_files VALUES ('josh', 31, NULL, 'project 1'); -- --- TOC entry 2700 (class 0 OID 17158) --- Dependencies: 214 +-- TOC entry 2749 (class 0 OID 17158) +-- Dependencies: 213 -- Data for Name: view_files; Type: TABLE DATA; Schema: project_permissions; Owner: joshlee -- -INSERT INTO view_files VALUES ('josh', 22, NULL, 'project 1'); SET search_path = public, pg_catalog; -- --- TOC entry 2696 (class 0 OID 16969) --- Dependencies: 210 +-- TOC entry 2745 (class 0 OID 16969) +-- Dependencies: 209 -- Data for Name: dirent; Type: TABLE DATA; Schema: public; Owner: joshlee -- -- --- TOC entry 2686 (class 0 OID 16447) +-- TOC entry 2736 (class 0 OID 16447) -- Dependencies: 200 -- Data for Name: folder; Type: TABLE DATA; Schema: public; Owner: joshlee -- @@ -990,7 +996,7 @@ SET search_path = public, pg_catalog; -- --- TOC entry 2687 (class 0 OID 16494) +-- TOC entry 2737 (class 0 OID 16494) -- Dependencies: 201 -- Data for Name: image; Type: TABLE DATA; Schema: public; Owner: joshlee -- @@ -998,16 +1004,15 @@ SET search_path = public, pg_catalog; -- --- TOC entry 2684 (class 0 OID 16396) --- Dependencies: 198 +-- TOC entry 2735 (class 0 OID 16396) +-- Dependencies: 199 -- Data for Name: project; Type: TABLE DATA; Schema: public; Owner: joshlee -- -INSERT INTO project VALUES ('project 1', '2018-02-06', 'josh'); -- --- TOC entry 2688 (class 0 OID 16502) +-- TOC entry 2738 (class 0 OID 16502) -- Dependencies: 202 -- Data for Name: text; Type: TABLE DATA; Schema: public; Owner: joshlee -- @@ -1015,22 +1020,22 @@ INSERT INTO project VALUES ('project 1', '2018-02-06', 'josh'); -- --- TOC entry 2689 (class 0 OID 16552) +-- TOC entry 2739 (class 0 OID 16552) -- Dependencies: 203 -- Data for Name: user; Type: TABLE DATA; Schema: public; Owner: joshlee -- -INSERT INTO "user" VALUES ('admin', '21232f297a57a5a743894a0e4a801fc3'); -INSERT INTO "user" VALUES ('josh', 'f94adcc3ddda04a8f34928d862f404b4'); -INSERT INTO "user" VALUES ('user2', '7e58d63b60197ceb55a1c487989a3720'); -INSERT INTO "user" VALUES ('user3', '92877af70a45fd6a2ed7fe81e1236b78'); +INSERT INTO "user" VALUES ('admin', '21232f297a57a5a743894a0e4a801fc3', NULL, NULL, NULL, NULL); +INSERT INTO "user" VALUES ('josh', 'f94adcc3ddda04a8f34928d862f404b4', NULL, NULL, NULL, NULL); +INSERT INTO "user" VALUES ('user2', '7e58d63b60197ceb55a1c487989a3720', NULL, NULL, NULL, NULL); +INSERT INTO "user" VALUES ('user3', '92877af70a45fd6a2ed7fe81e1236b78', NULL, NULL, NULL, NULL); SET search_path = user_permissions, pg_catalog; -- --- TOC entry 2701 (class 0 OID 17182) --- Dependencies: 215 +-- TOC entry 2750 (class 0 OID 17182) +-- Dependencies: 214 -- Data for Name: create_project; Type: TABLE DATA; Schema: user_permissions; Owner: joshlee -- @@ -1038,7 +1043,7 @@ INSERT INTO create_project VALUES ('admin', 1, 1); -- --- TOC entry 2692 (class 0 OID 16887) +-- TOC entry 2742 (class 0 OID 16887) -- Dependencies: 206 -- Data for Name: create_users; Type: TABLE DATA; Schema: user_permissions; Owner: joshlee -- @@ -1047,8 +1052,8 @@ INSERT INTO create_users VALUES ('admin', 1, 1); -- --- TOC entry 2702 (class 0 OID 17201) --- Dependencies: 216 +-- TOC entry 2751 (class 0 OID 17201) +-- Dependencies: 215 -- Data for Name: edit_users; Type: TABLE DATA; Schema: user_permissions; Owner: joshlee -- @@ -1056,8 +1061,8 @@ INSERT INTO edit_users VALUES ('admin', 1, 1); -- --- TOC entry 2703 (class 0 OID 17220) --- Dependencies: 217 +-- TOC entry 2752 (class 0 OID 17220) +-- Dependencies: 216 -- Data for Name: remove_users; Type: TABLE DATA; Schema: user_permissions; Owner: joshlee -- @@ -1065,8 +1070,8 @@ INSERT INTO remove_users VALUES ('admin', 1, 1); -- --- TOC entry 2718 (class 0 OID 17533) --- Dependencies: 232 +-- TOC entry 2767 (class 0 OID 17533) +-- Dependencies: 231 -- Data for Name: user_permissions_list; Type: TABLE DATA; Schema: user_permissions; Owner: joshlee -- @@ -1076,8 +1081,8 @@ INSERT INTO user_permissions_list VALUES ('user3', NULL, NULL, NULL, NULL, NULL, -- --- TOC entry 2704 (class 0 OID 17233) --- Dependencies: 218 +-- TOC entry 2753 (class 0 OID 17233) +-- Dependencies: 217 -- Data for Name: view_projects; Type: TABLE DATA; Schema: user_permissions; Owner: joshlee -- @@ -1085,8 +1090,8 @@ INSERT INTO view_projects VALUES ('admin', 1, 1); -- --- TOC entry 2705 (class 0 OID 17246) --- Dependencies: 219 +-- TOC entry 2754 (class 0 OID 17246) +-- Dependencies: 218 -- Data for Name: view_users; Type: TABLE DATA; Schema: user_permissions; Owner: joshlee -- @@ -1096,26 +1101,17 @@ INSERT INTO view_users VALUES ('admin', 1, 1); SET search_path = public, pg_catalog; -- --- TOC entry 2746 (class 0 OID 0) --- Dependencies: 199 --- Name: Folder _id_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee --- - -SELECT pg_catalog.setval('"Folder _id_seq"', 17, true); - - --- --- TOC entry 2747 (class 0 OID 0) --- Dependencies: 220 +-- TOC entry 2779 (class 0 OID 0) +-- Dependencies: 219 -- Name: af_id_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee -- -SELECT pg_catalog.setval('af_id_seq', 36, true); +SELECT pg_catalog.setval('af_id_seq', 37, true); -- --- TOC entry 2748 (class 0 OID 0) --- Dependencies: 225 +-- TOC entry 2780 (class 0 OID 0) +-- Dependencies: 224 -- Name: cp_id_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee -- @@ -1123,8 +1119,8 @@ SELECT pg_catalog.setval('cp_id_seq', 5, true); -- --- TOC entry 2749 (class 0 OID 0) --- Dependencies: 226 +-- TOC entry 2781 (class 0 OID 0) +-- Dependencies: 225 -- Name: cu_id_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee -- @@ -1132,26 +1128,17 @@ SELECT pg_catalog.setval('cu_id_seq', 2, true); -- --- TOC entry 2750 (class 0 OID 0) --- Dependencies: 209 --- Name: dirent_object_id_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee --- - -SELECT pg_catalog.setval('dirent_object_id_seq', 60, true); - - --- --- TOC entry 2751 (class 0 OID 0) --- Dependencies: 221 +-- TOC entry 2782 (class 0 OID 0) +-- Dependencies: 220 -- Name: ef_id_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee -- -SELECT pg_catalog.setval('ef_id_seq', 31, true); +SELECT pg_catalog.setval('ef_id_seq', 32, true); -- --- TOC entry 2752 (class 0 OID 0) --- Dependencies: 227 +-- TOC entry 2783 (class 0 OID 0) +-- Dependencies: 226 -- Name: eu_id_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee -- @@ -1159,7 +1146,7 @@ SELECT pg_catalog.setval('eu_id_seq', 3, true); -- --- TOC entry 2753 (class 0 OID 0) +-- TOC entry 2784 (class 0 OID 0) -- Dependencies: 208 -- Name: permission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee -- @@ -1168,7 +1155,7 @@ SELECT pg_catalog.setval('permission_id_seq', 145, true); -- --- TOC entry 2754 (class 0 OID 0) +-- TOC entry 2785 (class 0 OID 0) -- Dependencies: 207 -- Name: permission_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee -- @@ -1177,7 +1164,7 @@ SELECT pg_catalog.setval('permission_seq', 3, true); -- --- TOC entry 2755 (class 0 OID 0) +-- TOC entry 2786 (class 0 OID 0) -- Dependencies: 204 -- Name: project_name; Type: SEQUENCE SET; Schema: public; Owner: joshlee -- @@ -1186,17 +1173,17 @@ SELECT pg_catalog.setval('project_name', 1, true); -- --- TOC entry 2756 (class 0 OID 0) --- Dependencies: 222 +-- TOC entry 2787 (class 0 OID 0) +-- Dependencies: 221 -- Name: rf_id_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee -- -SELECT pg_catalog.setval('rf_id_seq', 32, true); +SELECT pg_catalog.setval('rf_id_seq', 33, true); -- --- TOC entry 2757 (class 0 OID 0) --- Dependencies: 223 +-- TOC entry 2788 (class 0 OID 0) +-- Dependencies: 222 -- Name: rp_id_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee -- @@ -1204,8 +1191,8 @@ SELECT pg_catalog.setval('rp_id_seq', 2, true); -- --- TOC entry 2758 (class 0 OID 0) --- Dependencies: 228 +-- TOC entry 2789 (class 0 OID 0) +-- Dependencies: 227 -- Name: ru_id_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee -- @@ -1213,7 +1200,7 @@ SELECT pg_catalog.setval('ru_id_seq', 3, true); -- --- TOC entry 2759 (class 0 OID 0) +-- TOC entry 2790 (class 0 OID 0) -- Dependencies: 205 -- Name: user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee -- @@ -1222,17 +1209,17 @@ SELECT pg_catalog.setval('user_id_seq', 3, true); -- --- TOC entry 2760 (class 0 OID 0) --- Dependencies: 224 +-- TOC entry 2791 (class 0 OID 0) +-- Dependencies: 223 -- Name: vf_id_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee -- -SELECT pg_catalog.setval('vf_id_seq', 23, true); +SELECT pg_catalog.setval('vf_id_seq', 24, true); -- --- TOC entry 2761 (class 0 OID 0) --- Dependencies: 229 +-- TOC entry 2792 (class 0 OID 0) +-- Dependencies: 228 -- Name: vp_id_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee -- @@ -1240,8 +1227,8 @@ SELECT pg_catalog.setval('vp_id_seq', 3, true); -- --- TOC entry 2762 (class 0 OID 0) --- Dependencies: 230 +-- TOC entry 2793 (class 0 OID 0) +-- Dependencies: 229 -- Name: vu_id_seq; Type: SEQUENCE SET; Schema: public; Owner: joshlee -- @@ -1251,7 +1238,7 @@ SELECT pg_catalog.setval('vu_id_seq', 2, true); SET search_path = project_permissions, pg_catalog; -- --- TOC entry 2455 (class 2606 OID 17038) +-- TOC entry 2502 (class 2606 OID 17038) -- Name: add_files add_files_pkey; Type: CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1260,7 +1247,7 @@ ALTER TABLE ONLY add_files -- --- TOC entry 2457 (class 2606 OID 17094) +-- TOC entry 2504 (class 2606 OID 17094) -- Name: edit_files edit_files_pkey; Type: CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1269,7 +1256,7 @@ ALTER TABLE ONLY edit_files -- --- TOC entry 2473 (class 2606 OID 17512) +-- TOC entry 2520 (class 2606 OID 17512) -- Name: project_permissions_list project_permissions_list_pkey; Type: CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1278,7 +1265,7 @@ ALTER TABLE ONLY project_permissions_list -- --- TOC entry 2459 (class 2606 OID 17118) +-- TOC entry 2506 (class 2606 OID 17118) -- Name: remove_files remove_files_pkey; Type: CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1287,7 +1274,7 @@ ALTER TABLE ONLY remove_files -- --- TOC entry 2461 (class 2606 OID 17166) +-- TOC entry 2508 (class 2606 OID 17166) -- Name: view_files view_files_pkey; Type: CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1298,34 +1285,34 @@ ALTER TABLE ONLY view_files SET search_path = public, pg_catalog; -- --- TOC entry 2441 (class 2606 OID 16452) --- Name: folder Folder _pkey; Type: CONSTRAINT; Schema: public; Owner: joshlee +-- TOC entry 2500 (class 2606 OID 17665) +-- Name: dirent dirent_pkey; Type: CONSTRAINT; Schema: public; Owner: joshlee -- -ALTER TABLE ONLY folder - ADD CONSTRAINT "Folder _pkey" PRIMARY KEY (object_id); +ALTER TABLE ONLY dirent + ADD CONSTRAINT dirent_pkey PRIMARY KEY ("UUID"); -- --- TOC entry 2453 (class 2606 OID 16977) --- Name: dirent dirent_pkey; Type: CONSTRAINT; Schema: public; Owner: joshlee +-- TOC entry 2488 (class 2606 OID 17667) +-- Name: folder folder_pkey; Type: CONSTRAINT; Schema: public; Owner: joshlee -- -ALTER TABLE ONLY dirent - ADD CONSTRAINT dirent_pkey PRIMARY KEY (object_id); +ALTER TABLE ONLY folder + ADD CONSTRAINT folder_pkey PRIMARY KEY ("UUID"); -- --- TOC entry 2443 (class 2606 OID 16795) +-- TOC entry 2490 (class 2606 OID 17684) -- Name: image image_pkey; Type: CONSTRAINT; Schema: public; Owner: joshlee -- ALTER TABLE ONLY image - ADD CONSTRAINT image_pkey PRIMARY KEY (object_id); + ADD CONSTRAINT image_pkey PRIMARY KEY ("UUID"); -- --- TOC entry 2437 (class 2606 OID 16668) +-- TOC entry 2484 (class 2606 OID 16668) -- Name: project project_pkey; Type: CONSTRAINT; Schema: public; Owner: joshlee -- @@ -1334,7 +1321,7 @@ ALTER TABLE ONLY project -- --- TOC entry 2439 (class 2606 OID 16404) +-- TOC entry 2486 (class 2606 OID 16404) -- Name: project projects_project_name_key; Type: CONSTRAINT; Schema: public; Owner: joshlee -- @@ -1343,16 +1330,16 @@ ALTER TABLE ONLY project -- --- TOC entry 2445 (class 2606 OID 16797) +-- TOC entry 2492 (class 2606 OID 17686) -- Name: text text_pkey; Type: CONSTRAINT; Schema: public; Owner: joshlee -- ALTER TABLE ONLY text - ADD CONSTRAINT text_pkey PRIMARY KEY (object_id); + ADD CONSTRAINT text_pkey PRIMARY KEY ("UUID"); -- --- TOC entry 2447 (class 2606 OID 16562) +-- TOC entry 2494 (class 2606 OID 16562) -- Name: user user _username_key; Type: CONSTRAINT; Schema: public; Owner: joshlee -- @@ -1361,7 +1348,7 @@ ALTER TABLE ONLY "user" -- --- TOC entry 2449 (class 2606 OID 16770) +-- TOC entry 2496 (class 2606 OID 16770) -- Name: user user_pkey; Type: CONSTRAINT; Schema: public; Owner: joshlee -- @@ -1372,7 +1359,7 @@ ALTER TABLE ONLY "user" SET search_path = user_permissions, pg_catalog; -- --- TOC entry 2463 (class 2606 OID 17190) +-- TOC entry 2510 (class 2606 OID 17190) -- Name: create_project create_project_pkey; Type: CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -1381,7 +1368,7 @@ ALTER TABLE ONLY create_project -- --- TOC entry 2451 (class 2606 OID 16950) +-- TOC entry 2498 (class 2606 OID 16950) -- Name: create_users create_user_pkey; Type: CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -1390,7 +1377,7 @@ ALTER TABLE ONLY create_users -- --- TOC entry 2467 (class 2606 OID 17227) +-- TOC entry 2514 (class 2606 OID 17227) -- Name: remove_users remove_users_pkey; Type: CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -1399,7 +1386,7 @@ ALTER TABLE ONLY remove_users -- --- TOC entry 2465 (class 2606 OID 17208) +-- TOC entry 2512 (class 2606 OID 17208) -- Name: edit_users untitled_table_pkey; Type: CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -1408,7 +1395,7 @@ ALTER TABLE ONLY edit_users -- --- TOC entry 2475 (class 2606 OID 17540) +-- TOC entry 2522 (class 2606 OID 17540) -- Name: user_permissions_list user_permissions_list_pkey; Type: CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -1417,7 +1404,7 @@ ALTER TABLE ONLY user_permissions_list -- --- TOC entry 2469 (class 2606 OID 17240) +-- TOC entry 2516 (class 2606 OID 17240) -- Name: view_projects view_projects_pkey; Type: CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -1426,7 +1413,7 @@ ALTER TABLE ONLY view_projects -- --- TOC entry 2471 (class 2606 OID 17253) +-- TOC entry 2518 (class 2606 OID 17253) -- Name: view_users view_users_pkey; Type: CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -1437,7 +1424,7 @@ ALTER TABLE ONLY view_users SET search_path = project_permissions, pg_catalog; -- --- TOC entry 2528 (class 2620 OID 17298) +-- TOC entry 2575 (class 2620 OID 17298) -- Name: add_files edit_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1445,7 +1432,7 @@ CREATE TRIGGER edit_permission BEFORE UPDATE ON add_files FOR EACH ROW EXECUTE P -- --- TOC entry 2533 (class 2620 OID 17302) +-- TOC entry 2580 (class 2620 OID 17302) -- Name: edit_files edit_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1453,7 +1440,7 @@ CREATE TRIGGER edit_permission BEFORE UPDATE ON edit_files FOR EACH ROW EXECUTE -- --- TOC entry 2535 (class 2620 OID 17305) +-- TOC entry 2582 (class 2620 OID 17305) -- Name: remove_files edit_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1461,7 +1448,7 @@ CREATE TRIGGER edit_permission BEFORE UPDATE ON remove_files FOR EACH ROW EXECUT -- --- TOC entry 2541 (class 2620 OID 17311) +-- TOC entry 2588 (class 2620 OID 17311) -- Name: view_files edit_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1469,7 +1456,7 @@ CREATE TRIGGER edit_permission BEFORE UPDATE ON view_files FOR EACH ROW EXECUTE -- --- TOC entry 2527 (class 2620 OID 17297) +-- TOC entry 2574 (class 2620 OID 17297) -- Name: add_files grant_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1477,7 +1464,7 @@ CREATE TRIGGER grant_permission BEFORE INSERT ON add_files FOR EACH ROW EXECUTE -- --- TOC entry 2531 (class 2620 OID 17300) +-- TOC entry 2578 (class 2620 OID 17300) -- Name: edit_files grant_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1485,7 +1472,7 @@ CREATE TRIGGER grant_permission BEFORE INSERT ON edit_files FOR EACH ROW EXECUTE -- --- TOC entry 2536 (class 2620 OID 17303) +-- TOC entry 2583 (class 2620 OID 17303) -- Name: remove_files grant_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1493,7 +1480,7 @@ CREATE TRIGGER grant_permission BEFORE INSERT ON remove_files FOR EACH ROW EXECU -- --- TOC entry 2539 (class 2620 OID 17309) +-- TOC entry 2586 (class 2620 OID 17309) -- Name: view_files grant_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1501,7 +1488,7 @@ CREATE TRIGGER grant_permission BEFORE INSERT ON view_files FOR EACH ROW EXECUTE -- --- TOC entry 2530 (class 2620 OID 17516) +-- TOC entry 2577 (class 2620 OID 17516) -- Name: add_files insert_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1509,7 +1496,7 @@ CREATE TRIGGER insert_permission AFTER INSERT ON add_files FOR EACH ROW EXECUTE -- --- TOC entry 2534 (class 2620 OID 17517) +-- TOC entry 2581 (class 2620 OID 17517) -- Name: edit_files insert_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1517,7 +1504,7 @@ CREATE TRIGGER insert_permission AFTER INSERT ON edit_files FOR EACH ROW EXECUTE -- --- TOC entry 2538 (class 2620 OID 17518) +-- TOC entry 2585 (class 2620 OID 17518) -- Name: remove_files insert_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1525,7 +1512,7 @@ CREATE TRIGGER insert_permission AFTER INSERT ON remove_files FOR EACH ROW EXECU -- --- TOC entry 2542 (class 2620 OID 17519) +-- TOC entry 2589 (class 2620 OID 17519) -- Name: view_files insert_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1533,7 +1520,7 @@ CREATE TRIGGER insert_permission AFTER INSERT ON view_files FOR EACH ROW EXECUTE -- --- TOC entry 2529 (class 2620 OID 17299) +-- TOC entry 2576 (class 2620 OID 17299) -- Name: add_files remove_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1541,7 +1528,7 @@ CREATE TRIGGER remove_permission BEFORE DELETE ON add_files FOR EACH ROW EXECUTE -- --- TOC entry 2532 (class 2620 OID 17301) +-- TOC entry 2579 (class 2620 OID 17301) -- Name: edit_files remove_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1549,7 +1536,7 @@ CREATE TRIGGER remove_permission BEFORE DELETE ON edit_files FOR EACH ROW EXECUT -- --- TOC entry 2537 (class 2620 OID 17304) +-- TOC entry 2584 (class 2620 OID 17304) -- Name: remove_files remove_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1557,7 +1544,7 @@ CREATE TRIGGER remove_permission BEFORE DELETE ON remove_files FOR EACH ROW EXEC -- --- TOC entry 2540 (class 2620 OID 17310) +-- TOC entry 2587 (class 2620 OID 17310) -- Name: view_files remove_permission; Type: TRIGGER; Schema: project_permissions; Owner: joshlee -- @@ -1567,7 +1554,7 @@ CREATE TRIGGER remove_permission BEFORE DELETE ON view_files FOR EACH ROW EXECUT SET search_path = public, pg_catalog; -- --- TOC entry 2519 (class 2620 OID 17313) +-- TOC entry 2566 (class 2620 OID 17313) -- Name: project add_project; Type: TRIGGER; Schema: public; Owner: joshlee -- @@ -1575,7 +1562,7 @@ CREATE TRIGGER add_project AFTER INSERT ON project FOR EACH ROW EXECUTE PROCEDUR -- --- TOC entry 2522 (class 2620 OID 17578) +-- TOC entry 2569 (class 2620 OID 17578) -- Name: user add_user; Type: TRIGGER; Schema: public; Owner: joshlee -- @@ -1583,7 +1570,7 @@ CREATE TRIGGER add_user AFTER INSERT ON "user" FOR EACH ROW EXECUTE PROCEDURE se -- --- TOC entry 2520 (class 2620 OID 16912) +-- TOC entry 2567 (class 2620 OID 16912) -- Name: user user_delete; Type: TRIGGER; Schema: public; Owner: joshlee -- @@ -1591,7 +1578,7 @@ CREATE TRIGGER user_delete BEFORE DELETE ON "user" FOR EACH ROW EXECUTE PROCEDUR -- --- TOC entry 2521 (class 2620 OID 16913) +-- TOC entry 2568 (class 2620 OID 16913) -- Name: user user_edit; Type: TRIGGER; Schema: public; Owner: joshlee -- @@ -1601,7 +1588,7 @@ CREATE TRIGGER user_edit BEFORE UPDATE ON "user" FOR EACH ROW EXECUTE PROCEDURE SET search_path = user_permissions, pg_catalog; -- --- TOC entry 2554 (class 2620 OID 17583) +-- TOC entry 2601 (class 2620 OID 17583) -- Name: remove_users add_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1609,7 +1596,7 @@ CREATE TRIGGER add_permission AFTER INSERT ON remove_users FOR EACH ROW EXECUTE -- --- TOC entry 2523 (class 2620 OID 16914) +-- TOC entry 2570 (class 2620 OID 16914) -- Name: create_users edit_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1617,7 +1604,7 @@ CREATE TRIGGER edit_permission BEFORE UPDATE ON create_users FOR EACH ROW EXECUT -- --- TOC entry 2543 (class 2620 OID 17284) +-- TOC entry 2590 (class 2620 OID 17284) -- Name: create_project edit_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1625,7 +1612,7 @@ CREATE TRIGGER edit_permission BEFORE UPDATE ON create_project FOR EACH ROW EXEC -- --- TOC entry 2548 (class 2620 OID 17287) +-- TOC entry 2595 (class 2620 OID 17287) -- Name: edit_users edit_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1633,7 +1620,7 @@ CREATE TRIGGER edit_permission BEFORE UPDATE ON edit_users FOR EACH ROW EXECUTE -- --- TOC entry 2552 (class 2620 OID 17290) +-- TOC entry 2599 (class 2620 OID 17290) -- Name: remove_users edit_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1641,7 +1628,7 @@ CREATE TRIGGER edit_permission BEFORE UPDATE ON remove_users FOR EACH ROW EXECUT -- --- TOC entry 2556 (class 2620 OID 17293) +-- TOC entry 2603 (class 2620 OID 17293) -- Name: view_projects edit_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1649,7 +1636,7 @@ CREATE TRIGGER edit_permission BEFORE UPDATE ON view_projects FOR EACH ROW EXECU -- --- TOC entry 2559 (class 2620 OID 17294) +-- TOC entry 2606 (class 2620 OID 17294) -- Name: view_users edit_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1657,7 +1644,7 @@ CREATE TRIGGER edit_permission BEFORE UPDATE ON view_users FOR EACH ROW EXECUTE -- --- TOC entry 2525 (class 2620 OID 16928) +-- TOC entry 2572 (class 2620 OID 16928) -- Name: create_users grant_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1665,7 +1652,7 @@ CREATE TRIGGER grant_permission BEFORE INSERT ON create_users FOR EACH ROW EXECU -- --- TOC entry 2545 (class 2620 OID 17282) +-- TOC entry 2592 (class 2620 OID 17282) -- Name: create_project grant_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1673,7 +1660,7 @@ CREATE TRIGGER grant_permission BEFORE INSERT ON create_project FOR EACH ROW EXE -- --- TOC entry 2549 (class 2620 OID 17285) +-- TOC entry 2596 (class 2620 OID 17285) -- Name: edit_users grant_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1681,7 +1668,7 @@ CREATE TRIGGER grant_permission BEFORE INSERT ON edit_users FOR EACH ROW EXECUTE -- --- TOC entry 2553 (class 2620 OID 17289) +-- TOC entry 2600 (class 2620 OID 17289) -- Name: remove_users grant_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1689,7 +1676,7 @@ CREATE TRIGGER grant_permission BEFORE INSERT ON remove_users FOR EACH ROW EXECU -- --- TOC entry 2557 (class 2620 OID 17291) +-- TOC entry 2604 (class 2620 OID 17291) -- Name: view_projects grant_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1697,7 +1684,7 @@ CREATE TRIGGER grant_permission BEFORE INSERT ON view_projects FOR EACH ROW EXEC -- --- TOC entry 2561 (class 2620 OID 17295) +-- TOC entry 2608 (class 2620 OID 17295) -- Name: view_users grant_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1705,7 +1692,7 @@ CREATE TRIGGER grant_permission BEFORE INSERT ON view_users FOR EACH ROW EXECUTE -- --- TOC entry 2546 (class 2620 OID 17580) +-- TOC entry 2593 (class 2620 OID 17580) -- Name: create_project insert_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1713,7 +1700,7 @@ CREATE TRIGGER insert_permission AFTER INSERT ON create_project FOR EACH ROW EXE -- --- TOC entry 2526 (class 2620 OID 17581) +-- TOC entry 2573 (class 2620 OID 17581) -- Name: create_users insert_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1721,7 +1708,7 @@ CREATE TRIGGER insert_permission AFTER INSERT ON create_users FOR EACH ROW EXECU -- --- TOC entry 2550 (class 2620 OID 17582) +-- TOC entry 2597 (class 2620 OID 17582) -- Name: edit_users insert_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1729,7 +1716,7 @@ CREATE TRIGGER insert_permission AFTER INSERT ON edit_users FOR EACH ROW EXECUTE -- --- TOC entry 2558 (class 2620 OID 17584) +-- TOC entry 2605 (class 2620 OID 17584) -- Name: view_projects insert_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1737,7 +1724,7 @@ CREATE TRIGGER insert_permission AFTER INSERT ON view_projects FOR EACH ROW EXEC -- --- TOC entry 2562 (class 2620 OID 17585) +-- TOC entry 2609 (class 2620 OID 17585) -- Name: view_users insert_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1745,7 +1732,7 @@ CREATE TRIGGER insert_permission AFTER INSERT ON view_users FOR EACH ROW EXECUTE -- --- TOC entry 2524 (class 2620 OID 16915) +-- TOC entry 2571 (class 2620 OID 16915) -- Name: create_users remove_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1753,7 +1740,7 @@ CREATE TRIGGER remove_permission BEFORE DELETE ON create_users FOR EACH ROW EXEC -- --- TOC entry 2544 (class 2620 OID 17283) +-- TOC entry 2591 (class 2620 OID 17283) -- Name: create_project remove_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1761,7 +1748,7 @@ CREATE TRIGGER remove_permission BEFORE DELETE ON create_project FOR EACH ROW EX -- --- TOC entry 2547 (class 2620 OID 17286) +-- TOC entry 2594 (class 2620 OID 17286) -- Name: edit_users remove_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1769,7 +1756,7 @@ CREATE TRIGGER remove_permission BEFORE DELETE ON edit_users FOR EACH ROW EXECUT -- --- TOC entry 2551 (class 2620 OID 17288) +-- TOC entry 2598 (class 2620 OID 17288) -- Name: remove_users remove_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1777,7 +1764,7 @@ CREATE TRIGGER remove_permission BEFORE DELETE ON remove_users FOR EACH ROW EXEC -- --- TOC entry 2555 (class 2620 OID 17292) +-- TOC entry 2602 (class 2620 OID 17292) -- Name: view_projects remove_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1785,7 +1772,7 @@ CREATE TRIGGER remove_permission BEFORE DELETE ON view_projects FOR EACH ROW EXE -- --- TOC entry 2560 (class 2620 OID 17296) +-- TOC entry 2607 (class 2620 OID 17296) -- Name: view_users remove_permission; Type: TRIGGER; Schema: user_permissions; Owner: joshlee -- @@ -1795,7 +1782,7 @@ CREATE TRIGGER remove_permission BEFORE DELETE ON view_users FOR EACH ROW EXECUT SET search_path = project_permissions, pg_catalog; -- --- TOC entry 2484 (class 2606 OID 17049) +-- TOC entry 2531 (class 2606 OID 17049) -- Name: add_files add_files_granted_by_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1804,7 +1791,7 @@ ALTER TABLE ONLY add_files -- --- TOC entry 2485 (class 2606 OID 17044) +-- TOC entry 2532 (class 2606 OID 17044) -- Name: add_files add_files_project_name_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1813,7 +1800,7 @@ ALTER TABLE ONLY add_files -- --- TOC entry 2486 (class 2606 OID 17039) +-- TOC entry 2533 (class 2606 OID 17039) -- Name: add_files add_files_username_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1822,7 +1809,7 @@ ALTER TABLE ONLY add_files -- --- TOC entry 2489 (class 2606 OID 17105) +-- TOC entry 2536 (class 2606 OID 17105) -- Name: edit_files edit_files_granted_by_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1831,7 +1818,7 @@ ALTER TABLE ONLY edit_files -- --- TOC entry 2488 (class 2606 OID 17100) +-- TOC entry 2535 (class 2606 OID 17100) -- Name: edit_files edit_files_project_name_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1840,7 +1827,7 @@ ALTER TABLE ONLY edit_files -- --- TOC entry 2487 (class 2606 OID 17095) +-- TOC entry 2534 (class 2606 OID 17095) -- Name: edit_files edit_files_username_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1849,7 +1836,7 @@ ALTER TABLE ONLY edit_files -- --- TOC entry 2507 (class 2606 OID 17486) +-- TOC entry 2554 (class 2606 OID 17486) -- Name: project_permissions_list project_permissions_list_add_files_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1858,7 +1845,7 @@ ALTER TABLE ONLY project_permissions_list -- --- TOC entry 2508 (class 2606 OID 17491) +-- TOC entry 2555 (class 2606 OID 17491) -- Name: project_permissions_list project_permissions_list_edit_files_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1867,7 +1854,7 @@ ALTER TABLE ONLY project_permissions_list -- --- TOC entry 2511 (class 2606 OID 17506) +-- TOC entry 2558 (class 2606 OID 17506) -- Name: project_permissions_list project_permissions_list_project_name_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1876,7 +1863,7 @@ ALTER TABLE ONLY project_permissions_list -- --- TOC entry 2509 (class 2606 OID 17496) +-- TOC entry 2556 (class 2606 OID 17496) -- Name: project_permissions_list project_permissions_list_remove_files_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1885,7 +1872,7 @@ ALTER TABLE ONLY project_permissions_list -- --- TOC entry 2506 (class 2606 OID 17481) +-- TOC entry 2553 (class 2606 OID 17481) -- Name: project_permissions_list project_permissions_list_username _fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1894,7 +1881,7 @@ ALTER TABLE ONLY project_permissions_list -- --- TOC entry 2510 (class 2606 OID 17501) +-- TOC entry 2557 (class 2606 OID 17501) -- Name: project_permissions_list project_permissions_list_view_files_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1903,7 +1890,7 @@ ALTER TABLE ONLY project_permissions_list -- --- TOC entry 2492 (class 2606 OID 17129) +-- TOC entry 2539 (class 2606 OID 17129) -- Name: remove_files remove_files_granted_by_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1912,7 +1899,7 @@ ALTER TABLE ONLY remove_files -- --- TOC entry 2491 (class 2606 OID 17124) +-- TOC entry 2538 (class 2606 OID 17124) -- Name: remove_files remove_files_project_name_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1921,7 +1908,7 @@ ALTER TABLE ONLY remove_files -- --- TOC entry 2490 (class 2606 OID 17119) +-- TOC entry 2537 (class 2606 OID 17119) -- Name: remove_files remove_files_username_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1930,7 +1917,7 @@ ALTER TABLE ONLY remove_files -- --- TOC entry 2495 (class 2606 OID 17177) +-- TOC entry 2542 (class 2606 OID 17177) -- Name: view_files view_files_granted_by_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1939,7 +1926,7 @@ ALTER TABLE ONLY view_files -- --- TOC entry 2494 (class 2606 OID 17172) +-- TOC entry 2541 (class 2606 OID 17172) -- Name: view_files view_files_project_name_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1948,7 +1935,7 @@ ALTER TABLE ONLY view_files -- --- TOC entry 2493 (class 2606 OID 17167) +-- TOC entry 2540 (class 2606 OID 17167) -- Name: view_files view_files_username_fkey; Type: FK CONSTRAINT; Schema: project_permissions; Owner: joshlee -- @@ -1959,7 +1946,7 @@ ALTER TABLE ONLY view_files SET search_path = public, pg_catalog; -- --- TOC entry 2483 (class 2606 OID 17013) +-- TOC entry 2529 (class 2606 OID 17013) -- Name: dirent dirent_project_name_fkey; Type: FK CONSTRAINT; Schema: public; Owner: joshlee -- @@ -1968,34 +1955,34 @@ ALTER TABLE ONLY dirent -- --- TOC entry 2482 (class 2606 OID 16988) +-- TOC entry 2530 (class 2606 OID 17673) -- Name: dirent dirent_super_folder_fkey; Type: FK CONSTRAINT; Schema: public; Owner: joshlee -- ALTER TABLE ONLY dirent - ADD CONSTRAINT dirent_super_folder_fkey FOREIGN KEY (super_folder) REFERENCES folder(object_id) ON UPDATE CASCADE ON DELETE CASCADE; + ADD CONSTRAINT dirent_super_folder_fkey FOREIGN KEY (super_folder) REFERENCES folder("UUID") ON UPDATE CASCADE ON DELETE CASCADE; -- --- TOC entry 2477 (class 2606 OID 16983) --- Name: folder folder_object_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: joshlee +-- TOC entry 2524 (class 2606 OID 17668) +-- Name: folder folder_uuid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: joshlee -- ALTER TABLE ONLY folder - ADD CONSTRAINT folder_object_id_fkey FOREIGN KEY (object_id) REFERENCES dirent(object_id) ON UPDATE CASCADE ON DELETE CASCADE; + ADD CONSTRAINT folder_uuid_fkey FOREIGN KEY ("UUID") REFERENCES dirent("UUID") ON UPDATE CASCADE ON DELETE CASCADE; -- --- TOC entry 2478 (class 2606 OID 16993) --- Name: image image_file_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: joshlee +-- TOC entry 2525 (class 2606 OID 17678) +-- Name: image image_uuid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: joshlee -- ALTER TABLE ONLY image - ADD CONSTRAINT image_file_id_fkey FOREIGN KEY (object_id) REFERENCES dirent(object_id) ON UPDATE CASCADE ON DELETE CASCADE; + ADD CONSTRAINT image_uuid_fkey FOREIGN KEY ("UUID") REFERENCES dirent("UUID") ON UPDATE CASCADE ON DELETE CASCADE; -- --- TOC entry 2476 (class 2606 OID 16777) +-- TOC entry 2523 (class 2606 OID 16777) -- Name: project project_owner _fkey; Type: FK CONSTRAINT; Schema: public; Owner: joshlee -- @@ -2004,18 +1991,18 @@ ALTER TABLE ONLY project -- --- TOC entry 2479 (class 2606 OID 16998) --- Name: text text_file_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: joshlee +-- TOC entry 2526 (class 2606 OID 17687) +-- Name: text text_UUID_fkey; Type: FK CONSTRAINT; Schema: public; Owner: joshlee -- ALTER TABLE ONLY text - ADD CONSTRAINT text_file_id_fkey FOREIGN KEY (object_id) REFERENCES dirent(object_id) ON UPDATE CASCADE ON DELETE CASCADE; + ADD CONSTRAINT "text_UUID_fkey" FOREIGN KEY ("UUID") REFERENCES dirent("UUID") ON UPDATE CASCADE ON DELETE CASCADE; SET search_path = user_permissions, pg_catalog; -- --- TOC entry 2496 (class 2606 OID 17196) +-- TOC entry 2543 (class 2606 OID 17196) -- Name: create_project create_project_granted_by_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2024,7 +2011,7 @@ ALTER TABLE ONLY create_project -- --- TOC entry 2497 (class 2606 OID 17191) +-- TOC entry 2544 (class 2606 OID 17191) -- Name: create_project create_project_username_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2033,7 +2020,7 @@ ALTER TABLE ONLY create_project -- --- TOC entry 2481 (class 2606 OID 17008) +-- TOC entry 2528 (class 2606 OID 17008) -- Name: create_users create_user_granted_by_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2042,7 +2029,7 @@ ALTER TABLE ONLY create_users -- --- TOC entry 2480 (class 2606 OID 16931) +-- TOC entry 2527 (class 2606 OID 16931) -- Name: create_users create_user_username_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2051,7 +2038,7 @@ ALTER TABLE ONLY create_users -- --- TOC entry 2499 (class 2606 OID 17215) +-- TOC entry 2546 (class 2606 OID 17215) -- Name: edit_users edit_user_granted_by_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2060,7 +2047,7 @@ ALTER TABLE ONLY edit_users -- --- TOC entry 2501 (class 2606 OID 17259) +-- TOC entry 2548 (class 2606 OID 17259) -- Name: remove_users remove_users_granted_by_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2069,7 +2056,7 @@ ALTER TABLE ONLY remove_users -- --- TOC entry 2500 (class 2606 OID 17228) +-- TOC entry 2547 (class 2606 OID 17228) -- Name: remove_users remove_users_username_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2078,7 +2065,7 @@ ALTER TABLE ONLY remove_users -- --- TOC entry 2498 (class 2606 OID 17209) +-- TOC entry 2545 (class 2606 OID 17209) -- Name: edit_users untitled_table_username_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2087,7 +2074,7 @@ ALTER TABLE ONLY edit_users -- --- TOC entry 2513 (class 2606 OID 17546) +-- TOC entry 2560 (class 2606 OID 17546) -- Name: user_permissions_list user_permissions_list_create_project_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2096,7 +2083,7 @@ ALTER TABLE ONLY user_permissions_list -- --- TOC entry 2514 (class 2606 OID 17551) +-- TOC entry 2561 (class 2606 OID 17551) -- Name: user_permissions_list user_permissions_list_create_users_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2105,7 +2092,7 @@ ALTER TABLE ONLY user_permissions_list -- --- TOC entry 2515 (class 2606 OID 17556) +-- TOC entry 2562 (class 2606 OID 17556) -- Name: user_permissions_list user_permissions_list_edit_users_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2114,7 +2101,7 @@ ALTER TABLE ONLY user_permissions_list -- --- TOC entry 2516 (class 2606 OID 17561) +-- TOC entry 2563 (class 2606 OID 17561) -- Name: user_permissions_list user_permissions_list_remove_users_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2123,7 +2110,7 @@ ALTER TABLE ONLY user_permissions_list -- --- TOC entry 2512 (class 2606 OID 17541) +-- TOC entry 2559 (class 2606 OID 17541) -- Name: user_permissions_list user_permissions_list_username_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2132,7 +2119,7 @@ ALTER TABLE ONLY user_permissions_list -- --- TOC entry 2517 (class 2606 OID 17566) +-- TOC entry 2564 (class 2606 OID 17566) -- Name: user_permissions_list user_permissions_list_view_projects_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2141,7 +2128,7 @@ ALTER TABLE ONLY user_permissions_list -- --- TOC entry 2518 (class 2606 OID 17571) +-- TOC entry 2565 (class 2606 OID 17571) -- Name: user_permissions_list user_permissions_list_view_users_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2150,7 +2137,7 @@ ALTER TABLE ONLY user_permissions_list -- --- TOC entry 2503 (class 2606 OID 17264) +-- TOC entry 2550 (class 2606 OID 17264) -- Name: view_projects view_projects_granted_by_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2159,7 +2146,7 @@ ALTER TABLE ONLY view_projects -- --- TOC entry 2502 (class 2606 OID 17241) +-- TOC entry 2549 (class 2606 OID 17241) -- Name: view_projects view_projects_username_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2168,7 +2155,7 @@ ALTER TABLE ONLY view_projects -- --- TOC entry 2505 (class 2606 OID 17269) +-- TOC entry 2552 (class 2606 OID 17269) -- Name: view_users view_users_granted_by_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2177,7 +2164,7 @@ ALTER TABLE ONLY view_users -- --- TOC entry 2504 (class 2606 OID 17254) +-- TOC entry 2551 (class 2606 OID 17254) -- Name: view_users view_users_username_fkey; Type: FK CONSTRAINT; Schema: user_permissions; Owner: joshlee -- @@ -2186,8 +2173,8 @@ ALTER TABLE ONLY view_users -- --- TOC entry 2724 (class 0 OID 0) --- Dependencies: 9 +-- TOC entry 2773 (class 0 OID 0) +-- Dependencies: 10 -- Name: project_permissions; Type: ACL; Schema: -; Owner: joshlee -- @@ -2195,177 +2182,26 @@ GRANT USAGE ON SCHEMA project_permissions TO find_user; -- --- TOC entry 2726 (class 0 OID 0) --- Dependencies: 7 +-- TOC entry 2775 (class 0 OID 0) +-- Dependencies: 8 -- Name: user_permissions; Type: ACL; Schema: -; Owner: joshlee -- -GRANT USAGE ON SCHEMA user_permissions TO add_user; -GRANT USAGE ON SCHEMA user_permissions TO edit_user; -GRANT USAGE ON SCHEMA user_permissions TO view_project; -GRANT USAGE ON SCHEMA user_permissions TO view_user; -GRANT USAGE ON SCHEMA user_permissions TO delete_user; -GRANT USAGE ON SCHEMA user_permissions TO login_user; -GRANT USAGE ON SCHEMA user_permissions TO check_permission; GRANT USAGE ON SCHEMA user_permissions TO find_user; SET search_path = project_permissions, pg_catalog; -- --- TOC entry 2728 (class 0 OID 0) --- Dependencies: 211 +-- TOC entry 2778 (class 0 OID 0) +-- Dependencies: 210 -- Name: add_files; Type: ACL; Schema: project_permissions; Owner: joshlee -- -GRANT SELECT ON TABLE add_files TO check_permission; GRANT SELECT ON TABLE add_files TO find_user; --- --- TOC entry 2729 (class 0 OID 0) --- Dependencies: 212 --- Name: edit_files; Type: ACL; Schema: project_permissions; Owner: joshlee --- - -GRANT SELECT ON TABLE edit_files TO check_permission; - - --- --- TOC entry 2730 (class 0 OID 0) --- Dependencies: 214 --- Name: view_files; Type: ACL; Schema: project_permissions; Owner: joshlee --- - -GRANT SELECT ON TABLE view_files TO check_permission; - - -SET search_path = public, pg_catalog; - --- --- TOC entry 2731 (class 0 OID 0) --- Dependencies: 200 --- Name: folder; Type: ACL; Schema: public; Owner: joshlee --- - -GRANT INSERT ON TABLE folder TO add_file; - - --- --- TOC entry 2733 (class 0 OID 0) --- Dependencies: 210 --- Name: dirent; Type: ACL; Schema: public; Owner: joshlee --- - -GRANT SELECT,INSERT ON TABLE dirent TO add_file; - - --- --- TOC entry 2735 (class 0 OID 0) --- Dependencies: 209 --- Name: dirent_object_id_seq; Type: ACL; Schema: public; Owner: joshlee --- - -GRANT SELECT,USAGE ON SEQUENCE dirent_object_id_seq TO add_file; - - --- --- TOC entry 2736 (class 0 OID 0) --- Dependencies: 201 --- Name: image; Type: ACL; Schema: public; Owner: joshlee --- - -GRANT ALL ON TABLE image TO add_file; - - --- --- TOC entry 2737 (class 0 OID 0) --- Dependencies: 198 --- Name: project; Type: ACL; Schema: public; Owner: joshlee --- - -GRANT INSERT ON TABLE project TO create_project; -GRANT SELECT ON TABLE project TO view_project; - - --- --- TOC entry 2738 (class 0 OID 0) --- Dependencies: 202 --- Name: text; Type: ACL; Schema: public; Owner: joshlee --- - -GRANT INSERT ON TABLE text TO add_file; - - --- --- TOC entry 2739 (class 0 OID 0) --- Dependencies: 203 --- Name: user; Type: ACL; Schema: public; Owner: joshlee --- - -GRANT INSERT ON TABLE "user" TO add_user; -GRANT SELECT ON TABLE "user" TO view_user; -GRANT SELECT,DELETE ON TABLE "user" TO delete_user; -GRANT SELECT ON TABLE "user" TO login_user; - - -SET search_path = user_permissions, pg_catalog; - --- --- TOC entry 2740 (class 0 OID 0) --- Dependencies: 215 --- Name: create_project; Type: ACL; Schema: user_permissions; Owner: joshlee --- - -GRANT SELECT ON TABLE create_project TO check_permission; - - --- --- TOC entry 2741 (class 0 OID 0) --- Dependencies: 206 --- Name: create_users; Type: ACL; Schema: user_permissions; Owner: joshlee --- - -GRANT SELECT ON TABLE create_users TO check_permission; - - --- --- TOC entry 2742 (class 0 OID 0) --- Dependencies: 216 --- Name: edit_users; Type: ACL; Schema: user_permissions; Owner: joshlee --- - -GRANT SELECT ON TABLE edit_users TO check_permission; - - --- --- TOC entry 2743 (class 0 OID 0) --- Dependencies: 217 --- Name: remove_users; Type: ACL; Schema: user_permissions; Owner: joshlee --- - -GRANT SELECT ON TABLE remove_users TO check_permission; - - --- --- TOC entry 2744 (class 0 OID 0) --- Dependencies: 218 --- Name: view_projects; Type: ACL; Schema: user_permissions; Owner: joshlee --- - -GRANT SELECT ON TABLE view_projects TO check_permission; - - --- --- TOC entry 2745 (class 0 OID 0) --- Dependencies: 219 --- Name: view_users; Type: ACL; Schema: user_permissions; Owner: joshlee --- - -GRANT SELECT ON TABLE view_users TO check_permission; - - --- Completed on 2018-02-07 00:18:25 GMT +-- Completed on 2018-02-07 18:20:05 GMT -- -- PostgreSQL database dump complete -- cgit v1.2.1 From 4f5abeeeef502bf6c572d5e763d7a0f5869c947a Mon Sep 17 00:00:00 2001 From: cjd24 Date: Thu, 8 Feb 2018 15:05:27 +0000 Subject: Adding handwritten Scrum stories into report --- Report/report.md | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 62 insertions(+), 2 deletions(-) diff --git a/Report/report.md b/Report/report.md index 95c9f6c..f1c7274 100644 --- a/Report/report.md +++ b/Report/report.md @@ -85,8 +85,68 @@ It was initially decided that Tom would be the "Scrum Master", and Calum would b approximately bi-weekly. A quick brainstorming session was then had to interpret our specification and quickly fill in the User Epic stories, along with some more decomposed stories and requirements. - - - Need to upload the pictures of our scrum board to the repository! +As the specification requires, the following is a list of the stories the group came up with. + +- User Epic stories + - Create a "plug and play" module, providing backend functionality to the clients requirements. + - Conform to a year-wide protocol specification to ensure inter-operability. + - Support the notion of 'Projects', 'Users' with specialisations such as Admin, 'Conversion to Standard File Formats'. + - Be Complete by 23rd April 2018. +- Design + - Design Test Interface + - Separation of Machine Learning tests & HCI tests. + - Plan what mocks of other groups are required to ensure usability. + - Design Server + - Stubs for conforming to protocol + - Structure and Core Packages + - Language(s)? we will use & why. + - Design Database + - Which database will we use? + - Schema + - ER Diagram +- Database Implementation + - Interface/Linking with the root to the file system. + - Notion of Secure Access for the database. + - Dealing with various filetypes - Conversion / Standardisation for storage. + - Standard procedures for fetching. + - Deal with Storing Image Data (+ other binary formats?) / JSON. + - Deal with storing plain text + tabular data. + - Create Database from schema +- Server Implementation + - Setup initial HelloWorld Sever to ensure correct installation & dependencies. + - Create Strong/Reliable link between server functions and underlying filesystem for database. + - Create Strong/Reliable link between server functions and the database. + - Create pre-processing functions to standardise Data passed in. (images->png & plaintext->csv/json) + - Deal with responses to a client + - Involving continuous file transfer (For example, whilst panning Large Pathology photos.) + - Involving 'simple' file transfer (getting whole file at once for csv etc.) + - Involving file uploads All at once. + - Involving file uploads in chunks for files above 8Mb. + - Create Node "router" to capture all required URLs and forward to functions to handle based on protocol. + - Create Basic error response functions which can be called from anywhere to deal with any potential problems and safely respond to client. +- Server Testing + - Create methods to test logic of JS/TS which can be re-run on each commit + - From Backend's perspective + - From HCI's perspective +- Database Testing + - Carrying out Optimisations/Streamlining + - Profiling of performance of UnCommon Actions (delete) + - Profiling of performance of common actions (file creation/file reads) + - Accuracy of file retrieval +- TestInterface Implementation + - Create HTML5/JS to retrieve NON image data and display + - Create HTML5/JS to retrieve image (or section of) data and display + - Create HTML5/JS to begin an ML session on some data and retrieve results. + - Create HTML5/JS to check a user/group information + - Create HTML5/JS to upload various filetypes and ensure they convert to universal format. + - Create HTML5/JS to action a login +- Extension Implementation + - Develop a Caching function for frequently accessed files, or anticipate UUIDs next to be accessed for increased performance. + - Upgrade all HTTP interactions to HTTPS + - Add support for Lecia file conversion (heavily licenced) + + + - Need to upload the pictures of our scrum board to the repository/report! -- cgit v1.2.1 From 91961eb673ab80f13d3523c927a8a47883e1b96e Mon Sep 17 00:00:00 2001 From: jw255 Date: Thu, 8 Feb 2018 15:22:40 +0000 Subject: worked on design choices in report --- Report/report.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Report/report.md b/Report/report.md index 95c9f6c..2541d99 100644 --- a/Report/report.md +++ b/Report/report.md @@ -6,7 +6,7 @@ |trh | Tom | 150001937 | |har4 | Hafeez | 15 | |jl247 | Josh | 15 | -|jw255 | Johannes | 15 | +|jw255 | Johannes | 140013112 | @@ -50,11 +50,16 @@ the entire finished product into versions. ### Design Choices: - Scrum +Using the scrum approach as advised by the project specifications facilitated the planning and running of group meetings. As the year wide protocol continued to change throughout the development process, an agile working process addressed the complex problem of changing requirements through its iterative and incremental system. - Database +We chose to use Postgres for our database system, after considering the benefits and drawbacks of different databases compatible with NodeJS. Its greatest advantage is its object-relational data model, JSON support and scalability. +After discussions of the product backlog, we decided to divide data into the following tables: +[tables and descriptions here] +[some more explanation of the database structure] - Server - +For the implementation of the server, we chose a typescript-nodejs approach. NodeJS seemed an obvious approach, as all members of the team had previous experience and it is a scalable, and well-supported development framework that runs on both Unix and Windows infrastructures. It is easy to deploy and furthermore offers more speed and a nonblocking I/O API in comparison to Java or .Net servers. We then chose the TypeScript superset of JS as it provides typing, classes, interfaces and IDE support for developers which makes the language easier to use and more robust. -- cgit v1.2.1 From 15071e92209243e7d6a30cab07bec3c20fdf988e Mon Sep 17 00:00:00 2001 From: josh97josh Date: Thu, 8 Feb 2018 17:25:59 +0000 Subject: updated ER diagram --- res/ERdiagram.pdf | Bin 110346 -> 309338 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/res/ERdiagram.pdf b/res/ERdiagram.pdf index e1dd4e7..f9df97f 100644 Binary files a/res/ERdiagram.pdf and b/res/ERdiagram.pdf differ -- cgit v1.2.1 From c8f4dc15171b2b2e96b62825405e7db6aba60e6a Mon Sep 17 00:00:00 2001 From: cjd24 Date: Fri, 9 Feb 2018 05:52:26 +0000 Subject: More report werk --- Report/report.md | 203 +++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 130 insertions(+), 73 deletions(-) diff --git a/Report/report.md b/Report/report.md index 2cbcfb3..c2da60d 100644 --- a/Report/report.md +++ b/Report/report.md @@ -49,17 +49,42 @@ the entire finished product into versions. ### Design Choices: -- Scrum -Using the scrum approach as advised by the project specifications facilitated the planning and running of group meetings. As the year wide protocol continued to change throughout the development process, an agile working process addressed the complex problem of changing requirements through its iterative and incremental system. +- Scrum +Using the scrum approach as advised by the project specifications facilitated the planning and running of group meetings. As the year wide protocol continued to change throughout the development process, an agile working process addressed the complex problem of changing requirements through its iterative and incremental system. +**MORE SHOULD BE SAID HERE PLZ?** + +- Database +We chose to use Postgres for our database system, after considering the benefits and drawbacks of different databases compatible with NodeJS. Its greatest advantage is its object-relational data model, JSON support and scalability. We also decided that it would be significantly less efficient to store our raw files inside the database as Blobs etc. This is because the nature of the files that we will be dealing with are likely to be huge. So storing masses of binary data in the database which is likely to never actually be "edited" in the same way as some other binary data might, then it would be a significant overhead for no return. As such we opted for designing our infrastructure in such a way that we will have a (nearly) '*flat*' filesystem, where all files are stored under a UUID. All notion of "directory hierarchy" and "filenames" would be stored internally with relations in the database. As possible extensions, we could then store direct references to files (or perhaps even offsets within files) to act as a very high performing cache server for frequent data, or data that we could predict is going to be accessed in short time proximity. +After discussions of the product backlog, we decided to divide data into the following tables: +**[tables and descriptions here]** +**[some more explanation of the database structure?]** + +- Server +For the implementation of the server, we chose a typescript-nodejs approach. NodeJS seemed a common and sensible choice, as all members of the team had previous experience and it is a scalable, and well-supported development framework that runs on both Unix and Windows infrastructures. It is easy to deploy and furthermore offers more speed and a nonblocking I/O API in comparison to Java or .Net servers. We then chose the TypeScript superset of JS as it provides typing, classes, interfaces and IDE support for developers which makes the language easier to use and more robust. In particular we chose to specialise our node app with express, and a comprehensive middleware stack. This middleware stack would carry out tasks such as logging, body parsing, type checking, with potential to be expanded as the project matures. We also decided on Sequelize as our ORM. This was due to wide support in the deployment community with favourable reviews of its functionality - as well as having a specialisation called sequelize-typescript, which massively simplifies syntax, and appeared to integrate to our design model very nicely. + +- Project Approach and Expansion +Once most of the core decisions had been made in isolation of the incorporation into the submission as a whole, we had a **meeting** to decide how these should best operate together. +The approximate approach that was decided on is as follows: + - The Node Server would catch all valid API endpoint requests and pass them to handler functions. + - Since almost all requests that are made to the server, some way or another need to talk to the database, then during initialisation of the server, a connection would be made to the postgres database, which would persist throughout the life of the server. This connection would then be utilised by our ORM solution to carry out queries. + - The request would be formulated through the ORM (or by direct file access for things like server config.) and then passed to the DB serer. + - The response would hopefully be ready as we require it, however at this stage there can be logical checks done of the data if necessary. + - We would then run it through some typechecking middleware to ensure that the content that we are serving back to a client is valid JSON. + - The Response would be served back to the client and the request would be considered *successful*. + + Expansion: + - Once the basic implementation according to the protocol was complete, it was discussed on multiple occasions, and in detail of possible ways to make this core service better. + - Building on the ATOMIC nature of a database transaction, and given the Users deployment scenario - multiple research facilities potentially across multiple geographically diverse locations, we thought it would be critical to allow the database to have multiple instances operating concurrently. + - Approximately how this would look, is that clients talk to the backend server they are physically closest to on the network for the best possible latency. + - Since there can be multiple nodes however to serve clients in different locations, then the servers would then need to make best attempt to synchronise in an Atomic manner. + - This would make our system far more scalable in the future, and may have potential applications for things such as a "live" backup server - since medical data is all fairly critical. + - On top of the transactions to the Database being atomic and synchronised across all instances of the server, we would additionally need to consider the physical distribution of file storage. + - Since we made the design decision to store all of the actual files, outside of the database, then keeping ATOMIC communication to each instance server, does not necessarily solve the issue of file replication. + - For example, if a memeber of a group is working on a node other than the "root" node where that project was created and all of the data happens to be stored for it, then we will need to include some kind of notion of a "server reference" for each file known about by the database. + - Then, if a client made a request for data not locally stored, it could either be re-directed by the server to the other node, or the server forwards the request then pipes it back to the client. + - Alternatively as a further specialisation of this functionality, the server could intelligently detect related data to the "foreign" request being made, and pre-emptively load in the data from the alt server, so it is ready to serve future data locally. This data could be cached locally and used, then re-synchronised if changes were made back to the original, or dropped if it was just for reading. It is likely however that most of these interactions will be reads, so things like carrying out a machine learning session on some data, would only require the (probably) smaller file containing the results to be synchronised back which is a much easier task as it would likely just be new file upload to the remote server. -- Database -We chose to use Postgres for our database system, after considering the benefits and drawbacks of different databases compatible with NodeJS. Its greatest advantage is its object-relational data model, JSON support and scalability. -After discussions of the product backlog, we decided to divide data into the following tables: -[tables and descriptions here] -[some more explanation of the database structure] -- Server -For the implementation of the server, we chose a typescript-nodejs approach. NodeJS seemed an obvious approach, as all members of the team had previous experience and it is a scalable, and well-supported development framework that runs on both Unix and Windows infrastructures. It is easy to deploy and furthermore offers more speed and a nonblocking I/O API in comparison to Java or .Net servers. We then chose the TypeScript superset of JS as it provides typing, classes, interfaces and IDE support for developers which makes the language easier to use and more robust. @@ -69,11 +94,14 @@ For the implementation of the server, we chose a typescript-nodejs approach. Nod As part of this practical, a final solution to the over-arching problem is that the end-user should be able to "*pick-n-mix*" one submission from each [Backend, HCI, Machine Learning]. In order to successfully achieve this, all of the participating groups throughout the year -are required to formulate between themselves and agree on a single protocol for each +are required to formulate between themselves and agree upon a single protocol for each component to talk over. Various meetings were organised on a variety of topics between members who were interested in affecting the outcome. Minutes of these meetings can be seen at: -[Maybe Here?](https://github.com/CS3099JH2017/cs3099jh) +[Maybe Here?](https://github.com/CS3099JH2017/cs3099jh) +**We should also probably detail roughly what was said at each of these meetings/summaries etc? GET THE RECORDED DATES** + + @@ -85,75 +113,104 @@ in affecting the outcome. Minutes of these meetings can be seen at: After groups were eventually allocated for this group project, the team met up quickly to discuss the **Scrum** method of doing work, and figure out how roles should be shared amongst the team members. + Team Structure and Role assignment + -Supervisor -> Adam + -Scrum Master -> Tom + -Product Owner -> Calum + -Developer -> Hafeez + -Developer -> Josh + -Developer -> Johannes + It was initially decided that Tom would be the "Scrum Master", and Calum would be the "Product Owner", and that the roles would be rotated around other group members, approximately bi-weekly. A quick brainstorming session was then had to interpret our specification and quickly fill in the User Epic stories, along with some more decomposed stories and requirements. -As the specification requires, the following is a list of the stories the group came up with. - -- User Epic stories - - Create a "plug and play" module, providing backend functionality to the clients requirements. - - Conform to a year-wide protocol specification to ensure inter-operability. - - Support the notion of 'Projects', 'Users' with specialisations such as Admin, 'Conversion to Standard File Formats'. - - Be Complete by 23rd April 2018. -- Design - - Design Test Interface - - Separation of Machine Learning tests & HCI tests. - - Plan what mocks of other groups are required to ensure usability. - - Design Server - - Stubs for conforming to protocol - - Structure and Core Packages - - Language(s)? we will use & why. - - Design Database - - Which database will we use? - - Schema - - ER Diagram -- Database Implementation - - Interface/Linking with the root to the file system. - - Notion of Secure Access for the database. - - Dealing with various filetypes - Conversion / Standardisation for storage. - - Standard procedures for fetching. - - Deal with Storing Image Data (+ other binary formats?) / JSON. - - Deal with storing plain text + tabular data. - - Create Database from schema -- Server Implementation - - Setup initial HelloWorld Sever to ensure correct installation & dependencies. - - Create Strong/Reliable link between server functions and underlying filesystem for database. - - Create Strong/Reliable link between server functions and the database. - - Create pre-processing functions to standardise Data passed in. (images->png & plaintext->csv/json) - - Deal with responses to a client - - Involving continuous file transfer (For example, whilst panning Large Pathology photos.) - - Involving 'simple' file transfer (getting whole file at once for csv etc.) - - Involving file uploads All at once. - - Involving file uploads in chunks for files above 8Mb. - - Create Node "router" to capture all required URLs and forward to functions to handle based on protocol. - - Create Basic error response functions which can be called from anywhere to deal with any potential problems and safely respond to client. -- Server Testing - - Create methods to test logic of JS/TS which can be re-run on each commit - - From Backend's perspective - - From HCI's perspective -- Database Testing - - Carrying out Optimisations/Streamlining - - Profiling of performance of UnCommon Actions (delete) - - Profiling of performance of common actions (file creation/file reads) - - Accuracy of file retrieval -- TestInterface Implementation - - Create HTML5/JS to retrieve NON image data and display - - Create HTML5/JS to retrieve image (or section of) data and display - - Create HTML5/JS to begin an ML session on some data and retrieve results. - - Create HTML5/JS to check a user/group information - - Create HTML5/JS to upload various filetypes and ensure they convert to universal format. - - Create HTML5/JS to action a login -- Extension Implementation - - Develop a Caching function for frequently accessed files, or anticipate UUIDs next to be accessed for increased performance. - - Upgrade all HTTP interactions to HTTPS - - Add support for Lecia file conversion (heavily licenced) - - - - Need to upload the pictures of our scrum board to the repository/report! +As the specification requires, the following is a list of the stories the group came up with. +- User Epic stories ------- (Continuous) + - Create a "plug and play" module, providing backend functionality to the clients requirements. ------- (Continuous) + - Conform to a year-wide protocol specification to ensure inter-operability. ------- (Continuous) + - Support the notion of 'Projects', 'Users' with specialisations such as Admin, 'Conversion to Standard File Formats'. ------- (Continuous) + - Be Complete by 23rd April 2018. +- Design ------- (2-3 Weeks) + - Design Test Interface ------- (3 Days) + - Separation of Machine Learning tests & HCI tests. ------- (1 Day) + - Plan what mocks of other groups are required to ensure usability. ------- (2 Days) + - Design Server ------- (1 week) + - Stubs for conforming to protocol ------- (1 Day) + - Structure and Core Packages ------- (5 Days) + - Language(s)? we will use & why. ------- (1 Day) + - Design Database ------- (1 week) + - Which database will we use? ------- (1 Day) + - Schema ------- (2 Days) + - ER Diagram ------- (5 Days) +- Implementation ------- (Continuous) + - Database Implementation ------- (~3 Weeks) + - Interface/Linking with the root to the file system. ------- (3 Days) + - Notion of Secure Access for the database. ------- (1 Week) + - Dealing with various filetypes - Conversion / Standardisation for storage. ------- (2 Days) + - Standard procedures for fetching. ------- (2 Days) + - Deal with Storing Image Data (+ other binary formats?) / JSON. ------- (5 Days) + - Deal with storing plain text + tabular data. ------- (5 Days) + - Create Database from schema ------- (3 Days) + - Server Implementation ------- (~1.5 Months) + - Setup initial HelloWorld Sever to ensure correct installation & dependencies. ------- (1 Day) + - Create Strong/Reliable link between server functions and underlying filesystem for database. ------- (1 Weeks) + - Create Strong/Reliable link between server functions and the database. ------- (5 Days) + - Create pre-processing functions to standardise Data passed in. (images->png & plaintext->csv/json) ------- (1 Week) + - Deal with responses to a client ------- (4 Weeks) + - Involving continuous file transfer (For example, whilst panning Large Pathology photos.) ------- (1 Week) + - Involving 'simple' file transfer (getting whole file at once for csv etc.) ------- (1 Week) + - Involving file uploads All at once. ------- (1 Week) + - Involving file uploads in chunks for files above 8Mb. ------- (1 Week) + - Create Node "router" to capture all required URLs and forward to functions to handle based on protocol. ------- (1 Day) + - Create Basic error response functions which can be called from anywhere to deal with any potential problems and safely respond to client. ------- (2 Days) +- Testing ------- (2 Weeks) + - Server Testing ------- (2 Weeks) + - Create methods to test logic of JS/TS which can be re-run on each commit ------- (2 Weeks) + - From Backend's perspective ------- (1 Week) + - From HCI's perspective ------- (1 Weeks) + - Database Testing ------- (2 Weeks) + - Carrying out Optimisations/Streamlining ------- (5 Days) + - Profiling of performance of UnCommon Actions (delete) ------- (4 Days) + - Profiling of performance of common actions (file creation/file reads) ------- (4 Days) + - Accuracy of file retrieval ------- (1 Day) + - TestInterface Implementation ------- (2 Weeks) + - Create HTML5/JS to retrieve NON image data and display ------- (1 Day) + - Create HTML5/JS to retrieve image (or section of) data and display ------- (1 Day) + - Create HTML5/JS to begin an ML session on some data and retrieve results. ------- (1 Day) + - Create HTML5/JS to check a user/group information ------- (1 Day) + - Create HTML5/JS to upload various filetypes and ensure they convert to universal format. ------- (1 Day) + - Create HTML5/JS to action a login ------- (1 Day) +- Extension Implementation ------- (~3 Weeks) + - Develop a Caching function for frequently accessed files, or anticipate UUIDs next to be accessed for increased performance. ------- (1 Week) + - Extend our basic server implementation, to support multiple instances and ensure ATOMICity of DB and sensible file distribution. ------- (2 Weeks) + - Upgrade all HTTP interactions to HTTPS ------- (2 Days) + - Add support for Lecia file conversion (heavily licenced) ------- (2 Weeks) + + +Additionally as part of following the scrum methodology of development, the group carried out a selection of meetings to: +1) Evaluate the current sprint (Work complete, standard, sprint time etc. +2) Retrospectively plan anything with crept up throughout the past sprint, and evaluate how we dealt with it. +3) Catch up with each others' progress and decide on work distribution +The Following is a quick summary of these meetings: + +> Meeting 1: +> > Date: +> Time: +> Attendance: +> Content : + +> Meeting 2: +> > Date: +> Time: +> Attendance: +> Content : + +# Need to upload the pictures of our scrum board to the repository/report! +# ALSO need to upload our burn-down charts to this report. -- cgit v1.2.1 From 516dbe21b83b9cff271b91ec89c2ded636fb1d37 Mon Sep 17 00:00:00 2001 From: jw255 Date: Fri, 9 Feb 2018 14:50:17 +0000 Subject: work on report --- Report/report.md | 72 ++++++++++++++++++++++++++++++-------------------------- 1 file changed, 38 insertions(+), 34 deletions(-) diff --git a/Report/report.md b/Report/report.md index c2da60d..6f09011 100644 --- a/Report/report.md +++ b/Report/report.md @@ -4,8 +4,8 @@ |:------:|:--------:|:----------------------:| |cjd24 | Calum | 150011830 | |trh | Tom | 150001937 | -|har4 | Hafeez | 15 | -|jl247 | Josh | 15 | +|har4 | Hafeez | 160006551 | +|jl247 | Josh | 150010415 | |jw255 | Johannes | 140013112 | @@ -51,6 +51,7 @@ the entire finished product into versions. ### Design Choices: - Scrum Using the scrum approach as advised by the project specifications facilitated the planning and running of group meetings. As the year wide protocol continued to change throughout the development process, an agile working process addressed the complex problem of changing requirements through its iterative and incremental system. +One of the essential parts of this process was distribution of responsibility, planning of time and ordering of tasks for the next release. Oftentimes we had to spend some time researching a topic before we could decide on the task allocation and if it should be included in the next release. For example, we decided early on that the file-conversion was less important... **To be continued** **MORE SHOULD BE SAID HERE PLZ?** - Database @@ -129,23 +130,25 @@ in the User Epic stories, along with some more decomposed stories and requiremen As the specification requires, the following is a list of the stories the group came up with. +(Time Est | Time taken) - User Epic stories ------- (Continuous) - Create a "plug and play" module, providing backend functionality to the clients requirements. ------- (Continuous) - Conform to a year-wide protocol specification to ensure inter-operability. ------- (Continuous) - Support the notion of 'Projects', 'Users' with specialisations such as Admin, 'Conversion to Standard File Formats'. ------- (Continuous) - Be Complete by 23rd April 2018. -- Design ------- (2-3 Weeks) - - Design Test Interface ------- (3 Days) - - Separation of Machine Learning tests & HCI tests. ------- (1 Day) - - Plan what mocks of other groups are required to ensure usability. ------- (2 Days) - - Design Server ------- (1 week) - - Stubs for conforming to protocol ------- (1 Day) - - Structure and Core Packages ------- (5 Days) - - Language(s)? we will use & why. ------- (1 Day) - - Design Database ------- (1 week) - - Which database will we use? ------- (1 Day) - - Schema ------- (2 Days) - - ER Diagram ------- (5 Days) + - First Release 9th February 2018 +- Design ------- (2-3 Weeks | 3 Weeks) + - Design Test Interface ------- (3 Days | 1 Week) + - Separation of Machine Learning tests & HCI tests. ------- (1 Day | 3 days) + - Plan what mocks of other groups are required to ensure usability. ------- (2 Days | 4 days) + - Design Server ------- (1 week | 1.5 Weeks) + - Stubs for conforming to protocol ------- (1 Day | 3 Days) + - Structure and Core Packages ------- (5 Days | 1 week) + - Language(s)? we will use & why. ------- (1 Day | 1 Day) + - Design Database ------- (1 week | 1.5 Weeks) + - Which database will we use? ------- (1 Day | 1 Day) + - Schema ------- (2 Days | 2 Days) + - ER Diagram ------- (5 Days | 1 Week) - Implementation ------- (Continuous) - Database Implementation ------- (~3 Weeks) - Interface/Linking with the root to the file system. ------- (3 Days) @@ -155,36 +158,37 @@ As the specification requires, the following is a list of the stories the group - Deal with Storing Image Data (+ other binary formats?) / JSON. ------- (5 Days) - Deal with storing plain text + tabular data. ------- (5 Days) - Create Database from schema ------- (3 Days) - - Server Implementation ------- (~1.5 Months) - - Setup initial HelloWorld Sever to ensure correct installation & dependencies. ------- (1 Day) - - Create Strong/Reliable link between server functions and underlying filesystem for database. ------- (1 Weeks) - - Create Strong/Reliable link between server functions and the database. ------- (5 Days) - - Create pre-processing functions to standardise Data passed in. (images->png & plaintext->csv/json) ------- (1 Week) - - Deal with responses to a client ------- (4 Weeks) + - Server Implementation ------- (~1.5 Months | 2 Months) + - Setup initial HelloWorld Sever to ensure correct installation & dependencies. ------- (1 Day| 1 Day) + - Create Strong/Reliable link between server functions and underlying filesystem for database. ------- (1 Weeks | 2 Weeks) + - Create Strong/Reliable link between server functions and the database. ------- (5 Days 1 Week) + - Create pre-processing functions to standardise Data passed in. (images->png & plaintext->csv/json) ------- (1 Week | in proc.) + - Deal with responses to a client ------- (4 Weeks | in proc.) - Involving continuous file transfer (For example, whilst panning Large Pathology photos.) ------- (1 Week) - Involving 'simple' file transfer (getting whole file at once for csv etc.) ------- (1 Week) - Involving file uploads All at once. ------- (1 Week) - Involving file uploads in chunks for files above 8Mb. ------- (1 Week) - Create Node "router" to capture all required URLs and forward to functions to handle based on protocol. ------- (1 Day) - Create Basic error response functions which can be called from anywhere to deal with any potential problems and safely respond to client. ------- (2 Days) -- Testing ------- (2 Weeks) - - Server Testing ------- (2 Weeks) - - Create methods to test logic of JS/TS which can be re-run on each commit ------- (2 Weeks) - - From Backend's perspective ------- (1 Week) - - From HCI's perspective ------- (1 Weeks) - - Database Testing ------- (2 Weeks) +- Testing ------- (9 Weeks | in proc) + - Server Testing ------- (3 Weeks | in proc) + - Create methods to test logic of JS/TS which can be re-run on each commit ------- (2 Weeks | in proc) + - From Backend's perspective ------- (1 Week | 2 Weeks) + - From HCI's perspective ------- (1 Weeks | in proc) + - Create unit tests for individual files can be re-run on each commit ------- (1 Weeks | 1 Weeks) + - Database Testing ------- (2 Weeks | in proc.) - Carrying out Optimisations/Streamlining ------- (5 Days) - Profiling of performance of UnCommon Actions (delete) ------- (4 Days) - Profiling of performance of common actions (file creation/file reads) ------- (4 Days) - Accuracy of file retrieval ------- (1 Day) - - TestInterface Implementation ------- (2 Weeks) - - Create HTML5/JS to retrieve NON image data and display ------- (1 Day) - - Create HTML5/JS to retrieve image (or section of) data and display ------- (1 Day) - - Create HTML5/JS to begin an ML session on some data and retrieve results. ------- (1 Day) - - Create HTML5/JS to check a user/group information ------- (1 Day) - - Create HTML5/JS to upload various filetypes and ensure they convert to universal format. ------- (1 Day) - - Create HTML5/JS to action a login ------- (1 Day) -- Extension Implementation ------- (~3 Weeks) + - TestInterface Implementation ------- (2 Weeks | 2 Weeks) + - Create HTML5/JS to retrieve NON image data and display ------- (1 Day | 2 Days) + - Create HTML5/JS to retrieve image (or section of) data and display ------- (1 Day | 4 Days) + - Create HTML5/JS to begin an ML session on some data and retrieve results. ------- (1 Day | 1 Day) + - Create HTML5/JS to check a user/group information ------- (1 Day | 1 Day) + - Create HTML5/JS to upload various filetypes and ensure they convert to universal format. ------- (1 Day | 2 days) + - Create HTML5/JS to action a login ------- (1 Day | 2 days) +- Extension Implementation ------- (~3 Weeks | outstanding) - Develop a Caching function for frequently accessed files, or anticipate UUIDs next to be accessed for increased performance. ------- (1 Week) - Extend our basic server implementation, to support multiple instances and ensure ATOMICity of DB and sensible file distribution. ------- (2 Weeks) - Upgrade all HTTP interactions to HTTPS ------- (2 Days) -- cgit v1.2.1 From 86c3ced75f93fbdd0495d8f7b4c0cace550f489b Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Fri, 9 Feb 2018 17:09:12 +0000 Subject: further work to report --- Report/report.tex | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 Report/report.tex diff --git a/Report/report.tex b/Report/report.tex new file mode 100644 index 0000000..fb5e066 --- /dev/null +++ b/Report/report.tex @@ -0,0 +1,115 @@ +\documentclass{article} +\usepackage[margin=1in]{geometry} +\usepackage{graphicx} +\usepackage{a4wide} + +\begin{document} +\title{Report --- Juniour Honours Project Submission 1} +\author{Hafeez Abdul-Rehaman, Johannes Weck, Josh Lee, Calum Duff, Tom Harley} +\date{\today} + +\maketitle + +\section{Requirements Overview} +For our Junior Honours project, we are to design and create a database +for a system which will be used primarily for the sharing and viewing +of various medical and pathological media. + +Our database is to be: +\begin{description} + \item[User-aware] The system should act as a platform for managing + users and their permissions, with respect to viewing and affecting + projects and media. + \item[Filetype-agnostic] The system should accept files in a + variety of filetypes and be able to translate between them, in order to + provide a user with a desirable output filetype. + \item[Substitutable] The system should follow standardised + communication protocols, to participate in a framework of modularised + systems created by the other Junior Honours groups. +\end{description} + +\section{Using Scrum} +The Scrum approach facilitated the +planning and running of group meetings. As the year-wide protocol changed +over time, an AGILE working process provided the granular iteration +required to address the frequent design changes. + +\subsection{Scrum Board} +Throughout the project a Scrum board has been used to keep track of current tasks +and further items to implement. A whiteboard in the John Honey main computer lab +was used throughout this process. Examples of the board in use can be found in +Appendix A. + +The Scrum board made visualizing tasks and progression straightforward. +Using it in meetings helped with determining how much was still to be done. + +At times the \emph{In Progress} section of the Scrum board seemed unbalanced; +at these times several people were working on the same large task, and so fewer +notes were placed in this column. + +\subsection{Time Management} +Based on how tasks were split, and the difficulty of various tasks, we estimated +durations for each task. Due to the widely-varying estimated completion times, +we decided to distribute our Sprint durations accordingly. +Initially, we divided our total available time with the number of available tasks, +but over time experience from previous work and from previous meetings was helpful in +refining the expected duration of the future tasks. +This, combined with +the late reveal of the specification meant that work wqs done over holidays, greatly +warping the duration of several Sprints to be longer than anticipated. This is +evident in the burnout graphs provided for the period over December% +\footnote{The burnout graph we generated is available in Appendix B.}. + +\subsection{Meetings} +... +\footnote{The minutes for formal meetings are available in Appendix C.} + +\subsection{Paired Programming/Teamwork} +Paired Programming was used extensively throughout implementation of basic server +functions, such as writing logic for the public protocol endpoints. + +Multiple people working on a single task reduces the total actual time it takes to +complete. This allowed larger tasks that would not normally fit into a regular Sprint +to still be tackled within a single Sprint. + +At times the entire team was in labs, working concurrently on separate tasks. + +Having everyone in the same place focussed everyone on the task at hand and greatly +improved communication, keeping everyone working on what was important and not dallying. + +\subsection{Evaluation of Work Done/To Do} +The Scrum board and regular meetings greatly aided in our evaluation of how much work +had been completed, and how much there was left to do, at the time. Now that we're +used to Scrum, evaluation of further tasks (such as extensions) should be more +realistic, and tasks are more likely to be assigned to Sprints with enough time to +accommodate them, instead of persisting to the next Sprint. + +\section{Design Decisions} +\subsection{Database} +Passwords in the database are currently stored totally unencrypted. Initially, +the focus of the team's work was on routing traffic, and for this purpose salting +passwords is unnecessary. Once the server is past development phase, passwords +will be encrypted in some secure fashion. + +\subsection{Server Framework} +The protocol designed by the entire year uses a token-based authentication service +similar to and inspired by OAuth2. Using token-based authentication removes the need +for sessions or for cookies while still providing a smooth and secure user experience, +and simplifying client design. +It was decided that implementing OAuth2 in its entirety would be superfluous. OAuth2 +relies on the acquisition of tokens from third parties, which would be unsuitable for +a simple system such as this. + +\subsection{Testing Framework} +... + +\section{Looking Ahead} +\subsection{File Agnosticity} + +\subsection{Advanced Telemetry} + +\subsection{ACID Distribution} + + +\end{document} + -- cgit v1.2.1 From 27d012bf0df26421402d1caf7e9f9600213a4332 Mon Sep 17 00:00:00 2001 From: Hafeez Date: Fri, 9 Feb 2018 19:43:30 +0000 Subject: added burn down chart file --- res/Burn down Chart.xlsx | Bin 0 -> 5823 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 res/Burn down Chart.xlsx diff --git a/res/Burn down Chart.xlsx b/res/Burn down Chart.xlsx new file mode 100644 index 0000000..44c7e63 Binary files /dev/null and b/res/Burn down Chart.xlsx differ -- cgit v1.2.1 From bce731ef0b9209b3798e8aae9330808ccb35f68d Mon Sep 17 00:00:00 2001 From: Hafeez Date: Fri, 9 Feb 2018 19:57:40 +0000 Subject: added burn down png --- res/chart.png | Bin 0 -> 19471 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 res/chart.png diff --git a/res/chart.png b/res/chart.png new file mode 100644 index 0000000..0a57442 Binary files /dev/null and b/res/chart.png differ -- cgit v1.2.1 From 89b518f62ff5e7d6f819c664bd933097a0a50989 Mon Sep 17 00:00:00 2001 From: jw255 Date: Fri, 9 Feb 2018 20:11:22 +0000 Subject: added external database report with images --- Report/1.png | Bin 0 -> 23078 bytes Report/2.png | Bin 0 -> 76186 bytes Report/3.png | Bin 0 -> 37309 bytes Report/4.png | Bin 0 -> 17337 bytes Report/5.png | Bin 0 -> 21343 bytes Report/6.png | Bin 0 -> 28793 bytes Report/7.png | Bin 0 -> 30848 bytes Report/report.md | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 8 files changed, 79 insertions(+), 3 deletions(-) create mode 100644 Report/1.png create mode 100644 Report/2.png create mode 100644 Report/3.png create mode 100644 Report/4.png create mode 100644 Report/5.png create mode 100644 Report/6.png create mode 100644 Report/7.png diff --git a/Report/1.png b/Report/1.png new file mode 100644 index 0000000..089b8ef Binary files /dev/null and b/Report/1.png differ diff --git a/Report/2.png b/Report/2.png new file mode 100644 index 0000000..1714110 Binary files /dev/null and b/Report/2.png differ diff --git a/Report/3.png b/Report/3.png new file mode 100644 index 0000000..7eef8dc Binary files /dev/null and b/Report/3.png differ diff --git a/Report/4.png b/Report/4.png new file mode 100644 index 0000000..8379ef7 Binary files /dev/null and b/Report/4.png differ diff --git a/Report/5.png b/Report/5.png new file mode 100644 index 0000000..aeea913 Binary files /dev/null and b/Report/5.png differ diff --git a/Report/6.png b/Report/6.png new file mode 100644 index 0000000..e3fb624 Binary files /dev/null and b/Report/6.png differ diff --git a/Report/7.png b/Report/7.png new file mode 100644 index 0000000..a917d83 Binary files /dev/null and b/Report/7.png differ diff --git a/Report/report.md b/Report/report.md index 6f09011..323c98e 100644 --- a/Report/report.md +++ b/Report/report.md @@ -56,9 +56,85 @@ One of the essential parts of this process was distribution of responsibility, p - Database We chose to use Postgres for our database system, after considering the benefits and drawbacks of different databases compatible with NodeJS. Its greatest advantage is its object-relational data model, JSON support and scalability. We also decided that it would be significantly less efficient to store our raw files inside the database as Blobs etc. This is because the nature of the files that we will be dealing with are likely to be huge. So storing masses of binary data in the database which is likely to never actually be "edited" in the same way as some other binary data might, then it would be a significant overhead for no return. As such we opted for designing our infrastructure in such a way that we will have a (nearly) '*flat*' filesystem, where all files are stored under a UUID. All notion of "directory hierarchy" and "filenames" would be stored internally with relations in the database. As possible extensions, we could then store direct references to files (or perhaps even offsets within files) to act as a very high performing cache server for frequent data, or data that we could predict is going to be accessed in short time proximity. -After discussions of the product backlog, we decided to divide data into the following tables: -**[tables and descriptions here]** -**[some more explanation of the database structure?]** + +- File management + +-- Folders +A part of the specification required the use of folders to group together files in a project. The issue I first came across were how folders not just contained other files but would quite often have other folders inside them as well. My second issue was navigating through the folders to get to the files, this meant that given a folder you could return the contents of that folder as well as being able to find all other files at the same level in the system. + +To manage my first issue I included a table called dirent with an inheritance relation so that a dirent could either be a folder, image or text. Having this table made it easy to query on data as well as better representing how files could be stored within folders. This meant that a folder would be related to a dirent which could then be linked to the specific type on creation. + +There were two ways to manage the navigability, either store the file path with each dirent or store the ID of the superfolder it was contained in, I decided on storing the ID. This created a link system and to therefore view files within a folder you would search all files which had the same ID as the super folder. + +E.g 1) To locate an image called image1 at folder1/folder2/folder3/image1 to find it you would use the queries + +SELECT * FROM dirent NATURAL JOIN folder WHERE folder_name = 'folder1' AND super_folder is null AND project_name = 'project 1'; +SELECT * FROM dirent WHERE super_folder = '77dea3b7-523e-463a-aff1-3d8b92259fbb'; +SELECT * FROM dirent WHERE super_folder = '12596fe5-2838-4cc0-8d2f-4745e91738f5'; +SELECT * FROM dirent NATURAL JOIN image WHERE super_folder = '22b94214-6942-40dd-b8af-deb1371fa298'; +![Alt text](1.png?raw=true "eg1") + +From this directory if you wanted to find dirents contained within folder 2 you could use the queries + +SELECT * FROM dirent WHERE id = '22b94214-6942-40dd-b8af-deb1371fa298'; +SELECT * FROM dirent WHERE super_folder = '12596fe5-2838-4cc0-8d2f-4745e91738f5'; +![Alt text](2.png?raw=true "eg1_cont") +Showing all three dirents in this folder. + +-- File identification +In choosing the ID for the files I originally had an auto increment ID. The issue with this would be that a hazardous user could guess the ID of a specific file, accessing files without the required permission. To get around this I used a randomly generated UUID. This made it almost impossible to guess the ID and is universally unique. + +-- File storage +Originally I thought of storing files within the database in blob format although this seemed to work well I felt that the scalability of this method would be not be effective. I also felt that it would be a lot harder to backup the database as the number of files grew. Instead the database contained the structure of the file system with info for each file including the UUID for each file. This made it easy to return files from our own file storage system with matching UUID each time a request was made. + +-- Projects +Another requirement of the database was the need for projects which also helped group together files. A user could also have per project privileges such as adding files into that project. To manage this, on creation of a project it was given an owner matching the current logged in user. I created a trigger which also granted all permissions (admin) to the owner giving them control over the permissions for their project. + +E.g 2) using +INSERT INTO project ("project_name", "owner") VALUES ('project 1', 'josh') +Would give all permissions to josh in project 1. + + + +- User management + +Once the file system had been set up I wanted to have a robust user permission system that would consistently allow the API to check permissions. + +Permissions were split into 2 types +User based permissions. +The user based permissions were create project, create user, remove user , edit user, view projects and view users. + +Project based permissions. +The project based permissions were add files, edit files, remove files and view files (remove project could also be included here but I decided to make that only accessible to the owner and an admin user) This was more difficult because each user would have different privileges on different projects. + +-- Set up +My initial thought was to have columns for each permission in the user table. I soon realised this was hard to manage once revoking privileges is implemented. I decided on creating a tree system for user permissions similar to how the database manages its own privileges. This meant that if one user granted many permissions and then had their own permission removed, all user permissions granted by the revoked user would also be removed. I decided to represent this by having a table for each permission. There were two main reasons for this + +1) This made it easy to check permissions e.g to check whether a user had add file permissions you would just go into the add_files table and check whether it contained a row corresponding to that user. + +2) On each grant the permission ID is stored as a foreign key of its own table representing how a specific user was given that permission . This meant that if a user was deleted or a privilege was revoked it would also remove privileges of sub grants by using ‘on delete cascade’ + +E.g 3) the image below shows the table add_files +![Alt text](3.png?raw=true "add_files") +Josh granted permission to user 2 who then granted permission to both user 3 and back to user2. When user 2 has his permission revoked both permissions that were granted by user 2 are also revoked. +![Alt text](4.png?raw=true "granted permissions") + + +-- Returning all permissions for each user +On looking at the specification it seemed clear that there were a lot of API requests to get all permissions that a user had been granted. By storing the permissions in their own table required searching every single table every time you wanted to do this which would be ineffective. Combining this with my original idea I created a summary table, if a user was then granted a permission it was added into the summary table with the permission ID by means of a trigger. This meant a slower insert but was highly beneficial in being easy to search. The combination of these two methods kept the system robust whilst making it easy to query on. + +Ex 4) Following on from example 2 it is now easy to see how all the permissions are given to a user when a project is created. +![Alt text](5.png?raw=true "eg4") +Also if josh grants permission to user2 to add files you can see below the permission is added. +![Alt text](6.png?raw=true "eg4_cont") +When the permission is revoked that column for user2 is set null. +![Alt text](7.png?raw=true "eg4_cont2") + +-- User information +In order to login the user the user table contains a password to each user. This password was stored md5 hashed. (I also want to add salting for a later hand in for additional security). +Also in the user data is metadata both private and public that could be seen/ managed based on your own permissions or whether you are viewing yourself. I used views to represent the different accesses on the user table to prevent things such as password being included in the query result. I also stored this metadata as Json type instead of individual columns for each attribute. This made it easier to match the expected request format and also helped group together the metadata. + + - Server For the implementation of the server, we chose a typescript-nodejs approach. NodeJS seemed a common and sensible choice, as all members of the team had previous experience and it is a scalable, and well-supported development framework that runs on both Unix and Windows infrastructures. It is easy to deploy and furthermore offers more speed and a nonblocking I/O API in comparison to Java or .Net servers. We then chose the TypeScript superset of JS as it provides typing, classes, interfaces and IDE support for developers which makes the language easier to use and more robust. In particular we chose to specialise our node app with express, and a comprehensive middleware stack. This middleware stack would carry out tasks such as logging, body parsing, type checking, with potential to be expanded as the project matures. We also decided on Sequelize as our ORM. This was due to wide support in the deployment community with favourable reviews of its functionality - as well as having a specialisation called sequelize-typescript, which massively simplifies syntax, and appeared to integrate to our design model very nicely. -- cgit v1.2.1 From 3d35b92ec0fd5019a1c3fa1b1bee9ba5937f3aa3 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Tue, 13 Feb 2018 10:10:20 +0000 Subject: introduced linter and enabled --strict in tsconfig --- package.json | 7 +- tsconfig.json | 3 +- tslint.json | 302 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 309 insertions(+), 3 deletions(-) create mode 100644 tslint.json diff --git a/package.json b/package.json index 2f9c6fd..28fbd3d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "license": "UNLICENSED", "scripts": { "test": "mocha --reporter spec -r ts-node/register 'test/**/*.test.ts'", - "start": "ts-node src/index.ts" + "start": "ts-node src/index.ts", + "lint": "tslint --fix -p './tsconfig.json'" }, "repository": { "type": "git", @@ -27,13 +28,15 @@ "chai": "^3.5.0", "chai-http": "^3.0.0", "mocha": "^3.1.2", - "nodemon": "^1.14.10" + "nodemon": "^1.14.10", + "tslint": "^5.9.1" }, "dependencies": { "@types/body-parser": "0.0.33", "@types/express": "^4.0.33", "@types/morgan": "^1.7.32", "@types/node": "^6.0.46", + "@types/sequelize": "^4.27.5", "body-parser": "^1.18.2", "express": "^4.16.2", "morgan": "^1.9.0", diff --git a/tsconfig.json b/tsconfig.json index 745ef12..fbab410 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,8 @@ /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "module": "commonjs", /* Where to output .js files */ - "outDir": "dist" + "outDir": "dist", + "strict": true }, /* Where to look for .ts files */ "include": [ diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000..f86eb35 --- /dev/null +++ b/tslint.json @@ -0,0 +1,302 @@ +{ + "defaultSeverity": "error", + "extends": [], + "jsRules": {}, + "rules": { + "adjacent-overload-signatures": true, + "ban-types": [false], + "member-access": [ + true, + "check-accessor", + "check-constructor", + "check-parameter-property" + ], + "member-ordering": [ + true, + { + "order": [ + "static-field", + "static-method", + "instance-field", + "constructor", + "instance-method" + ] + } + ], + "no-any": true, + "no-empty-interface": false, + "no-import-side-effect": true, + "no-inferrable-types": false, + "no-internal-module": true, + "no-magic-numbers": false, + "no-namespace": true, + "no-non-null-assertion": true, + "no-parameter-reassignment": true, + "no-reference": true, + "no-unnecessary-type-assertion": {}, + "no-var-requires": true, + "only-arrow-functions": true, + "prefer-for-of": true, + "promise-function-async": true, + "typedef": [ + true, + "call-signature", + "arrow-call-signature", + "parameter", + "arrow-parameter", + "property-declaration", + "variable-declaration", + "member-variable-declaration", + "object-destructuring", + "array-destructuring" + ], + "typedef-whitespace": [ + true, + { + "call-signature": "nospace", + "index-signature": "nospace", + "parameter": "nospace", + "property-declaration": "nospace", + "variable-declaration": "nospace" + }, + { + "call-signature": "onespace", + "index-signature": "onespace", + "parameter": "onespace", + "property-decalaration": "onespace", + "variable-declaration": "onespace" + } + ], + "unified-signatures": true, + + "await-promise": true, + "ban-comma-operator": true, + "ban": [ false ], + "curly": true, + "forin": true, + "import-blacklist": [], + "label-position": true, + "no-arg": true, + "no-bitwise": true, + "no-conditional-assignment": true, + "no-console": [ true ], + "no-construct": true, + "no-debugger": true, + "no-duplicate-super": true, + "no-duplicate-switch-case": true, + "no-duplicate-variable": true, + "no-dynamic-delete": true, + "no-empty": true, + "no-eval": true, + "no-floating-promises": true, + "no-for-in-array": false, + "no-implicit-dependencies": true, + "no-inferred-empty-object-type": true, + "no-invalid-template-strings": true, + "no-invalid-this": true, + "no-misused-new": true, + "no-null-keyword": false, + "no-object-literal-type-assertion": true, + "no-return-await": true, + "no-shadowed-variable": true, + "no-sparse-arrays": true, + "no-string-literal": true, + "no-string-throw": true, + "no-submodule-imports": false, + "no-switch-case-fall-through": true, + "no-this-assignment": [ + true, + "allow-destructuring" + ], + "no-unbound-method": true, + "no-unnecessary-class": true, + "no-unsafe-any": false, + "no-unsafe-finally": true, + "no-unused-expression": true, + "no-unused-variable": true, + "no-use-before-declare": true, + "no-var-keyword": true, + "no-void-expression": false, + "prefer-conditional-expression": true, + "prefer-object-spread": true, + "radix": true, + "restrict-plus-operands": true, + "strict-boolean-expressions": false, + "strict-type-predicates": true, + "switch-default": false, + "triple-equals": [ + true, + "allow-null-check" + ], + "use-default-type-parameter": true, + "use-isnan": true, + + "cyclomatic-complexity": [ + true, + 20 + ], + "deprecation": true, + "eofline": true, + "indent": [ + true, + "tabs", + 4 + ], + "linebreak-style": [ + true, + "LF" + ], + "max-classes-per-file": [ + true, + 1 + ], + "max-file-line-count": [ false ], + "max-line-length": [ + true, + 80 + ], + "no-default-export": false, + "no-duplicate-imports": true, + "no-mergeable-namespace": true, + "no-require-imports": true, + "object-literal-sort-keys": false, + "prefer-const": true, + "prefer-readonly": true, + "trailing-comma": [ + true, + { + "multiline": "never", + "singleline": "never" + } + ], + + "align": [ + true, + "parameters", + "arguments", + "statements", + "members", + "elements" + ], + "array-type": [ + true, + "array" + ], + "arrow-parens": true, + "arrow-return-shorthand": true, + "binary-expression-operand-order": true, + "callable-types": true, + "class-name": true, + "comment-format": [ + true, + "check-space", + "check-uppercase" + ], + "completed-docs": [ + false, + "classes", + "enums", + "enum-members", + "functions", + "interfaces", + "methods", + "namespaces", + "properties", + "types" + ], + "encoding": true, + "file-header": [ false ], + "import-spacing": true, + "interface-name": false, + "interface-over-type-literal": true, + "jsdoc-format": [ + true, + "check-multiline-start" + ], + "match-default-export-name": false, + "newline-before-return": false, + "newline-per-chained-call": true, + "new-parens": true, + "no-angle-bracket-type-assertion": true, + "no-boolean-literal-compare": true, + "no-consecutive-blank-lines": [ + true, + 1 + ], + "no-irregular-whitespace": true, + "no-parameter-properties": true, + "no-redundant-jsdoc": true, + "no-reference-import": true, + "no-trailing-whitespace": true, + "no-unnecessary-callback-wrapper": true, + "no-unnecessary-qualifier": true, + "number-literal-format": true, + "object-literal-key-quotes": [ + true, + "as-needed" + ], + "object-literal-shorthand": true, + "one-line": [ + true, + "check-catch", + "check-finally", + "check-else", + "check-open-brace", + "check-whitespace" + ], + "one-variable-per-declaration": true, + "ordered-imports": [ + true, + { + "import-sources-order": "case-insensitive", + "grouped-imports": true, + "named-imports-order": "lowercase-last", + "module-source-path": "basename" + } + ], + "prefer-function-over-method": true, + "prefer-switch": [ + true, + { + "min-cases": 2 + } + ], + "prefer-template": true, + "quotemark": [ + true, + "single", + "jsx-single", + "avoid-template", + "avoid-escape" + ], + "return-undefined": true, + "semicolon": true, + "space-before-function-paren": [ + true, + "never" + ], + "switch-final-break": [ + true, + "always" + ], + "type-literal-delimiter": true, + "variable-name": [ + true, + "check-format" + ], + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-module", + "check-separator", + "check-rest-spread", + "check-type", + "check-typecast", + "check-type-operator", + "check-preblock" + ] + }, + "rulesDirectory": [] +} -- cgit v1.2.1 From 64e3aa18e638b58bda379bbd87db340ca206cd75 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Tue, 13 Feb 2018 10:23:19 +0000 Subject: edited source to comply with linter --- src/FileRouter.ts | 856 +++++++++++++++++++++++++---------------------- src/app.ts | 55 ++- src/db/initPostgresDB.ts | 26 +- src/index.ts | 25 +- src/serverConfig.ts | 119 ++++--- 5 files changed, 592 insertions(+), 489 deletions(-) diff --git a/src/FileRouter.ts b/src/FileRouter.ts index 19a9126..8b12d0f 100644 --- a/src/FileRouter.ts +++ b/src/FileRouter.ts @@ -1,403 +1,469 @@ -import {Router, Request, Response, NextFunction} from 'express'; -var serverConfig = require('./serverConfig'); -const Files = null;//require('../data'); - +import { NextFunction, Request, Response, Router } from 'express'; +import { Property, default as serverConfig, + propertyExists } from './serverConfig'; + +/** + * The type of an Express middleware callback. + */ +type Middleware = + (req: Request, res: Response, next: NextFunction) => void; + +/* + * Returns the supported Protocols + * + * The server's unwrapped response MUST match: + + exactly({ + "supported": array(string), + "required": array(string) + }) + */ +const getProtocols: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + const returnValue: { + supported: string[]; + required: string[]; + } = { + supported: [ + 'BE50' + ], + required: [ + 'BE01' + ] + }; + res.send(JSON.stringify(returnValue)); +}; + +/* + * Logging Endpoint for all components: + * + * with a request matching + + array({ + "component": string, + "level": alternative([ + "info", "security", "warning", "error", "critical" + ]), + "value": anything + }) + */ +const postLog: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(501) + .send({error: 'logging_not_enabled'}); +}; + +/* + * Clients authorised as a user with the admin privilege can access + * + * http://backend.endpoint/log?before=&after=&level= + * + * the server response should match + + array({ + "component": string, + "level": alternative( + ["info", "security", "warning", "error", "critical" + ]), + "value": anything, + "username": string, + "timestamp": string + }) + */ +const getLog: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(501) + .send({error: 'logging_not_enabled'}); +}; + +/* + * Any authenticated client can access + * + * http://backend.endpoint/properties + * + * the server SHOULD respond with a list of properties, + * with the unwrapped response matching + + array({ + "id": string, + "display": optional({ + "category": string, + "group": string, + "display_name": string, + "description": string + }), + "read_only": boolean, + "type": alternative(["string", "integer", "boolean"]), + "value": alternative([string, integer, boolean]) + }) + */ +const getProperties: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.send(serverConfig); +}; + +/* + * To update properties the client POSTs to + * + * http://backend.endpoint/properties?action=update + * + * with body + + array({ + "id": string, + "value": alternative([string, integer, boolean]) + }) + */ +const postProperties: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + let success: boolean = true; + + // For each property to update + let prop: Property; + for (prop of req.body) { + + // Check that the property has an ID and a value + if (!prop.hasOwnProperty('id') || !prop.hasOwnProperty('value')) { + res.status(400) + .send({ + error: 'invalid_request', + error_description: 'A supplied property is missing an id or value' + }); + success = false; + break; + } + + // Find out if the property exists in the config and if so, at which index + const index: number = propertyExists(prop.id); + + // Check some of the properties values to ensure that it can be updated + if (index === -1 || serverConfig[index].readOnly) { + /* TODO Implement an or, using Tom's type checker to ensure + * the value is "valid" based on the type of the property */ + const description: string = + index === -1 + ? 'Property not found' + : 'Property is Read_Only'; + res.status(400) + .send({ + error: 'invalid_property', + error_data: prop.id, + error_description: description + }); + success = false; + break; + } + + // Make the update to the property + serverConfig[index].value = prop.value; + } + + // Tell the client that everything was okay; + if (success) { + res.status(200) + .send(); + } +}; + +/* + * Listing available privileges + * + * And the server's response, unwrapped, must match + + array({ + "privilege": string, + "description": string, + "internal": boolean + }) + */ +const getUserPriveleges: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(500) + .send(); +}; + +/* + * Listing users + * + * If the client is authorised as a user with the admin privilege + * the server MUST respond with a list of users, + * with the unwrapped response matching + + array({ + "username": string, + "privileges": array(string), + "projects": array({ + "project_name": string, + "access_level": string + }), + "public_user_metadata": metadata, + "private_user_metadata": metadata, + "public_admin_metadata": metadata, + "private_admin_metadata": metadata + }) + */ +const getUsers: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(500) + .send(); + +}; + +/* + * expose additional configuration options for individual users + * + * + */ +const getUserProperties: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(500) + .send(); +}; + +/* + * Listing a particular User + * + * If the client is authorised as a user with the admin privilege + * the server MUST respond with details of the particular user + * if they exist (unwrapped response): + + { + "username": string, + "privileges": array(string), + "projects": array({ + "project_name": string, + "access_level": string + }), + "public_user_metadata": metadata, + "private_user_metadata": metadata, + "public_admin_metadata": metadata, + "private_admin_metadata": metadata + } + */ +const getUsername: + (req: Request, res: Response, next: NextFunction, user?: string) => void = + (req: Request, res: Response, next: NextFunction, user?: string): void => { + res.status(500) + .send(); +}; + +const getCurUser: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(500) + .send(); + const curUser: string = ''; + getUsername(req, res, next, curUser); +}; + +/* + * Updating the current user + * + * http://backend.endpoint/current_user?action=update + * + * with body matching + + { + "password": optional({ + "old": string, + "new": string + }), + "public_user_metadata": optional(metadata), + "private_user_metadata": optional(metadata), + "public_admin_metadata": not_present, + "private_admin_metadata": not_present + } +*/ +const postCurUser: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(500) + .send(); +}; + +/* + * Creating a User/updating a user + * + * http://backend.endpoint/users/?action=create + * + * with body matching + + { + "privileges": array(string), + "password": string, + "public_user_metadata": optional(metadata), + "private_user_metadata": optional(metadata), + "public_admin_metadata": optional(metadata), + "private_admin_metadata": optional(metadata) + } + */ +const postUsername: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(500) + .send(); +}; + +/* + * Listing available Roles + * + * The servers response, unwrapped, must match + + array({ + "role": string, + "description": string, + "internal": boolean + }) + */ +const getProjectRoles: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(500) + .send(); +}; + +/* + * Listing Projects + * + * The server MUST respond with a list of projects, + * with the unwrapped response matching + + array({ + "project_name": string, + "users": array({ + "username": string, + "access_level": string + }), + "public_metadata": metadata, + "private_metadata": optional(metadata), + "admin_metadata": optional(metadata) + }) + */ +const getProjects: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(500) + .send(); +}; + +/* + * Listing a specific Project + * + * The server MUST respond with details of the particular project + * if it exists (unwrapped response): + + { + "project_name": string, + "users": array({ + "username": string, + "access_level": string + }), + "public_metadata": metadata, + "private_metadata": metadata, + "admin_metadata": optional(metadata) + } + */ +const getProjectName: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(500) + .send(); +}; + +/* + * Creating a Project / updating a project / deleting / Project grants + * + * http://backend.endpoint/projects/?action=create + * + * with body matching + + { + "public_metadata": optional(metadata), + "private_metadata": optional(metadata), + "admin_metadata": optional(metadata) + } + */ +const postProjectName: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(500) + .send(); +}; + +/* + * additional configuration options for individual projects + */ +const getProjectProperties: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(500) + .send(); +}; + +/** + * GET a File. + */ +const getFilePath: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(500) + .send(); +}; + +/** + * GET a File. + */ +const getFileId: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(500) + .send(); +}; + +/** + * Post a File. / delete / move / etc + */ +const postFilePath: Middleware = + (req: Request, res: Response, next: NextFunction): void => { + res.status(500) + .send(); +}; export class FileRouter { - router: Router - - /** - * Initialize the FileRouter - */ - constructor() { - this.router = Router(); - this.init(); - } - - /* - * Returns the supported Protocols - * - * The server's unwrapped response MUST match: - - exactly({ - "supported": array(string), - "required": array(string) - }) - */ - public getProtocols(req: Request, res: Response, next: NextFunction){ - var returnValue = {}; - returnValue['supported'] = ["BE50"]; - returnValue['required'] = "BE01"; - res.send(JSON.stringify(returnValue)); - } - - /* - * Logging Endpoint for all components: - * - * with a request matching - - array({ - "component": string, - "level": alternative(["info", "security", "warning", "error", "critical"]), - "value": anything - }) - */ - public postLog(req: Request, res: Response, next: NextFunction){ - res.status(501).send({error : "logging_not_enabled"}); - } - - /* - * Clients authorised as a user with the admin privilege can access - * - * http://backend.endpoint/log?before=&after=&level= - * - * the server response should match - - array({ - "component": string, - "level": alternative(["info", "security", "warning", "error", "critical"]), - "value": anything, - "username": string, - "timestamp": string - }) - */ - public getLog(req: Request, res: Response, next: NextFunction){ - res.status(501).send({error : "logging_not_enabled"}); - } - - /* - * Any authenticated client can access - * - * http://backend.endpoint/properties - * - * the server SHOULD respond with a list of properties, with the unwrapped response matching - - array({ - "id": string, - "display": optional({ - "category": string, - "group": string, - "display_name": string, - "description": string - }), - "read_only": boolean, - "type": alternative(["string", "integer", "boolean"]), - "value": alternative([string, integer, boolean]) - }) - */ - public getProperties(req: Request, res: Response, next: NextFunction){ - res.status(200).send(serverConfig.default); - } - - /* - * To update properties the client POSTs to - * - * http://backend.endpoint/properties?action=update - * - * with body - - array({ - "id": string, - "value": alternative([string, integer, boolean]) - }) - */ - public postProperties(req: Request, res: Response, next: NextFunction){ - var success = true; - - //For each property to update - for (var prop of req.body) { - - //Check that the property has and id and a value - if (!prop.hasOwnProperty("id") || !prop.hasOwnProperty("value")) { - res.status(400).send({error : "invalid_request", error_description : "A supplied property is missing an id or value"}); - success = false; - break; - } - - //Find out if the property exists in the config and if so, at which index - var index = serverConfig.propertyExists(prop.id); - - //check some of the properties values to ensure that it can be updated - if (index == -1 || serverConfig.default[index].read_only) { /*TODO Implement an or, using Tom's type checker to ensure the value is "valid" based on the type of the property */ - var description = index == -1 ? "Property not found" : "Property is Read_Only"; - res.status(400).send({error : "invalid_property", error_data : prop.id, error_description : description}); - success = false; - break; - } - - //make the update to the property - serverConfig.default[index].value = prop.value; - } - - //tell the client that everything was okay; - if (success) res.status(200).send(); - } - - /* - * Listing available privileges - * - * And the server's response, unwrapped, must match - - array({ - "privilege": string, - "description": string, - "internal": boolean - }) - */ - public getUserPriveleges(req: Request, res: Response, next: NextFunction){ - res.status(500).send(); - } - - /* - * Listing users - * - * If the client is authorised as a user with the admin privilege - * the server MUST respond with a list of users, with the unwrapped response matching - - array({ - "username": string, - "privileges": array(string), - "projects": array({ - "project_name": string, - "access_level": string - }), - "public_user_metadata": metadata, - "private_user_metadata": metadata, - "public_admin_metadata": metadata, - "private_admin_metadata": metadata - }) - */ - public getUsers(req: Request, res: Response, next: NextFunction){ - res.status(500).send(); - - } - - /* - * expose additional configuration options for individual users - * - * - */ - public getUserProperties(req: Request, res: Response, next: NextFunction, user?: String){ - res.status(500).send(); - } - - /* - * Listing a particular User - * - * If the client is authorised as a user with the admin privilege the server MUST respond with details of the particular user if they exist (unwrapped response): - - { - "username": string, - "privileges": array(string), - "projects": array({ - "project_name": string, - "access_level": string - }), - "public_user_metadata": metadata, - "private_user_metadata": metadata, - "public_admin_metadata": metadata, - "private_admin_metadata": metadata - } - */ - public getUsername(req: Request, res: Response, next: NextFunction, user?: String){ - res.status(500).send(); - } - - public getCurUser(req: Request, res: Response, next: NextFunction){ - res.status(500).send(); - let curUser : String = ""; - this.getUsername(req, res, next, curUser); - } - - /* - * Updating the current user - * - * http://backend.endpoint/current_user?action=update - * - * with body matching - - { - "password": optional({ - "old": string, - "new": string - }), - "public_user_metadata": optional(metadata), - "private_user_metadata": optional(metadata), - "public_admin_metadata": not_present, - "private_admin_metadata": not_present - } - */ - public postCurUser(req: Request, res: Response, next: NextFunction){ - res.status(500).send(); - - } - - /* - * Creating a User/updating a user - * - * http://backend.endpoint/users/?action=create - * - * with body matching - - { - "privileges": array(string), - "password": string, - "public_user_metadata": optional(metadata), - "private_user_metadata": optional(metadata), - "public_admin_metadata": optional(metadata), - "private_admin_metadata": optional(metadata) - } - */ - public postUsername(req: Request, res: Response, next: NextFunction){ - res.status(500).send(); - } - - /* - * Listing available Roles - * - * The servers response, unwrapped, must match - - array({ - "role": string, - "description": string, - "internal": boolean - }) - */ - public getProjectRoles(req: Request, res: Response, next: NextFunction){ - res.status(500).send(); - } - - /* - * Listing Projects - * - * The server MUST respond with a list of projects, with the unwrapped response matching - - array({ - "project_name": string, - "users": array({ - "username": string, - "access_level": string - }), - "public_metadata": metadata, - "private_metadata": optional(metadata), - "admin_metadata": optional(metadata) - }) - */ - public getProjects(req: Request, res: Response, next: NextFunction){ - res.status(500).send(); - } - - /* - * Listing a specific Project - * - * The server MUST respond with details of the particular project if it exists (unwrapped response): - - { - "project_name": string, - "users": array({ - "username": string, - "access_level": string - }), - "public_metadata": metadata, - "private_metadata": metadata, - "admin_metadata": optional(metadata) - } - */ - public getProjectName(req: Request, res: Response, next: NextFunction){ - res.status(500).send(); - } - - /* - * Creating a Project / updating a project / deleting / Project grants - * - * http://backend.endpoint/projects/?action=create - * - * with body matching - - { - "public_metadata": optional(metadata), - "private_metadata": optional(metadata), - "admin_metadata": optional(metadata) - } - */ - public postProjectName(req: Request, res: Response, next: NextFunction){ - res.status(500).send(); - } - - /* - * additional configuration options for individual projects - */ - public getProjectProperties(req: Request, res: Response, next: NextFunction){ - res.status(500).send(); - } - - /** - * GET a File. - */ - public getFile_path(req: Request, res: Response, next: NextFunction) { - res.status(500).send(); - // let fileID = req.params.file; - // - // res.send("File"); - } - - /** - * GET a File. - */ - public getFile_id(req: Request, res: Response, next: NextFunction) { - res.status(500).send(); - // let fileID = req.params.file; - // - // res.send("File"); - } - - - /** - * Post a File. / delete / move / etc - */ - public postFile_path(req: Request, res: Response, next: NextFunction) { - // let fileID = req.params.file; - // - // res.send("File"); - res.status(500).send(); - } - - - /** - * Take each handler, and attach to one of the Express.Router's - * endpoints. - */ - init() { - // General - this.router.get ('/_supported_protocols_', this.getProtocols); - this.router.get ('/log', this.getLog); - this.router.post('/log', this.postLog); - this.router.get ('/properties', this.getProperties); - this.router.post('/properties', this.postProperties); - // Users - this.router.get ('/user_privileges', this.getUserPriveleges); - this.router.get ('/users', this.getUsers); - this.router.get ('/users/:username', this.getUsername); - this.router.post('/users/:username', this.postUsername); - this.router.get ('/users/:username/properties', this.getUserProperties); - this.router.get ('/current_user', this.getCurUser); - this.router.post('/current_user', this.postCurUser); - // Projects - this.router.get ('/project_roles', this.getProjectRoles); - this.router.get ('/projects', this.getProjects); - this.router.get ('/projects/:project_name', this.getProjectName); - this.router.post('/projects/:project_name', this.postProjectName); - this.router.get ('/projects/:project_name/properties', this.getProjectProperties); - // File access - this.router.get ('/projects/:project_name/files/:path', this.getFile_path); - this.router.post('/projects/:project_name/files/:id', this.postFile_path); - this.router.get ('/projects/:project_name/files_by_id/:id', this.getFile_id); - } - + public router: Router; + + /** + * Initialize the FileRouter + */ + public constructor() { + this.router = Router(); + this.init(); + } + + /** + * Take each handler, and attach to one of the Express.Router's + * endpoints. + */ + public init(): void { + // General + this.router.get ('/_supported_protocols_', getProtocols); + this.router.get ('/log', getLog); + this.router.post('/log', postLog); + this.router.get ('/properties', getProperties); + this.router.post('/properties', postProperties); + // Users + this.router.get ('/user_privileges', getUserPriveleges); + this.router.get ('/users', getUsers); + this.router.get ('/users/:username', getUsername); + this.router.post('/users/:username', postUsername); + this.router.get ('/users/:username/properties', getUserProperties); + this.router.get ('/current_user', getCurUser); + this.router.post('/current_user', postCurUser); + // Projects + this.router.get ('/project_roles', getProjectRoles); + this.router.get ('/projects', getProjects); + this.router.get ('/projects/:project_name', getProjectName); + this.router.post('/projects/:project_name', postProjectName); + this.router.get ('/projects/:project_name/properties', getProjectProperties); + // File access + this.router.get ('/projects/:project_name/files/:path', getFilePath); + this.router.post('/projects/:project_name/files/:id', postFilePath); + this.router.get ('/projects/:project_name/files_by_id/:id', getFileId); + } } // Create the FileRouter, and export its configured Express.Router -const fileRoutes = new FileRouter(); +const fileRoutes: FileRouter = new FileRouter(); fileRoutes.init(); export default fileRoutes.router; diff --git a/src/app.ts b/src/app.ts index 83bf2b0..c81be8a 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,37 +1,36 @@ -import * as express from 'express'; -import * as logger from 'morgan'; import * as bodyParser from 'body-parser'; +import * as ex from 'express'; import FileRouter from './FileRouter'; - +import * as logger from 'morgan'; class App { - public express + public express: ex.Express; - constructor () { - this.express = express() - this.middleware() - this.mountRoutes() - } + public constructor() { + this.express = ex(); + this.middleware(); + this.mountRoutes(); + } - // Configure Express middleware. - private middleware(): void { - this.express.use(logger('combined')); - this.express.use(bodyParser.json()); - this.express.use(bodyParser.urlencoded({ extended: false })); - } + // Configure Express middleware. + private middleware(): void { + this.express.use(logger('combined')); + this.express.use(bodyParser.json()); + this.express.use(bodyParser.urlencoded({ extended: false })); + } - // Configure API endpoints. - private mountRoutes (): void { - const defRouter = express.Router() - defRouter.get('/', (req, res) => { - res.json({ - message: 'Welcome to the CS3099 BE4 server!', - important : 'Endpoints start from /cs3099group-be-4/' - }) - }) - this.express.use('/', defRouter) - this.express.use('/cs3099group-be-4', FileRouter) - } + // Configure API endpoints. + private mountRoutes(): void { + const defRouter: ex.Router = ex.Router(); + defRouter.get('/', (req: ex.Request, res: ex.Response): void => { + res.json({ + message: 'Welcome to the CS3099 BE4 server!', + important : 'Endpoints start from /cs3099group-be-4/' + }); + }); + this.express.use('/', defRouter); + this.express.use('/cs3099group-be-4', FileRouter); + } } -export default new App().express +export default new App().express; diff --git a/src/db/initPostgresDB.ts b/src/db/initPostgresDB.ts index 307d9b6..eb979f4 100644 --- a/src/db/initPostgresDB.ts +++ b/src/db/initPostgresDB.ts @@ -1,13 +1,15 @@ -var Sequelize = require('sequelize'); -const Op = Sequelize.Op; -const gres = new Sequelize('postgres://admin:eprprJacR0hBpmWvs5IDJZTnjRAY2gM3tSm0b1af@localhost:5432/be4', - {operatorsAliases : false}); +import * as Sequelize from 'sequelize'; +const gres: Sequelize.Sequelize = new Sequelize( + 'postgres://admin:eprprJacR0hBpmWvs5IDJZTnjRAY2gM3tSm0b1af@localhost:5432/be4', + { + operatorsAliases : false + } +); -gres - .authenticate() - .then(() => { - console.log('Connection has been established successfully.'); - }) - .catch(err => { - console.error('Unable to connect to the database:', err); - }); +gres.authenticate() + .then(() => { + // Connection has been established successfully. + }) + .catch((err: Error) => { + // Unable to connect to the database. + }); diff --git a/src/index.ts b/src/index.ts index 69150e2..54ff848 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,14 +1,21 @@ +/* tslint:disable:no-console + * This only goes here until we have a logging system */ + +import app from './app'; + console.log('Welcome to the CS3099 Server thingy!'); -import app from './app' +const DEFAULT_PORT: number = 3000; -// use default port 3000 or port supplied by OS -const port = process.env.PORT || 3000 +// Use default port 3000 or port supplied by OS +const port: number = process.env.PORT + ? process.env.PORT + : DEFAULT_PORT; -app.listen(port, (err) => { - if (err) { - return console.log(err) - } +app.listen(port, (err: Error): void => { + if (err) { + return console.log(err); + } - return console.log(`server is listening on port ${port}`) -}) \ No newline at end of file + return console.log(`server is listening on port ${port}`); +}); diff --git a/src/serverConfig.ts b/src/serverConfig.ts index b10641a..0403b05 100644 --- a/src/serverConfig.ts +++ b/src/serverConfig.ts @@ -1,52 +1,81 @@ -var serverConfig : Property[] = []; +const serverConfig: Property[] = []; /* This is a class used to define the optional attribute of Property, - if the property is user configurable*/ -class PropertyDisplay { - constructor(cat : string, grp : string, dn : string, desc : string) { - this.category = cat; - this.group = grp; - this.display_name = dn; - this.description = desc; - }; - category : string; - group : string; - display_name : string; - description : string; -}; + if the property is user configurable*/ +export class PropertyDisplay { + public category: string; + public group: string; + public displayName: string; + public description: string; -/* This is a class used to contain all of the protocol attributes of a Property - of the current backend server.*/ -class Property { - id : string; - display? : PropertyDisplay; - read_only : boolean; - type : string; - value : string | number | boolean; + public constructor(cat: string, grp: string, dn: string, desc: string) { + this.category = cat; + this.group = grp; + this.displayName = dn; + this.description = desc; + } } -//Logging -var property_display = new PropertyDisplay("Logging", "BE4", "Is logging enabled?", "This property defines if logging is currently enabled on this backend server."); -serverConfig.push({id : "Server_Log", display : property_display, read_only : false, type : "boolean", value : false}); - -//caching settings (global) -serverConfig.push({id : "Global_Cache_Limit", read_only : true, type : "integer", value : 1}); -//caching settings (project level) -property_display = new PropertyDisplay("Caching", "BE4", "Caching Type", "This property defines the current caching style for this project."); -serverConfig.push({id : "project_example", display : property_display, read_only : false, type : "integer", value : 1}); - -function propertyExists (propKey : string): number { - var found = -1; - for (var prop in serverConfig) { - if (serverConfig[prop].id == propKey) { - found = parseInt(prop); - break; - } - } - return found; +/* This is a class used to contain all of the protocol attributes of a Property + of the current backend server.*/ +export interface Property { + id: string; + display?: PropertyDisplay; + readOnly: boolean; + type: string; + value: string | number | boolean; } -module.exports = { - default : serverConfig, - propertyExists : propertyExists, -} +// Logging +let propertyDisplay: PropertyDisplay = new PropertyDisplay( + 'Logging', + 'BE4', + 'Is logging enabled?', + 'This property defines if logging is currently enabled on this backend server.' +); + +serverConfig.push({ + id: 'Server_Log', + display: propertyDisplay, + readOnly: false, + type: 'boolean', + value: false +}); + +// Caching Settings (global) +serverConfig.push({ + id: 'Global_Cache_Limit', + readOnly: true, + type: 'integer', + value: 1 +}); + +// Caching Settings (project level) +propertyDisplay = new PropertyDisplay( + 'Caching', + 'BE4', + 'Caching Type', + 'This property defines the current caching style for this project.' +); + +serverConfig.push({ + id: 'project_example', + display: propertyDisplay, + readOnly: false, + type: 'integer', + value: 1 +}); + +export const propertyExists: (propKey: string) => number = + (propKey: string): number => { + let found: number = -1; + for (const prop in serverConfig) { + if (serverConfig[prop].id === propKey) { + found = parseInt(prop, 10); + break; + } + } + return found; +}; + +export default serverConfig; -- cgit v1.2.1 From dc3ec54f877c8929b77bb4acfa0fa64b46fa7e02 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Tue, 13 Feb 2018 10:30:53 +0000 Subject: added gitlab-ci job for linter --- .gitlab-ci.yml | 5 +++++ package.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a223246..58a14ef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,3 +17,8 @@ mocha: stage: test script: - npm test + +lint: + stage: test + script: + - npm run _gl-lint diff --git a/package.json b/package.json index 28fbd3d..0f7e831 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "test": "mocha --reporter spec -r ts-node/register 'test/**/*.test.ts'", "start": "ts-node src/index.ts", - "lint": "tslint --fix -p './tsconfig.json'" + "lint": "tslint --fix --force -p './tsconfig.json'", + "_gl-lint": "tslint -p './tsconfig.json'" }, "repository": { "type": "git", -- cgit v1.2.1 From 703b6e4141177f8da949c4ca2f62af3ae197adc3 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Tue, 13 Feb 2018 14:24:08 +0000 Subject: Introduce Typedoc for Documentation --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2f9c6fd..381ff95 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "license": "UNLICENSED", "scripts": { "test": "mocha --reporter spec -r ts-node/register 'test/**/*.test.ts'", + "docs": "typedoc --out 'docs' --readme 'README.md' --name 'St Andrews Junior Honours 2017/18 - Team BE4' --module commonjs --target ES5 --exclude '*.test.ts' --includeDeclarations --excludeExternals 'src'", "start": "ts-node src/index.ts" }, "repository": { @@ -27,7 +28,8 @@ "chai": "^3.5.0", "chai-http": "^3.0.0", "mocha": "^3.1.2", - "nodemon": "^1.14.10" + "nodemon": "^1.14.10", + "typedoc": "^0.10.0" }, "dependencies": { "@types/body-parser": "0.0.33", -- cgit v1.2.1 From 120c116363a4385b8f1d489858eeed4e821c5964 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Tue, 13 Feb 2018 14:28:57 +0000 Subject: Adding docs folder to .gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 23ace5c..2332483 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,6 @@ dist/ # Vim swap files *.sw* + +# Typedoc-generated documentation +docs/ -- cgit v1.2.1 From 59d745c631debc34a3d2bcf38f26df95d3fed6d5 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Tue, 13 Feb 2018 14:29:29 +0000 Subject: Adding example documentation to serverConfig.ts. --- src/serverConfig.ts | 65 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/src/serverConfig.ts b/src/serverConfig.ts index b10641a..1ef7c83 100644 --- a/src/serverConfig.ts +++ b/src/serverConfig.ts @@ -1,31 +1,81 @@ var serverConfig : Property[] = []; -/* This is a class used to define the optional attribute of Property, - if the property is user configurable*/ +/** + * A way to display user-configurable properties. + */ class PropertyDisplay { + /** + * Constructs a [[PropertyDisplay]] using its properties. + * + * @param cat The property's category. + * @param grp The property's group. + * @param dn The property's displayable name. + * @param desc A description of the property. + */ constructor(cat : string, grp : string, dn : string, desc : string) { this.category = cat; this.group = grp; this.display_name = dn; this.description = desc; }; + + /** + * The category the property belongs to. + */ category : string; + + /** + * The group the property belongs to. + */ group : string; + + /** + * The name for the property to display to a user. + */ display_name : string; + + /** + * The description of the property. + */ description : string; }; /* This is a class used to contain all of the protocol attributes of a Property of the current backend server.*/ +/** + * A server property that infuences the running of the server. + * Loaded from configs at launch, and possibly editable during run-time. + */ class Property { + /** + * The property's unique ID. + */ id : string; + + /** + * How to display the property to the user. + */ display? : PropertyDisplay; + + /** + * Is the property read-only, or can it be edited at run-time? + */ read_only : boolean; - type : string; + + /** + * The variable type of the property. + * + * These strings represent Javascript types directly, + * except `"integer"`, which is a `number` in logic. + */ + type : "string" | "number" | "integer" | "boolean"; + + /** + * The value of the property. + */ value : string | number | boolean; } -//Logging var property_display = new PropertyDisplay("Logging", "BE4", "Is logging enabled?", "This property defines if logging is currently enabled on this backend server."); serverConfig.push({id : "Server_Log", display : property_display, read_only : false, type : "boolean", value : false}); @@ -35,6 +85,13 @@ serverConfig.push({id : "Global_Cache_Limit", read_only : true, type : "integer" property_display = new PropertyDisplay("Caching", "BE4", "Caching Type", "This property defines the current caching style for this project."); serverConfig.push({id : "project_example", display : property_display, read_only : false, type : "integer", value : 1}); +/** + * Checks if a property exists in the server's property list. + * + * @param propKey The property unique ID to search for. + * @returns The index of the property in the server's property list, + * or `-1` if the property is not present. + */ function propertyExists (propKey : string): number { var found = -1; for (var prop in serverConfig) { -- cgit v1.2.1 From 9f0118314af5879b5f16e00faeae2ea7f0fcf7d2 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Tue, 13 Feb 2018 14:41:14 +0000 Subject: Add LaTeX output files and PostgreSQL logs to .gitignore. --- .gitignore | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitignore b/.gitignore index 23ace5c..ef06a6b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,13 @@ node_modules/ # compiled files dist/ +# LaTeX output files +*.aux +*.log +*.pdf + +# PostreSQL log files +POSTGRES_logfile + # Vim swap files *.sw* -- cgit v1.2.1 From e6bc24399808a64c0c6c2e69def9f08aa2818743 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Tue, 13 Feb 2018 20:05:35 +0000 Subject: Export Property from serverConfig.ts. Whoops. --- src/serverConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serverConfig.ts b/src/serverConfig.ts index 9e75085..ea7b195 100644 --- a/src/serverConfig.ts +++ b/src/serverConfig.ts @@ -44,7 +44,7 @@ class PropertyDisplay { * A server property that infuences the running of the server. * Loaded from configs at launch, and possibly editable during run-time. */ -interface Property { +export interface Property { /** * The property's unique ID. */ -- cgit v1.2.1 From 40c93dbe6cec833648e95279cf7826f88b30b7fc Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Wed, 14 Feb 2018 13:28:55 +0000 Subject: Add Yarn Lockfile. Since npm's lockfile was emitting different hashes for the same install configurations and cluttering commits, I propose using the Yarn module install system, which has a lockfile that (hopefully) won't do similar. In addition, Yarn caches packages to be reinstalled quickly, and can be used in much the same way as npm can. --- yarn.lock | 3063 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 3063 insertions(+) create mode 100644 yarn.lock diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..08f3046 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,3063 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@types/bluebird@*": + version "3.5.20" + resolved "https://registry.yarnpkg.com/@types/bluebird/-/bluebird-3.5.20.tgz#f6363172add6f4eabb8cada53ca9af2781e8d6a1" + +"@types/bluebird@3.5.18": + version "3.5.18" + resolved "https://registry.yarnpkg.com/@types/bluebird/-/bluebird-3.5.18.tgz#6a60435d4663e290f3709898a4f75014f279c4d6" + +"@types/body-parser@*": + version "1.16.8" + resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.16.8.tgz#687ec34140624a3bec2b1a8ea9268478ae8f3be3" + dependencies: + "@types/express" "*" + "@types/node" "*" + +"@types/body-parser@0.0.33": + version "0.0.33" + resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-0.0.33.tgz#33ca1498fc37e51c5df0c81cae34569e7041e025" + dependencies: + "@types/express" "*" + +"@types/chai-http@0.0.29": + version "0.0.29" + resolved "https://registry.yarnpkg.com/@types/chai-http/-/chai-http-0.0.29.tgz#eee0470af9df0cfaf37cf383c446830a26d5da86" + dependencies: + "@types/chai" "*" + "@types/node" "*" + +"@types/chai@*": + version "4.1.2" + resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.1.2.tgz#f1af664769cfb50af805431c407425ed619daa21" + +"@types/chai@^3.4.34": + version "3.5.2" + resolved "https://registry.yarnpkg.com/@types/chai/-/chai-3.5.2.tgz#c11cd2817d3a401b7ba0f5a420f35c56139b1c1e" + +"@types/continuation-local-storage@*": + version "3.2.1" + resolved "https://registry.yarnpkg.com/@types/continuation-local-storage/-/continuation-local-storage-3.2.1.tgz#a33e0df9dce9b424d1c98fc4fdebd8578dceec7e" + dependencies: + "@types/node" "*" + +"@types/debug@0.0.29": + version "0.0.29" + resolved "https://registry.yarnpkg.com/@types/debug/-/debug-0.0.29.tgz#a1e514adfbd92f03a224ba54d693111dbf1f3754" + +"@types/events@*": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@types/events/-/events-1.1.0.tgz#93b1be91f63c184450385272c47b6496fd028e02" + +"@types/express-serve-static-core@*": + version "4.11.1" + resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.11.1.tgz#f6f7212382d59b19d696677bcaa48a37280f5d45" + dependencies: + "@types/events" "*" + "@types/node" "*" + +"@types/express@*", "@types/express@^4.0.33": + version "4.11.1" + resolved "https://registry.yarnpkg.com/@types/express/-/express-4.11.1.tgz#f99663b3ab32d04cb11db612ef5dd7933f75465b" + dependencies: + "@types/body-parser" "*" + "@types/express-serve-static-core" "*" + "@types/serve-static" "*" + +"@types/fs-extra@5.0.0": + version "5.0.0" + resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-5.0.0.tgz#d3e225b35eb5c6d3a5a782c28219df365c781413" + dependencies: + "@types/node" "*" + +"@types/geojson@^1.0.0": + version "1.0.6" + resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-1.0.6.tgz#3e02972728c69248c2af08d60a48cbb8680fffdf" + +"@types/glob@*": + version "5.0.35" + resolved "https://registry.yarnpkg.com/@types/glob/-/glob-5.0.35.tgz#1ae151c802cece940443b5ac246925c85189f32a" + dependencies: + "@types/events" "*" + "@types/minimatch" "*" + "@types/node" "*" + +"@types/handlebars@4.0.36": + version "4.0.36" + resolved "https://registry.yarnpkg.com/@types/handlebars/-/handlebars-4.0.36.tgz#ff57c77fa1ab6713bb446534ddc4d979707a3a79" + +"@types/highlight.js@9.12.2": + version "9.12.2" + resolved "https://registry.yarnpkg.com/@types/highlight.js/-/highlight.js-9.12.2.tgz#6ee7cd395effe5ec80b515d3ff1699068cd0cd1d" + +"@types/lodash@*": + version "4.14.102" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.102.tgz#586a3e22385fc79b07cef9c5a1c8a5387986fbc8" + +"@types/lodash@4.14.99": + version "4.14.99" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.99.tgz#e6e10c0a4cc16c7409b3181f1e66880d2fb7d4dc" + +"@types/marked@0.3.0": + version "0.3.0" + resolved "https://registry.yarnpkg.com/@types/marked/-/marked-0.3.0.tgz#583c223dd33385a1dda01aaf77b0cd0411c4b524" + +"@types/mime@*": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@types/mime/-/mime-2.0.0.tgz#5a7306e367c539b9f6543499de8dd519fac37a8b" + +"@types/minimatch@*", "@types/minimatch@3.0.3": + version "3.0.3" + resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" + +"@types/mocha@^2.2.32": + version "2.2.48" + resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.48.tgz#3523b126a0b049482e1c3c11877460f76622ffab" + +"@types/morgan@^1.7.32": + version "1.7.35" + resolved "https://registry.yarnpkg.com/@types/morgan/-/morgan-1.7.35.tgz#6358f502931cc2583d7a94248c41518baa688494" + dependencies: + "@types/express" "*" + +"@types/node@*": + version "9.4.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-9.4.5.tgz#d2a90c634208173d1b1a0a6ba9f1df3de62edcf5" + +"@types/node@6.0.41": + version "6.0.41" + resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.41.tgz#578cf53aaec65887bcaf16792f8722932e8ff8ea" + +"@types/node@^6.0.46": + version "6.0.100" + resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.100.tgz#26e5599c65f96efa0f100915144eb92cddaa95df" + +"@types/reflect-metadata@0.0.4": + version "0.0.4" + resolved "https://registry.yarnpkg.com/@types/reflect-metadata/-/reflect-metadata-0.0.4.tgz#b6477ca9a97e5265f2ac67f9ea704eae5e0eaf4d" + +"@types/sequelize@4.0.79": + version "4.0.79" + resolved "https://registry.yarnpkg.com/@types/sequelize/-/sequelize-4.0.79.tgz#74c366407a978e493e70d7cea3d80c681aed15c0" + dependencies: + "@types/bluebird" "*" + "@types/continuation-local-storage" "*" + "@types/lodash" "*" + "@types/validator" "*" + +"@types/sequelize@^4.27.5": + version "4.27.5" + resolved "https://registry.yarnpkg.com/@types/sequelize/-/sequelize-4.27.5.tgz#3bd4019be8af888413fa95e02c98b69d019fa52f" + dependencies: + "@types/bluebird" "*" + "@types/continuation-local-storage" "*" + "@types/lodash" "*" + "@types/validator" "*" + +"@types/serve-static@*": + version "1.13.1" + resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.1.tgz#1d2801fa635d274cd97d4ec07e26b21b44127492" + dependencies: + "@types/express-serve-static-core" "*" + "@types/mime" "*" + +"@types/shelljs@0.7.7": + version "0.7.7" + resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.7.7.tgz#1f7bfa28947661afea06365db9b1135bbc903ec4" + dependencies: + "@types/glob" "*" + "@types/node" "*" + +"@types/validator@*": + version "6.3.0" + resolved "https://registry.yarnpkg.com/@types/validator/-/validator-6.3.0.tgz#d7454bd67c6a933a9dbe939ae16edbf0f6894e70" + +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + +accepts@~1.3.4: + version "1.3.4" + resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.4.tgz#86246758c7dd6d21a6474ff084a4740ec05eb21f" + dependencies: + mime-types "~2.1.16" + negotiator "0.6.1" + +adler-32@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/adler-32/-/adler-32-1.2.0.tgz#6a3e6bf0a63900ba15652808cb15c6813d1a5f25" + dependencies: + exit-on-epipe "~1.0.1" + printj "~1.1.0" + +ajv@^4.9.1: + version "4.11.8" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536" + dependencies: + co "^4.6.0" + json-stable-stringify "^1.0.1" + +align-text@^0.1.1, align-text@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" + dependencies: + kind-of "^3.0.2" + longest "^1.0.1" + repeat-string "^1.5.2" + +amdefine@>=0.0.4: + version "1.0.1" + resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" + +ansi-align@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-2.0.0.tgz#c36aeccba563b89ceb556f3690f0b1d9e3547f7f" + dependencies: + string-width "^2.0.0" + +ansi-regex@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + +ansi-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" + +ansi-styles@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + +ansi-styles@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88" + dependencies: + color-convert "^1.9.0" + +anymatch@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" + dependencies: + micromatch "^3.1.4" + normalize-path "^2.1.1" + +aproba@^1.0.3: + version "1.2.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" + +are-we-there-yet@~1.1.2: + version "1.1.4" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz#bb5dca382bb94f05e15194373d16fd3ba1ca110d" + dependencies: + delegates "^1.0.0" + readable-stream "^2.0.6" + +argparse@^1.0.7: + version "1.0.9" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" + dependencies: + sprintf-js "~1.0.2" + +arr-diff@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" + +arr-flatten@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" + +arr-union@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" + +array-flatten@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" + +array-unique@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" + +arrify@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + +asn1@~0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + +assert-plus@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" + +assertion-error@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b" + +assign-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" + +async-each@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" + +async@^1.4.0, async@^1.5.2: + version "1.5.2" + resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + +atob@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/atob/-/atob-2.0.3.tgz#19c7a760473774468f20b2d2d03372ad7d4cbf5d" + +aws-sign2@~0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" + +aws4@^1.2.1: + version "1.6.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" + +babel-code-frame@^6.22.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" + dependencies: + chalk "^1.1.3" + esutils "^2.0.2" + js-tokens "^3.0.2" + +balanced-match@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" + +base@^0.11.1: + version "0.11.2" + resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" + dependencies: + cache-base "^1.0.1" + class-utils "^0.3.5" + component-emitter "^1.2.1" + define-property "^1.0.0" + isobject "^3.0.1" + mixin-deep "^1.2.0" + pascalcase "^0.1.1" + +basic-auth@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/basic-auth/-/basic-auth-2.0.0.tgz#015db3f353e02e56377755f962742e8981e7bbba" + dependencies: + safe-buffer "5.1.1" + +bcrypt-pbkdf@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" + dependencies: + tweetnacl "^0.14.3" + +binary-extensions@^1.0.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.11.0.tgz#46aa1751fb6a2f93ee5e689bb1087d4b14c6c205" + +block-stream@*: + version "0.0.9" + resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" + dependencies: + inherits "~2.0.0" + +bluebird@^3.4.6, bluebird@^3.5.0: + version "3.5.1" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" + +body-parser@1.18.2, body-parser@^1.18.2: + version "1.18.2" + resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.18.2.tgz#87678a19d84b47d859b83199bd59bce222b10454" + dependencies: + bytes "3.0.0" + content-type "~1.0.4" + debug "2.6.9" + depd "~1.1.1" + http-errors "~1.6.2" + iconv-lite "0.4.19" + on-finished "~2.3.0" + qs "6.5.1" + raw-body "2.3.2" + type-is "~1.6.15" + +boom@2.x.x: + version "2.10.1" + resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" + dependencies: + hoek "2.x.x" + +boxen@^1.2.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/boxen/-/boxen-1.3.0.tgz#55c6c39a8ba58d9c61ad22cd877532deb665a20b" + dependencies: + ansi-align "^2.0.0" + camelcase "^4.0.0" + chalk "^2.0.1" + cli-boxes "^1.0.0" + string-width "^2.0.0" + term-size "^1.2.0" + widest-line "^2.0.0" + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +braces@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.0.tgz#a46941cb5fb492156b3d6a656e06c35364e3e66e" + dependencies: + arr-flatten "^1.1.0" + array-unique "^0.3.2" + define-property "^1.0.0" + extend-shallow "^2.0.1" + fill-range "^4.0.0" + isobject "^3.0.1" + repeat-element "^1.1.2" + snapdragon "^0.8.1" + snapdragon-node "^2.0.1" + split-string "^3.0.2" + to-regex "^3.0.1" + +browser-stdout@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.0.tgz#f351d32969d32fa5d7a5567154263d928ae3bd1f" + +buffer-writer@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/buffer-writer/-/buffer-writer-1.0.1.tgz#22a936901e3029afcd7547eb4487ceb697a3bf08" + +builtin-modules@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" + +bytes@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" + +cache-base@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" + dependencies: + collection-visit "^1.0.0" + component-emitter "^1.2.1" + get-value "^2.0.6" + has-value "^1.0.0" + isobject "^3.0.1" + set-value "^2.0.0" + to-object-path "^0.3.0" + union-value "^1.0.0" + unset-value "^1.0.0" + +camelcase@^1.0.2: + version "1.2.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" + +camelcase@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" + +capture-stack-trace@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz#4a6fa07399c26bba47f0b2496b4d0fb408c5550d" + +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + +center-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" + dependencies: + align-text "^0.1.3" + lazy-cache "^1.0.3" + +cfb@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/cfb/-/cfb-1.0.3.tgz#3fd20b16f92b4dae8196363261f6a841b9732acf" + dependencies: + commander "^2.12.1" + printj "~1.1.1" + +chai-http@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/chai-http/-/chai-http-3.0.0.tgz#5460d8036e1f1a12b0b5b5cbd529e6dc1d31eb4b" + dependencies: + cookiejar "2.0.x" + is-ip "1.0.0" + methods "^1.1.2" + qs "^6.2.0" + superagent "^2.0.0" + +chai@^3.5.0: + version "3.5.0" + resolved "https://registry.yarnpkg.com/chai/-/chai-3.5.0.tgz#4d02637b067fe958bdbfdd3a40ec56fef7373247" + dependencies: + assertion-error "^1.0.1" + deep-eql "^0.1.3" + type-detect "^1.0.0" + +chalk@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + dependencies: + ansi-styles "^2.2.1" + escape-string-regexp "^1.0.2" + has-ansi "^2.0.0" + strip-ansi "^3.0.0" + supports-color "^2.0.0" + +chalk@^2.0.0, chalk@^2.0.1, chalk@^2.3.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.1.tgz#523fe2678aec7b04e8041909292fe8b17059b796" + dependencies: + ansi-styles "^3.2.0" + escape-string-regexp "^1.0.5" + supports-color "^5.2.0" + +chokidar@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.0.1.tgz#6e67e9998fe10e8f651e975ca62460456ff8e297" + dependencies: + anymatch "^2.0.0" + async-each "^1.0.0" + braces "^2.3.0" + glob-parent "^3.1.0" + inherits "^2.0.1" + is-binary-path "^1.0.0" + is-glob "^4.0.0" + normalize-path "^2.1.1" + path-is-absolute "^1.0.0" + readdirp "^2.0.0" + upath "1.0.0" + optionalDependencies: + fsevents "^1.0.0" + +class-utils@^0.3.5: + version "0.3.6" + resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" + dependencies: + arr-union "^3.1.0" + define-property "^0.2.5" + isobject "^3.0.0" + static-extend "^0.1.1" + +cli-boxes@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-1.0.0.tgz#4fa917c3e59c94a004cd61f8ee509da651687143" + +cliui@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" + dependencies: + center-align "^0.1.1" + right-align "^0.1.1" + wordwrap "0.0.2" + +cls-bluebird@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cls-bluebird/-/cls-bluebird-2.1.0.tgz#37ef1e080a8ffb55c2f4164f536f1919e7968aee" + dependencies: + is-bluebird "^1.0.2" + shimmer "^1.1.0" + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + +code-point-at@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + +codepage@~1.12.0: + version "1.12.0" + resolved "https://registry.yarnpkg.com/codepage/-/codepage-1.12.0.tgz#9c95f5729f8d775ecc7d9819098a7fb239beeeaf" + dependencies: + commander "~2.11.0" + exit-on-epipe "~1.0.1" + voc "~1.0.0" + +collection-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" + dependencies: + map-visit "^1.0.0" + object-visit "^1.0.0" + +color-convert@^1.9.0: + version "1.9.1" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.1.tgz#c1261107aeb2f294ebffec9ed9ecad529a6097ed" + dependencies: + color-name "^1.1.1" + +color-name@^1.1.1: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + +combined-stream@^1.0.5, combined-stream@~1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.6.tgz#723e7df6e801ac5613113a7e445a9b69cb632818" + dependencies: + delayed-stream "~1.0.0" + +commander@2.9.0: + version "2.9.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4" + dependencies: + graceful-readlink ">= 1.0.0" + +commander@^2.12.1: + version "2.14.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.14.1.tgz#2235123e37af8ca3c65df45b026dbd357b01b9aa" + +commander@~2.11.0: + version "2.11.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563" + +commander@~2.13.0: + version "2.13.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.13.0.tgz#6964bca67685df7c1f1430c584f07d7597885b9c" + +component-emitter@^1.2.0, component-emitter@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.2.1.tgz#137918d6d78283f7df7a6b7c5a63e140e69425e6" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + +configstore@^3.0.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/configstore/-/configstore-3.1.1.tgz#094ee662ab83fad9917678de114faaea8fcdca90" + dependencies: + dot-prop "^4.1.0" + graceful-fs "^4.1.2" + make-dir "^1.0.0" + unique-string "^1.0.0" + write-file-atomic "^2.0.0" + xdg-basedir "^3.0.0" + +console-control-strings@^1.0.0, console-control-strings@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + +content-disposition@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.2.tgz#0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4" + +content-type@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" + +cookie-signature@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" + +cookie@0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.3.1.tgz#e7e0a1f9ef43b4c8ba925c5c5a96e806d16873bb" + +cookiejar@2.0.x: + version "2.0.6" + resolved "https://registry.yarnpkg.com/cookiejar/-/cookiejar-2.0.6.tgz#0abf356ad00d1c5a219d88d44518046dd026acfe" + +cookiejar@^2.0.6: + version "2.1.1" + resolved "https://registry.yarnpkg.com/cookiejar/-/cookiejar-2.1.1.tgz#41ad57b1b555951ec171412a81942b1e8200d34a" + +copy-descriptor@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" + +core-util-is@1.0.2, core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + +crc-32@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/crc-32/-/crc-32-1.2.0.tgz#cb2db6e29b88508e32d9dd0ec1693e7b41a18208" + dependencies: + exit-on-epipe "~1.0.1" + printj "~1.1.0" + +create-error-class@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/create-error-class/-/create-error-class-3.0.2.tgz#06be7abef947a3f14a30fd610671d401bca8b7b6" + dependencies: + capture-stack-trace "^1.0.0" + +cross-spawn@^5.0.1: + version "5.1.0" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" + dependencies: + lru-cache "^4.0.1" + shebang-command "^1.2.0" + which "^1.2.9" + +cryptiles@2.x.x: + version "2.0.5" + resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" + dependencies: + boom "2.x.x" + +crypto-random-string@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e" + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + dependencies: + assert-plus "^1.0.0" + +debug@2.6.8: + version "2.6.8" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc" + dependencies: + ms "2.0.0" + +debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + dependencies: + ms "2.0.0" + +debug@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" + dependencies: + ms "2.0.0" + +decamelize@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + +decode-uri-component@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" + +deep-eql@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-0.1.3.tgz#ef558acab8de25206cd713906d74e56930eb69f2" + dependencies: + type-detect "0.1.1" + +deep-extend@~0.4.0: + version "0.4.2" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.2.tgz#48b699c27e334bf89f10892be432f6e4c7d34a7f" + +define-property@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" + dependencies: + is-descriptor "^0.1.0" + +define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" + dependencies: + is-descriptor "^1.0.0" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + +depd@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.1.tgz#5783b4e1c459f06fa5ca27f991f3d06e7a310359" + +depd@^1.1.0, depd@~1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" + +destroy@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" + +detect-libc@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" + +diff@3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-3.2.0.tgz#c9ce393a4b7cbd0b058a725c93df299027868ff9" + +diff@^3.1.0, diff@^3.2.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-3.4.0.tgz#b1d85507daf3964828de54b37d0d73ba67dda56c" + +dot-prop@^4.1.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.0.tgz#1f19e0c2e1aa0e32797c49799f2837ac6af69c57" + dependencies: + is-obj "^1.0.0" + +dottie@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/dottie/-/dottie-2.0.0.tgz#da191981c8b8d713ca0115d5898cf397c2f0ddd0" + +duplexer3@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" + +duplexer@~0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1" + +ecc-jsbn@~0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" + dependencies: + jsbn "~0.1.0" + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + +encodeurl@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + +es6-shim@0.35.3: + version "0.35.3" + resolved "https://registry.yarnpkg.com/es6-shim/-/es6-shim-0.35.3.tgz#9bfb7363feffff87a6cdb6cd93e405ec3c4b6f26" + +escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + +escape-string-regexp@1.0.5, escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + +esprima@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804" + +esutils@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" + +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" + +event-stream@~3.3.0: + version "3.3.4" + resolved "https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.4.tgz#4ab4c9a0f5a54db9338b4c34d86bfce8f4b35571" + dependencies: + duplexer "~0.1.1" + from "~0" + map-stream "~0.1.0" + pause-stream "0.0.11" + split "0.3" + stream-combiner "~0.0.4" + through "~2.3.1" + +execa@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" + dependencies: + cross-spawn "^5.0.1" + get-stream "^3.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" + +exit-on-epipe@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/exit-on-epipe/-/exit-on-epipe-1.0.1.tgz#0bdd92e87d5285d267daa8171d0eb06159689692" + +expand-brackets@^2.1.4: + version "2.1.4" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" + dependencies: + debug "^2.3.3" + define-property "^0.2.5" + extend-shallow "^2.0.1" + posix-character-classes "^0.1.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +express@^4.16.2: + version "4.16.2" + resolved "https://registry.yarnpkg.com/express/-/express-4.16.2.tgz#e35c6dfe2d64b7dca0a5cd4f21781be3299e076c" + dependencies: + accepts "~1.3.4" + array-flatten "1.1.1" + body-parser "1.18.2" + content-disposition "0.5.2" + content-type "~1.0.4" + cookie "0.3.1" + cookie-signature "1.0.6" + debug "2.6.9" + depd "~1.1.1" + encodeurl "~1.0.1" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "1.1.0" + fresh "0.5.2" + merge-descriptors "1.0.1" + methods "~1.1.2" + on-finished "~2.3.0" + parseurl "~1.3.2" + path-to-regexp "0.1.7" + proxy-addr "~2.0.2" + qs "6.5.1" + range-parser "~1.2.0" + safe-buffer "5.1.1" + send "0.16.1" + serve-static "1.13.1" + setprototypeof "1.1.0" + statuses "~1.3.1" + type-is "~1.6.15" + utils-merge "1.0.1" + vary "~1.1.2" + +extend-shallow@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" + dependencies: + is-extendable "^0.1.0" + +extend-shallow@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" + dependencies: + assign-symbols "^1.0.0" + is-extendable "^1.0.1" + +extend@^3.0.0, extend@~3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.1.tgz#a755ea7bc1adfcc5a31ce7e762dbaadc5e636444" + +extglob@^2.0.2: + version "2.0.4" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" + dependencies: + array-unique "^0.3.2" + define-property "^1.0.0" + expand-brackets "^2.1.4" + extend-shallow "^2.0.1" + fragment-cache "^0.2.1" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +extsprintf@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" + +extsprintf@^1.2.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" + +fill-range@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" + dependencies: + extend-shallow "^2.0.1" + is-number "^3.0.0" + repeat-string "^1.6.1" + to-regex-range "^2.1.0" + +finalhandler@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.0.tgz#ce0b6855b45853e791b2fcc680046d88253dd7f5" + dependencies: + debug "2.6.9" + encodeurl "~1.0.1" + escape-html "~1.0.3" + on-finished "~2.3.0" + parseurl "~1.3.2" + statuses "~1.3.1" + unpipe "~1.0.0" + +for-in@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + +form-data@1.0.0-rc4: + version "1.0.0-rc4" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-1.0.0-rc4.tgz#05ac6bc22227b43e4461f488161554699d4f8b5e" + dependencies: + async "^1.5.2" + combined-stream "^1.0.5" + mime-types "^2.1.10" + +form-data@~2.1.1: + version "2.1.4" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.4.tgz#33c183acf193276ecaa98143a69e94bfee1750d1" + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.5" + mime-types "^2.1.12" + +formidable@^1.0.17: + version "1.1.1" + resolved "https://registry.yarnpkg.com/formidable/-/formidable-1.1.1.tgz#96b8886f7c3c3508b932d6bd70c4d3a88f35f1a9" + +forwarded@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" + +frac@~1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/frac/-/frac-1.1.1.tgz#5f7f5c2ae029167d90153eea4b7dd2958d43d1f5" + dependencies: + voc "~1.0.0" + +fragment-cache@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" + dependencies: + map-cache "^0.2.2" + +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" + +from@~0: + version "0.1.7" + resolved "https://registry.yarnpkg.com/from/-/from-0.1.7.tgz#83c60afc58b9c56997007ed1a768b3ab303a44fe" + +fs-extra@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-5.0.0.tgz#414d0110cdd06705734d055652c5411260c31abd" + dependencies: + graceful-fs "^4.1.2" + jsonfile "^4.0.0" + universalify "^0.1.0" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + +fsevents@^1.0.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.3.tgz#11f82318f5fe7bb2cd22965a108e9306208216d8" + dependencies: + nan "^2.3.0" + node-pre-gyp "^0.6.39" + +fstream-ignore@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/fstream-ignore/-/fstream-ignore-1.0.5.tgz#9c31dae34767018fe1d249b24dada67d092da105" + dependencies: + fstream "^1.0.0" + inherits "2" + minimatch "^3.0.0" + +fstream@^1.0.0, fstream@^1.0.10, fstream@^1.0.2: + version "1.0.11" + resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.11.tgz#5c1fb1f117477114f0632a0eb4b71b3cb0fd3171" + dependencies: + graceful-fs "^4.1.2" + inherits "~2.0.0" + mkdirp ">=0.5 0" + rimraf "2" + +gauge@~2.7.3: + version "2.7.4" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" + dependencies: + aproba "^1.0.3" + console-control-strings "^1.0.0" + has-unicode "^2.0.0" + object-assign "^4.1.0" + signal-exit "^3.0.0" + string-width "^1.0.1" + strip-ansi "^3.0.1" + wide-align "^1.1.0" + +generic-pool@^3.4.0: + version "3.4.1" + resolved "https://registry.yarnpkg.com/generic-pool/-/generic-pool-3.4.1.tgz#54103118d0cb279f77de7a0cc53396e6d0c12781" + +get-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" + +get-value@^2.0.3, get-value@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" + +getpass@^0.1.1: + version "0.1.7" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + dependencies: + assert-plus "^1.0.0" + +glob-parent@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" + dependencies: + is-glob "^3.1.0" + path-dirname "^1.0.0" + +glob@7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.2" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@7.1.2, glob@^7.0.0, glob@^7.0.5, glob@^7.1.1: + version "7.1.2" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +global-dirs@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445" + dependencies: + ini "^1.3.4" + +got@^6.7.1: + version "6.7.1" + resolved "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0" + dependencies: + create-error-class "^3.0.0" + duplexer3 "^0.1.4" + get-stream "^3.0.0" + is-redirect "^1.0.0" + is-retry-allowed "^1.0.0" + is-stream "^1.0.0" + lowercase-keys "^1.0.0" + safe-buffer "^5.0.1" + timed-out "^4.0.0" + unzip-response "^2.0.1" + url-parse-lax "^1.0.0" + +graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6: + version "4.1.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" + +"graceful-readlink@>= 1.0.0": + version "1.0.1" + resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" + +growl@1.9.2: + version "1.9.2" + resolved "https://registry.yarnpkg.com/growl/-/growl-1.9.2.tgz#0ea7743715db8d8de2c5ede1775e1b45ac85c02f" + +handlebars@^4.0.6: + version "4.0.11" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.11.tgz#630a35dfe0294bc281edae6ffc5d329fc7982dcc" + dependencies: + async "^1.4.0" + optimist "^0.6.1" + source-map "^0.4.4" + optionalDependencies: + uglify-js "^2.6" + +har-schema@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" + +har-validator@~4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" + dependencies: + ajv "^4.9.1" + har-schema "^1.0.5" + +has-ansi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + dependencies: + ansi-regex "^2.0.0" + +has-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + +has-unicode@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + +has-value@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" + dependencies: + get-value "^2.0.3" + has-values "^0.1.4" + isobject "^2.0.0" + +has-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" + dependencies: + get-value "^2.0.6" + has-values "^1.0.0" + isobject "^3.0.0" + +has-values@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" + +has-values@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" + dependencies: + is-number "^3.0.0" + kind-of "^4.0.0" + +hawk@3.1.3, hawk@~3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" + dependencies: + boom "2.x.x" + cryptiles "2.x.x" + hoek "2.x.x" + sntp "1.x.x" + +he@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/he/-/he-1.1.1.tgz#93410fd21b009735151f8868c2f271f3427e23fd" + +highlight.js@^9.0.0: + version "9.12.0" + resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.12.0.tgz#e6d9dbe57cbefe60751f02af336195870c90c01e" + +hoek@2.x.x: + version "2.16.3" + resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" + +homedir-polyfill@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz#4c2bbc8a758998feebf5ed68580f76d46768b4bc" + dependencies: + parse-passwd "^1.0.0" + +http-errors@1.6.2, http-errors@~1.6.2: + version "1.6.2" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.2.tgz#0a002cc85707192a7e7946ceedc11155f60ec736" + dependencies: + depd "1.1.1" + inherits "2.0.3" + setprototypeof "1.0.3" + statuses ">= 1.3.1 < 2" + +http-signature@~1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" + dependencies: + assert-plus "^0.2.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +iconv-lite@0.4.19: + version "0.4.19" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" + +ignore-by-default@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09" + +import-lazy@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + +inflection@1.12.0: + version "1.12.0" + resolved "https://registry.yarnpkg.com/inflection/-/inflection-1.12.0.tgz#a200935656d6f5f6bc4dc7502e1aecb703228416" + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@~2.0.0, inherits@~2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + +ini@^1.3.4, ini@~1.3.0: + version "1.3.5" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" + +interpret@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.1.0.tgz#7ed1b1410c6a0e0f78cf95d3b8440c63f78b8614" + +ip-regex@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-1.0.3.tgz#dc589076f659f419c222039a33316f1c7387effd" + +ipaddr.js@1.5.2: + version "1.5.2" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.5.2.tgz#d4b505bde9946987ccf0fc58d9010ff9607e3fa0" + +is-accessor-descriptor@^0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" + dependencies: + kind-of "^3.0.2" + +is-accessor-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" + dependencies: + kind-of "^6.0.0" + +is-binary-path@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" + dependencies: + binary-extensions "^1.0.0" + +is-bluebird@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-bluebird/-/is-bluebird-1.0.2.tgz#096439060f4aa411abee19143a84d6a55346d6e2" + +is-buffer@^1.1.5: + version "1.1.6" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" + +is-data-descriptor@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" + dependencies: + kind-of "^3.0.2" + +is-data-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" + dependencies: + kind-of "^6.0.0" + +is-descriptor@^0.1.0: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" + dependencies: + is-accessor-descriptor "^0.1.6" + is-data-descriptor "^0.1.4" + kind-of "^5.0.0" + +is-descriptor@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" + dependencies: + is-accessor-descriptor "^1.0.0" + is-data-descriptor "^1.0.0" + kind-of "^6.0.2" + +is-extendable@^0.1.0, is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + +is-extendable@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" + dependencies: + is-plain-object "^2.0.4" + +is-extglob@^2.1.0, is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + +is-fullwidth-code-point@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + +is-glob@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" + dependencies: + is-extglob "^2.1.0" + +is-glob@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.0.tgz#9521c76845cc2610a85203ddf080a958c2ffabc0" + dependencies: + is-extglob "^2.1.1" + +is-installed-globally@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.1.0.tgz#0dfd98f5a9111716dd535dda6492f67bf3d25a80" + dependencies: + global-dirs "^0.1.0" + is-path-inside "^1.0.0" + +is-ip@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-ip/-/is-ip-1.0.0.tgz#2bb6959f797ccd6f9fdc812758bcbc87c4c59074" + dependencies: + ip-regex "^1.0.0" + +is-npm@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-1.0.0.tgz#f2fb63a65e4905b406c86072765a1a4dc793b9f4" + +is-number@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" + dependencies: + kind-of "^3.0.2" + +is-obj@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" + +is-odd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-odd/-/is-odd-1.0.0.tgz#3b8a932eb028b3775c39bb09e91767accdb69088" + dependencies: + is-number "^3.0.0" + +is-path-inside@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036" + dependencies: + path-is-inside "^1.0.1" + +is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + dependencies: + isobject "^3.0.1" + +is-redirect@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-redirect/-/is-redirect-1.0.0.tgz#1d03dded53bd8db0f30c26e4f95d36fc7c87dc24" + +is-retry-allowed@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz#11a060568b67339444033d0125a61a20d564fb34" + +is-stream@^1.0.0, is-stream@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + +isarray@1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + dependencies: + isarray "1.0.0" + +isobject@^3.0.0, isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + +js-string-escape@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/js-string-escape/-/js-string-escape-1.0.1.tgz#e2625badbc0d67c7533e9edc1068c587ae4137ef" + +js-tokens@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" + +js-yaml@^3.7.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.10.0.tgz#2e78441646bd4682e963f22b6e92823c309c62dc" + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + +json-schema@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" + +json-stable-stringify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" + dependencies: + jsonify "~0.0.0" + +json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + +json3@3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/json3/-/json3-3.3.2.tgz#3c0434743df93e2f5c42aee7b19bcb483575f4e1" + +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" + optionalDependencies: + graceful-fs "^4.1.6" + +jsonify@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" + +jsprim@^1.2.2: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" + dependencies: + assert-plus "1.0.0" + extsprintf "1.3.0" + json-schema "0.2.3" + verror "1.10.0" + +kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" + dependencies: + is-buffer "^1.1.5" + +kind-of@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" + dependencies: + is-buffer "^1.1.5" + +kind-of@^5.0.0, kind-of@^5.0.2: + version "5.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" + +kind-of@^6.0.0, kind-of@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" + +latest-version@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-3.1.0.tgz#a205383fea322b33b5ae3b18abee0dc2f356ee15" + dependencies: + package-json "^4.0.0" + +lazy-cache@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" + +lazy-cache@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-2.0.2.tgz#b9190a4f913354694840859f8a8f7084d8822264" + dependencies: + set-getter "^0.1.0" + +lodash._baseassign@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/lodash._baseassign/-/lodash._baseassign-3.2.0.tgz#8c38a099500f215ad09e59f1722fd0c52bfe0a4e" + dependencies: + lodash._basecopy "^3.0.0" + lodash.keys "^3.0.0" + +lodash._basecopy@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" + +lodash._basecreate@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz#1bc661614daa7fc311b7d03bf16806a0213cf821" + +lodash._getnative@^3.0.0: + version "3.9.1" + resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" + +lodash._isiterateecall@^3.0.0: + version "3.0.9" + resolved "https://registry.yarnpkg.com/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz#5203ad7ba425fae842460e696db9cf3e6aac057c" + +lodash.create@3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/lodash.create/-/lodash.create-3.1.1.tgz#d7f2849f0dbda7e04682bb8cd72ab022461debe7" + dependencies: + lodash._baseassign "^3.0.0" + lodash._basecreate "^3.0.0" + lodash._isiterateecall "^3.0.0" + +lodash.isarguments@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" + +lodash.isarray@^3.0.0: + version "3.0.4" + resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" + +lodash.keys@^3.0.0: + version "3.1.2" + resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a" + dependencies: + lodash._getnative "^3.0.0" + lodash.isarguments "^3.0.0" + lodash.isarray "^3.0.0" + +lodash@3.x: + version "3.10.1" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6" + +lodash@^4.13.1, lodash@^4.17.1: + version "4.17.5" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511" + +longest@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" + +lowercase-keys@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.0.tgz#4e3366b39e7f5457e35f1324bdf6f88d0bfc7306" + +lru-cache@^4.0.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55" + dependencies: + pseudomap "^1.0.2" + yallist "^2.1.2" + +make-dir@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.1.0.tgz#19b4369fe48c116f53c2af95ad102c0e39e85d51" + dependencies: + pify "^3.0.0" + +make-error@^1.1.1: + version "1.3.3" + resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.3.tgz#a97ae14ffd98b05f543e83ddc395e1b2b6e4cc6a" + +map-cache@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" + +map-stream@~0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/map-stream/-/map-stream-0.1.0.tgz#e56aa94c4c8055a16404a0674b78f215f7c8e194" + +map-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" + dependencies: + object-visit "^1.0.0" + +marked@^0.3.12: + version "0.3.12" + resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.12.tgz#7cf25ff2252632f3fe2406bde258e94eee927519" + +media-typer@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" + +merge-descriptors@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" + +methods@^1.1.1, methods@^1.1.2, methods@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" + +micromatch@^3.1.4: + version "3.1.5" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.5.tgz#d05e168c206472dfbca985bfef4f57797b4cd4ba" + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + braces "^2.3.0" + define-property "^1.0.0" + extend-shallow "^2.0.1" + extglob "^2.0.2" + fragment-cache "^0.2.1" + kind-of "^6.0.0" + nanomatch "^1.2.5" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +mime-db@~1.30.0: + version "1.30.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.30.0.tgz#74c643da2dd9d6a45399963465b26d5ca7d71f01" + +mime-types@^2.1.10, mime-types@^2.1.12, mime-types@~2.1.15, mime-types@~2.1.16, mime-types@~2.1.7: + version "2.1.17" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.17.tgz#09d7a393f03e995a79f8af857b70a9e0ab16557a" + dependencies: + mime-db "~1.30.0" + +mime@1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6" + +mime@^1.3.4: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + +minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + dependencies: + brace-expansion "^1.1.7" + +minimist@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + +minimist@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + +minimist@~0.0.1: + version "0.0.10" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" + +mixin-deep@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.1.tgz#a49e7268dce1a0d9698e45326c5626df3543d0fe" + dependencies: + for-in "^1.0.2" + is-extendable "^1.0.1" + +mkdirp@0.5.1, "mkdirp@>=0.5 0", mkdirp@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + dependencies: + minimist "0.0.8" + +mocha@^3.1.2: + version "3.5.3" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-3.5.3.tgz#1e0480fe36d2da5858d1eb6acc38418b26eaa20d" + dependencies: + browser-stdout "1.3.0" + commander "2.9.0" + debug "2.6.8" + diff "3.2.0" + escape-string-regexp "1.0.5" + glob "7.1.1" + growl "1.9.2" + he "1.1.1" + json3 "3.3.2" + lodash.create "3.1.1" + mkdirp "0.5.1" + supports-color "3.1.2" + +moment-timezone@^0.5.14: + version "0.5.14" + resolved "https://registry.yarnpkg.com/moment-timezone/-/moment-timezone-0.5.14.tgz#4eb38ff9538b80108ba467a458f3ed4268ccfcb1" + dependencies: + moment ">= 2.9.0" + +"moment@>= 2.9.0", moment@^2.20.0: + version "2.20.1" + resolved "https://registry.yarnpkg.com/moment/-/moment-2.20.1.tgz#d6eb1a46cbcc14a2b2f9434112c1ff8907f313fd" + +morgan@^1.9.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/morgan/-/morgan-1.9.0.tgz#d01fa6c65859b76fcf31b3cb53a3821a311d8051" + dependencies: + basic-auth "~2.0.0" + debug "2.6.9" + depd "~1.1.1" + on-finished "~2.3.0" + on-headers "~1.0.1" + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + +nan@^2.3.0: + version "2.8.0" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.8.0.tgz#ed715f3fe9de02b57a5e6252d90a96675e1f085a" + +nanomatch@^1.2.5: + version "1.2.7" + resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.7.tgz#53cd4aa109ff68b7f869591fdc9d10daeeea3e79" + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + define-property "^1.0.0" + extend-shallow "^2.0.1" + fragment-cache "^0.2.1" + is-odd "^1.0.0" + kind-of "^5.0.2" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +negotiator@0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9" + +node-pre-gyp@^0.6.39: + version "0.6.39" + resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.39.tgz#c00e96860b23c0e1420ac7befc5044e1d78d8649" + dependencies: + detect-libc "^1.0.2" + hawk "3.1.3" + mkdirp "^0.5.1" + nopt "^4.0.1" + npmlog "^4.0.2" + rc "^1.1.7" + request "2.81.0" + rimraf "^2.6.1" + semver "^5.3.0" + tar "^2.2.1" + tar-pack "^3.4.0" + +nodemon@^1.14.10: + version "1.14.12" + resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-1.14.12.tgz#fe059424b15ebdb107696287a558d9cf53a63999" + dependencies: + chokidar "^2.0.0" + debug "^3.1.0" + ignore-by-default "^1.0.1" + minimatch "^3.0.4" + pstree.remy "^1.1.0" + semver "^5.4.1" + touch "^3.1.0" + undefsafe "^2.0.1" + update-notifier "^2.3.0" + +nopt@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" + dependencies: + abbrev "1" + osenv "^0.1.4" + +nopt@~1.0.10: + version "1.0.10" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee" + dependencies: + abbrev "1" + +normalize-path@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" + dependencies: + remove-trailing-separator "^1.0.1" + +npm-run-path@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" + dependencies: + path-key "^2.0.0" + +npmlog@^4.0.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" + dependencies: + are-we-there-yet "~1.1.2" + console-control-strings "~1.1.0" + gauge "~2.7.3" + set-blocking "~2.0.0" + +number-is-nan@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + +oauth-sign@~0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" + +object-assign@^4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + +object-copy@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" + dependencies: + copy-descriptor "^0.1.0" + define-property "^0.2.5" + kind-of "^3.0.3" + +object-visit@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" + dependencies: + isobject "^3.0.0" + +object.pick@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" + dependencies: + isobject "^3.0.1" + +on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" + dependencies: + ee-first "1.1.1" + +on-headers@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7" + +once@^1.3.0, once@^1.3.3: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + dependencies: + wrappy "1" + +optimist@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" + dependencies: + minimist "~0.0.1" + wordwrap "~0.0.2" + +os-homedir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + +os-tmpdir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + +osenv@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.4.tgz#42fe6d5953df06c8064be6f176c3d05aaaa34644" + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + +package-json@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/package-json/-/package-json-4.0.1.tgz#8869a0401253661c4c4ca3da6c2121ed555f5eed" + dependencies: + got "^6.7.1" + registry-auth-token "^3.0.1" + registry-url "^3.0.3" + semver "^5.1.0" + +packet-reader@0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/packet-reader/-/packet-reader-0.3.1.tgz#cd62e60af8d7fea8a705ec4ff990871c46871f27" + +parse-passwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" + +parseurl@~1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.2.tgz#fc289d4ed8993119460c156253262cdc8de65bf3" + +pascalcase@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" + +path-dirname@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + +path-is-inside@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" + +path-key@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" + +path-parse@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" + +path-to-regexp@0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" + +pause-stream@0.0.11: + version "0.0.11" + resolved "https://registry.yarnpkg.com/pause-stream/-/pause-stream-0.0.11.tgz#fe5a34b0cbce12b5aa6a2b403ee2e73b602f1445" + dependencies: + through "~2.3" + +performance-now@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" + +pg-connection-string@0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/pg-connection-string/-/pg-connection-string-0.1.3.tgz#da1847b20940e42ee1492beaf65d49d91b245df7" + +pg-hstore@^2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/pg-hstore/-/pg-hstore-2.3.2.tgz#f7ef053e7b9b892ae986af2f7cbe86432dfcf24f" + dependencies: + underscore "^1.7.0" + +pg-pool@~2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/pg-pool/-/pg-pool-2.0.3.tgz#c022032c8949f312a4f91fb6409ce04076be3257" + +pg-types@~1.12.1: + version "1.12.1" + resolved "https://registry.yarnpkg.com/pg-types/-/pg-types-1.12.1.tgz#d64087e3903b58ffaad279e7595c52208a14c3d2" + dependencies: + postgres-array "~1.0.0" + postgres-bytea "~1.0.0" + postgres-date "~1.0.0" + postgres-interval "^1.1.0" + +pg@^7.4.1: + version "7.4.1" + resolved "https://registry.yarnpkg.com/pg/-/pg-7.4.1.tgz#f3411c8ddf9f692322fe05e7017a1888e47f78f1" + dependencies: + buffer-writer "1.0.1" + js-string-escape "1.0.1" + packet-reader "0.3.1" + pg-connection-string "0.1.3" + pg-pool "~2.0.3" + pg-types "~1.12.1" + pgpass "1.x" + semver "4.3.2" + +pgpass@1.x: + version "1.0.2" + resolved "https://registry.yarnpkg.com/pgpass/-/pgpass-1.0.2.tgz#2a7bb41b6065b67907e91da1b07c1847c877b306" + dependencies: + split "^1.0.0" + +pify@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" + +posix-character-classes@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" + +postgres-array@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/postgres-array/-/postgres-array-1.0.2.tgz#8e0b32eb03bf77a5c0a7851e0441c169a256a238" + +postgres-bytea@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/postgres-bytea/-/postgres-bytea-1.0.0.tgz#027b533c0aa890e26d172d47cf9ccecc521acd35" + +postgres-date@~1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/postgres-date/-/postgres-date-1.0.3.tgz#e2d89702efdb258ff9d9cee0fe91bd06975257a8" + +postgres-interval@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/postgres-interval/-/postgres-interval-1.1.1.tgz#acdb0f897b4b1c6e496d9d4e0a853e1c428f06f0" + dependencies: + xtend "^4.0.0" + +prepend-http@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" + +printj@~1.1.0, printj@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/printj/-/printj-1.1.1.tgz#3749360215888d460a35b683ae13dcc02c620b47" + +process-nextick-args@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" + +progress@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f" + +proxy-addr@~2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.2.tgz#6571504f47bb988ec8180253f85dd7e14952bdec" + dependencies: + forwarded "~0.1.2" + ipaddr.js "1.5.2" + +ps-tree@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/ps-tree/-/ps-tree-1.1.0.tgz#b421b24140d6203f1ed3c76996b4427b08e8c014" + dependencies: + event-stream "~3.3.0" + +pseudomap@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + +pstree.remy@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/pstree.remy/-/pstree.remy-1.1.0.tgz#f2af27265bd3e5b32bbfcc10e80bac55ba78688b" + dependencies: + ps-tree "^1.1.0" + +punycode@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + +qs@6.5.1, qs@^6.1.0, qs@^6.2.0: + version "6.5.1" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.1.tgz#349cdf6eef89ec45c12d7d5eb3fc0c870343a6d8" + +qs@~6.4.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" + +range-parser@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.0.tgz#f49be6b487894ddc40dcc94a322f611092e00d5e" + +raw-body@2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.3.2.tgz#bcd60c77d3eb93cde0050295c3f379389bc88f89" + dependencies: + bytes "3.0.0" + http-errors "1.6.2" + iconv-lite "0.4.19" + unpipe "1.0.0" + +rc@^1.0.1, rc@^1.1.6, rc@^1.1.7: + version "1.2.5" + resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.5.tgz#275cd687f6e3b36cc756baa26dfee80a790301fd" + dependencies: + deep-extend "~0.4.0" + ini "~1.3.0" + minimist "^1.2.0" + strip-json-comments "~2.0.1" + +readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.1.4: + version "2.3.4" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.4.tgz#c946c3f47fa7d8eabc0b6150f4a12f69a4574071" + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.0.3" + util-deprecate "~1.0.1" + +readdirp@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.1.0.tgz#4ed0ad060df3073300c48440373f72d1cc642d78" + dependencies: + graceful-fs "^4.1.2" + minimatch "^3.0.2" + readable-stream "^2.0.2" + set-immediate-shim "^1.0.1" + +rechoir@^0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" + dependencies: + resolve "^1.1.6" + +reflect-metadata@^0.1.12: + version "0.1.12" + resolved "https://registry.yarnpkg.com/reflect-metadata/-/reflect-metadata-0.1.12.tgz#311bf0c6b63cd782f228a81abe146a2bfa9c56f2" + +regex-not@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.0.tgz#42f83e39771622df826b02af176525d6a5f157f9" + dependencies: + extend-shallow "^2.0.1" + +registry-auth-token@^3.0.1: + version "3.3.2" + resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-3.3.2.tgz#851fd49038eecb586911115af845260eec983f20" + dependencies: + rc "^1.1.6" + safe-buffer "^5.0.1" + +registry-url@^3.0.3: + version "3.1.0" + resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-3.1.0.tgz#3d4ef870f73dde1d77f0cf9a381432444e174942" + dependencies: + rc "^1.0.1" + +remove-trailing-separator@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" + +repeat-element@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" + +repeat-string@^1.5.2, repeat-string@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + +request@2.81.0: + version "2.81.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" + dependencies: + aws-sign2 "~0.6.0" + aws4 "^1.2.1" + caseless "~0.12.0" + combined-stream "~1.0.5" + extend "~3.0.0" + forever-agent "~0.6.1" + form-data "~2.1.1" + har-validator "~4.2.1" + hawk "~3.1.3" + http-signature "~1.1.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.7" + oauth-sign "~0.8.1" + performance-now "^0.2.0" + qs "~6.4.0" + safe-buffer "^5.0.1" + stringstream "~0.0.4" + tough-cookie "~2.3.0" + tunnel-agent "^0.6.0" + uuid "^3.0.0" + +resolve-url@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" + +resolve@^1.1.6, resolve@^1.3.2: + version "1.5.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36" + dependencies: + path-parse "^1.0.5" + +retry-as-promised@^2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/retry-as-promised/-/retry-as-promised-2.3.2.tgz#cd974ee4fd9b5fe03cbf31871ee48221c07737b7" + dependencies: + bluebird "^3.4.6" + debug "^2.6.9" + +right-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" + dependencies: + align-text "^0.1.1" + +rimraf@2, rimraf@^2.5.1, rimraf@^2.6.1: + version "2.6.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.2.tgz#2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36" + dependencies: + glob "^7.0.5" + +safe-buffer@5.1.1, safe-buffer@^5.0.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853" + +semver-diff@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36" + dependencies: + semver "^5.0.3" + +semver@4.3.2: + version "4.3.2" + resolved "https://registry.yarnpkg.com/semver/-/semver-4.3.2.tgz#c7a07158a80bedd052355b770d82d6640f803be7" + +semver@^5.0.3, semver@^5.1.0, semver@^5.3.0, semver@^5.4.1, semver@^5.5.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" + +send@0.16.1: + version "0.16.1" + resolved "https://registry.yarnpkg.com/send/-/send-0.16.1.tgz#a70e1ca21d1382c11d0d9f6231deb281080d7ab3" + dependencies: + debug "2.6.9" + depd "~1.1.1" + destroy "~1.0.4" + encodeurl "~1.0.1" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "0.5.2" + http-errors "~1.6.2" + mime "1.4.1" + ms "2.0.0" + on-finished "~2.3.0" + range-parser "~1.2.0" + statuses "~1.3.1" + +sequelize-typescript@^0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/sequelize-typescript/-/sequelize-typescript-0.6.2.tgz#c0c7685143b0dae81def55a8f1b52d98868255a7" + dependencies: + "@types/bluebird" "3.5.18" + "@types/node" "6.0.41" + "@types/reflect-metadata" "0.0.4" + "@types/sequelize" "4.0.79" + es6-shim "0.35.3" + glob "7.1.2" + +sequelize@^4.32.7: + version "4.33.4" + resolved "https://registry.yarnpkg.com/sequelize/-/sequelize-4.33.4.tgz#5581183e8bb902499ea1be96aa8585743a2b9b1c" + dependencies: + bluebird "^3.5.0" + cls-bluebird "^2.1.0" + debug "^3.1.0" + depd "^1.1.0" + dottie "^2.0.0" + generic-pool "^3.4.0" + inflection "1.12.0" + lodash "^4.17.1" + moment "^2.20.0" + moment-timezone "^0.5.14" + retry-as-promised "^2.3.2" + semver "^5.5.0" + terraformer-wkt-parser "^1.1.2" + toposort-class "^1.0.1" + uuid "^3.2.1" + validator "^9.4.0" + wkx "^0.4.1" + +serve-static@1.13.1: + version "1.13.1" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.13.1.tgz#4c57d53404a761d8f2e7c1e8a18a47dbf278a719" + dependencies: + encodeurl "~1.0.1" + escape-html "~1.0.3" + parseurl "~1.3.2" + send "0.16.1" + +set-blocking@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + +set-getter@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/set-getter/-/set-getter-0.1.0.tgz#d769c182c9d5a51f409145f2fba82e5e86e80376" + dependencies: + to-object-path "^0.3.0" + +set-immediate-shim@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" + +set-value@^0.4.3: + version "0.4.3" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-0.4.3.tgz#7db08f9d3d22dc7f78e53af3c3bf4666ecdfccf1" + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.1" + to-object-path "^0.3.0" + +set-value@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.0.tgz#71ae4a88f0feefbbf52d1ea604f3fb315ebb6274" + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.3" + split-string "^3.0.1" + +setprototypeof@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.0.3.tgz#66567e37043eeb4f04d91bd658c0cbefb55b8e04" + +setprototypeof@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" + +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + dependencies: + shebang-regex "^1.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + +shelljs@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.1.tgz#729e038c413a2254c4078b95ed46e0397154a9f1" + dependencies: + glob "^7.0.0" + interpret "^1.0.0" + rechoir "^0.6.2" + +shimmer@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shimmer/-/shimmer-1.2.0.tgz#f966f7555789763e74d8841193685a5e78736665" + +signal-exit@^3.0.0, signal-exit@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" + +snapdragon-node@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" + dependencies: + define-property "^1.0.0" + isobject "^3.0.0" + snapdragon-util "^3.0.1" + +snapdragon-util@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" + dependencies: + kind-of "^3.2.0" + +snapdragon@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.1.tgz#e12b5487faded3e3dea0ac91e9400bf75b401370" + dependencies: + base "^0.11.1" + debug "^2.2.0" + define-property "^0.2.5" + extend-shallow "^2.0.1" + map-cache "^0.2.2" + source-map "^0.5.6" + source-map-resolve "^0.5.0" + use "^2.0.0" + +sntp@1.x.x: + version "1.0.9" + resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" + dependencies: + hoek "2.x.x" + +source-map-resolve@^0.5.0: + version "0.5.1" + resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.1.tgz#7ad0f593f2281598e854df80f19aae4b92d7a11a" + dependencies: + atob "^2.0.0" + decode-uri-component "^0.2.0" + resolve-url "^0.2.1" + source-map-url "^0.4.0" + urix "^0.1.0" + +source-map-support@^0.4.0: + version "0.4.18" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" + dependencies: + source-map "^0.5.6" + +source-map-url@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" + +source-map@^0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" + dependencies: + amdefine ">=0.0.4" + +source-map@^0.5.6, source-map@~0.5.1: + version "0.5.7" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" + +split-string@^3.0.1, split-string@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" + dependencies: + extend-shallow "^3.0.0" + +split@0.3: + version "0.3.3" + resolved "https://registry.yarnpkg.com/split/-/split-0.3.3.tgz#cd0eea5e63a211dfff7eb0f091c4133e2d0dd28f" + dependencies: + through "2" + +split@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/split/-/split-1.0.1.tgz#605bd9be303aa59fb35f9229fbea0ddec9ea07d9" + dependencies: + through "2" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + +ssf@~0.10.1: + version "0.10.1" + resolved "https://registry.yarnpkg.com/ssf/-/ssf-0.10.1.tgz#f23d82b63792ef56089089c1cd0c848e911cdba6" + dependencies: + frac "~1.1.0" + +sshpk@^1.7.0: + version "1.13.1" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.13.1.tgz#512df6da6287144316dc4c18fe1cf1d940739be3" + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + dashdash "^1.12.0" + getpass "^0.1.1" + optionalDependencies: + bcrypt-pbkdf "^1.0.0" + ecc-jsbn "~0.1.1" + jsbn "~0.1.0" + tweetnacl "~0.14.0" + +static-extend@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" + dependencies: + define-property "^0.2.5" + object-copy "^0.1.0" + +"statuses@>= 1.3.1 < 2": + version "1.4.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.4.0.tgz#bb73d446da2796106efcc1b601a253d6c46bd087" + +statuses@~1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.3.1.tgz#faf51b9eb74aaef3b3acf4ad5f61abf24cb7b93e" + +stream-combiner@~0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/stream-combiner/-/stream-combiner-0.0.4.tgz#4d5e433c185261dde623ca3f44c586bcf5c4ad14" + dependencies: + duplexer "~0.1.1" + +string-width@^1.0.1, string-width@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + strip-ansi "^3.0.0" + +string-width@^2.0.0, string-width@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^4.0.0" + +string_decoder@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.0.3.tgz#0fc67d7c141825de94282dd536bec6b9bce860ab" + dependencies: + safe-buffer "~5.1.0" + +stringstream@~0.0.4: + version "0.0.5" + resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + dependencies: + ansi-regex "^2.0.0" + +strip-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" + dependencies: + ansi-regex "^3.0.0" + +strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + +strip-eof@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" + +strip-json-comments@^2.0.0, strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + +superagent@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/superagent/-/superagent-2.3.0.tgz#703529a0714e57e123959ddefbce193b2e50d115" + dependencies: + component-emitter "^1.2.0" + cookiejar "^2.0.6" + debug "^2.2.0" + extend "^3.0.0" + form-data "1.0.0-rc4" + formidable "^1.0.17" + methods "^1.1.1" + mime "^1.3.4" + qs "^6.1.0" + readable-stream "^2.0.5" + +supports-color@3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.1.2.tgz#72a262894d9d408b956ca05ff37b2ed8a6e2a2d5" + dependencies: + has-flag "^1.0.0" + +supports-color@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + +supports-color@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.2.0.tgz#b0d5333b1184dd3666cbe5aa0b45c5ac7ac17a4a" + dependencies: + has-flag "^3.0.0" + +tar-pack@^3.4.0: + version "3.4.1" + resolved "https://registry.yarnpkg.com/tar-pack/-/tar-pack-3.4.1.tgz#e1dbc03a9b9d3ba07e896ad027317eb679a10a1f" + dependencies: + debug "^2.2.0" + fstream "^1.0.10" + fstream-ignore "^1.0.5" + once "^1.3.3" + readable-stream "^2.1.4" + rimraf "^2.5.1" + tar "^2.2.1" + uid-number "^0.0.6" + +tar@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.1.tgz#8e4d2a256c0e2185c6b18ad694aec968b83cb1d1" + dependencies: + block-stream "*" + fstream "^1.0.2" + inherits "2" + +term-size@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/term-size/-/term-size-1.2.0.tgz#458b83887f288fc56d6fffbfad262e26638efa69" + dependencies: + execa "^0.7.0" + +terraformer-wkt-parser@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/terraformer-wkt-parser/-/terraformer-wkt-parser-1.1.2.tgz#336a0c8fc82094a5aff83288f69aedecd369bf0c" + dependencies: + terraformer "~1.0.5" + +terraformer@~1.0.5: + version "1.0.8" + resolved "https://registry.yarnpkg.com/terraformer/-/terraformer-1.0.8.tgz#51e0ad89746fcf2161dc6f65aa70e42377c8b593" + dependencies: + "@types/geojson" "^1.0.0" + +through@2, through@~2.3, through@~2.3.1: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + +timed-out@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" + +to-object-path@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" + dependencies: + kind-of "^3.0.2" + +to-regex-range@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" + dependencies: + is-number "^3.0.0" + repeat-string "^1.6.1" + +to-regex@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.1.tgz#15358bee4a2c83bd76377ba1dc049d0f18837aae" + dependencies: + define-property "^0.2.5" + extend-shallow "^2.0.1" + regex-not "^1.0.0" + +toposort-class@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/toposort-class/-/toposort-class-1.0.1.tgz#7ffd1f78c8be28c3ba45cd4e1a3f5ee193bd9988" + +touch@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/touch/-/touch-3.1.0.tgz#fe365f5f75ec9ed4e56825e0bb76d24ab74af83b" + dependencies: + nopt "~1.0.10" + +tough-cookie@~2.3.0: + version "2.3.3" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.3.tgz#0b618a5565b6dea90bf3425d04d55edc475a7561" + dependencies: + punycode "^1.4.1" + +ts-node@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-3.3.0.tgz#c13c6a3024e30be1180dd53038fc209289d4bf69" + dependencies: + arrify "^1.0.0" + chalk "^2.0.0" + diff "^3.1.0" + make-error "^1.1.1" + minimist "^1.2.0" + mkdirp "^0.5.1" + source-map-support "^0.4.0" + tsconfig "^6.0.0" + v8flags "^3.0.0" + yn "^2.0.0" + +tsconfig@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/tsconfig/-/tsconfig-6.0.0.tgz#6b0e8376003d7af1864f8df8f89dd0059ffcd032" + dependencies: + strip-bom "^3.0.0" + strip-json-comments "^2.0.0" + +tslib@^1.8.0, tslib@^1.8.1: + version "1.9.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8" + +tslint@^5.9.1: + version "5.9.1" + resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.9.1.tgz#1255f87a3ff57eb0b0e1f0e610a8b4748046c9ae" + dependencies: + babel-code-frame "^6.22.0" + builtin-modules "^1.1.1" + chalk "^2.3.0" + commander "^2.12.1" + diff "^3.2.0" + glob "^7.1.1" + js-yaml "^3.7.0" + minimatch "^3.0.4" + resolve "^1.3.2" + semver "^5.3.0" + tslib "^1.8.0" + tsutils "^2.12.1" + +tsutils@^2.12.1: + version "2.21.1" + resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.21.1.tgz#5b23c263233300ed7442b4217855cbc7547c296a" + dependencies: + tslib "^1.8.1" + +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + dependencies: + safe-buffer "^5.0.1" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + +type-detect@0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-0.1.1.tgz#0ba5ec2a885640e470ea4e8505971900dac58822" + +type-detect@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-1.0.0.tgz#762217cc06db258ec48908a1298e8b95121e8ea2" + +type-is@~1.6.15: + version "1.6.15" + resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.15.tgz#cab10fb4909e441c82842eafe1ad646c81804410" + dependencies: + media-typer "0.3.0" + mime-types "~2.1.15" + +typedoc-default-themes@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/typedoc-default-themes/-/typedoc-default-themes-0.5.0.tgz#6dc2433e78ed8bea8e887a3acde2f31785bd6227" + +typedoc@^0.10.0: + version "0.10.0" + resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.10.0.tgz#898b447248dabf68ecbde9d5ccf5141fda8aa166" + dependencies: + "@types/fs-extra" "5.0.0" + "@types/handlebars" "4.0.36" + "@types/highlight.js" "9.12.2" + "@types/lodash" "4.14.99" + "@types/marked" "0.3.0" + "@types/minimatch" "3.0.3" + "@types/shelljs" "0.7.7" + fs-extra "^5.0.0" + handlebars "^4.0.6" + highlight.js "^9.0.0" + lodash "^4.13.1" + marked "^0.3.12" + minimatch "^3.0.0" + progress "^2.0.0" + shelljs "^0.8.1" + typedoc-default-themes "^0.5.0" + typescript "2.7.1" + +typescript@2.7.1, typescript@^2.7.1: + version "2.7.1" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.7.1.tgz#bb3682c2c791ac90e7c6210b26478a8da085c359" + +uglify-js@^2.6: + version "2.8.29" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" + dependencies: + source-map "~0.5.1" + yargs "~3.10.0" + optionalDependencies: + uglify-to-browserify "~1.0.0" + +uglify-to-browserify@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" + +uid-number@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/uid-number/-/uid-number-0.0.6.tgz#0ea10e8035e8eb5b8e4449f06da1c730663baa81" + +undefsafe@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/undefsafe/-/undefsafe-2.0.1.tgz#03b2f2a16c94556e14b2edef326cd66aaf82707a" + dependencies: + debug "^2.2.0" + +underscore.string@2.3.x: + version "2.3.3" + resolved "https://registry.yarnpkg.com/underscore.string/-/underscore.string-2.3.3.tgz#71c08bf6b428b1133f37e78fa3a21c82f7329b0d" + +underscore@^1.7.0: + version "1.8.3" + resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.8.3.tgz#4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022" + +union-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.0.tgz#5c71c34cb5bad5dcebe3ea0cd08207ba5aa1aea4" + dependencies: + arr-union "^3.1.0" + get-value "^2.0.6" + is-extendable "^0.1.1" + set-value "^0.4.3" + +unique-string@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-1.0.0.tgz#9e1057cca851abb93398f8b33ae187b99caec11a" + dependencies: + crypto-random-string "^1.0.0" + +universalify@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.1.tgz#fa71badd4437af4c148841e3b3b165f9e9e590b7" + +unpipe@1.0.0, unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + +unset-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" + dependencies: + has-value "^0.3.1" + isobject "^3.0.0" + +unzip-response@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97" + +upath@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/upath/-/upath-1.0.0.tgz#b4706b9461ca8473adf89133d235689ca17f3656" + dependencies: + lodash "3.x" + underscore.string "2.3.x" + +update-notifier@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.3.0.tgz#4e8827a6bb915140ab093559d7014e3ebb837451" + dependencies: + boxen "^1.2.1" + chalk "^2.0.1" + configstore "^3.0.0" + import-lazy "^2.1.0" + is-installed-globally "^0.1.0" + is-npm "^1.0.0" + latest-version "^3.0.0" + semver-diff "^2.0.0" + xdg-basedir "^3.0.0" + +urix@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" + +url-parse-lax@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-1.0.0.tgz#7af8f303645e9bd79a272e7a14ac68bc0609da73" + dependencies: + prepend-http "^1.0.1" + +use@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/use/-/use-2.0.2.tgz#ae28a0d72f93bf22422a18a2e379993112dec8e8" + dependencies: + define-property "^0.2.5" + isobject "^3.0.0" + lazy-cache "^2.0.2" + +util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + +utils-merge@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" + +uuid@^3.0.0, uuid@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.2.1.tgz#12c528bb9d58d0b9265d9a2f6f0fe8be17ff1f14" + +v8flags@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-3.0.1.tgz#dce8fc379c17d9f2c9e9ed78d89ce00052b1b76b" + dependencies: + homedir-polyfill "^1.0.1" + +validator@^9.4.0: + version "9.4.0" + resolved "https://registry.yarnpkg.com/validator/-/validator-9.4.0.tgz#c503ef88f7e6b8fb7688599267b309482d81ae60" + +vary@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" + +verror@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" + dependencies: + assert-plus "^1.0.0" + core-util-is "1.0.2" + extsprintf "^1.2.0" + +voc@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/voc/-/voc-1.0.0.tgz#5465c0ce11d0881f7d8e36d8ca587043f33a25ae" + +which@^1.2.9: + version "1.3.0" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" + dependencies: + isexe "^2.0.0" + +wide-align@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.2.tgz#571e0f1b0604636ebc0dfc21b0339bbe31341710" + dependencies: + string-width "^1.0.2" + +widest-line@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-2.0.0.tgz#0142a4e8a243f8882c0233aa0e0281aa76152273" + dependencies: + string-width "^2.1.1" + +window-size@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" + +wkx@^0.4.1: + version "0.4.2" + resolved "https://registry.yarnpkg.com/wkx/-/wkx-0.4.2.tgz#776d35a634a5c22e656e4744bdeb54f83fd2ce8d" + dependencies: + "@types/node" "*" + +wordwrap@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" + +wordwrap@~0.0.2: + version "0.0.3" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + +write-file-atomic@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab" + dependencies: + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + signal-exit "^3.0.2" + +xdg-basedir@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-3.0.0.tgz#496b2cc109eca8dbacfe2dc72b603c17c5870ad4" + +xlsx@^0.11.19: + version "0.11.19" + resolved "https://registry.yarnpkg.com/xlsx/-/xlsx-0.11.19.tgz#2f019d9df756f6345aac5bc1af2442cf22a025e3" + dependencies: + adler-32 "~1.2.0" + cfb "~1.0.2" + codepage "~1.12.0" + commander "~2.13.0" + crc-32 "~1.2.0" + exit-on-epipe "~1.0.1" + ssf "~0.10.1" + +xtend@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" + +yallist@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" + +yargs@~3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" + dependencies: + camelcase "^1.0.2" + cliui "^2.1.0" + decamelize "^1.0.0" + window-size "0.1.0" + +yn@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/yn/-/yn-2.0.0.tgz#e5adabc8acf408f6385fc76495684c88e6af689a" -- cgit v1.2.1