@the-inkwell/shared 0.1.151 → 0.1.153
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/index.js +1 -0
- package/dist/src/constants/enums.js +102 -0
- package/dist/src/constants/index.js +17 -0
- package/index.ts +1 -0
- package/package.json +1 -1
- package/src/constants/enums.ts +139 -0
- package/src/constants/index.ts +1 -0
- package/src/types/_schema/Experiences.ts +7 -0
package/dist/index.js
CHANGED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.referralSources = exports.positionStages = exports.positionStatuses = exports.personSources = exports.genders = exports.positionRatingCategories = exports.jobLevels = exports.messageChannels = exports.listViewModels = exports.enrichmentSources = exports.educationFields = exports.educationDegrees = exports.clientStages = exports.clientStatuses = exports.candidacyRatingCategories = exports.candidacyStages = exports.candidacyStatuses = exports.candidacySources = exports.campaignStatuses = exports.actionNames = void 0;
|
|
4
|
+
exports.actionNames = [
|
|
5
|
+
'MESSAGE_SENT',
|
|
6
|
+
'PROFILE_UPDATE',
|
|
7
|
+
'SIGN_IN',
|
|
8
|
+
'STATUS_UPDATE'
|
|
9
|
+
];
|
|
10
|
+
exports.campaignStatuses = ['DRAFT', 'CLOSED', 'SENT'];
|
|
11
|
+
exports.candidacySources = [
|
|
12
|
+
'CAMPAIGN',
|
|
13
|
+
'NETWORK',
|
|
14
|
+
'WEBSITE',
|
|
15
|
+
'SOCIAL_MEDIA'
|
|
16
|
+
];
|
|
17
|
+
exports.candidacyStatuses = ['OPEN', 'CLOSED'];
|
|
18
|
+
exports.candidacyStages = [
|
|
19
|
+
'SUBMITTED',
|
|
20
|
+
'SCREENING',
|
|
21
|
+
'INTERVIEWING',
|
|
22
|
+
'OFFERED',
|
|
23
|
+
'HIRED',
|
|
24
|
+
'REJECTED',
|
|
25
|
+
'WITHDRAWN'
|
|
26
|
+
];
|
|
27
|
+
exports.candidacyRatingCategories = [
|
|
28
|
+
'EXPERIENCE',
|
|
29
|
+
'INDUSTRY',
|
|
30
|
+
'SKILL',
|
|
31
|
+
'CULTURE',
|
|
32
|
+
'COMPENSATION'
|
|
33
|
+
];
|
|
34
|
+
exports.clientStatuses = ['ACTIVE', 'INACTIVE'];
|
|
35
|
+
exports.clientStages = [
|
|
36
|
+
'PENDING',
|
|
37
|
+
'CONTACTED',
|
|
38
|
+
'QUALIFYING',
|
|
39
|
+
'CONVERTED',
|
|
40
|
+
'NOT_CONVERTED'
|
|
41
|
+
];
|
|
42
|
+
exports.educationDegrees = [
|
|
43
|
+
'HIGH_SCHOOL',
|
|
44
|
+
'ASSOCIATES',
|
|
45
|
+
'BACHELORS',
|
|
46
|
+
'MASTERS',
|
|
47
|
+
'DOCTORATE'
|
|
48
|
+
];
|
|
49
|
+
exports.educationFields = [
|
|
50
|
+
'ACCOUNTING',
|
|
51
|
+
'BUSINESS',
|
|
52
|
+
'LAW',
|
|
53
|
+
'ENGINEERING',
|
|
54
|
+
'EDUCATION',
|
|
55
|
+
'MEDICINE',
|
|
56
|
+
'ARCHITECTURE',
|
|
57
|
+
'SOCIAL_WORK',
|
|
58
|
+
'HUMANITIES',
|
|
59
|
+
'NATURAL_SCIENCES',
|
|
60
|
+
'SOCIAL_SCIENCES'
|
|
61
|
+
];
|
|
62
|
+
exports.enrichmentSources = ['PDL'];
|
|
63
|
+
exports.listViewModels = [
|
|
64
|
+
'PERSON',
|
|
65
|
+
'POSITION',
|
|
66
|
+
'CANDIDACY',
|
|
67
|
+
'REFERRAL'
|
|
68
|
+
];
|
|
69
|
+
exports.messageChannels = ['EMAIL', 'SMS'];
|
|
70
|
+
exports.jobLevels = [
|
|
71
|
+
'EXPERIENCED',
|
|
72
|
+
'MANAGER',
|
|
73
|
+
'DIRECTOR',
|
|
74
|
+
'VICE_PRESIDENT',
|
|
75
|
+
'VICE_PRESIDENT_SENIOR',
|
|
76
|
+
'CHIEF_SUITE'
|
|
77
|
+
];
|
|
78
|
+
exports.positionRatingCategories = [
|
|
79
|
+
'COMPENSATION',
|
|
80
|
+
'INTEREST'
|
|
81
|
+
];
|
|
82
|
+
exports.genders = ['MAN', 'WOMAN', 'NON_BINARY', 'UNKNOWN'];
|
|
83
|
+
exports.personSources = [
|
|
84
|
+
'SOURCED',
|
|
85
|
+
'NETWORK',
|
|
86
|
+
'WEBSITE',
|
|
87
|
+
'SOCIAL_MEDIA'
|
|
88
|
+
];
|
|
89
|
+
exports.positionStatuses = ['OPEN', 'CLOSED'];
|
|
90
|
+
exports.positionStages = [
|
|
91
|
+
'PENDING',
|
|
92
|
+
'IN_PROGRESS',
|
|
93
|
+
'HIRED',
|
|
94
|
+
'CANCELED',
|
|
95
|
+
'FAILED'
|
|
96
|
+
];
|
|
97
|
+
exports.referralSources = [
|
|
98
|
+
'CAMPAIGN',
|
|
99
|
+
'NETWORK',
|
|
100
|
+
'WEBSITE',
|
|
101
|
+
'SOCIAL_MEDIA'
|
|
102
|
+
];
|
|
@@ -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("./enums"), exports);
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import ActionNames from '../types/_schema/ActionNames'
|
|
2
|
+
import CampaignStatuses from '../types/_schema/CampaignStatuses'
|
|
3
|
+
import CandidacyRatingCategories from '../types/_schema/CandidacyRatingCategories'
|
|
4
|
+
import CandidacySources from '../types/_schema/CandidacySources'
|
|
5
|
+
import CandidacyStages from '../types/_schema/CandidacyStages'
|
|
6
|
+
import CandidacyStatuses from '../types/_schema/CandidacyStatuses'
|
|
7
|
+
import ClientStages from '../types/_schema/ClientStages'
|
|
8
|
+
import ClientStatuses from '../types/_schema/ClientStatuses'
|
|
9
|
+
import EducationDegrees from '../types/_schema/EducationDegrees'
|
|
10
|
+
import EducationFields from '../types/_schema/EducationFields'
|
|
11
|
+
import EnrichmentSources from '../types/_schema/EnrichmentSources'
|
|
12
|
+
import Genders from '../types/_schema/Genders'
|
|
13
|
+
import JobLevels from '../types/_schema/JobLevels'
|
|
14
|
+
import ListViewModels from '../types/_schema/ListViewModels'
|
|
15
|
+
import MessageChannels from '../types/_schema/MessageChannels'
|
|
16
|
+
import PersonSources from '../types/_schema/PersonSources'
|
|
17
|
+
import PositionRatingCategories from '../types/_schema/PositionRatingCategories'
|
|
18
|
+
import PositionStages from '../types/_schema/PositionStages'
|
|
19
|
+
import PositionStatuses from '../types/_schema/PositionStatuses'
|
|
20
|
+
import ReferralSources from '../types/_schema/ReferralSources'
|
|
21
|
+
|
|
22
|
+
export const actionNames: ActionNames[] = [
|
|
23
|
+
'MESSAGE_SENT',
|
|
24
|
+
'PROFILE_UPDATE',
|
|
25
|
+
'SIGN_IN',
|
|
26
|
+
'STATUS_UPDATE'
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
export const campaignStatuses: CampaignStatuses[] = ['DRAFT', 'CLOSED', 'SENT']
|
|
30
|
+
|
|
31
|
+
export const candidacySources: CandidacySources[] = [
|
|
32
|
+
'CAMPAIGN',
|
|
33
|
+
'NETWORK',
|
|
34
|
+
'WEBSITE',
|
|
35
|
+
'SOCIAL_MEDIA'
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
export const candidacyStatuses: CandidacyStatuses[] = ['OPEN', 'CLOSED']
|
|
39
|
+
|
|
40
|
+
export const candidacyStages: CandidacyStages[] = [
|
|
41
|
+
'SUBMITTED',
|
|
42
|
+
'SCREENING',
|
|
43
|
+
'INTERVIEWING',
|
|
44
|
+
'OFFERED',
|
|
45
|
+
'HIRED',
|
|
46
|
+
'REJECTED',
|
|
47
|
+
'WITHDRAWN'
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
export const candidacyRatingCategories: CandidacyRatingCategories[] = [
|
|
51
|
+
'EXPERIENCE',
|
|
52
|
+
'INDUSTRY',
|
|
53
|
+
'SKILL',
|
|
54
|
+
'CULTURE',
|
|
55
|
+
'COMPENSATION'
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
export const clientStatuses: ClientStatuses[] = ['ACTIVE', 'INACTIVE']
|
|
59
|
+
|
|
60
|
+
export const clientStages: ClientStages[] = [
|
|
61
|
+
'PENDING',
|
|
62
|
+
'CONTACTED',
|
|
63
|
+
'QUALIFYING',
|
|
64
|
+
'CONVERTED',
|
|
65
|
+
'NOT_CONVERTED'
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
export const educationDegrees: EducationDegrees[] = [
|
|
69
|
+
'HIGH_SCHOOL',
|
|
70
|
+
'ASSOCIATES',
|
|
71
|
+
'BACHELORS',
|
|
72
|
+
'MASTERS',
|
|
73
|
+
'DOCTORATE'
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
export const educationFields: EducationFields[] = [
|
|
77
|
+
'ACCOUNTING',
|
|
78
|
+
'BUSINESS',
|
|
79
|
+
'LAW',
|
|
80
|
+
'ENGINEERING',
|
|
81
|
+
'EDUCATION',
|
|
82
|
+
'MEDICINE',
|
|
83
|
+
'ARCHITECTURE',
|
|
84
|
+
'SOCIAL_WORK',
|
|
85
|
+
'HUMANITIES',
|
|
86
|
+
'NATURAL_SCIENCES',
|
|
87
|
+
'SOCIAL_SCIENCES'
|
|
88
|
+
]
|
|
89
|
+
|
|
90
|
+
export const enrichmentSources: EnrichmentSources[] = ['PDL']
|
|
91
|
+
|
|
92
|
+
export const listViewModels: ListViewModels[] = [
|
|
93
|
+
'PERSON',
|
|
94
|
+
'POSITION',
|
|
95
|
+
'CANDIDACY',
|
|
96
|
+
'REFERRAL'
|
|
97
|
+
]
|
|
98
|
+
|
|
99
|
+
export const messageChannels: MessageChannels[] = ['EMAIL', 'SMS']
|
|
100
|
+
|
|
101
|
+
export const jobLevels: JobLevels[] = [
|
|
102
|
+
'EXPERIENCED',
|
|
103
|
+
'MANAGER',
|
|
104
|
+
'DIRECTOR',
|
|
105
|
+
'VICE_PRESIDENT',
|
|
106
|
+
'VICE_PRESIDENT_SENIOR',
|
|
107
|
+
'CHIEF_SUITE'
|
|
108
|
+
]
|
|
109
|
+
|
|
110
|
+
export const positionRatingCategories: PositionRatingCategories[] = [
|
|
111
|
+
'COMPENSATION',
|
|
112
|
+
'INTEREST'
|
|
113
|
+
]
|
|
114
|
+
|
|
115
|
+
export const genders: Genders[] = ['MAN', 'WOMAN', 'NON_BINARY', 'UNKNOWN']
|
|
116
|
+
|
|
117
|
+
export const personSources: PersonSources[] = [
|
|
118
|
+
'SOURCED',
|
|
119
|
+
'NETWORK',
|
|
120
|
+
'WEBSITE',
|
|
121
|
+
'SOCIAL_MEDIA'
|
|
122
|
+
]
|
|
123
|
+
|
|
124
|
+
export const positionStatuses: PositionStatuses[] = ['OPEN', 'CLOSED']
|
|
125
|
+
|
|
126
|
+
export const positionStages: PositionStages[] = [
|
|
127
|
+
'PENDING',
|
|
128
|
+
'IN_PROGRESS',
|
|
129
|
+
'HIRED',
|
|
130
|
+
'CANCELED',
|
|
131
|
+
'FAILED'
|
|
132
|
+
]
|
|
133
|
+
|
|
134
|
+
export const referralSources: ReferralSources[] = [
|
|
135
|
+
'CAMPAIGN',
|
|
136
|
+
'NETWORK',
|
|
137
|
+
'WEBSITE',
|
|
138
|
+
'SOCIAL_MEDIA'
|
|
139
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './enums'
|
|
@@ -30,6 +30,8 @@ export default interface Experiences {
|
|
|
30
30
|
startDate: Date;
|
|
31
31
|
|
|
32
32
|
endDate: Date | null;
|
|
33
|
+
|
|
34
|
+
isCurrent: boolean;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
/** Represents the initializer for the table public.experiences */
|
|
@@ -54,6 +56,9 @@ export interface ExperiencesInitializer {
|
|
|
54
56
|
startDate: Date;
|
|
55
57
|
|
|
56
58
|
endDate?: Date | null;
|
|
59
|
+
|
|
60
|
+
/** Default value: false */
|
|
61
|
+
isCurrent?: boolean;
|
|
57
62
|
}
|
|
58
63
|
|
|
59
64
|
/** Represents the mutator for the table public.experiences */
|
|
@@ -77,4 +82,6 @@ export interface ExperiencesMutator {
|
|
|
77
82
|
startDate?: Date;
|
|
78
83
|
|
|
79
84
|
endDate?: Date | null;
|
|
85
|
+
|
|
86
|
+
isCurrent?: boolean;
|
|
80
87
|
}
|