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 +0,0 @@
|
||||
export interface IAlertProps {
|
||||
message: string;
|
||||
type: 'success' | 'error';
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
export interface IBankCredentials {
|
||||
name: string;
|
||||
balance: number;
|
||||
}
|
||||
|
||||
export interface Transfer {
|
||||
id: number;
|
||||
targetID: number;
|
||||
source: string;
|
||||
type: string;
|
||||
transferAmount: number;
|
||||
message: string;
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
export interface CallProps {
|
||||
active: boolean;
|
||||
accepted: boolean;
|
||||
isTransmitter: boolean;
|
||||
transmitter: string;
|
||||
receiver: string;
|
||||
}
|
||||
|
||||
export interface ICall {
|
||||
id?: number;
|
||||
identifier: string;
|
||||
transmitter: string;
|
||||
transmitterSource?: number;
|
||||
receiver: string;
|
||||
receiverSource?: number;
|
||||
start: number;
|
||||
end?: number;
|
||||
accepted: boolean;
|
||||
}
|
||||
|
||||
export interface ICallDuration {
|
||||
ms: number;
|
||||
s: number;
|
||||
m: number;
|
||||
h: number;
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
interface TwitterConfig {
|
||||
showNotifications: boolean;
|
||||
generateProfileNameFromUsers: boolean;
|
||||
allowEdtiableProfileName: boolean;
|
||||
allowDeleteTweets: boolean;
|
||||
allowReportTweets: boolean;
|
||||
characterLimit: number;
|
||||
newLineLimit: number;
|
||||
enableAvatars: boolean;
|
||||
enableEmojis: boolean;
|
||||
enableImages: boolean;
|
||||
maxImages: number;
|
||||
}
|
||||
|
||||
interface Debug {
|
||||
level: 'error' | 'warn' | 'info' | 'verbose' | 'debug';
|
||||
enabled: boolean;
|
||||
}
|
||||
|
||||
interface General {
|
||||
useDashNumber: boolean;
|
||||
}
|
||||
|
||||
interface NotificationConfig {
|
||||
horizontal: 'left' | 'center' | 'right';
|
||||
vertical: 'bottom' | 'top';
|
||||
}
|
||||
|
||||
interface BankConfig {
|
||||
showNotifications: boolean;
|
||||
}
|
||||
|
||||
export interface IServerConfig {
|
||||
Locale: string;
|
||||
KeyTogglePhone: number;
|
||||
KeyTakeCall: number;
|
||||
PhoneAsItem: boolean;
|
||||
SwimDestroy: boolean;
|
||||
RunRate: number;
|
||||
DestoryChance: number;
|
||||
DestroyPhoneReCheck: number;
|
||||
twitter: TwitterConfig;
|
||||
bank: BankConfig;
|
||||
notificationPosition: NotificationConfig;
|
||||
general: General;
|
||||
debug: Debug;
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
export type AlertCategory =
|
||||
| 'CONTACT_ADD_SUCCESS'
|
||||
| 'CONTACT_ADD_FAILED'
|
||||
| 'CONTACT_UPDATE_SUCCESS'
|
||||
| 'CONTACT_UPDATE_FAILED'
|
||||
| 'CONTACT_DELETE_SUCCESS'
|
||||
| 'CONTACT_DELETE_FAILED';
|
||||
|
||||
export interface IContactAlert {
|
||||
alert: AlertCategory;
|
||||
setAlert: (type: string) => void;
|
||||
}
|
||||
|
||||
export interface Contact {
|
||||
id: number;
|
||||
display: string;
|
||||
number: string;
|
||||
avatar?: string;
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
export interface MarketplaceListing {
|
||||
id: number;
|
||||
identifier?: string;
|
||||
username: string;
|
||||
name: string;
|
||||
number: string;
|
||||
title: string;
|
||||
url: string;
|
||||
description: string;
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
export interface Message {
|
||||
id: number;
|
||||
message: string;
|
||||
user_identifier: string;
|
||||
phone_number: string;
|
||||
groupId?: string;
|
||||
display?: string;
|
||||
avatar?: string;
|
||||
isRead: boolean;
|
||||
isMine: boolean;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface MessageGroup {
|
||||
groupId: string;
|
||||
groupDisplay: string;
|
||||
isGroupChat: boolean;
|
||||
avatar?: string;
|
||||
label?: string;
|
||||
updatedAt: string;
|
||||
unreadCount: number;
|
||||
phoneNumbers: string[];
|
||||
participants: string[];
|
||||
}
|
||||
|
||||
export interface CreateMessageGroupResult {
|
||||
error?: boolean;
|
||||
phoneNumber?: string;
|
||||
duplicate?: boolean;
|
||||
groupId?: string;
|
||||
mine?: boolean;
|
||||
identifiers?: string[];
|
||||
}
|
||||
|
||||
export interface CreateMessageBroadcast {
|
||||
message: string;
|
||||
groupName: string;
|
||||
groupId: string;
|
||||
}
|
||||
|
||||
export interface SetMessageRead {
|
||||
groupId: string;
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
export type AlertCategory =
|
||||
| 'NOTES_ADD_SUCCESS'
|
||||
| 'NOTES_ADD_FAILED'
|
||||
| 'NOTES_UPDATE_SUCCESS'
|
||||
| 'NOTES_UPDATE_FAILED'
|
||||
| 'NOTES_DELETE_SUCCESS'
|
||||
| 'NOTES_DELETE_FAILED';
|
||||
|
||||
export interface INotesAlert {
|
||||
alert: AlertCategory;
|
||||
setAlert: (type: AlertCategory) => void;
|
||||
}
|
||||
|
||||
export interface Note {
|
||||
id?: number;
|
||||
title: string;
|
||||
content: string;
|
||||
}
|
||||
|
||||
export interface NoteId {
|
||||
id: number;
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
export interface IPhoto {
|
||||
image: string;
|
||||
id: number;
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
export interface NewTweet {
|
||||
message: string;
|
||||
images?: string;
|
||||
retweet?: number;
|
||||
}
|
||||
|
||||
export type SETTING_MENTIONS = 'mentions';
|
||||
export type SETTINGS_ALL_TWEETS = 'all';
|
||||
|
||||
export interface Tweet extends NewTweet {
|
||||
profile_name: string;
|
||||
profile_id: number;
|
||||
id: number;
|
||||
isMine: boolean;
|
||||
isLiked: boolean;
|
||||
isReported: boolean;
|
||||
avatar_url: string;
|
||||
isRetweet: number | boolean;
|
||||
isRetweetedByPlayer?: boolean;
|
||||
retweetIdentifier: string;
|
||||
retweetId: string;
|
||||
seconds_since_tweet: number;
|
||||
retweetProfileName: string;
|
||||
retweetAvatarUrl: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface Profile {
|
||||
id: number;
|
||||
profile_name: string;
|
||||
identifier: string;
|
||||
avatar_url?: string;
|
||||
bio?: string;
|
||||
location?: string;
|
||||
job?: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
Reference in new issue
Block a user