@iconicompany/imarketplacetypes 1.0.18 → 1.0.19
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/entities/index.d.ts +2 -2
- package/dist/entities/job/index.d.ts +1 -1
- package/dist/entities/job/model.d.ts +2 -1
- package/dist/entities/offer/index.d.ts +1 -1
- package/dist/entities/offer/model.d.ts +2 -1
- package/dist/services/offer-service.d.ts +12 -1
- package/package.json +1 -1
- package/src/entities/index.ts +2 -2
- package/src/entities/job/index.ts +1 -1
- package/src/entities/job/model.ts +11 -9
- package/src/entities/offer/index.ts +1 -1
- package/src/entities/offer/model.ts +11 -9
- package/src/services/offer-service.ts +13 -0
package/dist/entities/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ export type { Company } from "./company";
|
|
|
2
2
|
export type * from "./dictionary";
|
|
3
3
|
export type * from "./user";
|
|
4
4
|
export type { Specialist } from "./specialist";
|
|
5
|
-
export type { Offer } from "./offer";
|
|
6
|
-
export type { Job } from "./job";
|
|
5
|
+
export type { Offer, OfferCreatedBy } from "./offer";
|
|
6
|
+
export type { Job, JobCreatedBy } from "./job";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { Job } from './model';
|
|
1
|
+
export type { Job, JobCreatedBy } from './model';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { City, Country, Industry, Grade, Language, DataSource, Specialization } from '@/entities/dictionary';
|
|
2
2
|
import type { Company } from '@/entities/company';
|
|
3
|
+
export type JobCreatedBy = 'user' | 'telegram' | 'headhunter';
|
|
3
4
|
interface JobRequirement {
|
|
4
5
|
requirement: string;
|
|
5
6
|
mandatory?: boolean | null;
|
|
@@ -57,7 +58,7 @@ interface DefaultJob {
|
|
|
57
58
|
customer?: (string | null) | Company;
|
|
58
59
|
link?: string | null;
|
|
59
60
|
searchQuery?: string | null;
|
|
60
|
-
createdBy?:
|
|
61
|
+
createdBy?: JobCreatedBy | null;
|
|
61
62
|
updatedAt: string;
|
|
62
63
|
createdAt: string;
|
|
63
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { Offer } from './model';
|
|
1
|
+
export type { Offer, OfferCreatedBy } from './model';
|
|
@@ -3,6 +3,7 @@ import type { Job } from "@/entities/job";
|
|
|
3
3
|
import type { User } from "@/entities/user";
|
|
4
4
|
import type { OfferStatus } from "@/entities/dictionary";
|
|
5
5
|
import { Company } from "../company";
|
|
6
|
+
export type OfferCreatedBy = "user" | "databaseСomparison" | "loader" | "cosineSimilarity" | "importByLink" | "headhunter" | "skill";
|
|
6
7
|
interface OfferRequirement {
|
|
7
8
|
id?: string | null;
|
|
8
9
|
requirement: string;
|
|
@@ -33,7 +34,7 @@ interface DefaultOffer {
|
|
|
33
34
|
matched?: number | null;
|
|
34
35
|
comment?: string | null;
|
|
35
36
|
assessmentOfRequirements?: string | null;
|
|
36
|
-
createdBy?:
|
|
37
|
+
createdBy?: OfferCreatedBy | null;
|
|
37
38
|
respondedAt?: string | null;
|
|
38
39
|
matchedBatch?: number | null;
|
|
39
40
|
liked?: boolean | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { City, Country, Grade, Job, Offer, OfferStatus, Specialist, Specialization } from "@/entities";
|
|
1
|
+
import type { City, Country, Grade, Job, Offer, OfferStatus, Specialist, Specialization, OfferCreatedBy } from "@/entities";
|
|
2
2
|
export type PaginatedOffer = Offer<{
|
|
3
3
|
job: Job;
|
|
4
4
|
specialist: Specialist<{
|
|
@@ -28,11 +28,21 @@ export type OfferRequirement = {
|
|
|
28
28
|
id?: string;
|
|
29
29
|
}>;
|
|
30
30
|
};
|
|
31
|
+
export interface OfferRejectCause {
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
code: string;
|
|
35
|
+
updatedAt: string;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
}
|
|
31
38
|
type BaseOfferCard = {
|
|
32
39
|
id: string;
|
|
33
40
|
matched?: number;
|
|
34
41
|
comment?: string;
|
|
42
|
+
rejectComment?: string;
|
|
43
|
+
rejectCause?: OfferRejectCause;
|
|
35
44
|
liked?: boolean;
|
|
45
|
+
createdBy?: OfferCreatedBy;
|
|
36
46
|
status: {
|
|
37
47
|
id: string;
|
|
38
48
|
code: string;
|
|
@@ -71,6 +81,7 @@ type BaseOfferCard = {
|
|
|
71
81
|
start?: string | null;
|
|
72
82
|
end?: string | null;
|
|
73
83
|
}>;
|
|
84
|
+
experienceTotalMonths?: number;
|
|
74
85
|
};
|
|
75
86
|
};
|
|
76
87
|
export type OptimizedOfferCard = BaseOfferCard;
|
package/package.json
CHANGED
package/src/entities/index.ts
CHANGED
|
@@ -2,5 +2,5 @@ export type { Company } from "./company";
|
|
|
2
2
|
export type * from "./dictionary";
|
|
3
3
|
export type * from "./user";
|
|
4
4
|
export type { Specialist } from "./specialist";
|
|
5
|
-
export type { Offer } from "./offer";
|
|
6
|
-
export type { Job } from "./job";
|
|
5
|
+
export type { Offer, OfferCreatedBy } from "./offer";
|
|
6
|
+
export type { Job, JobCreatedBy } from "./job";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { Job } from './model';
|
|
1
|
+
export type { Job, JobCreatedBy } from './model';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { City, Country, Industry, Grade, Language, DataSource, Specialization } from '@/entities/dictionary';
|
|
2
2
|
import type { Company } from '@/entities/company';
|
|
3
3
|
|
|
4
|
+
export type JobCreatedBy = 'user' | 'telegram' | 'headhunter';
|
|
5
|
+
|
|
4
6
|
interface JobRequirement {
|
|
5
7
|
requirement: string;
|
|
6
8
|
mandatory?: boolean | null;
|
|
@@ -50,14 +52,14 @@ interface DefaultJob {
|
|
|
50
52
|
requiredCitizenship?: JobLanguage[] | null;
|
|
51
53
|
status: 'created' | 'selection' | 'suspended' | 'archive' | 'hidden';
|
|
52
54
|
requiredSkills?:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
| {
|
|
56
|
+
[k: string]: unknown;
|
|
57
|
+
}
|
|
58
|
+
| unknown[]
|
|
59
|
+
| string
|
|
60
|
+
| number
|
|
61
|
+
| boolean
|
|
62
|
+
| null;
|
|
61
63
|
skills?: string[] | null;
|
|
62
64
|
company?: (string | null) | Company;
|
|
63
65
|
dataSource?: (string | null) | DataSource;
|
|
@@ -67,7 +69,7 @@ interface DefaultJob {
|
|
|
67
69
|
customer?: (string | null) | Company;
|
|
68
70
|
link?: string | null;
|
|
69
71
|
searchQuery?: string | null;
|
|
70
|
-
createdBy?:
|
|
72
|
+
createdBy?: JobCreatedBy | null;
|
|
71
73
|
updatedAt: string;
|
|
72
74
|
createdAt: string;
|
|
73
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { Offer } from './model';
|
|
1
|
+
export type { Offer, OfferCreatedBy } from './model';
|
|
@@ -4,6 +4,16 @@ import type { User } from "@/entities/user";
|
|
|
4
4
|
import type { OfferStatus } from "@/entities/dictionary";
|
|
5
5
|
import { Company } from "../company";
|
|
6
6
|
|
|
7
|
+
export type OfferCreatedBy =
|
|
8
|
+
| "user"
|
|
9
|
+
| "databaseСomparison"
|
|
10
|
+
| "loader"
|
|
11
|
+
| "cosineSimilarity"
|
|
12
|
+
| "importByLink"
|
|
13
|
+
| "headhunter"
|
|
14
|
+
| "skill";
|
|
15
|
+
|
|
16
|
+
|
|
7
17
|
interface OfferRequirement {
|
|
8
18
|
id?: string | null;
|
|
9
19
|
requirement: string;
|
|
@@ -37,15 +47,7 @@ interface DefaultOffer {
|
|
|
37
47
|
matched?: number | null;
|
|
38
48
|
comment?: string | null;
|
|
39
49
|
assessmentOfRequirements?: string | null;
|
|
40
|
-
createdBy?:
|
|
41
|
-
| (
|
|
42
|
-
| "user"
|
|
43
|
-
| "databaseСomparison"
|
|
44
|
-
| "loader"
|
|
45
|
-
| "cosineSimilarity"
|
|
46
|
-
| "importByLink"
|
|
47
|
-
)
|
|
48
|
-
| null;
|
|
50
|
+
createdBy?: OfferCreatedBy | null;
|
|
49
51
|
respondedAt?: string | null;
|
|
50
52
|
matchedBatch?: number | null;
|
|
51
53
|
liked?: boolean | null;
|
|
@@ -7,6 +7,7 @@ import type {
|
|
|
7
7
|
OfferStatus,
|
|
8
8
|
Specialist,
|
|
9
9
|
Specialization,
|
|
10
|
+
OfferCreatedBy,
|
|
10
11
|
} from "@/entities";
|
|
11
12
|
|
|
12
13
|
export type PaginatedOffer = Offer<{
|
|
@@ -41,11 +42,22 @@ export type OfferRequirement = {
|
|
|
41
42
|
}>;
|
|
42
43
|
};
|
|
43
44
|
|
|
45
|
+
export interface OfferRejectCause {
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
48
|
+
code: string;
|
|
49
|
+
updatedAt: string;
|
|
50
|
+
createdAt: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
44
53
|
type BaseOfferCard = {
|
|
45
54
|
id: string;
|
|
46
55
|
matched?: number;
|
|
47
56
|
comment?: string;
|
|
57
|
+
rejectComment?: string;
|
|
58
|
+
rejectCause?: OfferRejectCause;
|
|
48
59
|
liked?: boolean;
|
|
60
|
+
createdBy?: OfferCreatedBy;
|
|
49
61
|
status: {
|
|
50
62
|
id: string;
|
|
51
63
|
code: string;
|
|
@@ -82,6 +94,7 @@ type BaseOfferCard = {
|
|
|
82
94
|
start?: string | null;
|
|
83
95
|
end?: string | null;
|
|
84
96
|
}>;
|
|
97
|
+
experienceTotalMonths?: number;
|
|
85
98
|
};
|
|
86
99
|
};
|
|
87
100
|
|