From 35744b938fcfa6378824c6eea0f28682995420a6 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Tue, 27 Feb 2024 15:18:22 +0000 Subject: [PATCH] Update import paths for FunctionsTypes --- AdminDashboard/src/Pages/Logout/Logout.tsx | 2 +- AdminDashboard/src/Pages/Settings/Probes/Index.tsx | 2 +- CommonUI/src/Components/ActionButton/ActionButtonSchema.ts | 2 +- CommonUI/src/Components/Forms/BasicForm.tsx | 2 +- CommonUI/src/Components/HeaderAlert/HeaderModelAlert.tsx | 2 +- CommonUI/src/Components/LogsViewer/LogsViewer.tsx | 2 +- CommonUI/src/Components/ModelDelete/ModelDelete.tsx | 2 +- CommonUI/src/Components/ModelDetail/ModelDetail.tsx | 2 +- CommonUI/src/Components/ModelList/ModelList.tsx | 2 +- CommonUI/src/Components/ModelProgress/ModelProgress.tsx | 2 +- CommonUI/src/Components/ModelTable/BaseModelTable.tsx | 4 ++-- CommonUI/src/Components/ResetObjectID/ResetObjectID.tsx | 2 +- CommonUI/src/Components/SideMenu/CountModelSideMenuItem.tsx | 2 +- CommonUI/src/Components/Workflow/Workflow.tsx | 2 +- Dashboard/src/Components/CallSMS/CallSMSConfigTable.tsx | 2 +- Dashboard/src/Components/CustomSMTP/CustomSMTPTable.tsx | 2 +- Dashboard/src/Components/Header/Header.tsx | 2 +- Dashboard/src/Components/Header/ProjectPicker.tsx | 2 +- Dashboard/src/Components/LogsViewer/LogsViewer.tsx | 2 +- Dashboard/src/Components/MonitorGroup/CurrentStatus.tsx | 2 +- Dashboard/src/Components/NavBar/NavBar.tsx | 2 +- Dashboard/src/Components/NotificationMethods/Call.tsx | 2 +- Dashboard/src/Components/NotificationMethods/Email.tsx | 2 +- Dashboard/src/Components/NotificationMethods/SMS.tsx | 2 +- .../OnCallPolicy/ExecutionLogs/ExecutionLogsTable.tsx | 2 +- .../OnCallPolicy/ExecutionLogs/ExecutionLogsTimelineTable.tsx | 2 +- .../Components/OnCallPolicy/OnCallScheduleLayer/Layers.tsx | 2 +- Dashboard/src/Pages/Global/ProjectInvitations.tsx | 2 +- Dashboard/src/Pages/Settings/Domains.tsx | 2 +- Dashboard/src/Pages/Settings/Probes.tsx | 2 +- Dashboard/src/Pages/StatusPages/View/Domains.tsx | 2 +- Dashboard/src/Pages/StatusPages/View/Resources.tsx | 2 +- Dashboard/src/Pages/StatusPages/View/SMSSubscribers.tsx | 2 +- Dashboard/src/Pages/StatusPages/View/SSO.tsx | 2 +- .../src/Pages/Telemetry/Services/View/Traces/View/Index.tsx | 2 +- Dashboard/src/Pages/UserSettings/OnCallLogs.tsx | 2 +- Dashboard/src/Pages/UserSettings/OnCallLogsTimeline.tsx | 2 +- Probe/Utils/Monitors/MonitorTypes/PortMonitor.ts | 2 +- Scripts/PaymentProvider/CouponCodeGenerator.ts | 2 +- StatusPage/src/App.tsx | 2 +- StatusPage/src/Pages/Accounts/Logout.tsx | 2 +- StatusPage/src/Pages/Overview/Overview.tsx | 2 +- StatusPage/src/Pages/Subscribe/EmailSubscribe.tsx | 2 +- StatusPage/src/Pages/Subscribe/SmsSubscribe.tsx | 2 +- StatusPage/src/Pages/Subscribe/UpdateSubscription.tsx | 2 +- 45 files changed, 46 insertions(+), 46 deletions(-) diff --git a/AdminDashboard/src/Pages/Logout/Logout.tsx b/AdminDashboard/src/Pages/Logout/Logout.tsx index 80081b917b..5cdcc9fa7e 100644 --- a/AdminDashboard/src/Pages/Logout/Logout.tsx +++ b/AdminDashboard/src/Pages/Logout/Logout.tsx @@ -10,7 +10,7 @@ import Navigation from 'CommonUI/src/Utils/Navigation'; import { ACCOUNTS_URL } from 'CommonUI/src/Config'; import UiAnalytics from 'CommonUI/src/Utils/Analytics'; import ErrorMessage from 'CommonUI/src/Components/ErrorMessage/ErrorMessage'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; const Logout: FunctionComponent = (): ReactElement => { const [error, setError] = React.useState(null); diff --git a/AdminDashboard/src/Pages/Settings/Probes/Index.tsx b/AdminDashboard/src/Pages/Settings/Probes/Index.tsx index 5a304ed7cc..e680d4cd68 100644 --- a/AdminDashboard/src/Pages/Settings/Probes/Index.tsx +++ b/AdminDashboard/src/Pages/Settings/Probes/Index.tsx @@ -22,7 +22,7 @@ import AdminModelAPI from '../../../Utils/ModelAPI'; import { ErrorFunction, VoidFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; const Settings: FunctionComponent = (): ReactElement => { const [showKeyModal, setShowKeyModal] = useState(false); diff --git a/CommonUI/src/Components/ActionButton/ActionButtonSchema.ts b/CommonUI/src/Components/ActionButton/ActionButtonSchema.ts index 85a8d021ca..70e178f4ea 100644 --- a/CommonUI/src/Components/ActionButton/ActionButtonSchema.ts +++ b/CommonUI/src/Components/ActionButton/ActionButtonSchema.ts @@ -5,7 +5,7 @@ import IconProp from 'Common/Types/Icon/IconProp'; import { ErrorFunction, VoidFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; interface ActionButtonSchema { title: string; diff --git a/CommonUI/src/Components/Forms/BasicForm.tsx b/CommonUI/src/Components/Forms/BasicForm.tsx index df3075fe43..9ef2b96b48 100644 --- a/CommonUI/src/Components/Forms/BasicForm.tsx +++ b/CommonUI/src/Components/Forms/BasicForm.tsx @@ -31,7 +31,7 @@ import useAsyncEffect from 'use-async-effect'; import API from '../../Utils/API/API'; import ErrorMessage from '../ErrorMessage/ErrorMessage'; import { FormikErrors, FormikProps } from 'formik'; -import { VoidFunction } from 'Common/Types/Functions'; +import { VoidFunction } from 'Common/Types/FunctionsTypes'; export type FormProps = FormikProps; export type FormErrors = FormikErrors; diff --git a/CommonUI/src/Components/HeaderAlert/HeaderModelAlert.tsx b/CommonUI/src/Components/HeaderAlert/HeaderModelAlert.tsx index d386f9bcaa..aaf7671f69 100644 --- a/CommonUI/src/Components/HeaderAlert/HeaderModelAlert.tsx +++ b/CommonUI/src/Components/HeaderAlert/HeaderModelAlert.tsx @@ -5,7 +5,7 @@ import ModelAPI, { RequestOptions } from '../../Utils/ModelAPI/ModelAPI'; import API from '../../Utils/API/API'; import IconProp from 'Common/Types/Icon/IconProp'; import HeaderAlert from './HeaderAlert'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; export interface ComponentProps { icon: IconProp; diff --git a/CommonUI/src/Components/LogsViewer/LogsViewer.tsx b/CommonUI/src/Components/LogsViewer/LogsViewer.tsx index 7b22031ddf..d89f510a47 100644 --- a/CommonUI/src/Components/LogsViewer/LogsViewer.tsx +++ b/CommonUI/src/Components/LogsViewer/LogsViewer.tsx @@ -3,7 +3,7 @@ import React, { FunctionComponent, ReactElement, Ref } from 'react'; import LogItem from './LogItem'; import LogsFilters, { FilterOption } from './LogsFilters'; import ComponentLoader from '../ComponentLoader/ComponentLoader'; -import { VoidFunction } from 'Common/Types/Functions'; +import { VoidFunction } from 'Common/Types/FunctionsTypes'; export interface ComponentProps { logs: Array; diff --git a/CommonUI/src/Components/ModelDelete/ModelDelete.tsx b/CommonUI/src/Components/ModelDelete/ModelDelete.tsx index b065f0b42e..48b3253d74 100644 --- a/CommonUI/src/Components/ModelDelete/ModelDelete.tsx +++ b/CommonUI/src/Components/ModelDelete/ModelDelete.tsx @@ -6,7 +6,7 @@ import { ButtonStyleType } from '../Button/Button'; import Card from '../Card/Card'; import API from '../../Utils/API/API'; import IconProp from 'Common/Types/Icon/IconProp'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; import ConfirmModal from '../Modal/ConfirmModal'; export interface ComponentProps { diff --git a/CommonUI/src/Components/ModelDetail/ModelDetail.tsx b/CommonUI/src/Components/ModelDetail/ModelDetail.tsx index a5e38f48a5..474582137c 100644 --- a/CommonUI/src/Components/ModelDetail/ModelDetail.tsx +++ b/CommonUI/src/Components/ModelDetail/ModelDetail.tsx @@ -17,7 +17,7 @@ import API from '../../Utils/API/API'; import ErrorMessage from '../ErrorMessage/ErrorMessage'; import { useAsyncEffect } from 'use-async-effect'; import User from '../../Utils/User'; -import { VoidFunction } from 'Common/Types/Functions'; +import { VoidFunction } from 'Common/Types/FunctionsTypes'; export interface ComponentProps { modelType: { new (): TBaseModel }; diff --git a/CommonUI/src/Components/ModelList/ModelList.tsx b/CommonUI/src/Components/ModelList/ModelList.tsx index 0275227f38..cfe307f7db 100644 --- a/CommonUI/src/Components/ModelList/ModelList.tsx +++ b/CommonUI/src/Components/ModelList/ModelList.tsx @@ -7,7 +7,7 @@ import ModelAPI, { ListResult, RequestOptions, } from '../../Utils/ModelAPI/ModelAPI'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; import { LIMIT_PER_PROJECT } from 'Common/Types/Database/LimitMax'; import Select from '../../Utils/BaseDatabase/Select'; import Input from '../Input/Input'; diff --git a/CommonUI/src/Components/ModelProgress/ModelProgress.tsx b/CommonUI/src/Components/ModelProgress/ModelProgress.tsx index 8f5a91ede6..14eb4087c4 100644 --- a/CommonUI/src/Components/ModelProgress/ModelProgress.tsx +++ b/CommonUI/src/Components/ModelProgress/ModelProgress.tsx @@ -7,7 +7,7 @@ import ComponentLoader from '../ComponentLoader/ComponentLoader'; import ErrorMessage from '../ErrorMessage/ErrorMessage'; import ProgressBar from '../ProgressBar/ProgressBar'; import API from '../../Utils/API/API'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; export interface ComponentProps { title: string; diff --git a/CommonUI/src/Components/ModelTable/BaseModelTable.tsx b/CommonUI/src/Components/ModelTable/BaseModelTable.tsx index 79bce3c0c1..a277f388d3 100644 --- a/CommonUI/src/Components/ModelTable/BaseModelTable.tsx +++ b/CommonUI/src/Components/ModelTable/BaseModelTable.tsx @@ -9,7 +9,7 @@ import Columns from './Columns'; import { ErrorFunction, VoidFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; import Table from '../Table/Table'; import TableColumn from '../Table/Types/Column'; import { JSONObject } from 'Common/Types/JSON'; @@ -72,7 +72,7 @@ import AnalyticsBaseModel, { } from 'Common/AnalyticsModels/BaseModel'; import Sort from '../../Utils/BaseDatabase/Sort'; import { FormProps } from '../Forms/BasicForm'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; import { GetReactElementFunction } from '../../Types/Functions'; export enum ShowTableAs { diff --git a/CommonUI/src/Components/ResetObjectID/ResetObjectID.tsx b/CommonUI/src/Components/ResetObjectID/ResetObjectID.tsx index c3ca3eedf9..601968642e 100644 --- a/CommonUI/src/Components/ResetObjectID/ResetObjectID.tsx +++ b/CommonUI/src/Components/ResetObjectID/ResetObjectID.tsx @@ -8,7 +8,7 @@ import { ButtonStyleType } from '../Button/Button'; import IconProp from 'Common/Types/Icon/IconProp'; import ConfirmModal from '../Modal/ConfirmModal'; import { TableColumnMetadata } from 'Common/Types/Database/TableColumn'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; export interface ComponentProps { modelType: { new (): TBaseModel }; diff --git a/CommonUI/src/Components/SideMenu/CountModelSideMenuItem.tsx b/CommonUI/src/Components/SideMenu/CountModelSideMenuItem.tsx index 3fd66b37c5..e23c55bd74 100644 --- a/CommonUI/src/Components/SideMenu/CountModelSideMenuItem.tsx +++ b/CommonUI/src/Components/SideMenu/CountModelSideMenuItem.tsx @@ -7,7 +7,7 @@ import { BadgeType } from '../Badge/Badge'; import SideMenuItem from './SideMenuItem'; import API from '../../Utils/API/API'; import IconProp from 'Common/Types/Icon/IconProp'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; export interface ComponentProps { link: Link; diff --git a/CommonUI/src/Components/Workflow/Workflow.tsx b/CommonUI/src/Components/Workflow/Workflow.tsx index 135a9290ea..f32aaa6487 100644 --- a/CommonUI/src/Components/Workflow/Workflow.tsx +++ b/CommonUI/src/Components/Workflow/Workflow.tsx @@ -5,7 +5,7 @@ import React, { useEffect, useState, } from 'react'; -import { VoidFunction } from 'Common/Types/Functions'; +import { VoidFunction } from 'Common/Types/FunctionsTypes'; import ReactFlow, { MiniMap, Controls, diff --git a/Dashboard/src/Components/CallSMS/CallSMSConfigTable.tsx b/Dashboard/src/Components/CallSMS/CallSMSConfigTable.tsx index 64a582e1e2..28595d5c36 100644 --- a/Dashboard/src/Components/CallSMS/CallSMSConfigTable.tsx +++ b/Dashboard/src/Components/CallSMS/CallSMSConfigTable.tsx @@ -8,7 +8,7 @@ import ModelTable from 'CommonUI/src/Components/ModelTable/ModelTable'; import { ErrorFunction, VoidFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; import ProjectCallSMSConfig from 'Model/Models/ProjectCallSMSConfig'; import FieldType from 'CommonUI/src/Components/Types/FieldType'; import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType'; diff --git a/Dashboard/src/Components/CustomSMTP/CustomSMTPTable.tsx b/Dashboard/src/Components/CustomSMTP/CustomSMTPTable.tsx index 2a23c33717..753490e5f2 100644 --- a/Dashboard/src/Components/CustomSMTP/CustomSMTPTable.tsx +++ b/Dashboard/src/Components/CustomSMTP/CustomSMTPTable.tsx @@ -8,7 +8,7 @@ import ModelTable from 'CommonUI/src/Components/ModelTable/ModelTable'; import { ErrorFunction, VoidFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; import ProjectSmtpConfig from 'Model/Models/ProjectSmtpConfig'; import FieldType from 'CommonUI/src/Components/Types/FieldType'; import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType'; diff --git a/Dashboard/src/Components/Header/Header.tsx b/Dashboard/src/Components/Header/Header.tsx index ad0cd63b25..97999f52cb 100644 --- a/Dashboard/src/Components/Header/Header.tsx +++ b/Dashboard/src/Components/Header/Header.tsx @@ -30,7 +30,7 @@ import Incident from 'Model/Models/Incident'; import OneUptimeDate from 'Common/Types/Date'; import HeaderModelAlert from 'CommonUI/src/Components/HeaderAlert/HeaderModelAlert'; import HeaderAlert from 'CommonUI/src/Components/HeaderAlert/HeaderAlert'; -import { VoidFunction } from 'Common/Types/Functions'; +import { VoidFunction } from 'Common/Types/FunctionsTypes'; export interface ComponentProps { projects: Array; diff --git a/Dashboard/src/Components/Header/ProjectPicker.tsx b/Dashboard/src/Components/Header/ProjectPicker.tsx index 6ce76d58dc..83ba35820c 100644 --- a/Dashboard/src/Components/Header/ProjectPicker.tsx +++ b/Dashboard/src/Components/Header/ProjectPicker.tsx @@ -19,7 +19,7 @@ import Toggle from 'CommonUI/src/Components/Toggle/Toggle'; import LocalStorage from 'CommonUI/src/Utils/LocalStorage'; import { JSONValue } from 'Common/Types/JSON'; import { GetReactElementFunction } from 'CommonUI/src/Types/Functions'; -import { VoidFunction } from 'Common/Types/Functions'; +import { VoidFunction } from 'Common/Types/FunctionsTypes'; export interface ComponentProps { projects: Array; diff --git a/Dashboard/src/Components/LogsViewer/LogsViewer.tsx b/Dashboard/src/Components/LogsViewer/LogsViewer.tsx index daaece7010..a344d4a70f 100644 --- a/Dashboard/src/Components/LogsViewer/LogsViewer.tsx +++ b/Dashboard/src/Components/LogsViewer/LogsViewer.tsx @@ -18,7 +18,7 @@ import Search from 'Common/Types/BaseDatabase/Search'; import InBetween from 'Common/Types/BaseDatabase/InBetween'; import Select from 'CommonUI/src/Utils/BaseDatabase/Select'; import Includes from 'Common/Types/BaseDatabase/Includes'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; export interface ComponentProps { id: string; diff --git a/Dashboard/src/Components/MonitorGroup/CurrentStatus.tsx b/Dashboard/src/Components/MonitorGroup/CurrentStatus.tsx index 8128e48719..bc85540fb5 100644 --- a/Dashboard/src/Components/MonitorGroup/CurrentStatus.tsx +++ b/Dashboard/src/Components/MonitorGroup/CurrentStatus.tsx @@ -11,7 +11,7 @@ import Statusbubble from 'CommonUI/src/Components/StatusBubble/StatusBubble'; import Color from 'Common/Types/Color'; import MonitorGroup from 'Model/Models/MonitorGroup'; import Loader from 'CommonUI/src/Components/Loader/Loader'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; export interface ComponentProps { monitorGroupId: ObjectID; diff --git a/Dashboard/src/Components/NavBar/NavBar.tsx b/Dashboard/src/Components/NavBar/NavBar.tsx index ecc25f539f..0291ee58b2 100644 --- a/Dashboard/src/Components/NavBar/NavBar.tsx +++ b/Dashboard/src/Components/NavBar/NavBar.tsx @@ -8,7 +8,7 @@ import IconProp from 'Common/Types/Icon/IconProp'; import PageMap from '../../Utils/PageMap'; import RouteMap, { RouteUtil } from '../../Utils/RouteMap'; import URL from 'Common/Types/API/URL'; -import { VoidFunction } from 'Common/Types/Functions'; +import { VoidFunction } from 'Common/Types/FunctionsTypes'; export interface ComponentProps { show: boolean; diff --git a/Dashboard/src/Components/NotificationMethods/Call.tsx b/Dashboard/src/Components/NotificationMethods/Call.tsx index d7e189cd1c..63be439ef5 100644 --- a/Dashboard/src/Components/NotificationMethods/Call.tsx +++ b/Dashboard/src/Components/NotificationMethods/Call.tsx @@ -10,7 +10,7 @@ import { ButtonStyleType } from 'CommonUI/src/Components/Button/Button'; import { ErrorFunction, VoidFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; import { JSONObject } from 'Common/Types/JSON'; import URL from 'Common/Types/API/URL'; import BasicFormModal from 'CommonUI/src/Components/FormModal/BasicFormModal'; diff --git a/Dashboard/src/Components/NotificationMethods/Email.tsx b/Dashboard/src/Components/NotificationMethods/Email.tsx index acc20cbca4..d9ab3a87c4 100644 --- a/Dashboard/src/Components/NotificationMethods/Email.tsx +++ b/Dashboard/src/Components/NotificationMethods/Email.tsx @@ -11,7 +11,7 @@ import { JSONObject } from 'Common/Types/JSON'; import { ErrorFunction, VoidFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; import URL from 'Common/Types/API/URL'; import BasicFormModal from 'CommonUI/src/Components/FormModal/BasicFormModal'; import HTTPResponse from 'Common/Types/API/HTTPResponse'; diff --git a/Dashboard/src/Components/NotificationMethods/SMS.tsx b/Dashboard/src/Components/NotificationMethods/SMS.tsx index 0109aac624..090323d500 100644 --- a/Dashboard/src/Components/NotificationMethods/SMS.tsx +++ b/Dashboard/src/Components/NotificationMethods/SMS.tsx @@ -12,7 +12,7 @@ import URL from 'Common/Types/API/URL'; import { ErrorFunction, VoidFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; import BasicFormModal from 'CommonUI/src/Components/FormModal/BasicFormModal'; import HTTPResponse from 'Common/Types/API/HTTPResponse'; import HTTPErrorResponse from 'Common/Types/API/HTTPErrorResponse'; diff --git a/Dashboard/src/Components/OnCallPolicy/ExecutionLogs/ExecutionLogsTable.tsx b/Dashboard/src/Components/OnCallPolicy/ExecutionLogs/ExecutionLogsTable.tsx index 4316b4286d..a377ca7c41 100644 --- a/Dashboard/src/Components/OnCallPolicy/ExecutionLogs/ExecutionLogsTable.tsx +++ b/Dashboard/src/Components/OnCallPolicy/ExecutionLogs/ExecutionLogsTable.tsx @@ -12,7 +12,7 @@ import IncidentView from '../../../Components/Incident/Incident'; import { ErrorFunction, VoidFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; import Incident from 'Model/Models/Incident'; import OnCallDutyPolicyStatus from 'Common/Types/OnCallDutyPolicy/OnCallDutyPolicyStatus'; import UserElement from '../../../Components/User/User'; diff --git a/Dashboard/src/Components/OnCallPolicy/ExecutionLogs/ExecutionLogsTimelineTable.tsx b/Dashboard/src/Components/OnCallPolicy/ExecutionLogs/ExecutionLogsTimelineTable.tsx index 3211586bd2..2eb24a2cee 100644 --- a/Dashboard/src/Components/OnCallPolicy/ExecutionLogs/ExecutionLogsTimelineTable.tsx +++ b/Dashboard/src/Components/OnCallPolicy/ExecutionLogs/ExecutionLogsTimelineTable.tsx @@ -15,7 +15,7 @@ import EscalationRule from '../EscalationRule/EscalationRule'; import { ErrorFunction, VoidFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; import OnCallDutyPolicyEscalationRule from 'Model/Models/OnCallDutyPolicyEscalationRule'; import ObjectID from 'Common/Types/ObjectID'; import DropdownUtil from 'CommonUI/src/Utils/Dropdown'; diff --git a/Dashboard/src/Components/OnCallPolicy/OnCallScheduleLayer/Layers.tsx b/Dashboard/src/Components/OnCallPolicy/OnCallScheduleLayer/Layers.tsx index 931fc834be..b96cbdd55c 100644 --- a/Dashboard/src/Components/OnCallPolicy/OnCallScheduleLayer/Layers.tsx +++ b/Dashboard/src/Components/OnCallPolicy/OnCallScheduleLayer/Layers.tsx @@ -14,7 +14,7 @@ import ErrorMessage from 'CommonUI/src/Components/ErrorMessage/ErrorMessage'; import ConfirmModal from 'CommonUI/src/Components/Modal/ConfirmModal'; import { LIMIT_PER_PROJECT } from 'Common/Types/Database/LimitMax'; import SortOrder from 'Common/Types/BaseDatabase/SortOrder'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; import HTTPResponse from 'Common/Types/API/HTTPResponse'; import { JSONArray, JSONObject } from 'Common/Types/JSON'; import EmptyState from 'CommonUI/src/Components/EmptyState/EmptyState'; diff --git a/Dashboard/src/Pages/Global/ProjectInvitations.tsx b/Dashboard/src/Pages/Global/ProjectInvitations.tsx index 66c629bd51..d770208942 100644 --- a/Dashboard/src/Pages/Global/ProjectInvitations.tsx +++ b/Dashboard/src/Pages/Global/ProjectInvitations.tsx @@ -16,7 +16,7 @@ import ObjectID from 'Common/Types/ObjectID'; import { ErrorFunction, VoidFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; import GlobalEvents from 'CommonUI/src/Utils/GlobalEvents'; import EventName from '../../Utils/EventName'; import Navigation from 'CommonUI/src/Utils/Navigation'; diff --git a/Dashboard/src/Pages/Settings/Domains.tsx b/Dashboard/src/Pages/Settings/Domains.tsx index 30aeab4ff4..2f6935ee64 100644 --- a/Dashboard/src/Pages/Settings/Domains.tsx +++ b/Dashboard/src/Pages/Settings/Domains.tsx @@ -16,7 +16,7 @@ import { JSONObject } from 'Common/Types/JSON'; import { ErrorFunction, VoidFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; import ModelAPI from 'CommonUI/src/Utils/ModelAPI/ModelAPI'; import ObjectID from 'Common/Types/ObjectID'; import ConfirmModal from 'CommonUI/src/Components/Modal/ConfirmModal'; diff --git a/Dashboard/src/Pages/Settings/Probes.tsx b/Dashboard/src/Pages/Settings/Probes.tsx index df69d75a15..e03a818e8b 100644 --- a/Dashboard/src/Pages/Settings/Probes.tsx +++ b/Dashboard/src/Pages/Settings/Probes.tsx @@ -10,7 +10,7 @@ import Probe from 'Model/Models/Probe'; import { ErrorFunction, VoidFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; import FieldType from 'CommonUI/src/Components/Types/FieldType'; import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType'; import { JSONObject } from 'Common/Types/JSON'; diff --git a/Dashboard/src/Pages/StatusPages/View/Domains.tsx b/Dashboard/src/Pages/StatusPages/View/Domains.tsx index e6f8139bc7..f445449fe5 100644 --- a/Dashboard/src/Pages/StatusPages/View/Domains.tsx +++ b/Dashboard/src/Pages/StatusPages/View/Domains.tsx @@ -22,7 +22,7 @@ import ConfirmModal from 'CommonUI/src/Components/Modal/ConfirmModal'; import { ErrorFunction, VoidFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; const StatusPageDelete: FunctionComponent = ( props: PageComponentProps diff --git a/Dashboard/src/Pages/StatusPages/View/Resources.tsx b/Dashboard/src/Pages/StatusPages/View/Resources.tsx index fb2d7aa647..20436478b8 100644 --- a/Dashboard/src/Pages/StatusPages/View/Resources.tsx +++ b/Dashboard/src/Pages/StatusPages/View/Resources.tsx @@ -33,7 +33,7 @@ import Link from 'CommonUI/src/Components/Link/Link'; import MonitorGroupElement from '../../../Components/MonitorGroup/MonitorGroupElement'; import DropdownUtil from 'CommonUI/src/Utils/Dropdown'; import FormValues from 'CommonUI/src/Components/Forms/Types/FormValues'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; const StatusPageDelete: FunctionComponent = ( props: PageComponentProps diff --git a/Dashboard/src/Pages/StatusPages/View/SMSSubscribers.tsx b/Dashboard/src/Pages/StatusPages/View/SMSSubscribers.tsx index acb7e8e345..3c45dd4546 100644 --- a/Dashboard/src/Pages/StatusPages/View/SMSSubscribers.tsx +++ b/Dashboard/src/Pages/StatusPages/View/SMSSubscribers.tsx @@ -6,7 +6,7 @@ import React, { useState, } from 'react'; import PageComponentProps from '../../PageComponentProps'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; import DashboardNavigation from '../../../Utils/Navigation'; import ObjectID from 'Common/Types/ObjectID'; import FormFieldSchemaType from 'CommonUI/src/Components/Forms/Types/FormFieldSchemaType'; diff --git a/Dashboard/src/Pages/StatusPages/View/SSO.tsx b/Dashboard/src/Pages/StatusPages/View/SSO.tsx index f857890e88..88744020f7 100644 --- a/Dashboard/src/Pages/StatusPages/View/SSO.tsx +++ b/Dashboard/src/Pages/StatusPages/View/SSO.tsx @@ -26,7 +26,7 @@ import ObjectID from 'Common/Types/ObjectID'; import StatusPage from 'Model/Models/StatusPage'; import BadDataException from 'Common/Types/Exception/BadDataException'; import Banner from 'CommonUI/src/Components/Banner/Banner'; -import { VoidFunction } from 'Common/Types/Functions'; +import { VoidFunction } from 'Common/Types/FunctionsTypes'; const SSOPage: FunctionComponent = ( props: PageComponentProps diff --git a/Dashboard/src/Pages/Telemetry/Services/View/Traces/View/Index.tsx b/Dashboard/src/Pages/Telemetry/Services/View/Traces/View/Index.tsx index 29b2c939d2..6ec224ca5e 100644 --- a/Dashboard/src/Pages/Telemetry/Services/View/Traces/View/Index.tsx +++ b/Dashboard/src/Pages/Telemetry/Services/View/Traces/View/Index.tsx @@ -24,7 +24,7 @@ import ModelAPI from 'CommonUI/src/Utils/ModelAPI/ModelAPI'; import DashboardNavigation from '../../../../../../Utils/Navigation'; import { GanttChartBar } from 'CommonUI/src/Components/GanttChart/Bar/Index'; import { GanttChartRow } from 'CommonUI/src/Components/GanttChart/Row/Index'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; type BarTooltipFunctionProps = { span: Span; diff --git a/Dashboard/src/Pages/UserSettings/OnCallLogs.tsx b/Dashboard/src/Pages/UserSettings/OnCallLogs.tsx index 2d326a8ec7..bcd083849e 100644 --- a/Dashboard/src/Pages/UserSettings/OnCallLogs.tsx +++ b/Dashboard/src/Pages/UserSettings/OnCallLogs.tsx @@ -25,7 +25,7 @@ import DropdownUtil from 'CommonUI/src/Utils/Dropdown'; import { ErrorFunction, VoidFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; const Settings: FunctionComponent = ( _props: PageComponentProps diff --git a/Dashboard/src/Pages/UserSettings/OnCallLogsTimeline.tsx b/Dashboard/src/Pages/UserSettings/OnCallLogsTimeline.tsx index 5429960558..dbc99f0133 100644 --- a/Dashboard/src/Pages/UserSettings/OnCallLogsTimeline.tsx +++ b/Dashboard/src/Pages/UserSettings/OnCallLogsTimeline.tsx @@ -24,7 +24,7 @@ import { GetReactElementFunction } from 'CommonUI/src/Types/Functions'; import { VoidFunction, ErrorFunction, -} from 'Common/Types/Functions'; +} from 'Common/Types/FunctionsTypes'; const Settings: FunctionComponent = ( _props: PageComponentProps diff --git a/Probe/Utils/Monitors/MonitorTypes/PortMonitor.ts b/Probe/Utils/Monitors/MonitorTypes/PortMonitor.ts index 5cc774a43f..8024e84e02 100644 --- a/Probe/Utils/Monitors/MonitorTypes/PortMonitor.ts +++ b/Probe/Utils/Monitors/MonitorTypes/PortMonitor.ts @@ -10,7 +10,7 @@ import Sleep from 'Common/Types/Sleep'; import BadDataException from 'Common/Types/Exception/BadDataException'; import Port from 'Common/Types/Port'; import UnableToReachServer from 'Common/Types/Exception/UnableToReachServer'; -import { PromiseRejectErrorFunction } from 'Common/Types/Functions'; +import { PromiseRejectErrorFunction } from 'Common/Types/FunctionsTypes'; // TODO - make sure it work for the IPV6 export interface PortMonitorResponse { diff --git a/Scripts/PaymentProvider/CouponCodeGenerator.ts b/Scripts/PaymentProvider/CouponCodeGenerator.ts index c0a929c945..5f17570b97 100644 --- a/Scripts/PaymentProvider/CouponCodeGenerator.ts +++ b/Scripts/PaymentProvider/CouponCodeGenerator.ts @@ -3,7 +3,7 @@ import BillingService from 'CommonServer/Services/BillingService'; import Sleep from 'Common/Types/Sleep'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; const main: PromiseVoidFunction = async (): Promise => { for (let i: number = 0; i < 2000; i++) { diff --git a/StatusPage/src/App.tsx b/StatusPage/src/App.tsx index 799ef5c83c..7468f77f65 100644 --- a/StatusPage/src/App.tsx +++ b/StatusPage/src/App.tsx @@ -37,7 +37,7 @@ import ObjectID from 'Common/Types/ObjectID'; import Logout from './Pages/Accounts/Logout'; import StatusPageUtil from './Utils/StatusPage'; import UpdateSubscription from './Pages/Subscribe/UpdateSubscription'; -import { VoidFunction } from 'Common/Types/Functions'; +import { VoidFunction } from 'Common/Types/FunctionsTypes'; const App: () => JSX.Element = () => { Navigation.setNavigateHook(useNavigate()); diff --git a/StatusPage/src/Pages/Accounts/Logout.tsx b/StatusPage/src/Pages/Accounts/Logout.tsx index d4d11afed0..fb53c3a5fe 100644 --- a/StatusPage/src/Pages/Accounts/Logout.tsx +++ b/StatusPage/src/Pages/Accounts/Logout.tsx @@ -7,7 +7,7 @@ import PageLoader from 'CommonUI/src/Components/Loader/PageLoader'; import StatusPageUtil from '../../Utils/StatusPage'; import ErrorMessage from 'CommonUI/src/Components/ErrorMessage/ErrorMessage'; import Route from 'Common/Types/API/Route'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; const Logout: () => JSX.Element = () => { const [error, setError] = React.useState(null); diff --git a/StatusPage/src/Pages/Overview/Overview.tsx b/StatusPage/src/Pages/Overview/Overview.tsx index fdfa4d1783..bffe67df75 100644 --- a/StatusPage/src/Pages/Overview/Overview.tsx +++ b/StatusPage/src/Pages/Overview/Overview.tsx @@ -54,7 +54,7 @@ import HTTPErrorResponse from 'Common/Types/API/HTTPErrorResponse'; import { STATUS_PAGE_API_URL } from '../../Utils/Config'; import Section from '../../Components/Section/Section'; import StatusPageHistoryChartBarColorRule from 'Model/Models/StatusPageHistoryChartBarColorRule'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; const Overview: FunctionComponent = ( props: PageComponentProps diff --git a/StatusPage/src/Pages/Subscribe/EmailSubscribe.tsx b/StatusPage/src/Pages/Subscribe/EmailSubscribe.tsx index 10d7285239..29ff6bc9ee 100644 --- a/StatusPage/src/Pages/Subscribe/EmailSubscribe.tsx +++ b/StatusPage/src/Pages/Subscribe/EmailSubscribe.tsx @@ -5,7 +5,7 @@ import React, { useState, } from 'react'; import Page from '../../Components/Page/Page'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; import ModelForm, { FormType, ModelField, diff --git a/StatusPage/src/Pages/Subscribe/SmsSubscribe.tsx b/StatusPage/src/Pages/Subscribe/SmsSubscribe.tsx index a79aa020a6..298cd8f14a 100644 --- a/StatusPage/src/Pages/Subscribe/SmsSubscribe.tsx +++ b/StatusPage/src/Pages/Subscribe/SmsSubscribe.tsx @@ -5,7 +5,7 @@ import React, { useState, } from 'react'; import Page from '../../Components/Page/Page'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; import ModelForm, { FormType, ModelField, diff --git a/StatusPage/src/Pages/Subscribe/UpdateSubscription.tsx b/StatusPage/src/Pages/Subscribe/UpdateSubscription.tsx index 27aca3e58d..1ec103bbd1 100644 --- a/StatusPage/src/Pages/Subscribe/UpdateSubscription.tsx +++ b/StatusPage/src/Pages/Subscribe/UpdateSubscription.tsx @@ -27,7 +27,7 @@ import ErrorMessage from 'CommonUI/src/Components/ErrorMessage/ErrorMessage'; import SubscriberUtil from 'CommonUI/src/Utils/StatusPage'; import FormValues from 'CommonUI/src/Components/Forms/Types/FormValues'; import Navigation from 'CommonUI/src/Utils/Navigation'; -import { PromiseVoidFunction } from 'Common/Types/Functions'; +import { PromiseVoidFunction } from 'Common/Types/FunctionsTypes'; const SubscribePage: FunctionComponent = ( props: SubscribePageProps