@xuulu/xuulu-types 1.0.47 → 1.0.49

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.
@@ -14,12 +14,14 @@ type MeetingDetails = {
14
14
  };
15
15
  };
16
16
  };
17
+ export type videoProvider = 'videosdk' | 'daily';
17
18
  export type InterviewCallResponse = {
18
19
  id: number;
19
20
  meetingId: string;
20
21
  similarity: number;
21
22
  interviewDate: string;
22
23
  position: Pick<PositionResponse, "positionName" | "description" | "qualification" | "niceToHaveDescription" | "comment" | 'seniorityLevel'>;
24
+ videoProvider: videoProvider;
23
25
  interviewType: InterviewTypeResponse;
24
26
  question: (QuestionResponse & {
25
27
  answerRating: number;
@@ -4,6 +4,12 @@ import { FrameworkResponse } from "../../frameworks/responses";
4
4
  import { InterviewsQuestionsResponse } from "../../InterviewQuestions/responses";
5
5
  import { InterviewsQuestionsCustomResponse } from "../../interviewQuestionsCustom/responses";
6
6
  export type InterviewSetupResponse = {
7
+ candidateFirstName: string;
8
+ candidateLastName: string;
9
+ candidateId: number;
10
+ positionId: number;
11
+ positionName: string;
12
+ positionTags: string[];
7
13
  additionalSkills: {
8
14
  sections: SectionResponse[];
9
15
  frameworks: FrameworkResponse[];
@@ -14,12 +14,14 @@ type MeetingDetails = {
14
14
  };
15
15
  };
16
16
  };
17
+ export type videoProvider = 'videosdk' | 'daily';
17
18
  export type InterviewCallResponse = {
18
19
  id: number;
19
20
  meetingId: string;
20
21
  similarity: number;
21
22
  interviewDate: string;
22
23
  position: Pick<PositionResponse, "positionName" | "description" | "qualification" | "niceToHaveDescription" | "comment" | 'seniorityLevel'>;
24
+ videoProvider: videoProvider;
23
25
  interviewType: InterviewTypeResponse;
24
26
  question: (QuestionResponse & {
25
27
  answerRating: number;
@@ -4,6 +4,12 @@ import { FrameworkResponse } from "../../frameworks/responses";
4
4
  import { InterviewsQuestionsResponse } from "../../InterviewQuestions/responses";
5
5
  import { InterviewsQuestionsCustomResponse } from "../../interviewQuestionsCustom/responses";
6
6
  export type InterviewSetupResponse = {
7
+ candidateFirstName: string;
8
+ candidateLastName: string;
9
+ candidateId: number;
10
+ positionId: number;
11
+ positionName: string;
12
+ positionTags: string[];
7
13
  additionalSkills: {
8
14
  sections: SectionResponse[];
9
15
  frameworks: FrameworkResponse[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuulu/xuulu-types",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json"
@@ -1,2 +1,2 @@
1
- export * from "./requests";
2
- export * from "./responses";
1
+ export * from "./requests";
2
+ export * from "./responses";
@@ -1,8 +1,8 @@
1
- export type ApiKeyCreateRequest = {
2
- name: string;
3
- };
4
-
5
- export type ApiKeyUpdateRequest = {
6
- name?: string;
7
- isActive?: boolean;
8
- };
1
+ export type ApiKeyCreateRequest = {
2
+ name: string;
3
+ };
4
+
5
+ export type ApiKeyUpdateRequest = {
6
+ name?: string;
7
+ isActive?: boolean;
8
+ };
@@ -1,10 +1,10 @@
1
- export type ApiKeyResponse = {
2
- id: number;
3
- name: string;
4
- keyValue: string;
5
- isActive: boolean;
6
- createdAt: Date;
7
- expiresAt: Date;
8
- isExpired?: boolean;
9
- daysUntilExpiration?: number;
10
- };
1
+ export type ApiKeyResponse = {
2
+ id: number;
3
+ name: string;
4
+ keyValue: string;
5
+ isActive: boolean;
6
+ createdAt: Date;
7
+ expiresAt: Date;
8
+ isExpired?: boolean;
9
+ daysUntilExpiration?: number;
10
+ };
package/src/auth/index.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './requests';
1
+ export * from './requests';
2
2
  export * from './responses';
@@ -1,9 +1,9 @@
1
- export type ResetPasswordRequest = {
2
- email: string;
3
- token: string;
4
- newPassword: string;
5
- };
6
-
7
- export type ForgotPasswordRequest = {
8
- email: string;
1
+ export type ResetPasswordRequest = {
2
+ email: string;
3
+ token: string;
4
+ newPassword: string;
5
+ };
6
+
7
+ export type ForgotPasswordRequest = {
8
+ email: string;
9
9
  };
@@ -1,7 +1,7 @@
1
- export type ResetPasswordResponse = {
2
- message: string;
3
- };
4
-
5
- export type ForgotPasswordResponse = {
6
- message: string;
1
+ export type ResetPasswordResponse = {
2
+ message: string;
3
+ };
4
+
5
+ export type ForgotPasswordResponse = {
6
+ message: string;
7
7
  };
@@ -18,6 +18,8 @@ type MeetingDetails = {
18
18
  };
19
19
  };
20
20
 
21
+ export type videoProvider = 'videosdk' | 'daily';
22
+
21
23
  export type InterviewCallResponse = {
22
24
  id: number;
23
25
  meetingId: string;
@@ -27,6 +29,7 @@ export type InterviewCallResponse = {
27
29
  PositionResponse,
28
30
  "positionName" | "description" | "qualification" | "niceToHaveDescription" | "comment" | 'seniorityLevel'
29
31
  >;
32
+ videoProvider: videoProvider;
30
33
  interviewType: InterviewTypeResponse;
31
34
  question: (QuestionResponse & { answerRating: number; })[];
32
35
  customQuestion: string;
@@ -5,6 +5,12 @@ import { InterviewsQuestionsResponse } from "../../InterviewQuestions/responses"
5
5
  import { InterviewsQuestionsCustomResponse } from "../../interviewQuestionsCustom/responses";
6
6
 
7
7
  export type InterviewSetupResponse = {
8
+ candidateFirstName: string;
9
+ candidateLastName: string;
10
+ candidateId: number;
11
+ positionId: number;
12
+ positionName: string;
13
+ positionTags: string[];
8
14
  additionalSkills: {
9
15
  sections: SectionResponse[];
10
16
  frameworks: FrameworkResponse[];
@@ -1 +1 @@
1
- export * from "./requests";
1
+ export * from "./requests";
@@ -1,7 +1,7 @@
1
- export type SendEmailRequest = {
2
- from?: string;
3
- to: string | string[];
4
- subject: string;
5
- text: string;
6
- html: string;
7
- };
1
+ export type SendEmailRequest = {
2
+ from?: string;
3
+ to: string | string[];
4
+ subject: string;
5
+ text: string;
6
+ html: string;
7
+ };
@@ -1,2 +1,2 @@
1
- export * from './responses';
1
+ export * from './responses';
2
2
  export * from './requests';
@@ -1,10 +1,10 @@
1
- export type QueryFilters = {
2
- [key: string]: string | number | boolean | undefined | { search: string };
3
- };
4
-
5
- export type PaginationOptions = {
6
- page?: number;
7
- pageSize?: number;
8
- };
9
-
10
- export type PaginationFilters = PaginationOptions;
1
+ export type QueryFilters = {
2
+ [key: string]: string | number | boolean | undefined | { search: string };
3
+ };
4
+
5
+ export type PaginationOptions = {
6
+ page?: number;
7
+ pageSize?: number;
8
+ };
9
+
10
+ export type PaginationFilters = PaginationOptions;
@@ -1,7 +1,7 @@
1
- export interface PaginatedResponse<T> {
2
- data: T[];
3
- total: number;
4
- currentPage: number;
5
- pageSize: number;
6
- totalPages: number;
1
+ export interface PaginatedResponse<T> {
2
+ data: T[];
3
+ total: number;
4
+ currentPage: number;
5
+ pageSize: number;
6
+ totalPages: number;
7
7
  }
@@ -1,2 +1,2 @@
1
- export * from "./responses";
2
- export * from "./requests";
1
+ export * from "./responses";
2
+ export * from "./requests";
@@ -1,71 +1,71 @@
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 { PositionWorkplaceResponse } from "../../positionWorkplaces/responses";
7
- import { SectionResponse } from "../../sections/responses";
8
- import { SeniorityLevelResponse } from "../../seniorityLevels/responses";
9
-
10
- /* **************** *
11
- * Position Create *
12
- * **************** */
13
- export type PositionCreateRequest = {
14
- positionName: string;
15
- volume: number;
16
- description: string;
17
- qualification: string;
18
- niceToHaveDescription: string;
19
- weOfferDescription: string;
20
- comment?: string;
21
- salary: number;
22
- salaryCurrency: string;
23
- seniorityLevel: Pick<SeniorityLevelResponse, "id" | "name">;
24
- office: Pick<OfficeResponse, "id" | "name">;
25
- contract: Pick<PositionContractResponse, "id" | "name">;
26
- jobType: Pick<PositionJobTypeResponse, "id" | "name">;
27
- workplace: Pick<PositionWorkplaceResponse, "id" | "name">;
28
- candidates?: Pick<CandidateResponse, "id" | "firstname" | "lastname">[];
29
- frameworks: Pick<FrameworkResponse, "id" | "name">[];
30
- additionalFrameworks?: Pick<FrameworkResponse, "id" | "name">[];
31
- sections: Pick<SectionResponse, "id" | "name">[];
32
- };
33
-
34
- /* **************** *
35
- * Position update *
36
- * **************** */
37
-
38
- export type PositionEditRequest = {
39
- positionName: string;
40
- volume: number;
41
- description: string;
42
- qualification: string;
43
- niceToHaveDescription: string;
44
- weOfferDescription: string;
45
- comment?: string;
46
- salary: number;
47
- salaryCurrency: string;
48
- seniorityLevel: Pick<SeniorityLevelResponse, "id" | "name">;
49
- office: Pick<OfficeResponse, "id" | "name">;
50
- contract: Pick<PositionContractResponse, "id" | "name">;
51
- jobType: Pick<PositionJobTypeResponse, "id" | "name">;
52
- workplace: Pick<PositionWorkplaceResponse, "id" | "name">;
53
- candidates?: Pick<CandidateResponse, "id" | "firstname" | "lastname">[];
54
- frameworks: Pick<FrameworkResponse, "id" | "name">[];
55
- additionalFrameworks?: Pick<FrameworkResponse, "id" | "name">[];
56
- sections: Pick<SectionResponse, "id" | "name">[];
57
- };
58
-
59
- export type AiJobDescriptionRequest = {
60
- positionName: string;
61
- office: string;
62
- seniorityLevel: string;
63
- salary: number;
64
- salaryCurrency: string;
65
- jobType: string;
66
- contract: string;
67
- workplace: string;
68
- sections: string;
69
- frameworks: string;
70
- additionalFrameworks: string;
71
- };
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 { PositionWorkplaceResponse } from "../../positionWorkplaces/responses";
7
+ import { SectionResponse } from "../../sections/responses";
8
+ import { SeniorityLevelResponse } from "../../seniorityLevels/responses";
9
+
10
+ /* **************** *
11
+ * Position Create *
12
+ * **************** */
13
+ export type PositionCreateRequest = {
14
+ positionName: string;
15
+ volume: number;
16
+ description: string;
17
+ qualification: string;
18
+ niceToHaveDescription: string;
19
+ weOfferDescription: string;
20
+ comment?: string;
21
+ salary: number;
22
+ salaryCurrency: string;
23
+ seniorityLevel: Pick<SeniorityLevelResponse, "id" | "name">;
24
+ office: Pick<OfficeResponse, "id" | "name">;
25
+ contract: Pick<PositionContractResponse, "id" | "name">;
26
+ jobType: Pick<PositionJobTypeResponse, "id" | "name">;
27
+ workplace: Pick<PositionWorkplaceResponse, "id" | "name">;
28
+ candidates?: Pick<CandidateResponse, "id" | "firstname" | "lastname">[];
29
+ frameworks: Pick<FrameworkResponse, "id" | "name">[];
30
+ additionalFrameworks?: Pick<FrameworkResponse, "id" | "name">[];
31
+ sections: Pick<SectionResponse, "id" | "name">[];
32
+ };
33
+
34
+ /* **************** *
35
+ * Position update *
36
+ * **************** */
37
+
38
+ export type PositionEditRequest = {
39
+ positionName: string;
40
+ volume: number;
41
+ description: string;
42
+ qualification: string;
43
+ niceToHaveDescription: string;
44
+ weOfferDescription: string;
45
+ comment?: string;
46
+ salary: number;
47
+ salaryCurrency: string;
48
+ seniorityLevel: Pick<SeniorityLevelResponse, "id" | "name">;
49
+ office: Pick<OfficeResponse, "id" | "name">;
50
+ contract: Pick<PositionContractResponse, "id" | "name">;
51
+ jobType: Pick<PositionJobTypeResponse, "id" | "name">;
52
+ workplace: Pick<PositionWorkplaceResponse, "id" | "name">;
53
+ candidates?: Pick<CandidateResponse, "id" | "firstname" | "lastname">[];
54
+ frameworks: Pick<FrameworkResponse, "id" | "name">[];
55
+ additionalFrameworks?: Pick<FrameworkResponse, "id" | "name">[];
56
+ sections: Pick<SectionResponse, "id" | "name">[];
57
+ };
58
+
59
+ export type AiJobDescriptionRequest = {
60
+ positionName: string;
61
+ office: string;
62
+ seniorityLevel: string;
63
+ salary: number;
64
+ salaryCurrency: string;
65
+ jobType: string;
66
+ contract: string;
67
+ workplace: string;
68
+ sections: string;
69
+ frameworks: string;
70
+ additionalFrameworks: string;
71
+ };