🆙 Init V3

This commit is contained in:
DuckieTM
2026-01-31 09:10:52 +01:00
commit 7feb10ab15
1733 changed files with 53405 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
export class CallForHelpResult
{
public static readonly TOO_MANY_PENDING_CALLS_CODE = 1;
public static readonly HAS_ABUSIVE_CALL_CODE = 2;
}
+8
View File
@@ -0,0 +1,8 @@
export const GetCloseReasonKey = (code: number) =>
{
if(code === 1) return 'useless';
if(code === 2) return 'abusive';
return 'resolved';
};
+19
View File
@@ -0,0 +1,19 @@
import { IChatEntry } from '../chat-history';
export interface IHelpReport
{
reportType: number;
reportedUserId: number;
reportedChats: IChatEntry[];
cfhCategory: number;
cfhTopic: number;
roomId: number;
roomName: string;
groupId: number;
threadId: number;
messageId: number;
extraData: string;
roomObjectId: number;
message: string;
currentStep: number;
}
+5
View File
@@ -0,0 +1,5 @@
export interface IReportedUser
{
id: number;
username: string;
}
+8
View File
@@ -0,0 +1,8 @@
export class ReportState
{
public static readonly SELECT_USER = 0;
public static readonly SELECT_CHATS = 1;
public static readonly SELECT_TOPICS = 2;
public static readonly INPUT_REPORT_MESSAGE = 3;
public static readonly REPORT_SUMMARY = 4;
}
+11
View File
@@ -0,0 +1,11 @@
export class ReportType
{
public static readonly EMERGENCY = 1;
public static readonly GUIDE = 2;
public static readonly IM = 3;
public static readonly ROOM = 4;
public static readonly BULLY = 6;
public static readonly THREAD = 7;
public static readonly MESSAGE = 8;
public static readonly PHOTO = 9;
}
+6
View File
@@ -0,0 +1,6 @@
export * from './CallForHelpResult';
export * from './GetCloseReasonKey';
export * from './IHelpReport';
export * from './IReportedUser';
export * from './ReportState';
export * from './ReportType';