@xuulu/xuulu-types 1.0.50 → 1.0.52
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.
- package/dist/cjs/departments/requests/index.d.ts +8 -0
- package/dist/cjs/departments/responses/index.d.ts +4 -0
- package/dist/cjs/interviewCall/responses/index.d.ts +2 -2
- package/dist/esm/departments/requests/index.d.ts +8 -0
- package/dist/esm/departments/responses/index.d.ts +4 -0
- package/dist/esm/interviewCall/responses/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/account/index.ts +2 -2
- package/src/account/requests/index.ts +8 -8
- package/src/account/responses/index.ts +10 -10
- package/src/auth/index.ts +1 -1
- package/src/auth/requests/index.ts +8 -8
- package/src/auth/responses/index.ts +6 -6
- package/src/departments/requests/index.ts +2 -0
- package/src/departments/responses/index.ts +2 -1
- package/src/mails/index.ts +1 -1
- package/src/mails/requests/index.ts +7 -7
- package/src/pagination/index.ts +1 -1
- package/src/pagination/requests/index.ts +10 -10
- package/src/pagination/responses/index.ts +6 -6
- package/src/positions/index.ts +2 -2
- package/src/positions/requests/index.ts +71 -71
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
export type DepartmentCreateRequest = {
|
|
2
2
|
name: string;
|
|
3
3
|
description: string;
|
|
4
|
+
office?: {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
4
8
|
};
|
|
5
9
|
export type DepartmentEditRequest = {
|
|
6
10
|
name: string;
|
|
7
11
|
description: string;
|
|
12
|
+
office?: {
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
8
16
|
};
|
|
@@ -14,14 +14,14 @@ type MeetingDetails = {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
export type
|
|
17
|
+
export type VideoProvider = 'videosdk' | 'daily';
|
|
18
18
|
export type InterviewCallResponse = {
|
|
19
19
|
id: number;
|
|
20
20
|
meetingId: string;
|
|
21
21
|
similarity: number;
|
|
22
22
|
interviewDate: string;
|
|
23
23
|
position: Pick<PositionResponse, "positionName" | "description" | "qualification" | "niceToHaveDescription" | "comment" | 'seniorityLevel'>;
|
|
24
|
-
videoProvider:
|
|
24
|
+
videoProvider: VideoProvider;
|
|
25
25
|
interviewType: InterviewTypeResponse;
|
|
26
26
|
question: (QuestionResponse & {
|
|
27
27
|
answerRating: number;
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
export type DepartmentCreateRequest = {
|
|
2
2
|
name: string;
|
|
3
3
|
description: string;
|
|
4
|
+
office?: {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
4
8
|
};
|
|
5
9
|
export type DepartmentEditRequest = {
|
|
6
10
|
name: string;
|
|
7
11
|
description: string;
|
|
12
|
+
office?: {
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
8
16
|
};
|
|
@@ -14,14 +14,14 @@ type MeetingDetails = {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
export type
|
|
17
|
+
export type VideoProvider = 'videosdk' | 'daily';
|
|
18
18
|
export type InterviewCallResponse = {
|
|
19
19
|
id: number;
|
|
20
20
|
meetingId: string;
|
|
21
21
|
similarity: number;
|
|
22
22
|
interviewDate: string;
|
|
23
23
|
position: Pick<PositionResponse, "positionName" | "description" | "qualification" | "niceToHaveDescription" | "comment" | 'seniorityLevel'>;
|
|
24
|
-
videoProvider:
|
|
24
|
+
videoProvider: VideoProvider;
|
|
25
25
|
interviewType: InterviewTypeResponse;
|
|
26
26
|
question: (QuestionResponse & {
|
|
27
27
|
answerRating: number;
|
package/package.json
CHANGED
package/src/account/index.ts
CHANGED
|
@@ -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
|
};
|
package/src/mails/index.ts
CHANGED
|
@@ -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
|
+
};
|
package/src/pagination/index.ts
CHANGED
|
@@ -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
|
}
|
package/src/positions/index.ts
CHANGED
|
@@ -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
|
+
};
|