@xuulu/xuulu-types 1.0.40 → 1.0.42

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.
@@ -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">;
@@ -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,7 @@
1
+ export type QueryFilters = Partial<Record<string, string | number | boolean>>;
2
+ export type PaginationOptions = {
3
+ page?: number;
4
+ pageSize?: number;
5
+ limit?: number;
6
+ };
7
+ export type PaginationFilters = QueryFilters & PaginationOptions;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,6 +5,7 @@ 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;
@@ -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">;
@@ -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,7 @@
1
+ export type QueryFilters = Partial<Record<string, string | number | boolean>>;
2
+ export type PaginationOptions = {
3
+ page?: number;
4
+ pageSize?: number;
5
+ limit?: number;
6
+ };
7
+ export type PaginationFilters = QueryFilters & PaginationOptions;
@@ -0,0 +1 @@
1
+ export {};
@@ -5,6 +5,7 @@ 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuulu/xuulu-types",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json"
@@ -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<
@@ -1 +1,2 @@
1
- export * from './responses';
1
+ export * from './responses';
2
+ export * from './requests';
@@ -0,0 +1,9 @@
1
+ export type QueryFilters = Partial<Record<string, string | number | boolean>>;
2
+
3
+ export type PaginationOptions = {
4
+ page?: number;
5
+ pageSize?: number;
6
+ limit?: number;
7
+ };
8
+
9
+ export type PaginationFilters = QueryFilters & PaginationOptions;
@@ -6,6 +6,7 @@ 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;