2021-04-12 13:32:25 +00:00
|
|
|
import { IHost } from "../interfaces/host";
|
|
|
|
import { IPack } from "../interfaces/pack";
|
|
|
|
import { IQuery } from "../interfaces/query";
|
|
|
|
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-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-03-03 16:51:39 +00:00
|
|
|
EDIT_PACK: (pack: IPack): string => {
|
2019-10-16 23:40:45 +00:00
|
|
|
return `${URL_PREFIX}/packs/${pack.id}/edit`;
|
|
|
|
},
|
2021-03-03 16:51:39 +00:00
|
|
|
PACK: (pack: IPack): string => {
|
2019-10-16 23:40:45 +00:00
|
|
|
return `${URL_PREFIX}/packs/${pack.id}`;
|
|
|
|
},
|
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
|
|
|
},
|
2019-10-16 23:40:45 +00:00
|
|
|
FORGOT_PASSWORD: `${URL_PREFIX}/login/forgot`,
|
|
|
|
HOME: `${URL_PREFIX}/`,
|
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`,
|
2020-12-09 01:45:08 +00:00
|
|
|
FLEET_500: `${URL_PREFIX}/500`,
|
2019-10-16 23:40:45 +00:00
|
|
|
LOGIN: `${URL_PREFIX}/login`,
|
2021-08-19 01:06:03 +00:00
|
|
|
HOMEPAGE: `${URL_PREFIX}/home/dashboard`,
|
2019-10-16 23:40:45 +00:00
|
|
|
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`,
|
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`,
|
2016-09-14 20:31:54 +00:00
|
|
|
};
|