@xuulu/xuulu-types 1.0.16 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ export type CandidateStatusesResponse = {
2
+ id: number;
3
+ name: string;
4
+ };
@@ -0,0 +1,14 @@
1
+ import { CandidateStatusesResponse } from "../../candidateStatuses/responses";
2
+
3
+ export type CandidateResponse = {
4
+ id: number;
5
+ email: string;
6
+ lastname: string;
7
+ firstname: string;
8
+ dateOfBirth: string;
9
+ cvFileName: string;
10
+ similarity: number;
11
+ status: CandidateStatusesResponse;
12
+ comments: string;
13
+ positionCandidates: [{ similarity: number }];
14
+ };
@@ -1,4 +1,4 @@
1
- export type FrameworksResponse = {
1
+ export type FrameworkResponse = {
2
2
  id: number;
3
3
  name: string;
4
4
  description: string;
@@ -0,0 +1,15 @@
1
+ export type MeetingDetails = {
2
+ participants: {
3
+ [key: string]:
4
+ | {
5
+ isAdmin: boolean;
6
+ token: string;
7
+ displayName: string;
8
+ }
9
+ | {
10
+ isAdmin: false;
11
+ token: string;
12
+ displayName: string;
13
+ };
14
+ };
15
+ };
@@ -1,17 +1,17 @@
1
1
  import { SectionResponse } from "../../sections/responses";
2
2
  import { QuestionResponse } from "../../questions/responses";
3
- import { FrameworksResponse } from "../../frameworks/responses";
3
+ import { FrameworkResponse } from "../../frameworks/responses";
4
4
  import { InterviewsQuestionsResponse } from "../../InterviewQuestions/responses";
5
5
  import { InterviewsQuestionsCustomResponse } from "../../interviewQuestionsCustom/responses";
6
6
 
7
7
  export type InterviewSetupResponse = {
8
8
  additionalSkills: {
9
9
  sections: SectionResponse[];
10
- frameworks: FrameworksResponse[];
10
+ frameworks: FrameworkResponse[];
11
11
  };
12
12
  absentSkills: {
13
13
  sections: SectionResponse[];
14
- frameworks: FrameworksResponse[];
14
+ frameworks: FrameworkResponse[];
15
15
  };
16
16
  requiredQuestions: QuestionResponse[];
17
17
  selectedQuestions: InterviewsQuestionsResponse[];
@@ -0,0 +1,4 @@
1
+ export type InterviewStatusResponse = {
2
+ id: number;
3
+ name: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ export type InterviewTypeResponse = {
2
+ id: number;
3
+ name: string;
4
+ };
@@ -0,0 +1,28 @@
1
+ import { PositionResponse } from "../../positions/responses";
2
+ import { CandidateResponse } from "../../candidates/responses";
3
+ import { InterviewTypeResponse } from "../../interviewTypes/responses";
4
+ import { MeetingDetails } from "../../interviewCall/responses";
5
+ import { InterviewStatusResponse } from "../../interviewStatuses/response";
6
+ import { QuestionResponse } from "../../questions/responses";
7
+ import { UsersResponse } from "../../users/responses";
8
+
9
+ type Interview = {
10
+ id: number;
11
+ interviewDate: string;
12
+ similarity: number;
13
+ meetingId: string;
14
+ accessToken: string;
15
+ candidate: CandidateResponse;
16
+ position: PositionResponse;
17
+ interviewType: InterviewTypeResponse;
18
+ status: InterviewStatusResponse;
19
+ responsible: UsersResponse;
20
+ questions: QuestionResponse[];
21
+ interviewers: UsersResponse[];
22
+ feedback: string;
23
+ meetingDetails: MeetingDetails;
24
+ };
25
+
26
+ export type InterviewResponse = Interview & {
27
+ subInterviews: Interview[];
28
+ };
@@ -0,0 +1,9 @@
1
+ export type OfficeResponse = {
2
+ id: number;
3
+ name: string;
4
+ description: string;
5
+ city: string;
6
+ cityIsoCode: string;
7
+ state: string;
8
+ stateIsoCode: string;
9
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuulu/xuulu-types",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {},
@@ -0,0 +1,4 @@
1
+ export type PositionContractResponse = {
2
+ id: number;
3
+ name: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ export type PositionStatusesResponse = {
2
+ id: number;
3
+ name: string;
4
+ };
@@ -0,0 +1,4 @@
1
+ export type PositionWorkplaceResponse = {
2
+ id: number;
3
+ name: string;
4
+ };
@@ -0,0 +1,30 @@
1
+ import { CandidateResponse } from "../../candidates/responses";
2
+ import { FrameworkResponse } from "../../frameworks/responses";
3
+ import { OfficeResponse } from "../../offices/responses";
4
+ import { PositionContractResponse } from "../../positionContracts/responses";
5
+ import { PositionJobTypeResponse } from "../../positionsJobTypes/responses";
6
+ import { PositionStatusesResponse } from "../../positionStatuses/responses";
7
+ import { PositionWorkplaceResponse } from "../../positionWorkplaces/responses";
8
+ import { SeniorityLevelResponse } from "../../seniorityLevels/responses";
9
+
10
+ export type PositionResponse = {
11
+ id: number;
12
+ positionName: string;
13
+ description: string;
14
+ qualification: string;
15
+ niceToHave: string;
16
+ weOffer: string;
17
+ seniorityLevel: SeniorityLevelResponse;
18
+ status?: PositionStatusesResponse;
19
+ workplace: PositionWorkplaceResponse;
20
+ jobType: PositionJobTypeResponse;
21
+ contract: PositionContractResponse;
22
+ office: OfficeResponse;
23
+ salary: number;
24
+ salaryCurrency: string;
25
+ volume: number;
26
+ comment: string;
27
+ candidates: CandidateResponse[];
28
+ frameworks: FrameworkResponse[];
29
+ sections: PositionResponse[];
30
+ };
@@ -0,0 +1,4 @@
1
+ export type PositionJobTypeResponse = {
2
+ id: number;
3
+ name: string;
4
+ };
@@ -0,0 +1,5 @@
1
+ export type SeniorityLevelResponse = {
2
+ id: number;
3
+ name: string;
4
+ complexity: number;
5
+ };
@@ -0,0 +1,14 @@
1
+ type UserSettings = {
2
+ lang: string;
3
+ };
4
+
5
+ export type UsersResponse = {
6
+ dateOfBirth: Date;
7
+ email: string;
8
+ firstname: string;
9
+ id: number;
10
+ lastname: string;
11
+ roleId: number;
12
+ username: string;
13
+ settings: UserSettings;
14
+ };