mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
chore(typings): Moved common typings to root dir
This commit is contained in:
1 parent
378830245d
commit
f0c5e5101e
47 files changed
+41
-46
No files matched your search
@@ -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) => {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
Message,
|
||||
MessageGroup,
|
||||
SetMessageRead,
|
||||
} from '../../phone/src/common/typings/messages';
|
||||
} from '../../typings/messages';
|
||||
import { sendMessageEvent } from '../utils/messages';
|
||||
|
||||
/**
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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' });
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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' });
|
||||
|
||||
@@ -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' });
|
||||
|
||||
@@ -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' });
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import config from '../../config.json';
|
||||
import { IServerConfig } from '../../phone/src/common/typings/config';
|
||||
import { IServerConfig } from '../../typings/config';
|
||||
|
||||
export default <IServerConfig>config;
|
||||
Reference in new issue
Block a user