Commit 7af15089 authored by Dakshina Weerasiri 's avatar Dakshina Weerasiri

Facial expressions

parent c88ebc61
...@@ -24,3 +24,33 @@ const FIREBASE_CONFIG = { ...@@ -24,3 +24,33 @@ const FIREBASE_CONFIG = {
const app = initializeApp(FIREBASE_CONFIG); const app = initializeApp(FIREBASE_CONFIG);
export const fileStorage = getStorage(app); export const fileStorage = getStorage(app);
export const emotionsData = [
{
angry: 0.01,
disgust: 0.0,
fear: 0.2,
happy: 0.18,
sad: 0.02,
surprise: 0.4,
neutral: 0.19,
},
{
angry: 0.02,
disgust: 0.1,
fear: 0.3,
happy: 0.28,
sad: 0.03,
surprise: 1.4,
neutral: 0.29,
},
{
angry: 1.02,
disgust: 0.2,
fear: 1.3,
happy: 2.28,
sad: 0.3,
surprise: 2.4,
neutral: 0.5,
},
];
...@@ -43,7 +43,7 @@ export const request = ( ...@@ -43,7 +43,7 @@ export const request = (
data, data,
params, params,
headers, headers,
timeout: 30000, timeout: 90000,
}) })
.then(async (response: AxiosResponse) => { .then(async (response: AxiosResponse) => {
logger("RESPONSE: ", response); logger("RESPONSE: ", response);
......
...@@ -66,6 +66,7 @@ export const getStatusColor = (status?: ApplicationType["status"]) => { ...@@ -66,6 +66,7 @@ export const getStatusColor = (status?: ApplicationType["status"]) => {
}; };
export const getAddress = (address: AddressType) => { export const getAddress = (address: AddressType) => {
if (!address) return "";
return `${address.addressLine}, ${address.city}, ${address.country}`; return `${address.addressLine}, ${address.city}, ${address.country}`;
}; };
......
...@@ -57,6 +57,12 @@ function* applyForJob({ ...@@ -57,6 +57,12 @@ function* applyForJob({
candidate: profile._id, candidate: profile._id,
job: payload, job: payload,
status: "Pending", status: "Pending",
interview: {
date: "",
time: "",
link: "",
voiceVerification: "Pending",
},
}, },
resumeUrl: profile.resume, resumeUrl: profile.resume,
} }
......
...@@ -147,9 +147,30 @@ export type ApplicationType = { ...@@ -147,9 +147,30 @@ export type ApplicationType = {
time: string; time: string;
link: string; link: string;
videoRef?: string; videoRef?: string;
voiceVerification?: string;
}; };
}; };
export type EmotionsPayloadType = {
angry: number;
disgust: number;
fear: number;
happy: number;
sad: number;
surprise: number;
neutral: number;
};
export type EmotionsType = {
data: [
{
box: number[];
emotions: EmotionsPayloadType;
}
];
end: boolean;
};
//PAYLOADS //PAYLOADS
export type SignUpPayload = { export type SignUpPayload = {
passwords: string[]; passwords: string[];
...@@ -201,7 +222,7 @@ export type ApplicationPayloadType = { ...@@ -201,7 +222,7 @@ export type ApplicationPayloadType = {
time: string; time: string;
link: string; link: string;
videoRef?: string; videoRef?: string;
voiceVerification?: number; voiceVerification?: string;
}; };
score: { score: {
primary: number; primary: number;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment