Skip to content

Commit

Permalink
apps init
Browse files Browse the repository at this point in the history
  • Loading branch information
ceddybi committed Feb 3, 2024
1 parent 0d12006 commit a185384
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/app.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as cheerio from "cheerio";

import { APPEVENTS, AppEvents } from "../events";
import { AppJob, addJob, getQuestion, getResume, getState, saveQuestion, setState } from "../utils/state";
import { AppJob, addJob, getAllQuestion, getQuestion, getResume, getState, saveQuestion, setState } from "../utils/state";
import _, { debounce, isEmpty } from "lodash";
import { getAppApi, getMainApi } from "../api";

Expand Down Expand Up @@ -100,6 +100,7 @@ export const gotoAppPage = async (job: AppJob) => {
addJob,
axios,
getQuestion,
getAllQuestion,
saveQuestion,
setState,
getState,
Expand Down
13 changes: 13 additions & 0 deletions src/utils/state/state.interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,27 @@ export interface AppJob {
easyApply: boolean
};

export interface Application {
job: AppJob;
questions?: QuestionAnswer[];
};

export interface BEState {
apps: Application[];
completedApps: Application[];
skippedApps: Application[];

jobs: AppJob[];
activeJob: AppJob;
applied: AppJob[];

questions: QuestionAnswer[];

count: number;

isListRunning?: boolean;
isAppRunning?: boolean;

settings: {
key: string;
path: string;
Expand Down

0 comments on commit a185384

Please sign in to comment.