@xuulu/xuulu-types 1.0.40 → 1.0.46

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.
Files changed (49) hide show
  1. package/dist/cjs/candidates/requests/index.d.ts +13 -0
  2. package/dist/cjs/candidates/responses/index.d.ts +2 -0
  3. package/dist/cjs/index.d.ts +1 -0
  4. package/dist/cjs/index.js +1 -0
  5. package/dist/cjs/interviews/responses/index.d.ts +12 -10
  6. package/dist/cjs/pagination/index.d.ts +1 -0
  7. package/dist/cjs/pagination/index.js +1 -0
  8. package/dist/cjs/pagination/requests/index.d.ts +10 -0
  9. package/dist/cjs/pagination/requests/index.js +2 -0
  10. package/dist/cjs/sign/requests/index.d.ts +2 -0
  11. package/dist/cjs/sorting/index.d.ts +1 -0
  12. package/dist/cjs/sorting/index.js +17 -0
  13. package/dist/cjs/sorting/requests/index.d.ts +1 -0
  14. package/dist/cjs/sorting/requests/index.js +2 -0
  15. package/dist/esm/candidates/requests/index.d.ts +13 -0
  16. package/dist/esm/candidates/responses/index.d.ts +2 -0
  17. package/dist/esm/index.d.ts +1 -0
  18. package/dist/esm/index.js +1 -0
  19. package/dist/esm/interviews/responses/index.d.ts +12 -10
  20. package/dist/esm/pagination/index.d.ts +1 -0
  21. package/dist/esm/pagination/index.js +1 -0
  22. package/dist/esm/pagination/requests/index.d.ts +10 -0
  23. package/dist/esm/pagination/requests/index.js +1 -0
  24. package/dist/esm/sign/requests/index.d.ts +2 -0
  25. package/dist/esm/sorting/index.d.ts +1 -0
  26. package/dist/esm/sorting/index.js +1 -0
  27. package/dist/esm/sorting/requests/index.d.ts +1 -0
  28. package/dist/esm/sorting/requests/index.js +1 -0
  29. package/package.json +24 -24
  30. package/src/account/index.ts +2 -2
  31. package/src/account/requests/index.ts +8 -8
  32. package/src/account/responses/index.ts +10 -10
  33. package/src/auth/index.ts +1 -1
  34. package/src/auth/requests/index.ts +8 -8
  35. package/src/auth/responses/index.ts +6 -6
  36. package/src/candidates/requests/index.ts +15 -0
  37. package/src/candidates/responses/index.ts +2 -0
  38. package/src/index.ts +1 -0
  39. package/src/interviews/responses/index.ts +10 -10
  40. package/src/mails/index.ts +1 -1
  41. package/src/mails/requests/index.ts +7 -7
  42. package/src/pagination/index.ts +2 -1
  43. package/src/pagination/requests/index.ts +10 -0
  44. package/src/pagination/responses/index.ts +6 -6
  45. package/src/positions/index.ts +2 -2
  46. package/src/positions/requests/index.ts +71 -71
  47. package/src/sign/requests/index.ts +2 -0
  48. package/src/sorting/index.ts +1 -0
  49. package/src/sorting/requests/index.ts +1 -0
@@ -19,3 +19,16 @@ export type CandidateEditRequest = {
19
19
  status: CandidateStatusesResponse;
20
20
  comments: string;
21
21
  };
22
+ export type CandidateStatusUpdate = {
23
+ statusId: number;
24
+ rejectionReason: string;
25
+ };
26
+ export type CandidateCreateOpenApiRequest = {
27
+ firstname: string;
28
+ lastname: string;
29
+ email: string;
30
+ dateOfBirth: string;
31
+ positionId: number;
32
+ cvFileName: string;
33
+ cvFile: File;
34
+ };
@@ -1,5 +1,6 @@
1
1
  import { CandidateStatusesResponse } from "../../candidateStatuses/responses";
2
2
  import { PositionCandidateResponse } from "../../positionCandidates/responses";
3
+ import { PositionResponse } from "../../positions";
3
4
  export type CandidateResponse = {
4
5
  id: number;
5
6
  email: string;
@@ -12,5 +13,6 @@ export type CandidateResponse = {
12
13
  comments: string;
13
14
  rejectionReason?: string;
14
15
  isExternal: boolean;
16
+ positions: Pick<PositionResponse, "id" | "positionName">[];
15
17
  };
16
18
  export type CandidateWithSimilarityResponse = Pick<PositionCandidateResponse, "similarity" | "hasSimilarPriorExp"> & Pick<CandidateResponse, "id" | "firstname" | "lastname" | "email" | "status">;
@@ -29,3 +29,4 @@ export * from "./auth";
29
29
  export * from "./mails";
30
30
  export * from "./account";
31
31
  export * from "./pagination";
32
+ export * from "./sorting";
package/dist/cjs/index.js CHANGED
@@ -45,3 +45,4 @@ __exportStar(require("./auth"), exports);
45
45
  __exportStar(require("./mails"), exports);
46
46
  __exportStar(require("./account"), exports);
47
47
  __exportStar(require("./pagination"), exports);
48
+ __exportStar(require("./sorting"), exports);
@@ -6,29 +6,31 @@ import { InterviewStatusResponse } from "../../interviewStatuses/responses";
6
6
  import { QuestionResponse } from "../../questions/responses";
7
7
  import { UsersResponse } from "../../users/responses";
8
8
  import { PositionCandidateResponse } from "../../positionCandidates/responses";
9
- export type InterviewList = {
9
+ export type Interview = {
10
10
  id: number;
11
- interviewDate: string;
12
- meetingId: string;
13
11
  feedback: string;
14
- interviewType: InterviewTypeResponse;
12
+ meetingId: string;
13
+ interviewDate: string;
15
14
  status: InterviewStatusResponse;
16
- candidate: Pick<CandidateResponse, "firstname" | "lastname">;
15
+ interviewType: InterviewTypeResponse;
16
+ questions: Pick<QuestionResponse, "id">[];
17
17
  position: Pick<PositionResponse, "id" | "positionName">;
18
- responsible: Pick<UsersResponse, "firstname" | "lastname" | "username">;
19
18
  meetingDetails: InterviewCallResponse["meetingDetails"];
20
- questions: Pick<QuestionResponse, "id">[];
19
+ candidate: Pick<CandidateResponse, "firstname" | "lastname">;
20
+ responsible: Pick<UsersResponse, "firstname" | "lastname" | "username">;
21
21
  };
22
- export type InterviewListResponse = InterviewList & {
23
- subInterviews: InterviewList[];
22
+ export type InterviewResponse = Interview & {
23
+ subInterviews: (Interview & {
24
+ interviewers: Pick<UsersResponse, "firstname" | "lastname" | "id">[];
25
+ })[];
24
26
  };
25
27
  export type InterviewGetOne = {
26
28
  id: number;
27
29
  interviewDate: string;
28
30
  status: InterviewStatusResponse;
29
31
  interviewType: InterviewTypeResponse;
30
- interviewers: Pick<UsersResponse, "email" | "firstname" | "lastname" | "id" | "roleId" | "username">[];
31
32
  position: Pick<PositionResponse, "id" | "positionName">;
33
+ interviewers: Pick<UsersResponse, "email" | "firstname" | "lastname" | "id" | "roleId" | "username">[];
32
34
  candidate: Pick<PositionCandidateResponse, "similarity" | "hasSimilarPriorExp"> & Pick<CandidateResponse, "id" | "firstname" | "lastname" | "email">;
33
35
  };
34
36
  export type InterviewGetOneResponse = InterviewGetOne & {
@@ -1 +1,2 @@
1
1
  export * from './responses';
2
+ export * from './requests';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./responses"), exports);
18
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,10 @@
1
+ export type QueryFilters = {
2
+ [key: string]: string | number | boolean | undefined | {
3
+ search: string;
4
+ };
5
+ };
6
+ export type PaginationOptions = {
7
+ page?: number;
8
+ pageSize?: number;
9
+ };
10
+ export type PaginationFilters = PaginationOptions;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,10 +5,12 @@ export type SigninRequest = {
5
5
  export type SignupRequest = {
6
6
  email: string;
7
7
  password: string;
8
+ confirmPassword: string;
8
9
  firstname: string;
9
10
  lastname: string;
10
11
  username: string;
11
12
  allowExtraEmails: boolean;
13
+ rodoAccepted: boolean;
12
14
  dateOfBirth: Date;
13
15
  createdByEmail: string;
14
16
  address: {
@@ -0,0 +1 @@
1
+ export * from './requests';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1 @@
1
+ export type SortOrder = 'ASC' | 'DESC';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -19,3 +19,16 @@ export type CandidateEditRequest = {
19
19
  status: CandidateStatusesResponse;
20
20
  comments: string;
21
21
  };
22
+ export type CandidateStatusUpdate = {
23
+ statusId: number;
24
+ rejectionReason: string;
25
+ };
26
+ export type CandidateCreateOpenApiRequest = {
27
+ firstname: string;
28
+ lastname: string;
29
+ email: string;
30
+ dateOfBirth: string;
31
+ positionId: number;
32
+ cvFileName: string;
33
+ cvFile: File;
34
+ };
@@ -1,5 +1,6 @@
1
1
  import { CandidateStatusesResponse } from "../../candidateStatuses/responses";
2
2
  import { PositionCandidateResponse } from "../../positionCandidates/responses";
3
+ import { PositionResponse } from "../../positions";
3
4
  export type CandidateResponse = {
4
5
  id: number;
5
6
  email: string;
@@ -12,5 +13,6 @@ export type CandidateResponse = {
12
13
  comments: string;
13
14
  rejectionReason?: string;
14
15
  isExternal: boolean;
16
+ positions: Pick<PositionResponse, "id" | "positionName">[];
15
17
  };
16
18
  export type CandidateWithSimilarityResponse = Pick<PositionCandidateResponse, "similarity" | "hasSimilarPriorExp"> & Pick<CandidateResponse, "id" | "firstname" | "lastname" | "email" | "status">;
@@ -29,3 +29,4 @@ export * from "./auth";
29
29
  export * from "./mails";
30
30
  export * from "./account";
31
31
  export * from "./pagination";
32
+ export * from "./sorting";
package/dist/esm/index.js CHANGED
@@ -29,3 +29,4 @@ export * from "./auth";
29
29
  export * from "./mails";
30
30
  export * from "./account";
31
31
  export * from "./pagination";
32
+ export * from "./sorting";
@@ -6,29 +6,31 @@ import { InterviewStatusResponse } from "../../interviewStatuses/responses";
6
6
  import { QuestionResponse } from "../../questions/responses";
7
7
  import { UsersResponse } from "../../users/responses";
8
8
  import { PositionCandidateResponse } from "../../positionCandidates/responses";
9
- export type InterviewList = {
9
+ export type Interview = {
10
10
  id: number;
11
- interviewDate: string;
12
- meetingId: string;
13
11
  feedback: string;
14
- interviewType: InterviewTypeResponse;
12
+ meetingId: string;
13
+ interviewDate: string;
15
14
  status: InterviewStatusResponse;
16
- candidate: Pick<CandidateResponse, "firstname" | "lastname">;
15
+ interviewType: InterviewTypeResponse;
16
+ questions: Pick<QuestionResponse, "id">[];
17
17
  position: Pick<PositionResponse, "id" | "positionName">;
18
- responsible: Pick<UsersResponse, "firstname" | "lastname" | "username">;
19
18
  meetingDetails: InterviewCallResponse["meetingDetails"];
20
- questions: Pick<QuestionResponse, "id">[];
19
+ candidate: Pick<CandidateResponse, "firstname" | "lastname">;
20
+ responsible: Pick<UsersResponse, "firstname" | "lastname" | "username">;
21
21
  };
22
- export type InterviewListResponse = InterviewList & {
23
- subInterviews: InterviewList[];
22
+ export type InterviewResponse = Interview & {
23
+ subInterviews: (Interview & {
24
+ interviewers: Pick<UsersResponse, "firstname" | "lastname" | "id">[];
25
+ })[];
24
26
  };
25
27
  export type InterviewGetOne = {
26
28
  id: number;
27
29
  interviewDate: string;
28
30
  status: InterviewStatusResponse;
29
31
  interviewType: InterviewTypeResponse;
30
- interviewers: Pick<UsersResponse, "email" | "firstname" | "lastname" | "id" | "roleId" | "username">[];
31
32
  position: Pick<PositionResponse, "id" | "positionName">;
33
+ interviewers: Pick<UsersResponse, "email" | "firstname" | "lastname" | "id" | "roleId" | "username">[];
32
34
  candidate: Pick<PositionCandidateResponse, "similarity" | "hasSimilarPriorExp"> & Pick<CandidateResponse, "id" | "firstname" | "lastname" | "email">;
33
35
  };
34
36
  export type InterviewGetOneResponse = InterviewGetOne & {
@@ -1 +1,2 @@
1
1
  export * from './responses';
2
+ export * from './requests';
@@ -1 +1,2 @@
1
1
  export * from './responses';
2
+ export * from './requests';
@@ -0,0 +1,10 @@
1
+ export type QueryFilters = {
2
+ [key: string]: string | number | boolean | undefined | {
3
+ search: string;
4
+ };
5
+ };
6
+ export type PaginationOptions = {
7
+ page?: number;
8
+ pageSize?: number;
9
+ };
10
+ export type PaginationFilters = PaginationOptions;
@@ -0,0 +1 @@
1
+ export {};
@@ -5,10 +5,12 @@ export type SigninRequest = {
5
5
  export type SignupRequest = {
6
6
  email: string;
7
7
  password: string;
8
+ confirmPassword: string;
8
9
  firstname: string;
9
10
  lastname: string;
10
11
  username: string;
11
12
  allowExtraEmails: boolean;
13
+ rodoAccepted: boolean;
12
14
  dateOfBirth: Date;
13
15
  createdByEmail: string;
14
16
  address: {
@@ -0,0 +1 @@
1
+ export * from './requests';
@@ -0,0 +1 @@
1
+ export * from './requests';
@@ -0,0 +1 @@
1
+ export type SortOrder = 'ASC' | 'DESC';
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
- {
2
- "name": "@xuulu/xuulu-types",
3
- "version": "1.0.40",
4
- "description": "",
5
- "scripts": {
6
- "build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json"
7
- },
8
- "devDependencies": {
9
- "typescript": "^5.8.3"
10
- },
11
- "keywords": [],
12
- "author": "",
13
- "license": "ISC",
14
- "main": "dist/cjs/index.js",
15
- "module": "dist/esm/index.js",
16
- "types": "dist/cjs/index.d.ts",
17
- "exports": {
18
- ".": {
19
- "require": "./dist/cjs/index.js",
20
- "import": "./dist/esm/index.js"
21
- }
22
- },
23
- "type": "commonjs"
24
- }
1
+ {
2
+ "name": "@xuulu/xuulu-types",
3
+ "version": "1.0.46",
4
+ "description": "",
5
+ "scripts": {
6
+ "build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json"
7
+ },
8
+ "devDependencies": {
9
+ "typescript": "^5.8.3"
10
+ },
11
+ "keywords": [],
12
+ "author": "",
13
+ "license": "ISC",
14
+ "main": "dist/cjs/index.js",
15
+ "module": "dist/esm/index.js",
16
+ "types": "dist/cjs/index.d.ts",
17
+ "exports": {
18
+ ".": {
19
+ "require": "./dist/cjs/index.js",
20
+ "import": "./dist/esm/index.js"
21
+ }
22
+ },
23
+ "type": "commonjs"
24
+ }
@@ -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
  };
@@ -21,3 +21,18 @@ export type CandidateEditRequest = {
21
21
  status: CandidateStatusesResponse;
22
22
  comments: string;
23
23
  };
24
+
25
+ export type CandidateStatusUpdate = {
26
+ statusId: number;
27
+ rejectionReason: string;
28
+ };
29
+
30
+ export type CandidateCreateOpenApiRequest = {
31
+ firstname: string;
32
+ lastname: string;
33
+ email: string;
34
+ dateOfBirth: string;
35
+ positionId: number;
36
+ cvFileName: string;
37
+ cvFile: File;
38
+ };
@@ -1,5 +1,6 @@
1
1
  import { CandidateStatusesResponse } from "../../candidateStatuses/responses";
2
2
  import { PositionCandidateResponse } from "../../positionCandidates/responses";
3
+ import { PositionResponse } from "../../positions";
3
4
 
4
5
  export type CandidateResponse = {
5
6
  id: number;
@@ -13,6 +14,7 @@ export type CandidateResponse = {
13
14
  comments: string;
14
15
  rejectionReason?: string;
15
16
  isExternal: boolean;
17
+ positions: Pick<PositionResponse, "id" | "positionName">[];
16
18
  };
17
19
 
18
20
  export type CandidateWithSimilarityResponse = Pick<
package/src/index.ts CHANGED
@@ -29,3 +29,4 @@ export * from "./auth";
29
29
  export * from "./mails";
30
30
  export * from "./account";
31
31
  export * from "./pagination";
32
+ export * from "./sorting";
@@ -10,22 +10,22 @@ import { PositionCandidateResponse } from "../../positionCandidates/responses";
10
10
  // ********
11
11
  // Get Many
12
12
  // ********
13
- export type InterviewList = {
13
+ export type Interview = {
14
14
  id: number;
15
- interviewDate: string;
16
- meetingId: string;
17
15
  feedback: string;
18
- interviewType: InterviewTypeResponse;
16
+ meetingId: string;
17
+ interviewDate: string;
19
18
  status: InterviewStatusResponse;
20
- candidate: Pick<CandidateResponse, "firstname" | "lastname">;
19
+ interviewType: InterviewTypeResponse;
20
+ questions: Pick<QuestionResponse, "id">[];
21
21
  position: Pick<PositionResponse, "id" | "positionName">;
22
- responsible: Pick<UsersResponse, "firstname" | "lastname" | "username">;
23
22
  meetingDetails: InterviewCallResponse["meetingDetails"];
24
- questions: Pick<QuestionResponse, "id">[];
23
+ candidate: Pick<CandidateResponse, "firstname" | "lastname">;
24
+ responsible: Pick<UsersResponse, "firstname" | "lastname" | "username">;
25
25
  };
26
26
 
27
- export type InterviewListResponse = InterviewList & {
28
- subInterviews: InterviewList[];
27
+ export type InterviewResponse = Interview & {
28
+ subInterviews: (Interview & { interviewers: Pick<UsersResponse, "firstname" | "lastname" | "id">[] })[];
29
29
  };
30
30
 
31
31
  // ********
@@ -36,11 +36,11 @@ export type InterviewGetOne = {
36
36
  interviewDate: string;
37
37
  status: InterviewStatusResponse;
38
38
  interviewType: InterviewTypeResponse;
39
+ position: Pick<PositionResponse, "id" | "positionName">;
39
40
  interviewers: Pick<
40
41
  UsersResponse,
41
42
  "email" | "firstname" | "lastname" | "id" | "roleId" | "username"
42
43
  >[];
43
- position: Pick<PositionResponse, "id" | "positionName">;
44
44
  candidate: Pick<
45
45
  PositionCandidateResponse,
46
46
  "similarity" | "hasSimilarPriorExp"
@@ -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 +1,2 @@
1
- export * from './responses';
1
+ export * from './responses';
2
+ export * from './requests';
@@ -0,0 +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,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
+ };
@@ -6,10 +6,12 @@ export type SigninRequest = {
6
6
  export type SignupRequest = {
7
7
  email: string;
8
8
  password: string;
9
+ confirmPassword: string;
9
10
  firstname: string;
10
11
  lastname: string;
11
12
  username: string;
12
13
  allowExtraEmails: boolean;
14
+ rodoAccepted: boolean;
13
15
  dateOfBirth: Date;
14
16
  createdByEmail: string;
15
17
  address: {
@@ -0,0 +1 @@
1
+ export * from './requests';
@@ -0,0 +1 @@
1
+ export type SortOrder = 'ASC' | 'DESC';