2021-04-12 13:32:25 +00:00
|
|
|
import { IHost } from "../interfaces/host";
|
|
|
|
import { IQuery } from "../interfaces/query";
|
2021-11-24 17:16:42 +00:00
|
|
|
import { IPolicy } from "../interfaces/policy";
|
2021-04-12 13:32:25 +00:00
|
|
|
import URL_PREFIX from "./url_prefix";
|
2019-10-16 23:40:45 +00:00
|
|
|
|
2016-09-14 20:31:54 +00:00
|
|
|
export default {
|
2021-10-03 18:15:58 +00:00
|
|
|
ROOT: `${URL_PREFIX}/`,
|
|
|
|
HOME: `${URL_PREFIX}/dashboard`,
|
2021-03-08 16:48:29 +00:00
|
|
|
ADMIN_USERS: `${URL_PREFIX}/settings/users`,
|
|
|
|
ADMIN_SETTINGS: `${URL_PREFIX}/settings/organization`,
|
2021-04-14 09:20:56 +00:00
|
|
|
ADMIN_TEAMS: `${URL_PREFIX}/settings/teams`,
|
2019-10-16 23:40:45 +00:00
|
|
|
ALL_PACKS: `${URL_PREFIX}/packs/all`,
|
2021-10-04 20:26:10 +00:00
|
|
|
EDIT_PACK: (packId: number): string => {
|
|
|
|
return `${URL_PREFIX}/packs/${packId}/edit`;
|
2019-10-16 23:40:45 +00:00
|
|
|
},
|
2021-10-04 20:26:10 +00:00
|
|
|
PACK: (packId: number): string => {
|
|
|
|
return `${URL_PREFIX}/packs/${packId}`;
|
2019-10-16 23:40:45 +00:00
|
|
|
},
|
2021-03-03 16:51:39 +00:00
|
|
|
EDIT_QUERY: (query: IQuery): string => {
|
2019-10-16 23:40:45 +00:00
|
|
|
return `${URL_PREFIX}/queries/${query.id}`;
|
2017-01-06 20:57:44 +00:00
|
|
|
},
|
2021-11-24 17:16:42 +00:00
|
|
|
EDIT_POLICY: (policy: IPolicy): string => {
|
|
|
|
return `${URL_PREFIX}/policies/${policy.id}`;
|
|
|
|
},
|
2019-10-16 23:40:45 +00:00
|
|
|
FORGOT_PASSWORD: `${URL_PREFIX}/login/forgot`,
|
2021-06-17 15:11:28 +00:00
|
|
|
API_ONLY_USER: `${URL_PREFIX}/apionlyuser`,
|
2021-06-04 16:34:27 +00:00
|
|
|
FLEET_403: `${URL_PREFIX}/403`,
|
2021-10-26 14:26:51 +00:00
|
|
|
// FLEET_500: `${URL_PREFIX}/500`,
|
2019-10-16 23:40:45 +00:00
|
|
|
LOGIN: `${URL_PREFIX}/login`,
|
|
|
|
LOGOUT: `${URL_PREFIX}/logout`,
|
|
|
|
MANAGE_HOSTS: `${URL_PREFIX}/hosts/manage`,
|
2021-03-03 16:51:39 +00:00
|
|
|
HOST_DETAILS: (host: IHost): string => {
|
2021-01-28 20:44:48 +00:00
|
|
|
return `${URL_PREFIX}/hosts/${host.id}`;
|
|
|
|
},
|
2021-04-29 13:47:33 +00:00
|
|
|
TEAM_DETAILS_MEMBERS: (teamId: number): string => {
|
|
|
|
return `${URL_PREFIX}/settings/teams/${teamId}/members`;
|
|
|
|
},
|
|
|
|
TEAM_DETAILS_OPTIONS: (teamId: number): string => {
|
|
|
|
return `${URL_PREFIX}/settings/teams/${teamId}/options`;
|
|
|
|
},
|
2019-10-16 23:40:45 +00:00
|
|
|
MANAGE_PACKS: `${URL_PREFIX}/packs/manage`,
|
|
|
|
NEW_PACK: `${URL_PREFIX}/packs/new`,
|
|
|
|
MANAGE_QUERIES: `${URL_PREFIX}/queries/manage`,
|
2021-07-26 18:41:36 +00:00
|
|
|
MANAGE_SCHEDULE: `${URL_PREFIX}/schedule/manage`,
|
2021-08-05 14:48:00 +00:00
|
|
|
MANAGE_TEAM_SCHEDULE: (teamId: number): string => {
|
|
|
|
return `${URL_PREFIX}/schedule/manage/teams/${teamId}`;
|
|
|
|
},
|
2021-08-30 23:02:53 +00:00
|
|
|
MANAGE_POLICIES: `${URL_PREFIX}/policies/manage`,
|
2021-11-24 17:16:42 +00:00
|
|
|
NEW_POLICY: `${URL_PREFIX}/policies/new`,
|
2019-10-16 23:40:45 +00:00
|
|
|
NEW_QUERY: `${URL_PREFIX}/queries/new`,
|
|
|
|
RESET_PASSWORD: `${URL_PREFIX}/login/reset`,
|
|
|
|
SETUP: `${URL_PREFIX}/setup`,
|
2021-03-08 16:48:29 +00:00
|
|
|
USER_SETTINGS: `${URL_PREFIX}/profile`,
|
2021-09-30 19:32:06 +00:00
|
|
|
URL_PREFIX,
|
2016-09-14 20:31:54 +00:00
|
|
|
};
|