From f0c5e5101e34a6454a3e5bd0ddbe37218627dc52 Mon Sep 17 00:00:00 2001 From: Taso Date: Sun, 14 Mar 2021 15:19:30 -0400 Subject: [PATCH] chore(typings): Moved common typings to root dir --- phone/src/apps/bank/hooks/useBankNotification.ts | 2 +- phone/src/apps/bank/hooks/useCredentials.ts | 2 +- phone/src/apps/contacts/hooks/useContacts.ts | 2 +- phone/src/apps/dialer/components/views/DialerHistory.tsx | 2 +- phone/src/apps/dialer/hooks/useDialHistory.ts | 2 +- .../apps/messages/components/form/NewMessageGroupForm.tsx | 2 +- .../src/apps/messages/components/list/MessageGroupItem.tsx | 4 ++-- phone/src/apps/messages/components/list/MessagesList.tsx | 2 +- phone/src/apps/messages/components/modal/Conversation.tsx | 2 +- phone/src/apps/messages/components/modal/MessageBubble.tsx | 2 +- phone/src/apps/messages/hooks/useMessages.ts | 2 +- phone/src/apps/notes/hooks/useNoteDetail.ts | 2 +- phone/src/apps/notes/hooks/useNotes.ts | 2 +- .../apps/sellout/components/SelloutList/ListingActions.tsx | 2 +- .../src/apps/sellout/components/SelloutList/SelloutItem.tsx | 2 +- phone/src/apps/sellout/hooks/useListing.ts | 2 +- phone/src/apps/settings/hooks/useSettings.ts | 2 +- phone/src/apps/twitter/components/AddTweetModal.tsx | 2 +- phone/src/apps/twitter/components/tweet/Tweet.tsx | 2 +- phone/src/os/call/hooks/useCall.ts | 2 +- phone/src/os/call/hooks/useCallNotifications.tsx | 4 ++-- phone/src/os/call/hooks/useCallService.tsx | 2 +- phone/src/os/phone/hooks/usePhone.ts | 2 +- resources/client/cl_bank.ts | 2 +- resources/client/cl_call.ts | 2 +- resources/client/cl_messages.ts | 2 +- resources/client/cl_sellout.ts | 4 ++-- resources/client/cl_twitter.ts | 3 +-- resources/server/discord.ts | 4 ++-- resources/server/sv_bank.ts | 2 +- resources/server/sv_call.ts | 2 +- resources/server/sv_messages.ts | 6 +----- resources/server/sv_notes.ts | 2 +- resources/server/sv_photo.ts | 2 +- resources/server/sv_sellout.ts | 2 +- resources/server/sv_twitter.ts | 2 +- resources/utils/config.ts | 2 +- {phone/src/common/typings => typings}/alerts.ts | 0 {phone/src/common/typings => typings}/bank.ts | 0 {phone/src/common/typings => typings}/call.ts | 0 {phone/src/common/typings => typings}/config.ts | 0 {phone/src/common/typings => typings}/contact.ts | 0 {phone/src/common/typings => typings}/marketplace.ts | 0 {phone/src/common/typings => typings}/messages.ts | 0 {phone/src/common/typings => typings}/notes.ts | 0 {phone/src/common/typings => typings}/photo.ts | 0 {phone/src/common/typings => typings}/twitter.ts | 0 47 files changed, 41 insertions(+), 46 deletions(-) rename {phone/src/common/typings => typings}/alerts.ts (100%) rename {phone/src/common/typings => typings}/bank.ts (100%) rename {phone/src/common/typings => typings}/call.ts (100%) rename {phone/src/common/typings => typings}/config.ts (100%) rename {phone/src/common/typings => typings}/contact.ts (100%) rename {phone/src/common/typings => typings}/marketplace.ts (100%) rename {phone/src/common/typings => typings}/messages.ts (100%) rename {phone/src/common/typings => typings}/notes.ts (100%) rename {phone/src/common/typings => typings}/photo.ts (100%) rename {phone/src/common/typings => typings}/twitter.ts (100%) diff --git a/phone/src/apps/bank/hooks/useBankNotification.ts b/phone/src/apps/bank/hooks/useBankNotification.ts index 8db6bc9..0137a95 100644 --- a/phone/src/apps/bank/hooks/useBankNotification.ts +++ b/phone/src/apps/bank/hooks/useBankNotification.ts @@ -1,6 +1,6 @@ import { useRecoilValue } from 'recoil'; -import { Transfer } from '../../../common/typings/bank'; +import { Transfer } from '../../../../../typings/bank'; import { bankState } from './state'; interface IBankNotification { diff --git a/phone/src/apps/bank/hooks/useCredentials.ts b/phone/src/apps/bank/hooks/useCredentials.ts index 4583f77..9e70e3e 100644 --- a/phone/src/apps/bank/hooks/useCredentials.ts +++ b/phone/src/apps/bank/hooks/useCredentials.ts @@ -1,6 +1,6 @@ import { useRecoilValue } from 'recoil'; import { bankState } from './state'; -import { IBankCredentials } from '../../../common/typings/bank'; +import { IBankCredentials } from '../../../../../typings/bank'; interface ICredentialsHook { credentials: IBankCredentials; diff --git a/phone/src/apps/contacts/hooks/useContacts.ts b/phone/src/apps/contacts/hooks/useContacts.ts index 5d47ac4..b0ded22 100644 --- a/phone/src/apps/contacts/hooks/useContacts.ts +++ b/phone/src/apps/contacts/hooks/useContacts.ts @@ -1,7 +1,7 @@ import { useRecoilValue } from 'recoil'; import { contactsState } from './state'; -import { Contact } from '../../../common/typings/contact'; +import { Contact } from '../../../../../typings/contact'; import { useCallback } from 'react'; interface IUseContacts { diff --git a/phone/src/apps/dialer/components/views/DialerHistory.tsx b/phone/src/apps/dialer/components/views/DialerHistory.tsx index a670468..d931d7d 100644 --- a/phone/src/apps/dialer/components/views/DialerHistory.tsx +++ b/phone/src/apps/dialer/components/views/DialerHistory.tsx @@ -8,7 +8,7 @@ import { ListItem } from '../../../../ui/components/ListItem'; import Nui from '../../../../os/nui-events/utils/Nui'; import { useSimcard } from '../../../../os/simcard/hooks/useSimcard'; import { useContacts } from '../../../contacts/hooks/useContacts'; -import { ICall } from '../../../../common/typings/call'; +import { ICall } from '../../../../../../typings/call'; import dayjs from 'dayjs'; import { useTranslation } from 'react-i18next'; import { Box, IconButton, ListItemIcon, ListItemText } from '@material-ui/core'; diff --git a/phone/src/apps/dialer/hooks/useDialHistory.ts b/phone/src/apps/dialer/hooks/useDialHistory.ts index 63bd9f5..c70e1db 100644 --- a/phone/src/apps/dialer/hooks/useDialHistory.ts +++ b/phone/src/apps/dialer/hooks/useDialHistory.ts @@ -1,5 +1,5 @@ import { useRecoilValue } from 'recoil'; -import { ICall } from '../../../common/typings/call'; +import { ICall } from '../../../../../typings/call'; import { dialState } from './state'; interface ICallUI { history: ICall[]; diff --git a/phone/src/apps/messages/components/form/NewMessageGroupForm.tsx b/phone/src/apps/messages/components/form/NewMessageGroupForm.tsx index ac40cd1..2db31dd 100644 --- a/phone/src/apps/messages/components/form/NewMessageGroupForm.tsx +++ b/phone/src/apps/messages/components/form/NewMessageGroupForm.tsx @@ -6,7 +6,7 @@ import Nui from '../../../../os/nui-events/utils/Nui'; import { useHistory } from 'react-router-dom'; import { Autocomplete } from '@material-ui/lab'; import { useContacts } from '../../../contacts/hooks/useContacts'; -import { Contact } from '../../../../common/typings/contact'; +import { Contact } from '../../../../../../typings/contact'; const NewMessageGroupForm = ({ phoneNumber }: { phoneNumber?: string }) => { const history = useHistory(); diff --git a/phone/src/apps/messages/components/list/MessageGroupItem.tsx b/phone/src/apps/messages/components/list/MessageGroupItem.tsx index 32a4e2e..69f4324 100644 --- a/phone/src/apps/messages/components/list/MessageGroupItem.tsx +++ b/phone/src/apps/messages/components/list/MessageGroupItem.tsx @@ -7,7 +7,7 @@ import { Badge, } from '@material-ui/core'; -import { MessageGroup } from '../../../../common/typings/messages'; +import { MessageGroup } from '../../../../../../typings/messages'; interface IProps { messageGroup: MessageGroup; handleClick: (group: MessageGroup) => () => void; @@ -22,7 +22,7 @@ const MessageGroupItem = ({ messageGroup, handleClick }: IProps): any => { return ( - + diff --git a/phone/src/apps/messages/components/list/MessagesList.tsx b/phone/src/apps/messages/components/list/MessagesList.tsx index 7cbc401..0bf4628 100644 --- a/phone/src/apps/messages/components/list/MessagesList.tsx +++ b/phone/src/apps/messages/components/list/MessagesList.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useState } from 'react'; import { Box, List } from '@material-ui/core'; -import { MessageGroup } from '../../../../common/typings/messages'; +import { MessageGroup } from '../../../../../../typings/messages'; import Nui from '../../../../os/nui-events/utils/Nui'; import useMessages from '../../hooks/useMessages'; import MessageGroupItem from './MessageGroupItem'; diff --git a/phone/src/apps/messages/components/modal/Conversation.tsx b/phone/src/apps/messages/components/modal/Conversation.tsx index be661a4..2025047 100644 --- a/phone/src/apps/messages/components/modal/Conversation.tsx +++ b/phone/src/apps/messages/components/modal/Conversation.tsx @@ -1,7 +1,7 @@ import React, { useState } from 'react'; import { Box } from '@material-ui/core'; -import { Message, MessageGroup } from '../../../../common/typings/messages'; +import { Message, MessageGroup } from '../../../../../../typings/messages'; import MessageInput from '../form/MessageInput'; import useStyles from './modal.styles'; import { MessageImageModal } from './MessageImageModal'; diff --git a/phone/src/apps/messages/components/modal/MessageBubble.tsx b/phone/src/apps/messages/components/modal/MessageBubble.tsx index 9999c94..9fa0396 100644 --- a/phone/src/apps/messages/components/modal/MessageBubble.tsx +++ b/phone/src/apps/messages/components/modal/MessageBubble.tsx @@ -1,6 +1,6 @@ import { Box, Link, makeStyles, Paper, Typography } from '@material-ui/core'; import React from 'react'; -import { Message } from '../../../../common/typings/messages'; +import { Message } from '../../../../../../typings/messages'; import { PictureResponsive } from '../../../../ui/components/PictureResponsive'; import { PictureReveal } from '../../../../ui/components/PictureReveal'; diff --git a/phone/src/apps/messages/hooks/useMessages.ts b/phone/src/apps/messages/hooks/useMessages.ts index c3da585..3a28045 100644 --- a/phone/src/apps/messages/hooks/useMessages.ts +++ b/phone/src/apps/messages/hooks/useMessages.ts @@ -1,6 +1,6 @@ import { useCallback } from 'react'; import { useRecoilState, useRecoilValue } from 'recoil'; -import { CreateMessageGroupResult, Message, MessageGroup } from '../../../common/typings/messages'; +import { CreateMessageGroupResult, Message, MessageGroup } from '../../../../../typings/messages'; import { messageState } from './state'; interface IUseMessages { diff --git a/phone/src/apps/notes/hooks/useNoteDetail.ts b/phone/src/apps/notes/hooks/useNoteDetail.ts index f74a615..38737ab 100644 --- a/phone/src/apps/notes/hooks/useNoteDetail.ts +++ b/phone/src/apps/notes/hooks/useNoteDetail.ts @@ -1,5 +1,5 @@ import { useRecoilState } from 'recoil'; -import { Note } from '../../../common/typings/notes'; +import { Note } from '../../../../../typings/notes'; import { noteStates } from './state'; interface NoteDetailProps { diff --git a/phone/src/apps/notes/hooks/useNotes.ts b/phone/src/apps/notes/hooks/useNotes.ts index c22cd37..bced5c1 100644 --- a/phone/src/apps/notes/hooks/useNotes.ts +++ b/phone/src/apps/notes/hooks/useNotes.ts @@ -1,5 +1,5 @@ import { useRecoilValue } from 'recoil'; -import { Note } from '../../../common/typings/notes'; +import { Note } from '../../../../../typings/notes'; import { noteStates } from './state'; interface NotesProps { diff --git a/phone/src/apps/sellout/components/SelloutList/ListingActions.tsx b/phone/src/apps/sellout/components/SelloutList/ListingActions.tsx index 228cee5..18a3bc6 100644 --- a/phone/src/apps/sellout/components/SelloutList/ListingActions.tsx +++ b/phone/src/apps/sellout/components/SelloutList/ListingActions.tsx @@ -1,7 +1,7 @@ import { Box, Tooltip, Button } from '@material-ui/core'; import { makeStyles, Theme } from '@material-ui/core/styles'; import React from 'react'; -import { MarketplaceListing } from '../../../../common/typings/marketplace'; +import { MarketplaceListing } from '../../../../../../typings/marketplace'; import { useSimcard } from '../../../../os/simcard/hooks/useSimcard'; import DeleteIcon from '@material-ui/icons/Delete'; import ReportIcon from '@material-ui/icons/Report'; diff --git a/phone/src/apps/sellout/components/SelloutList/SelloutItem.tsx b/phone/src/apps/sellout/components/SelloutList/SelloutItem.tsx index 0ae94c0..bb6ea2d 100644 --- a/phone/src/apps/sellout/components/SelloutList/SelloutItem.tsx +++ b/phone/src/apps/sellout/components/SelloutList/SelloutItem.tsx @@ -3,7 +3,7 @@ import { makeStyles } from '@material-ui/core/styles'; import { Typography, Paper } from '@material-ui/core'; import { ListItem } from '../../../../ui/components/ListItem'; import { PictureResponsive } from '../../../../ui/components/PictureResponsive'; -import { MarketplaceListing } from '../../../../common/typings/marketplace'; +import { MarketplaceListing } from '../../../../../../typings/marketplace'; import { ListingActions } from './ListingActions'; import { PictureReveal } from '../../../../ui/components/PictureReveal'; diff --git a/phone/src/apps/sellout/hooks/useListing.ts b/phone/src/apps/sellout/hooks/useListing.ts index 97448dd..0e0f1d2 100644 --- a/phone/src/apps/sellout/hooks/useListing.ts +++ b/phone/src/apps/sellout/hooks/useListing.ts @@ -1,5 +1,5 @@ import { useRecoilValue } from 'recoil'; -import { MarketplaceListing } from '../../../common/typings/marketplace'; +import { MarketplaceListing } from '../../../../../typings/marketplace'; import { selloutState } from './state'; export const useListing = () => { diff --git a/phone/src/apps/settings/hooks/useSettings.ts b/phone/src/apps/settings/hooks/useSettings.ts index 99a5c9c..cf85378 100644 --- a/phone/src/apps/settings/hooks/useSettings.ts +++ b/phone/src/apps/settings/hooks/useSettings.ts @@ -1,6 +1,6 @@ import { atom, DefaultValue, SetterOrUpdater, useRecoilState } from 'recoil'; -import { SETTINGS_ALL_TWEETS, SETTING_MENTIONS } from '../../../common/typings/twitter'; +import { SETTINGS_ALL_TWEETS, SETTING_MENTIONS } from '../../../../../typings/twitter'; import config from '../../../config/default.json'; import { SettingOption } from '../../../ui/hooks/useContextMenu'; diff --git a/phone/src/apps/twitter/components/AddTweetModal.tsx b/phone/src/apps/twitter/components/AddTweetModal.tsx index e06d790..51712ae 100644 --- a/phone/src/apps/twitter/components/AddTweetModal.tsx +++ b/phone/src/apps/twitter/components/AddTweetModal.tsx @@ -15,7 +15,7 @@ import ControlButtons from './buttons/ControlButtons'; import IconButtons from './buttons/IconButtons'; import { usePhone } from '../../../os/phone/hooks/usePhone'; import { getNewLineCount } from '../utils/message'; -import { NewTweet } from '../../../common/typings/twitter'; +import { NewTweet } from '../../../../../typings/twitter'; const useStyles = makeStyles((theme) => ({ root: { diff --git a/phone/src/apps/twitter/components/tweet/Tweet.tsx b/phone/src/apps/twitter/components/tweet/Tweet.tsx index eb530d1..f49f49b 100644 --- a/phone/src/apps/twitter/components/tweet/Tweet.tsx +++ b/phone/src/apps/twitter/components/tweet/Tweet.tsx @@ -4,7 +4,7 @@ import { useTranslation } from 'react-i18next'; import { makeStyles } from '@material-ui/core/styles'; import { ListItemAvatar, Avatar as MuiAvatar, ListItem, Typography } from '@material-ui/core'; -import { Tweet as ITweet } from '../../../../common/typings/twitter'; +import { Tweet as ITweet } from '../../../../../../typings/twitter'; import { secondsToHumanReadable } from '../../utils/time'; import LikeButton from '../buttons/LikeButton'; import ReplyButton from '../buttons/ReplyButton'; diff --git a/phone/src/os/call/hooks/useCall.ts b/phone/src/os/call/hooks/useCall.ts index a09766b..4311fc5 100644 --- a/phone/src/os/call/hooks/useCall.ts +++ b/phone/src/os/call/hooks/useCall.ts @@ -1,5 +1,5 @@ import { useRecoilState } from 'recoil'; -import { CallProps } from '../../../common/typings/call'; +import { CallProps } from '../../../../../typings/call'; import Nui from '../../nui-events/utils/Nui'; import { callerState } from './state'; diff --git a/phone/src/os/call/hooks/useCallNotifications.tsx b/phone/src/os/call/hooks/useCallNotifications.tsx index 52323a5..9d460ac 100644 --- a/phone/src/os/call/hooks/useCallNotifications.tsx +++ b/phone/src/os/call/hooks/useCallNotifications.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { useTranslation } from 'react-i18next'; import { useHistory } from 'react-router-dom'; -import { CallProps } from '../../../common/typings/call'; +import { CallProps } from '../../../../../typings/call'; import { useApp } from '../../apps/hooks/useApps'; import { useNotifications } from '../../notifications/hooks/useNotifications'; import { useRingtoneSound } from '../../sound/hooks/useRingtoneSound'; @@ -65,7 +65,7 @@ export const useCallNotifications = () => { ), }, - (n) => addNotification(n) + (n) => addNotification(n), ); } }; diff --git a/phone/src/os/call/hooks/useCallService.tsx b/phone/src/os/call/hooks/useCallService.tsx index 3268d58..a1085a3 100644 --- a/phone/src/os/call/hooks/useCallService.tsx +++ b/phone/src/os/call/hooks/useCallService.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'; import { useNuiEvent } from '../../nui-events/hooks/useNuiEvent'; import { useSetRecoilState } from 'recoil'; import { useCall } from './useCall'; -import { CallProps } from '../../../common/typings/call'; +import { CallProps } from '../../../../../typings/call'; import InjectDebugData from '../../debug/InjectDebugData'; import { useCallModal } from './useCallModal'; import { useHistory, useLocation } from 'react-router-dom'; diff --git a/phone/src/os/phone/hooks/usePhone.ts b/phone/src/os/phone/hooks/usePhone.ts index b09525f..443453a 100644 --- a/phone/src/os/phone/hooks/usePhone.ts +++ b/phone/src/os/phone/hooks/usePhone.ts @@ -1,5 +1,5 @@ import { useRecoilValue } from 'recoil'; -import { IServerConfig } from '../../../common/typings/config'; +import { IServerConfig } from '../../../../../typings/config'; import ServerConfig from '../../../config.autogen.json'; import { useNotifications } from '../../notifications/hooks/useNotifications'; import Nui from '../../nui-events/utils/Nui'; diff --git a/resources/client/cl_bank.ts b/resources/client/cl_bank.ts index 77b2558..9352529 100644 --- a/resources/client/cl_bank.ts +++ b/resources/client/cl_bank.ts @@ -1,4 +1,4 @@ -import { IAlertProps } from '../../phone/src/common/typings/alerts'; +import { IAlertProps } from '../../typings/alerts'; import events from '../utils/events'; onNet(events.BANK_SEND_TRANSFERS, (transfer: any) => { diff --git a/resources/client/cl_call.ts b/resources/client/cl_call.ts index 8a36bd5..0ef748e 100644 --- a/resources/client/cl_call.ts +++ b/resources/client/cl_call.ts @@ -1,5 +1,5 @@ import events from '../utils/events'; -import { ICall } from '../../phone/src/common/typings/call'; +import { ICall } from '../../typings/call'; import { phoneCallStartAnim, phoneCallEndAnim } from './functions'; const exp = (global as any).exports; diff --git a/resources/client/cl_messages.ts b/resources/client/cl_messages.ts index bcc25ee..8baea3b 100644 --- a/resources/client/cl_messages.ts +++ b/resources/client/cl_messages.ts @@ -4,7 +4,7 @@ import { Message, MessageGroup, SetMessageRead, -} from '../../phone/src/common/typings/messages'; +} from '../../typings/messages'; import { sendMessageEvent } from '../utils/messages'; /** diff --git a/resources/client/cl_sellout.ts b/resources/client/cl_sellout.ts index 11cbc86..566a396 100644 --- a/resources/client/cl_sellout.ts +++ b/resources/client/cl_sellout.ts @@ -1,6 +1,6 @@ import events from '../utils/events'; -import { MarketplaceListing } from '../../phone/src/common/typings/marketplace'; -import { IAlertProps } from '../../phone/src/common/typings/alerts'; +import { MarketplaceListing } from '../../typings/marketplace'; +import { IAlertProps } from '../../typings/alerts'; onNet(events.SELLOUT_SEND_LISTING, (listing: MarketplaceListing) => { SendNuiMessage( diff --git a/resources/client/cl_twitter.ts b/resources/client/cl_twitter.ts index 7cd40d6..58dbc29 100644 --- a/resources/client/cl_twitter.ts +++ b/resources/client/cl_twitter.ts @@ -1,6 +1,6 @@ import events from '../utils/events'; import { sendTwitterMessage } from '../utils/messages'; -import { IAlertProps } from '../../phone/src/common/typings/alerts'; +import { IAlertProps } from '../../typings/alerts'; /** * Twitter get or create profile @@ -124,7 +124,6 @@ onNet(events.TWITTER_RETWEET_EXISTS, (alert: IAlertProps) => { sendTwitterMessage(events.TWITTER_RETWEET_EXISTS, alert); }); - /** * Twitter reporting tweets */ diff --git a/resources/server/discord.ts b/resources/server/discord.ts index 2bd7f91..0b50231 100644 --- a/resources/server/discord.ts +++ b/resources/server/discord.ts @@ -1,9 +1,9 @@ import axios, { AxiosResponse } from 'axios'; -import { Tweet, Profile } from '../../phone/src/common/typings/twitter'; +import { Tweet, Profile } from '../../typings/twitter'; import { IMAGE_DELIMITER } from '../../phone/src/apps/twitter/utils/images'; import { mainLogger } from './sv_logger'; -import { MarketplaceListing } from '../../phone/src/common/typings/marketplace'; +import { MarketplaceListing } from '../../typings/marketplace'; const discordLogger = mainLogger.child({ module: 'discord' }); diff --git a/resources/server/sv_bank.ts b/resources/server/sv_bank.ts index 6b2ec30..802590d 100644 --- a/resources/server/sv_bank.ts +++ b/resources/server/sv_bank.ts @@ -2,7 +2,7 @@ import events from '../utils/events'; import { ESX } from './server'; import { getSource } from './functions'; import { pool } from './db'; -import { Transfer, IBankCredentials } from '../../phone/src/common/typings/bank'; +import { Transfer, IBankCredentials } from '../../typings/bank'; import { getIdentifier } from './functions'; import { mainLogger } from './sv_logger'; diff --git a/resources/server/sv_call.ts b/resources/server/sv_call.ts index cac5cfa..975b94d 100644 --- a/resources/server/sv_call.ts +++ b/resources/server/sv_call.ts @@ -2,7 +2,7 @@ import events from '../utils/events'; import { getIdentifierByPhoneNumber, getPlayer, getSource } from './functions'; import { getPlayerFromIdentifier } from './functions'; -import { ICall } from '../../phone/src/common/typings/call'; +import { ICall } from '../../typings/call'; import { pool } from './db'; import { v4 as uuidv4 } from 'uuid'; diff --git a/resources/server/sv_messages.ts b/resources/server/sv_messages.ts index 0b983d9..71516da 100644 --- a/resources/server/sv_messages.ts +++ b/resources/server/sv_messages.ts @@ -1,11 +1,7 @@ import md5 from 'md5'; import events from '../utils/events'; -import { - CreateMessageGroupResult, - Message, - MessageGroup, -} from '../../phone/src/common/typings/messages'; +import { CreateMessageGroupResult, Message, MessageGroup } from '../../typings/messages'; import { pool, withTransaction } from './db'; import { getIdentifier, getSource, getPlayerFromIdentifier } from './functions'; import { mainLogger } from './sv_logger'; diff --git a/resources/server/sv_notes.ts b/resources/server/sv_notes.ts index 10d8812..c686319 100644 --- a/resources/server/sv_notes.ts +++ b/resources/server/sv_notes.ts @@ -1,7 +1,7 @@ import events from '../utils/events'; import { pool } from './db'; import { getIdentifier, getSource } from './functions'; -import { Note, NoteId } from '../../phone/src/common/typings/notes'; +import { Note, NoteId } from '../../typings/notes'; import { mainLogger } from './sv_logger'; const notesLogger = mainLogger.child({ module: 'notes' }); diff --git a/resources/server/sv_photo.ts b/resources/server/sv_photo.ts index c56f4b3..3ee99e0 100644 --- a/resources/server/sv_photo.ts +++ b/resources/server/sv_photo.ts @@ -1,7 +1,7 @@ import events from '../utils/events'; import { pool } from './db'; import { getIdentifier, getSource } from './functions'; -import { IPhoto } from '../../phone/src/common/typings/photo'; +import { IPhoto } from '../../typings/photo'; import { mainLogger } from './sv_logger'; const photoLogger = mainLogger.child({ module: 'photo' }); diff --git a/resources/server/sv_sellout.ts b/resources/server/sv_sellout.ts index 86a5f74..b6c8e45 100644 --- a/resources/server/sv_sellout.ts +++ b/resources/server/sv_sellout.ts @@ -2,7 +2,7 @@ import events from '../utils/events'; import { getIdentifier, getPlayer, getSource } from './functions'; import { pool } from './db'; import { mainLogger } from './sv_logger'; -import { MarketplaceListing } from '../../phone/src/common/typings/marketplace'; +import { MarketplaceListing } from '../../typings/marketplace'; import { reportListingToDiscord } from './discord'; const selloutLogger = mainLogger.child({ module: 'sellout' }); diff --git a/resources/server/sv_twitter.ts b/resources/server/sv_twitter.ts index caab3f9..b830cf5 100644 --- a/resources/server/sv_twitter.ts +++ b/resources/server/sv_twitter.ts @@ -1,6 +1,6 @@ import { pool } from './db'; import { getIdentifier, getSource } from './functions'; -import { NewTweet, Tweet, Profile } from '../../phone/src/common/typings/twitter'; +import { NewTweet, Tweet, Profile } from '../../typings/twitter'; import events from '../utils/events'; import config from '../utils/config'; import { reportTweetToDiscord } from './discord'; diff --git a/resources/utils/config.ts b/resources/utils/config.ts index 82d6b49..e62e78f 100644 --- a/resources/utils/config.ts +++ b/resources/utils/config.ts @@ -1,4 +1,4 @@ import config from '../../config.json'; -import { IServerConfig } from '../../phone/src/common/typings/config'; +import { IServerConfig } from '../../typings/config'; export default config; diff --git a/phone/src/common/typings/alerts.ts b/typings/alerts.ts similarity index 100% rename from phone/src/common/typings/alerts.ts rename to typings/alerts.ts diff --git a/phone/src/common/typings/bank.ts b/typings/bank.ts similarity index 100% rename from phone/src/common/typings/bank.ts rename to typings/bank.ts diff --git a/phone/src/common/typings/call.ts b/typings/call.ts similarity index 100% rename from phone/src/common/typings/call.ts rename to typings/call.ts diff --git a/phone/src/common/typings/config.ts b/typings/config.ts similarity index 100% rename from phone/src/common/typings/config.ts rename to typings/config.ts diff --git a/phone/src/common/typings/contact.ts b/typings/contact.ts similarity index 100% rename from phone/src/common/typings/contact.ts rename to typings/contact.ts diff --git a/phone/src/common/typings/marketplace.ts b/typings/marketplace.ts similarity index 100% rename from phone/src/common/typings/marketplace.ts rename to typings/marketplace.ts diff --git a/phone/src/common/typings/messages.ts b/typings/messages.ts similarity index 100% rename from phone/src/common/typings/messages.ts rename to typings/messages.ts diff --git a/phone/src/common/typings/notes.ts b/typings/notes.ts similarity index 100% rename from phone/src/common/typings/notes.ts rename to typings/notes.ts diff --git a/phone/src/common/typings/photo.ts b/typings/photo.ts similarity index 100% rename from phone/src/common/typings/photo.ts rename to typings/photo.ts diff --git a/phone/src/common/typings/twitter.ts b/typings/twitter.ts similarity index 100% rename from phone/src/common/typings/twitter.ts rename to typings/twitter.ts