@iconicompany/imarketplacetypes 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.
@@ -19,6 +19,7 @@ export type JobTableItem = {
19
19
  currency: string;
20
20
  requiredSkills: string[];
21
21
  createdAt: string | Date;
22
+ specialization?: string;
22
23
  grades: {
23
24
  id: string;
24
25
  name: string;
@@ -0,0 +1,48 @@
1
+ export interface PaginatedData<T> {
2
+ data: T[];
3
+ page: number;
4
+ limit: number;
5
+ total: number;
6
+ pagesCount: number;
7
+ hasMore: boolean;
8
+ }
9
+ export type SpecialistCandidate = {
10
+ id: string;
11
+ name: string;
12
+ city: string | null;
13
+ grade: string | null;
14
+ specialization: string | null;
15
+ lastExperience: {
16
+ company: string | null;
17
+ position: string | null;
18
+ } | null;
19
+ updatedAt: string | null;
20
+ };
21
+ export type GetSpecialistCandidatesResult = PaginatedData<SpecialistCandidate>;
22
+ export interface GetSpecialistCandidatesParams {
23
+ page?: number;
24
+ limit?: number;
25
+ locale?: "ru" | "en";
26
+ }
27
+ export interface UserContract {
28
+ getSpecialistCandidates: {
29
+ params: GetSpecialistCandidatesParams;
30
+ result: GetSpecialistCandidatesResult;
31
+ };
32
+ confirmSpecialistLinks: {
33
+ params: {
34
+ specialistIds: string[];
35
+ };
36
+ result: {
37
+ confirmed: number;
38
+ };
39
+ };
40
+ rejectSpecialistCandidate: {
41
+ params: {
42
+ specialistId: string;
43
+ };
44
+ result: {
45
+ success: boolean;
46
+ };
47
+ };
48
+ }
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iconicompany/imarketplacetypes",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.js",
@@ -23,6 +23,7 @@ export type JobTableItem = {
23
23
  currency: string;
24
24
  requiredSkills: string[];
25
25
  createdAt: string | Date;
26
+ specialization?: string;
26
27
  grades: { id: string; name: string }[];
27
28
  };
28
29
 
@@ -0,0 +1,52 @@
1
+ export interface PaginatedData<T> {
2
+ data: T[];
3
+ page: number;
4
+ limit: number;
5
+ total: number;
6
+ pagesCount: number;
7
+ hasMore: boolean;
8
+ }
9
+
10
+ export type SpecialistCandidate = {
11
+ id: string;
12
+ name: string;
13
+ city: string | null;
14
+ grade: string | null;
15
+ specialization: string | null;
16
+ lastExperience: {
17
+ company: string | null;
18
+ position: string | null;
19
+ } | null;
20
+ updatedAt: string | null;
21
+ };
22
+
23
+ export type GetSpecialistCandidatesResult = PaginatedData<SpecialistCandidate>;
24
+
25
+ export interface GetSpecialistCandidatesParams {
26
+ page?: number;
27
+ limit?: number;
28
+ locale?: "ru" | "en";
29
+ }
30
+
31
+ export interface UserContract {
32
+ getSpecialistCandidates: {
33
+ params: GetSpecialistCandidatesParams;
34
+ result: GetSpecialistCandidatesResult;
35
+ };
36
+ confirmSpecialistLinks: {
37
+ params: {
38
+ specialistIds: string[];
39
+ };
40
+ result: {
41
+ confirmed: number;
42
+ };
43
+ };
44
+ rejectSpecialistCandidate: {
45
+ params: {
46
+ specialistId: string;
47
+ };
48
+ result: {
49
+ success: boolean;
50
+ };
51
+ };
52
+ }