Initial commit: Angular frontend and Expressjs backend

This commit is contained in:
chamikaJ
2024-05-17 09:32:30 +05:30
parent eb0a0d77d6
commit 298ca6beeb
3548 changed files with 193558 additions and 3 deletions

View File

View File

@@ -0,0 +1,59 @@
export interface ISESBouncedRecipient {
emailAddress: string;
action: string;
status: string;
diagnosticCode: string;
}
export interface ISESBounce {
feedbackId: string;
bounceType: string;
bounceSubType: string;
bouncedRecipients: ISESBouncedRecipient[];
timestamp: string;
remoteMtaIp: string;
reportingMTA: string;
}
export interface ISESBouncedHeaders {
name: string;
value: string;
}
export interface ISESCommonHeaders {
from: string[];
to: string[];
subject: string;
}
export interface ISESBouncedMail {
timestamp: string;
source: string;
sourceArn: string;
sourceIp: string;
callerIdentity: string;
sendingAccountId: string;
messageId: string;
destination: string[];
headersTruncated: boolean;
headers: ISESBouncedHeaders[];
commonHeaders: ISESCommonHeaders;
}
export interface ISESBouncedMessage {
notificationType: string;
bounce: ISESBounce;
mail: ISESBouncedMail;
}
export interface ISESBouncedEmailResponse {
Type: string;
MessageId: string;
TopicArn: string;
Message: ISESBouncedMessage;
Timestamp: string;
SignatureVersion: string;
Signature: string;
SigningCertURL: string;
UnsubscribeURL: string;
}

View File

@@ -0,0 +1,42 @@
export interface ISESComplaintMail {
timestamp: string;
source: string;
sourceArn: string;
sourceIp: string;
callerIdentity: string;
sendingAccountId: string;
messageId: string;
destination: string[];
}
export interface ISESComplaintEmailAddress {
emailAddress: string;
}
export interface ISESComplaint {
feedbackId: string;
complaintSubType: string | null;
complainedRecipients: ISESComplaintEmailAddress[];
timestamp: string;
userAgent: string;
complaintFeedbackType: string;
arrivalDate: string;
}
export interface ISESComplaintMessage {
notificationType: string;
complaint: ISESComplaint;
mail: ISESComplaintMail;
}
export interface ISESComplaintResponse {
Type: string;
MessageId: string;
TopicArn: string;
Message: ISESComplaintMessage;
Timestamp: string;
SignatureVersion: string;
Signature: string;
SigningCertURL: string;
UnsubscribeURL: string;
}

View File

@@ -0,0 +1,18 @@
export interface ICommentEmailNotification {
greeting: string;
summary: string;
team: string;
project_name: string;
comment: string;
task: string;
settings_url: string;
task_url: string;
}
export interface IProjectCommentEmailNotification {
greeting: string;
summary: string;
team: string;
project_name: string;
comment: string;
}

View File

@@ -0,0 +1,13 @@
import {ITaskAssignmentModelTeam} from "./task-assignments-model";
export interface IDailyDigest {
name?: string;
greeting?: string;
note?: string;
email?: string;
base_url?: string;
settings_url?: string;
recently_assigned?: ITaskAssignmentModelTeam[];
overdue?: ITaskAssignmentModelTeam[];
recently_completed?: ITaskAssignmentModelTeam[];
}

View File

@@ -0,0 +1,5 @@
import {IPassportSession} from "./passport-session";
export interface IDeserializeCallback {
(error: unknown | null, user: IPassportSession | null): void;
}

View File

@@ -0,0 +1,16 @@
export enum IEmailTemplateType {
None,
NewSubscriber,
TeamMemberInvitation,
UnregisteredTeamMemberInvitation,
PasswordChange,
Welcome,
OTPVerification,
ResetPassword,
TaskAssigneeChange,
DailyDigest,
TaskDone,
ProjectDailyDigest,
TaskComment,
ProjectComment
}

View File

@@ -0,0 +1,24 @@
export interface IGanttDateRange {
isSunday?: boolean;
isToday?: boolean;
isWeekend?: boolean;
isLastDayOfWeek?: boolean;
isLastDayOfMonth?: boolean;
date?: Date;
}
export interface IGanttWeekRange {
max?: number;
min?: number;
month_name?: string;
week_index?: number;
days_of_week?: IGanttDateRange[];
}
export interface IGanttMonthRange {
max?: number;
min?: number;
month_name?: string;
month_index?: number;
days_of_month?: IGanttDateRange[];
}

View File

@@ -0,0 +1,20 @@
import {IUser} from "./user";
export interface IPassportSession extends IUser {
id?: string;
email?: string;
name?: string;
owner?: boolean;
team_id?: string;
team_member_id?: string;
team_name?: string;
is_admin?: boolean;
is_member?: boolean;
is_google?: boolean;
build_v?: string;
timezone?: string;
timezone_name?: string;
socket_id?: string;
is_expired?: boolean;
owner_id?: string;
}

View File

@@ -0,0 +1,6 @@
export interface IPasswordValidityResult {
contains: ("lowercase" | "uppercase" | "number" | "symbol")[];
length: number;
value: number;
text: "Too Weak" | "Weak" | "Strong" | "Excellent";
}

View File

@@ -0,0 +1,12 @@
export interface PgSessionData {
cookie: {
originalMaxAge: number;
expires: string;
httpOnly: boolean;
path: string;
};
flash: object;
passport?: {
user: string;
};
}

View File

@@ -0,0 +1,9 @@
export interface IProjectCategory {
id?: string;
name?: string;
color_code?: string;
team_id?: string;
created_by?: string;
created_at?: string;
updated_at?: string;
}

View File

@@ -0,0 +1,25 @@
export interface IProjectDigestTask {
id: string;
name: string;
url: string;
members: string;
}
export interface IProjectDigestSubscriber {
name: string;
email: string;
}
export interface IProjectDigest {
id: string;
name: string;
team_name: string;
greeting: string;
summary: string;
settings_url: string;
project_url: string;
today_completed: IProjectDigestTask[];
today_new: IProjectDigestTask[];
due_tomorrow: IProjectDigestTask[];
subscribers: IProjectDigestSubscriber[];
}

View File

@@ -0,0 +1,11 @@
export interface IProjectFolder {
id: string;
name: string;
key: string;
color_code: string;
created_by: string;
parent_folder_id?: string;
team_id: string;
created_at: string;
updated_at: string;
}

View File

@@ -0,0 +1,3 @@
export interface ISerializeCallback {
(error: string | null, id: string | null): void;
}

View File

@@ -0,0 +1,5 @@
export interface ISocketSession {
session?: {
passport?: { user?: string; }
}
}

View File

@@ -0,0 +1,30 @@
export interface ITaskAssignmentModelTask {
id?: string;
task_name?: string;
updater_name?: string;
members?: string;
url?: string;
}
export interface ITaskAssignmentModelProject {
id?: string;
name?: string;
url?: string;
tasks?: ITaskAssignmentModelTask[];
}
export interface ITaskAssignmentModelTeam {
id?: string;
name?: string;
team_member_id?: string;
projects?: ITaskAssignmentModelProject[];
}
export interface ITaskAssignmentsModel {
email?: string;
name?: string;
team_member_id?: string;
url?: string;
settings_url?: string;
teams?: ITaskAssignmentModelTeam[];
}

View File

@@ -0,0 +1,14 @@
export interface TaskRecord {
name: string;
members: string;
url: string;
team_name: string;
project_name: string;
}
export interface ITaskMovedToDoneRecord {
greeting: string;
summary: string;
settings_url: string;
task: TaskRecord;
}

View File

@@ -0,0 +1,6 @@
export interface IUser {
id?: string;
name?: string;
password?: string;
email?: string;
}

View File

@@ -0,0 +1,6 @@
import {Request} from "express";
import {IPassportSession} from "./passport-session";
export interface IWorkLenzRequest extends Request {
user?: IPassportSession;
}

View File

@@ -0,0 +1,3 @@
import {Response} from "express";
export type IWorkLenzResponse = Response