@thejob/schema 1.0.67 → 1.0.69
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/cjs/ai/ai.types.d.ts +1 -1
- package/dist/cjs/ai/ai.types.d.ts.map +1 -1
- package/dist/cjs/common/common.types.d.ts +1 -1
- package/dist/cjs/common/common.types.d.ts.map +1 -1
- package/dist/cjs/common/index.d.ts +0 -1
- package/dist/cjs/common/index.d.ts.map +1 -1
- package/dist/cjs/common/index.js +0 -1
- package/dist/cjs/constants/auth.d.ts +12 -0
- package/dist/cjs/constants/auth.d.ts.map +1 -0
- package/dist/cjs/constants/auth.js +17 -0
- package/dist/cjs/constants/authorization.d.ts +10 -0
- package/dist/cjs/constants/authorization.d.ts.map +1 -0
- package/dist/cjs/constants/authorization.js +15 -0
- package/dist/cjs/constants/campaign.d.ts +8 -0
- package/dist/cjs/constants/campaign.d.ts.map +1 -0
- package/dist/cjs/constants/campaign.js +12 -0
- package/dist/cjs/constants/common.d.ts +29 -0
- package/dist/cjs/constants/common.d.ts.map +1 -0
- package/dist/cjs/constants/common.js +35 -0
- package/dist/cjs/constants/database.d.ts +366 -0
- package/dist/cjs/constants/database.d.ts.map +1 -0
- package/dist/cjs/constants/database.js +371 -0
- package/dist/cjs/constants/education.d.ts +19 -0
- package/dist/cjs/constants/education.d.ts.map +1 -0
- package/dist/cjs/constants/education.js +24 -0
- package/dist/cjs/constants/file.d.ts +31 -0
- package/dist/cjs/constants/file.d.ts.map +1 -0
- package/dist/cjs/constants/file.js +39 -0
- package/dist/cjs/constants/http.d.ts +147 -0
- package/dist/cjs/constants/http.d.ts.map +1 -0
- package/dist/cjs/constants/http.js +153 -0
- package/dist/cjs/constants/index.d.ts +17 -0
- package/dist/cjs/constants/index.d.ts.map +1 -0
- package/dist/cjs/constants/index.js +49 -0
- package/dist/cjs/constants/job.d.ts +53 -0
- package/dist/cjs/constants/job.d.ts.map +1 -0
- package/dist/cjs/constants/job.js +62 -0
- package/dist/cjs/constants/notification.d.ts +15 -0
- package/dist/cjs/constants/notification.d.ts.map +1 -0
- package/dist/cjs/constants/notification.js +19 -0
- package/dist/cjs/constants/page.d.ts +8 -0
- package/dist/cjs/constants/page.d.ts.map +1 -0
- package/dist/cjs/constants/page.js +12 -0
- package/dist/cjs/constants/report.d.ts +18 -0
- package/dist/cjs/constants/report.d.ts.map +1 -0
- package/dist/cjs/constants/report.js +23 -0
- package/dist/cjs/constants/reward.d.ts +37 -0
- package/dist/cjs/constants/reward.d.ts.map +1 -0
- package/dist/cjs/constants/reward.js +43 -0
- package/dist/cjs/constants/user.d.ts +71 -0
- package/dist/cjs/constants/user.d.ts.map +1 -0
- package/dist/cjs/constants/user.js +79 -0
- package/dist/cjs/constants/validation.d.ts +27 -0
- package/dist/cjs/constants/validation.d.ts.map +1 -0
- package/dist/cjs/constants/validation.js +31 -0
- package/dist/cjs/constants/webhook.d.ts +11 -0
- package/dist/cjs/constants/webhook.d.ts.map +1 -0
- package/dist/cjs/constants/webhook.js +16 -0
- package/dist/cjs/design-and-font/design-and-font.schema.d.ts +1 -1
- package/dist/cjs/group/group.schema.d.ts +1 -1
- package/dist/cjs/index.d.ts +8 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +8 -0
- package/dist/cjs/interfaces.index.d.ts +79 -74
- package/dist/cjs/interfaces.index.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.d.ts +15 -15
- package/dist/cjs/job/job.schema.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.js +8 -7
- package/dist/cjs/job/job.types.d.ts +2 -1
- package/dist/cjs/job/job.types.d.ts.map +1 -1
- package/dist/cjs/job-application/job-application.schema.d.ts +29 -29
- package/dist/cjs/job-application/job-application.schema.d.ts.map +1 -1
- package/dist/cjs/job-application/job-application.schema.js +2 -1
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts +12 -12
- package/dist/cjs/page/page.schema.d.ts +1 -1
- package/dist/cjs/question/choice-question.schema.d.ts +2 -2
- package/dist/cjs/question/choice-question.schema.d.ts.map +1 -1
- package/dist/cjs/question/choice-question.schema.js +2 -1
- package/dist/cjs/question/read-and-acknowledge.schema.d.ts +1 -1
- package/dist/cjs/question/read-and-acknowledge.schema.d.ts.map +1 -1
- package/dist/cjs/question/read-and-acknowledge.schema.js +2 -2
- package/dist/cjs/resume/resume.constant.d.ts +8 -8
- package/dist/cjs/resume/resume.constant.js +8 -8
- package/dist/cjs/resume/resume.schema.d.ts +87 -87
- package/dist/cjs/social-account/social-account.schema.d.ts +1 -1
- package/dist/cjs/social-account/social-account.schema.js +2 -2
- package/dist/cjs/user/education/education.schema.d.ts +1 -1
- package/dist/cjs/user/education/education.schema.js +2 -2
- package/dist/cjs/user/general-detail/general-detail.schema.d.ts +1 -1
- package/dist/cjs/user/general-detail/general-detail.schema.js +2 -2
- package/dist/cjs/user/update-additional-info.schema.d.ts +1 -1
- package/dist/cjs/user/update-education.schema.d.ts +12 -12
- package/dist/cjs/user/update-work-experience.schema.d.ts +14 -14
- package/dist/cjs/user/user-completeness.schema.d.ts.map +1 -1
- package/dist/cjs/user/user-completeness.schema.js +2 -1
- package/dist/cjs/user/user-language/user-language.schema.d.ts +1 -1
- package/dist/cjs/user/user-language/user-language.schema.js +2 -2
- package/dist/cjs/user/user-skill/user-skill.schema.d.ts +1 -1
- package/dist/cjs/user/user-skill/user-skill.schema.js +2 -2
- package/dist/cjs/user/user.schema.d.ts +28 -28
- package/dist/cjs/user/user.schema.js +4 -4
- package/dist/cjs/user/user.types.d.ts +1 -1
- package/dist/cjs/user/user.types.d.ts.map +1 -1
- package/dist/esm/ai/ai.types.d.ts +1 -1
- package/dist/esm/ai/ai.types.d.ts.map +1 -1
- package/dist/esm/common/common.types.d.ts +1 -1
- package/dist/esm/common/common.types.d.ts.map +1 -1
- package/dist/esm/common/index.d.ts +0 -1
- package/dist/esm/common/index.d.ts.map +1 -1
- package/dist/esm/common/index.js +0 -1
- package/dist/esm/constants/auth.d.ts +12 -0
- package/dist/esm/constants/auth.d.ts.map +1 -0
- package/dist/esm/constants/auth.js +14 -0
- package/dist/esm/constants/authorization.d.ts +10 -0
- package/dist/esm/constants/authorization.d.ts.map +1 -0
- package/dist/esm/constants/authorization.js +12 -0
- package/dist/esm/constants/campaign.d.ts +8 -0
- package/dist/esm/constants/campaign.d.ts.map +1 -0
- package/dist/esm/constants/campaign.js +9 -0
- package/dist/esm/constants/common.d.ts +29 -0
- package/dist/esm/constants/common.d.ts.map +1 -0
- package/dist/esm/constants/common.js +32 -0
- package/dist/esm/constants/database.d.ts +366 -0
- package/dist/esm/constants/database.d.ts.map +1 -0
- package/dist/esm/constants/database.js +368 -0
- package/dist/esm/constants/education.d.ts +19 -0
- package/dist/esm/constants/education.d.ts.map +1 -0
- package/dist/esm/constants/education.js +21 -0
- package/dist/esm/constants/file.d.ts +31 -0
- package/dist/esm/constants/file.d.ts.map +1 -0
- package/dist/esm/constants/file.js +36 -0
- package/dist/esm/constants/http.d.ts +147 -0
- package/dist/esm/constants/http.d.ts.map +1 -0
- package/dist/esm/constants/http.js +150 -0
- package/dist/esm/constants/index.d.ts +17 -0
- package/dist/esm/constants/index.d.ts.map +1 -0
- package/dist/esm/constants/index.js +33 -0
- package/dist/esm/constants/job.d.ts +53 -0
- package/dist/esm/constants/job.d.ts.map +1 -0
- package/dist/esm/constants/job.js +59 -0
- package/dist/esm/constants/notification.d.ts +15 -0
- package/dist/esm/constants/notification.d.ts.map +1 -0
- package/dist/esm/constants/notification.js +16 -0
- package/dist/esm/constants/page.d.ts +8 -0
- package/dist/esm/constants/page.d.ts.map +1 -0
- package/dist/esm/constants/page.js +9 -0
- package/dist/esm/constants/report.d.ts +18 -0
- package/dist/esm/constants/report.d.ts.map +1 -0
- package/dist/esm/constants/report.js +20 -0
- package/dist/esm/constants/reward.d.ts +37 -0
- package/dist/esm/constants/reward.d.ts.map +1 -0
- package/dist/esm/constants/reward.js +40 -0
- package/dist/esm/constants/user.d.ts +71 -0
- package/dist/esm/constants/user.d.ts.map +1 -0
- package/dist/esm/constants/user.js +76 -0
- package/dist/esm/constants/validation.d.ts +27 -0
- package/dist/esm/constants/validation.d.ts.map +1 -0
- package/dist/esm/constants/validation.js +28 -0
- package/dist/esm/constants/webhook.d.ts +11 -0
- package/dist/esm/constants/webhook.d.ts.map +1 -0
- package/dist/esm/constants/webhook.js +13 -0
- package/dist/esm/design-and-font/design-and-font.schema.d.ts +1 -1
- package/dist/esm/group/group.schema.d.ts +1 -1
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +8 -0
- package/dist/esm/interfaces.index.d.ts +79 -74
- package/dist/esm/interfaces.index.d.ts.map +1 -1
- package/dist/esm/job/job.schema.d.ts +15 -15
- package/dist/esm/job/job.schema.d.ts.map +1 -1
- package/dist/esm/job/job.schema.js +3 -2
- package/dist/esm/job/job.types.d.ts +2 -1
- package/dist/esm/job/job.types.d.ts.map +1 -1
- package/dist/esm/job-application/job-application.schema.d.ts +29 -29
- package/dist/esm/job-application/job-application.schema.d.ts.map +1 -1
- package/dist/esm/job-application/job-application.schema.js +2 -1
- package/dist/esm/job-role-template/job-role-template.schema.d.ts +12 -12
- package/dist/esm/page/page.schema.d.ts +1 -1
- package/dist/esm/question/choice-question.schema.d.ts +2 -2
- package/dist/esm/question/choice-question.schema.d.ts.map +1 -1
- package/dist/esm/question/choice-question.schema.js +2 -1
- package/dist/esm/question/read-and-acknowledge.schema.d.ts +1 -1
- package/dist/esm/question/read-and-acknowledge.schema.d.ts.map +1 -1
- package/dist/esm/question/read-and-acknowledge.schema.js +1 -1
- package/dist/esm/resume/resume.constant.d.ts +8 -8
- package/dist/esm/resume/resume.constant.js +8 -8
- package/dist/esm/resume/resume.schema.d.ts +87 -87
- package/dist/esm/social-account/social-account.schema.d.ts +1 -1
- package/dist/esm/social-account/social-account.schema.js +1 -1
- package/dist/esm/user/education/education.schema.d.ts +1 -1
- package/dist/esm/user/education/education.schema.js +1 -1
- package/dist/esm/user/general-detail/general-detail.schema.d.ts +1 -1
- package/dist/esm/user/general-detail/general-detail.schema.js +1 -1
- package/dist/esm/user/update-additional-info.schema.d.ts +1 -1
- package/dist/esm/user/update-education.schema.d.ts +12 -12
- package/dist/esm/user/update-work-experience.schema.d.ts +14 -14
- package/dist/esm/user/user-completeness.schema.d.ts.map +1 -1
- package/dist/esm/user/user-completeness.schema.js +2 -1
- package/dist/esm/user/user-language/user-language.schema.d.ts +1 -1
- package/dist/esm/user/user-language/user-language.schema.js +1 -1
- package/dist/esm/user/user-skill/user-skill.schema.d.ts +1 -1
- package/dist/esm/user/user-skill/user-skill.schema.js +1 -1
- package/dist/esm/user/user.schema.d.ts +28 -28
- package/dist/esm/user/user.schema.js +1 -1
- package/dist/esm/user/user.types.d.ts +1 -1
- package/dist/esm/user/user.types.d.ts.map +1 -1
- package/package.json +4 -3
- package/dist/cjs/common/constants.d.ts +0 -200
- package/dist/cjs/common/constants.d.ts.map +0 -1
- package/dist/cjs/common/constants.js +0 -256
- package/dist/esm/common/constants.d.ts +0 -200
- package/dist/esm/common/constants.d.ts.map +0 -1
- package/dist/esm/common/constants.js +0 -253
|
@@ -14,7 +14,7 @@ declare const ResumeGeneralInfoSectionSchema: import("yup").ObjectSchema<{
|
|
|
14
14
|
mobile: string | null | undefined;
|
|
15
15
|
emailVerified: string | null | undefined;
|
|
16
16
|
mobileVerified: string | null | undefined;
|
|
17
|
-
experienceLevel: NonNullable<import("
|
|
17
|
+
experienceLevel: NonNullable<import("..").ExperienceLevel | undefined>;
|
|
18
18
|
location: {
|
|
19
19
|
state?: string | null | undefined;
|
|
20
20
|
stateCode?: string | null | undefined;
|
|
@@ -71,8 +71,8 @@ export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
|
|
|
71
71
|
fontSize: number;
|
|
72
72
|
lineHeight: number;
|
|
73
73
|
background: {
|
|
74
|
-
height?: string | number | undefined;
|
|
75
74
|
width?: string | number | undefined;
|
|
75
|
+
height?: string | number | undefined;
|
|
76
76
|
top?: number | undefined;
|
|
77
77
|
right?: number | undefined;
|
|
78
78
|
bottom?: number | undefined;
|
|
@@ -83,23 +83,37 @@ export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
|
|
|
83
83
|
sections: {
|
|
84
84
|
id: NonNullable<ResumeSectionType | undefined>;
|
|
85
85
|
data: {
|
|
86
|
-
type: NonNullable<import("
|
|
86
|
+
type: NonNullable<import("..").SocialAccount | undefined>;
|
|
87
87
|
url: string;
|
|
88
88
|
isNew: boolean;
|
|
89
89
|
}[] | {
|
|
90
|
+
image?: string | undefined;
|
|
90
91
|
id?: string | undefined;
|
|
91
92
|
headline?: string | undefined;
|
|
92
|
-
image?: string | undefined;
|
|
93
93
|
aboutMe?: string | undefined;
|
|
94
94
|
mobile?: string | null | undefined;
|
|
95
95
|
emailVerified?: string | null | undefined;
|
|
96
96
|
mobileVerified?: string | null | undefined;
|
|
97
|
+
location: {
|
|
98
|
+
state?: string | null | undefined;
|
|
99
|
+
stateCode?: string | null | undefined;
|
|
100
|
+
city?: string | null | undefined;
|
|
101
|
+
address?: string | null | undefined;
|
|
102
|
+
country: string;
|
|
103
|
+
countryCode: string;
|
|
104
|
+
geo: {
|
|
105
|
+
type: "Point";
|
|
106
|
+
coordinates: number[];
|
|
107
|
+
};
|
|
108
|
+
};
|
|
97
109
|
email: string;
|
|
98
110
|
name: {
|
|
99
111
|
last?: string | undefined;
|
|
100
112
|
first: string;
|
|
101
113
|
};
|
|
102
|
-
experienceLevel: NonNullable<import("
|
|
114
|
+
experienceLevel: NonNullable<import("..").ExperienceLevel | undefined>;
|
|
115
|
+
} | {
|
|
116
|
+
description?: string | undefined;
|
|
103
117
|
location: {
|
|
104
118
|
state?: string | null | undefined;
|
|
105
119
|
stateCode?: string | null | undefined;
|
|
@@ -112,8 +126,6 @@ export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
|
|
|
112
126
|
coordinates: number[];
|
|
113
127
|
};
|
|
114
128
|
};
|
|
115
|
-
} | {
|
|
116
|
-
description?: string | undefined;
|
|
117
129
|
company: {
|
|
118
130
|
logo?: {
|
|
119
131
|
dark?: string | null | undefined;
|
|
@@ -123,11 +135,17 @@ export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
|
|
|
123
135
|
type: import("..").PageType;
|
|
124
136
|
name: string;
|
|
125
137
|
};
|
|
138
|
+
designation: {
|
|
139
|
+
name: string;
|
|
140
|
+
};
|
|
126
141
|
duration: {
|
|
127
142
|
startDate: string;
|
|
128
143
|
endDate: string;
|
|
129
144
|
isActive: boolean;
|
|
130
145
|
};
|
|
146
|
+
isRemote: boolean;
|
|
147
|
+
}[] | {
|
|
148
|
+
description?: string | undefined;
|
|
131
149
|
location: {
|
|
132
150
|
state?: string | null | undefined;
|
|
133
151
|
stateCode?: string | null | undefined;
|
|
@@ -140,12 +158,6 @@ export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
|
|
|
140
158
|
coordinates: number[];
|
|
141
159
|
};
|
|
142
160
|
};
|
|
143
|
-
designation: {
|
|
144
|
-
name: string;
|
|
145
|
-
};
|
|
146
|
-
isRemote: boolean;
|
|
147
|
-
}[] | {
|
|
148
|
-
description?: string | undefined;
|
|
149
161
|
institute: {
|
|
150
162
|
logo?: {
|
|
151
163
|
dark?: string | null | undefined;
|
|
@@ -162,24 +174,12 @@ export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
|
|
|
162
174
|
name: string;
|
|
163
175
|
};
|
|
164
176
|
isDistanceLearning: boolean;
|
|
165
|
-
studyType: NonNullable<import("
|
|
177
|
+
studyType: NonNullable<import("..").StudyType | undefined>;
|
|
166
178
|
duration: {
|
|
167
179
|
startDate: string;
|
|
168
180
|
endDate: string;
|
|
169
181
|
isActive: boolean;
|
|
170
182
|
};
|
|
171
|
-
location: {
|
|
172
|
-
state?: string | null | undefined;
|
|
173
|
-
stateCode?: string | null | undefined;
|
|
174
|
-
city?: string | null | undefined;
|
|
175
|
-
address?: string | null | undefined;
|
|
176
|
-
country: string;
|
|
177
|
-
countryCode: string;
|
|
178
|
-
geo: {
|
|
179
|
-
type: "Point";
|
|
180
|
-
coordinates: number[];
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
183
|
}[] | {
|
|
184
184
|
lastUsed?: string | undefined;
|
|
185
185
|
skill: {
|
|
@@ -189,7 +189,7 @@ export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
|
|
|
189
189
|
light: string;
|
|
190
190
|
} | null;
|
|
191
191
|
};
|
|
192
|
-
proficiencyLevel: NonNullable<import("
|
|
192
|
+
proficiencyLevel: NonNullable<import("..").ProficiencyLevel | undefined>;
|
|
193
193
|
}[] | {
|
|
194
194
|
url?: string | undefined;
|
|
195
195
|
name: string;
|
|
@@ -218,7 +218,7 @@ export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
|
|
|
218
218
|
name: string;
|
|
219
219
|
};
|
|
220
220
|
isNew: boolean;
|
|
221
|
-
proficiencyLevel: NonNullable<import("
|
|
221
|
+
proficiencyLevel: NonNullable<import("..").ProficiencyLevel | undefined>;
|
|
222
222
|
}[] | null;
|
|
223
223
|
}[];
|
|
224
224
|
} & {
|
|
@@ -289,7 +289,7 @@ export declare const ResumeSchema: import("yup").ObjectSchema<{
|
|
|
289
289
|
languages: never[];
|
|
290
290
|
additionalInfo: never[];
|
|
291
291
|
status: undefined;
|
|
292
|
-
roles: import("
|
|
292
|
+
roles: import("..").UserRole[];
|
|
293
293
|
id: undefined;
|
|
294
294
|
name: {
|
|
295
295
|
first: undefined;
|
|
@@ -316,30 +316,68 @@ export declare const ResumeSchema: import("yup").ObjectSchema<{
|
|
|
316
316
|
export type TResumeSchema = InferType<typeof ResumeSchema>;
|
|
317
317
|
export declare const NewResumePromptSchema: (host?: string) => import("yup").ObjectSchema<{
|
|
318
318
|
profile: {
|
|
319
|
+
image?: string | undefined;
|
|
319
320
|
id?: string | undefined;
|
|
320
321
|
headline?: string | undefined;
|
|
321
|
-
image?: string | undefined;
|
|
322
322
|
aboutMe?: string | undefined;
|
|
323
323
|
mobile?: string | null | undefined;
|
|
324
324
|
emailVerified?: string | null | undefined;
|
|
325
325
|
mobileVerified?: string | null | undefined;
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
326
|
+
location: {
|
|
327
|
+
state?: string | null | undefined;
|
|
328
|
+
stateCode?: string | null | undefined;
|
|
329
|
+
city?: string | null | undefined;
|
|
330
|
+
address?: string | null | undefined;
|
|
331
|
+
country: string;
|
|
332
|
+
countryCode: string;
|
|
333
|
+
geo: {
|
|
334
|
+
type: "Point";
|
|
335
|
+
coordinates: number[];
|
|
336
|
+
};
|
|
330
337
|
};
|
|
338
|
+
languages: {
|
|
339
|
+
language: {
|
|
340
|
+
name: string;
|
|
341
|
+
};
|
|
342
|
+
isNew: boolean;
|
|
343
|
+
proficiencyLevel: NonNullable<import("..").ProficiencyLevel | undefined>;
|
|
344
|
+
}[];
|
|
345
|
+
skills: {
|
|
346
|
+
lastUsed?: string | undefined;
|
|
347
|
+
skill: {
|
|
348
|
+
name: string;
|
|
349
|
+
logo: {
|
|
350
|
+
dark?: string | null | undefined;
|
|
351
|
+
light: string;
|
|
352
|
+
} | null;
|
|
353
|
+
};
|
|
354
|
+
proficiencyLevel: NonNullable<import("..").ProficiencyLevel | undefined>;
|
|
355
|
+
}[];
|
|
356
|
+
email: string;
|
|
331
357
|
additionalInfo: {
|
|
358
|
+
title: string;
|
|
332
359
|
description: string;
|
|
333
360
|
isNew: boolean;
|
|
334
|
-
title: string;
|
|
335
361
|
}[];
|
|
336
362
|
socialAccounts: {
|
|
337
|
-
type: NonNullable<import("
|
|
363
|
+
type: NonNullable<import("..").SocialAccount | undefined>;
|
|
338
364
|
url: string;
|
|
339
365
|
isNew: boolean;
|
|
340
366
|
}[];
|
|
341
367
|
workExperiences: {
|
|
342
368
|
description?: string | undefined;
|
|
369
|
+
location: {
|
|
370
|
+
state?: string | null | undefined;
|
|
371
|
+
stateCode?: string | null | undefined;
|
|
372
|
+
city?: string | null | undefined;
|
|
373
|
+
address?: string | null | undefined;
|
|
374
|
+
country: string;
|
|
375
|
+
countryCode: string;
|
|
376
|
+
geo: {
|
|
377
|
+
type: "Point";
|
|
378
|
+
coordinates: number[];
|
|
379
|
+
};
|
|
380
|
+
};
|
|
343
381
|
company: {
|
|
344
382
|
logo?: {
|
|
345
383
|
dark?: string | null | undefined;
|
|
@@ -349,11 +387,18 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
|
|
|
349
387
|
type: import("..").PageType;
|
|
350
388
|
name: string;
|
|
351
389
|
};
|
|
390
|
+
designation: {
|
|
391
|
+
name: string;
|
|
392
|
+
};
|
|
352
393
|
duration: {
|
|
353
394
|
startDate: string;
|
|
354
395
|
endDate: string;
|
|
355
396
|
isActive: boolean;
|
|
356
397
|
};
|
|
398
|
+
isRemote: boolean;
|
|
399
|
+
}[];
|
|
400
|
+
educations: {
|
|
401
|
+
description?: string | undefined;
|
|
357
402
|
location: {
|
|
358
403
|
state?: string | null | undefined;
|
|
359
404
|
stateCode?: string | null | undefined;
|
|
@@ -366,13 +411,6 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
|
|
|
366
411
|
coordinates: number[];
|
|
367
412
|
};
|
|
368
413
|
};
|
|
369
|
-
designation: {
|
|
370
|
-
name: string;
|
|
371
|
-
};
|
|
372
|
-
isRemote: boolean;
|
|
373
|
-
}[];
|
|
374
|
-
educations: {
|
|
375
|
-
description?: string | undefined;
|
|
376
414
|
institute: {
|
|
377
415
|
logo?: {
|
|
378
416
|
dark?: string | null | undefined;
|
|
@@ -389,42 +427,12 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
|
|
|
389
427
|
name: string;
|
|
390
428
|
};
|
|
391
429
|
isDistanceLearning: boolean;
|
|
392
|
-
studyType: NonNullable<import("
|
|
430
|
+
studyType: NonNullable<import("..").StudyType | undefined>;
|
|
393
431
|
duration: {
|
|
394
432
|
startDate: string;
|
|
395
433
|
endDate: string;
|
|
396
434
|
isActive: boolean;
|
|
397
435
|
};
|
|
398
|
-
location: {
|
|
399
|
-
state?: string | null | undefined;
|
|
400
|
-
stateCode?: string | null | undefined;
|
|
401
|
-
city?: string | null | undefined;
|
|
402
|
-
address?: string | null | undefined;
|
|
403
|
-
country: string;
|
|
404
|
-
countryCode: string;
|
|
405
|
-
geo: {
|
|
406
|
-
type: "Point";
|
|
407
|
-
coordinates: number[];
|
|
408
|
-
};
|
|
409
|
-
};
|
|
410
|
-
}[];
|
|
411
|
-
skills: {
|
|
412
|
-
lastUsed?: string | undefined;
|
|
413
|
-
skill: {
|
|
414
|
-
name: string;
|
|
415
|
-
logo: {
|
|
416
|
-
dark?: string | null | undefined;
|
|
417
|
-
light: string;
|
|
418
|
-
} | null;
|
|
419
|
-
};
|
|
420
|
-
proficiencyLevel: NonNullable<import("../common").ProficiencyLevel | undefined>;
|
|
421
|
-
}[];
|
|
422
|
-
languages: {
|
|
423
|
-
language: {
|
|
424
|
-
name: string;
|
|
425
|
-
};
|
|
426
|
-
isNew: boolean;
|
|
427
|
-
proficiencyLevel: NonNullable<import("../common").ProficiencyLevel | undefined>;
|
|
428
436
|
}[];
|
|
429
437
|
certifications: {
|
|
430
438
|
url?: string | undefined;
|
|
@@ -452,19 +460,11 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
|
|
|
452
460
|
isActive: boolean;
|
|
453
461
|
};
|
|
454
462
|
}[];
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
stateCode?: string | null | undefined;
|
|
459
|
-
city?: string | null | undefined;
|
|
460
|
-
address?: string | null | undefined;
|
|
461
|
-
country: string;
|
|
462
|
-
countryCode: string;
|
|
463
|
-
geo: {
|
|
464
|
-
type: "Point";
|
|
465
|
-
coordinates: number[];
|
|
466
|
-
};
|
|
463
|
+
name: {
|
|
464
|
+
last?: string | undefined;
|
|
465
|
+
first: string;
|
|
467
466
|
};
|
|
467
|
+
experienceLevel: NonNullable<import("..").ExperienceLevel | undefined>;
|
|
468
468
|
};
|
|
469
469
|
title: string;
|
|
470
470
|
jobUrl: string | undefined;
|
|
@@ -481,7 +481,7 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
|
|
|
481
481
|
languages: never[];
|
|
482
482
|
additionalInfo: never[];
|
|
483
483
|
status: undefined;
|
|
484
|
-
roles: import("
|
|
484
|
+
roles: import("..").UserRole[];
|
|
485
485
|
id: undefined;
|
|
486
486
|
name: {
|
|
487
487
|
first: undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InferType } from "../yup-extended";
|
|
2
2
|
export declare const SocialAccountSchema: import("yup").ObjectSchema<{
|
|
3
3
|
isNew: boolean;
|
|
4
|
-
type: NonNullable<import("../
|
|
4
|
+
type: NonNullable<import("../constants").SocialAccount | undefined>;
|
|
5
5
|
url: string;
|
|
6
6
|
}, import("yup").AnyObject, {
|
|
7
7
|
isNew: false;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SocialAccountSchema = void 0;
|
|
4
|
-
const
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
5
|
const yup_extended_1 = require("../yup-extended");
|
|
6
6
|
exports.SocialAccountSchema = (0, yup_extended_1.object)()
|
|
7
7
|
.shape({
|
|
8
8
|
isNew: (0, yup_extended_1.boolean)().default(false).optional().label("Is New"),
|
|
9
9
|
type: (0, yup_extended_1.string)()
|
|
10
|
-
.oneOf(
|
|
10
|
+
.oneOf(constants_1.SupportedSocialAccounts)
|
|
11
11
|
.required()
|
|
12
12
|
.label("Account Type"),
|
|
13
13
|
url: (0, yup_extended_1.string)().urlStrict().required().label("URL"),
|
|
@@ -34,7 +34,7 @@ export declare const EducationSchema: ObjectSchema<{
|
|
|
34
34
|
coordinates: number[];
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
studyType: NonNullable<import("../../
|
|
37
|
+
studyType: NonNullable<import("../../constants").StudyType | undefined>;
|
|
38
38
|
}, import("yup").AnyObject, {
|
|
39
39
|
institute: {
|
|
40
40
|
id: undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EducationSchema = void 0;
|
|
4
|
-
const
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
5
5
|
const duration_1 = require("../../duration");
|
|
6
6
|
const location_1 = require("../../location");
|
|
7
7
|
const page_1 = require("../../page");
|
|
@@ -36,7 +36,7 @@ exports.EducationSchema = (0, yup_extended_1.object)()
|
|
|
36
36
|
isDistanceLearning: (0, yup_extended_1.boolean)().default(false).label("Is Distance Learning"),
|
|
37
37
|
location: (location_1.LocationSchema.required().label("Location")),
|
|
38
38
|
studyType: (0, yup_extended_1.string)()
|
|
39
|
-
.oneOf(
|
|
39
|
+
.oneOf(constants_1.SupportedStudyTypes)
|
|
40
40
|
.trim()
|
|
41
41
|
.max(50)
|
|
42
42
|
.required()
|
|
@@ -12,7 +12,7 @@ export declare const UserGeneralDetailSchema: ObjectSchema<{
|
|
|
12
12
|
mobile: string | null | undefined;
|
|
13
13
|
emailVerified: string | null | undefined;
|
|
14
14
|
mobileVerified: string | null | undefined;
|
|
15
|
-
experienceLevel: NonNullable<import("../../
|
|
15
|
+
experienceLevel: NonNullable<import("../../constants").ExperienceLevel | undefined>;
|
|
16
16
|
location: {
|
|
17
17
|
state?: string | null | undefined;
|
|
18
18
|
stateCode?: string | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserGeneralDetailSchema = void 0;
|
|
4
|
-
const
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
5
5
|
const location_1 = require("../../location");
|
|
6
6
|
const yup_extended_1 = require("../../yup-extended");
|
|
7
7
|
exports.UserGeneralDetailSchema = (0, yup_extended_1.object)()
|
|
@@ -22,7 +22,7 @@ exports.UserGeneralDetailSchema = (0, yup_extended_1.object)()
|
|
|
22
22
|
emailVerified: (0, yup_extended_1.string)().nullable().optional().label("Email Verified"),
|
|
23
23
|
mobileVerified: (0, yup_extended_1.string)().nullable().optional().label("Mobile Verified"),
|
|
24
24
|
experienceLevel: (0, yup_extended_1.string)()
|
|
25
|
-
.oneOf(
|
|
25
|
+
.oneOf(constants_1.SupportedExperienceLevels)
|
|
26
26
|
.required()
|
|
27
27
|
.label("Experience level"),
|
|
28
28
|
location: (location_1.LocationSchema.required().label("Location")),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { InferType } from "../yup-extended";
|
|
2
2
|
export declare const UpdateUserAdditionalInfoSchema: import("yup").ObjectSchema<{
|
|
3
3
|
additionalInfo: {
|
|
4
|
+
title: string;
|
|
4
5
|
description: string;
|
|
5
6
|
isNew: boolean;
|
|
6
|
-
title: string;
|
|
7
7
|
}[];
|
|
8
8
|
}, import("yup").AnyObject, {
|
|
9
9
|
additionalInfo: undefined;
|
|
@@ -5,6 +5,18 @@ import { InferType } from "../yup-extended";
|
|
|
5
5
|
export declare const UpdateEducationsSchema: import("yup").ObjectSchema<{
|
|
6
6
|
educations: {
|
|
7
7
|
description?: string | undefined;
|
|
8
|
+
location: {
|
|
9
|
+
state?: string | null | undefined;
|
|
10
|
+
stateCode?: string | null | undefined;
|
|
11
|
+
city?: string | null | undefined;
|
|
12
|
+
address?: string | null | undefined;
|
|
13
|
+
country: string;
|
|
14
|
+
countryCode: string;
|
|
15
|
+
geo: {
|
|
16
|
+
type: "Point";
|
|
17
|
+
coordinates: number[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
8
20
|
institute: {
|
|
9
21
|
logo?: {
|
|
10
22
|
dark?: string | null | undefined;
|
|
@@ -27,18 +39,6 @@ export declare const UpdateEducationsSchema: import("yup").ObjectSchema<{
|
|
|
27
39
|
endDate: string;
|
|
28
40
|
isActive: boolean;
|
|
29
41
|
};
|
|
30
|
-
location: {
|
|
31
|
-
state?: string | null | undefined;
|
|
32
|
-
stateCode?: string | null | undefined;
|
|
33
|
-
city?: string | null | undefined;
|
|
34
|
-
address?: string | null | undefined;
|
|
35
|
-
country: string;
|
|
36
|
-
countryCode: string;
|
|
37
|
-
geo: {
|
|
38
|
-
type: "Point";
|
|
39
|
-
coordinates: number[];
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
42
|
}[];
|
|
43
43
|
}, import("yup").AnyObject, {
|
|
44
44
|
educations: undefined;
|
|
@@ -2,20 +2,6 @@ import { InferType } from "../yup-extended";
|
|
|
2
2
|
export declare const UpdateWorkExperiencesSchema: import("yup").ObjectSchema<{
|
|
3
3
|
workExperiences: {
|
|
4
4
|
description?: string | undefined;
|
|
5
|
-
company: {
|
|
6
|
-
logo?: {
|
|
7
|
-
dark?: string | null | undefined;
|
|
8
|
-
light?: string | undefined;
|
|
9
|
-
} | null | undefined;
|
|
10
|
-
slug?: string | undefined;
|
|
11
|
-
type: import("..").PageType;
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
duration: {
|
|
15
|
-
startDate: string;
|
|
16
|
-
endDate: string;
|
|
17
|
-
isActive: boolean;
|
|
18
|
-
};
|
|
19
5
|
location: {
|
|
20
6
|
state?: string | null | undefined;
|
|
21
7
|
stateCode?: string | null | undefined;
|
|
@@ -28,9 +14,23 @@ export declare const UpdateWorkExperiencesSchema: import("yup").ObjectSchema<{
|
|
|
28
14
|
coordinates: number[];
|
|
29
15
|
};
|
|
30
16
|
};
|
|
17
|
+
company: {
|
|
18
|
+
logo?: {
|
|
19
|
+
dark?: string | null | undefined;
|
|
20
|
+
light?: string | undefined;
|
|
21
|
+
} | null | undefined;
|
|
22
|
+
slug?: string | undefined;
|
|
23
|
+
type: import("..").PageType;
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
|
31
26
|
designation: {
|
|
32
27
|
name: string;
|
|
33
28
|
};
|
|
29
|
+
duration: {
|
|
30
|
+
startDate: string;
|
|
31
|
+
endDate: string;
|
|
32
|
+
isActive: boolean;
|
|
33
|
+
};
|
|
34
34
|
isRemote: boolean;
|
|
35
35
|
}[];
|
|
36
36
|
}, import("yup").AnyObject, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-completeness.schema.d.ts","sourceRoot":"","sources":["../../../src/user/user-completeness.schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user-completeness.schema.d.ts","sourceRoot":"","sources":["../../../src/user/user-completeness.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAU,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAElE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAcjC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE/E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEpC,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StudentCompletenessSchema = exports.UserCompletenessSchema = void 0;
|
|
4
4
|
const common_1 = require("../common");
|
|
5
|
+
const constants_1 = require("../constants");
|
|
5
6
|
const yup_extended_1 = require("../yup-extended");
|
|
6
7
|
exports.UserCompletenessSchema = (0, yup_extended_1.object)().shape({
|
|
7
8
|
additionalInfo: (0, common_1.CompletenessScoreSchema)(0).label("Additional Info"), // Optional
|
|
@@ -17,5 +18,5 @@ exports.UserCompletenessSchema = (0, yup_extended_1.object)().shape({
|
|
|
17
18
|
workExperiences: (0, common_1.CompletenessScoreSchema)().label("Work Experience"),
|
|
18
19
|
});
|
|
19
20
|
exports.StudentCompletenessSchema = exports.UserCompletenessSchema.omit([
|
|
20
|
-
|
|
21
|
+
constants_1.UserDetailType.WorkExperiences,
|
|
21
22
|
]);
|
|
@@ -4,7 +4,7 @@ export declare const UserLanguageSchema: import("yup").ObjectSchema<{
|
|
|
4
4
|
language: {
|
|
5
5
|
name: string;
|
|
6
6
|
};
|
|
7
|
-
proficiencyLevel: NonNullable<import("../../
|
|
7
|
+
proficiencyLevel: NonNullable<import("../../constants").ProficiencyLevel | undefined>;
|
|
8
8
|
}, import("yup").AnyObject, {
|
|
9
9
|
isNew: false;
|
|
10
10
|
language: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserLanguageSchema = void 0;
|
|
4
|
-
const
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
5
5
|
const yup_extended_1 = require("../../yup-extended");
|
|
6
6
|
exports.UserLanguageSchema = (0, yup_extended_1.object)()
|
|
7
7
|
.shape({
|
|
@@ -12,7 +12,7 @@ exports.UserLanguageSchema = (0, yup_extended_1.object)()
|
|
|
12
12
|
.required()
|
|
13
13
|
.label("Language"),
|
|
14
14
|
proficiencyLevel: (0, yup_extended_1.string)()
|
|
15
|
-
.oneOf(
|
|
15
|
+
.oneOf(constants_1.SupportedProficiencyLevels)
|
|
16
16
|
.trim()
|
|
17
17
|
.max(50)
|
|
18
18
|
.required()
|
|
@@ -7,7 +7,7 @@ export declare const UserSkillSchema: import("yup").ObjectSchema<{
|
|
|
7
7
|
light: string;
|
|
8
8
|
} | null;
|
|
9
9
|
};
|
|
10
|
-
proficiencyLevel: NonNullable<import("../../
|
|
10
|
+
proficiencyLevel: NonNullable<import("../../constants").ProficiencyLevel | undefined>;
|
|
11
11
|
lastUsed: string | undefined;
|
|
12
12
|
}, import("yup").AnyObject, {
|
|
13
13
|
skill: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserSkillSchema = void 0;
|
|
4
|
-
const
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
5
5
|
const yup_extended_1 = require("../../yup-extended");
|
|
6
6
|
exports.UserSkillSchema = (0, yup_extended_1.object)({
|
|
7
7
|
skill: (0, yup_extended_1.object)({
|
|
@@ -21,7 +21,7 @@ exports.UserSkillSchema = (0, yup_extended_1.object)({
|
|
|
21
21
|
.required()
|
|
22
22
|
.label("Skill"),
|
|
23
23
|
proficiencyLevel: (0, yup_extended_1.string)()
|
|
24
|
-
.oneOf(
|
|
24
|
+
.oneOf(constants_1.SupportedProficiencyLevels)
|
|
25
25
|
.required()
|
|
26
26
|
.label("Proficiency Level"),
|
|
27
27
|
lastUsed: (0, yup_extended_1.dateString)().format("YYYY-MM").optional().label("Last Used"),
|