@thejob/schema 1.0.7 → 1.0.9
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/common/common.schema.d.ts +12 -4
- package/dist/cjs/common/common.schema.d.ts.map +1 -1
- package/dist/cjs/common/common.schema.js +14 -4
- package/dist/cjs/common/constants.d.ts +8 -0
- package/dist/cjs/common/constants.d.ts.map +1 -1
- package/dist/cjs/common/constants.js +10 -1
- package/dist/cjs/interfaces.index.d.ts +43 -13
- package/dist/cjs/interfaces.index.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.d.ts +25 -12
- package/dist/cjs/job/job.schema.d.ts.map +1 -1
- package/dist/cjs/job/job.schema.js +49 -19
- package/dist/cjs/job-application/job-application.schema.d.ts +7 -7
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts +7 -3
- package/dist/cjs/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/dist/cjs/page/page-location/page-location.schema.d.ts.map +1 -1
- package/dist/cjs/page/page-location/page-location.schema.js +1 -0
- package/dist/cjs/page/page.constant.d.ts +5 -0
- package/dist/cjs/page/page.constant.d.ts.map +1 -1
- package/dist/cjs/page/page.constant.js +7 -1
- package/dist/cjs/page/page.schema.d.ts +20 -1
- package/dist/cjs/page/page.schema.d.ts.map +1 -1
- package/dist/cjs/page/page.schema.js +15 -0
- package/dist/cjs/resume/resume.schema.d.ts +4 -4
- package/dist/cjs/skill/skill.schema.d.ts +13 -0
- package/dist/cjs/skill/skill.schema.d.ts.map +1 -1
- package/dist/cjs/skill/skill.schema.js +2 -0
- package/dist/esm/common/common.schema.d.ts +12 -4
- package/dist/esm/common/common.schema.d.ts.map +1 -1
- package/dist/esm/common/common.schema.js +14 -4
- package/dist/esm/common/constants.d.ts +8 -0
- package/dist/esm/common/constants.d.ts.map +1 -1
- package/dist/esm/common/constants.js +9 -0
- package/dist/esm/interfaces.index.d.ts +43 -13
- package/dist/esm/interfaces.index.d.ts.map +1 -1
- package/dist/esm/job/job.schema.d.ts +25 -12
- package/dist/esm/job/job.schema.d.ts.map +1 -1
- package/dist/esm/job/job.schema.js +51 -21
- package/dist/esm/job-application/job-application.schema.d.ts +7 -7
- package/dist/esm/job-role-template/job-role-template.schema.d.ts +7 -3
- package/dist/esm/job-role-template/job-role-template.schema.d.ts.map +1 -1
- package/dist/esm/page/page-location/page-location.schema.d.ts.map +1 -1
- package/dist/esm/page/page-location/page-location.schema.js +1 -0
- package/dist/esm/page/page.constant.d.ts +5 -0
- package/dist/esm/page/page.constant.d.ts.map +1 -1
- package/dist/esm/page/page.constant.js +6 -0
- package/dist/esm/page/page.schema.d.ts +20 -1
- package/dist/esm/page/page.schema.d.ts.map +1 -1
- package/dist/esm/page/page.schema.js +17 -2
- package/dist/esm/resume/resume.schema.d.ts +4 -4
- package/dist/esm/skill/skill.schema.d.ts +13 -0
- package/dist/esm/skill/skill.schema.d.ts.map +1 -1
- package/dist/esm/skill/skill.schema.js +2 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.schema.d.ts","sourceRoot":"","sources":["../../../src/job/job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,
|
|
1
|
+
{"version":3,"file":"job.schema.d.ts","sourceRoot":"","sources":["../../../src/job/job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAW7B,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAE,QAAQ,EAAsB,MAAM,SAAS,CAAC;AAEvD,OAAO,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS;;;;;;;;;cAmDN,MAAM;cACN,MAAM;cACN,QAAQ;eACP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsVR,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC"}
|
|
@@ -4,6 +4,7 @@ exports.JobSchema = void 0;
|
|
|
4
4
|
const common_1 = require("../common");
|
|
5
5
|
const duration_1 = require("../duration");
|
|
6
6
|
const location_1 = require("../location");
|
|
7
|
+
const page_1 = require("../page");
|
|
7
8
|
const yup_extended_1 = require("../yup-extended");
|
|
8
9
|
const job_constant_1 = require("./job.constant");
|
|
9
10
|
const utils_1 = require("./utils");
|
|
@@ -52,7 +53,24 @@ exports.JobSchema = (0, yup_extended_1.object)()
|
|
|
52
53
|
* The value should be an object with name, id, and logo properties.
|
|
53
54
|
*/
|
|
54
55
|
company: (0, yup_extended_1.mixed)()
|
|
55
|
-
.oneOfSchema([
|
|
56
|
+
.oneOfSchema([
|
|
57
|
+
(0, yup_extended_1.object)().shape({
|
|
58
|
+
name: (0, yup_extended_1.string)().required().label("Company Name"),
|
|
59
|
+
slug: (0, yup_extended_1.string)().required().label("Company ID"),
|
|
60
|
+
type: (0, yup_extended_1.string)()
|
|
61
|
+
.oneOf(page_1.SupportedPageTypes)
|
|
62
|
+
.required()
|
|
63
|
+
.label("Company Type"),
|
|
64
|
+
logo: (0, yup_extended_1.object)()
|
|
65
|
+
.shape({
|
|
66
|
+
dark: (0, yup_extended_1.string)().optional().label("Company Dark Logo"),
|
|
67
|
+
light: (0, yup_extended_1.string)().required().label("Company Light Logo"),
|
|
68
|
+
})
|
|
69
|
+
.optional()
|
|
70
|
+
.label("Company Logo"),
|
|
71
|
+
}),
|
|
72
|
+
common_1.OtherValueSchema,
|
|
73
|
+
])
|
|
56
74
|
.required()
|
|
57
75
|
.label("Company"),
|
|
58
76
|
/*
|
|
@@ -96,10 +114,7 @@ exports.JobSchema = (0, yup_extended_1.object)()
|
|
|
96
114
|
* It is optional and can be used to track the users who are interested in the job
|
|
97
115
|
*/
|
|
98
116
|
bookmarks: (0, yup_extended_1.array)()
|
|
99
|
-
.of(
|
|
100
|
-
userId: (0, yup_extended_1.string)().required().label("Use Id"),
|
|
101
|
-
createdAt: (0, yup_extended_1.string)().optional().label("Created At"),
|
|
102
|
-
}))
|
|
117
|
+
.of(common_1.UserIdAndCreatedAtSchema)
|
|
103
118
|
.optional()
|
|
104
119
|
.label("Bookmarks"),
|
|
105
120
|
/*
|
|
@@ -109,10 +124,7 @@ exports.JobSchema = (0, yup_extended_1.object)()
|
|
|
109
124
|
* It is also useful for analytics and reporting purposes.
|
|
110
125
|
*/
|
|
111
126
|
applicants: (0, yup_extended_1.array)()
|
|
112
|
-
.of(
|
|
113
|
-
userId: (0, yup_extended_1.string)().required().label("User Id"),
|
|
114
|
-
appliedOn: (0, yup_extended_1.date)().required().label("Applied On"),
|
|
115
|
-
}))
|
|
127
|
+
.of(common_1.UserIdAndCreatedAtSchema)
|
|
116
128
|
.optional()
|
|
117
129
|
.label("Applicants"),
|
|
118
130
|
/*
|
|
@@ -121,10 +133,7 @@ exports.JobSchema = (0, yup_extended_1.object)()
|
|
|
121
133
|
* It is also useful for analytics and reporting purposes.
|
|
122
134
|
*/
|
|
123
135
|
externalApplicants: (0, yup_extended_1.array)()
|
|
124
|
-
.of(
|
|
125
|
-
userId: (0, yup_extended_1.string)().required().label("User Id"),
|
|
126
|
-
appliedOn: (0, yup_extended_1.date)().required().label("Applied On"),
|
|
127
|
-
}))
|
|
136
|
+
.of(common_1.UserIdAndCreatedAtSchema)
|
|
128
137
|
.optional()
|
|
129
138
|
.label("External Applicants"),
|
|
130
139
|
/*
|
|
@@ -137,7 +146,7 @@ exports.JobSchema = (0, yup_extended_1.object)()
|
|
|
137
146
|
* This field is required and can be used to specify the job description.
|
|
138
147
|
* It is useful for providing detailed information about the job responsibilities, requirements, and other relevant details.
|
|
139
148
|
*/
|
|
140
|
-
descriptionMarkdown: (0, yup_extended_1.string)().
|
|
149
|
+
descriptionMarkdown: (0, yup_extended_1.string)().required().label("Description Markdown"),
|
|
141
150
|
/*
|
|
142
151
|
* This field is require and should be used to store generated HTML string after parsing Markdown description.
|
|
143
152
|
* The value should be a string in HTML format.
|
|
@@ -150,7 +159,7 @@ exports.JobSchema = (0, yup_extended_1.object)()
|
|
|
150
159
|
* For example, you can use libraries like `marked`, `markdown-it`, or `showdown` to convert Markdown to HTML.
|
|
151
160
|
* Ensure that the HTML is sanitized to prevent XSS attacks and other security vulnerabilities.
|
|
152
161
|
*/
|
|
153
|
-
descriptionHTML: (0, yup_extended_1.string)().required().label("Description
|
|
162
|
+
descriptionHTML: (0, yup_extended_1.string)().required().label("Description HTML"),
|
|
154
163
|
/*
|
|
155
164
|
* Location section
|
|
156
165
|
* This section is required and can be used to specify the location of the job.
|
|
@@ -314,13 +323,34 @@ exports.JobSchema = (0, yup_extended_1.object)()
|
|
|
314
323
|
currency: (0, yup_extended_1.string)().required().label("Currency").default("USD"), // Default to USD if not provided
|
|
315
324
|
min: (0, yup_extended_1.number)().optional().min(0).label("Minimum Salary"),
|
|
316
325
|
max: (0, yup_extended_1.number)().optional().min(0).label("Maximum Salary"),
|
|
326
|
+
compensationType: (0, yup_extended_1.string)()
|
|
327
|
+
.oneOf(common_1.SupportedCompensationTypes)
|
|
328
|
+
.required()
|
|
329
|
+
.label("Compensation Type"),
|
|
330
|
+
isNegotiable: (0, yup_extended_1.boolean)()
|
|
331
|
+
.optional()
|
|
332
|
+
.default(false)
|
|
333
|
+
.label("Is Negotiable"),
|
|
317
334
|
})
|
|
318
335
|
.optional()
|
|
319
336
|
.label("Salary Range"),
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
337
|
+
/*
|
|
338
|
+
* This field will store the information about users who have reported the job post.
|
|
339
|
+
* It is optional and can be used to track the users who have reported the job for any reason.
|
|
340
|
+
* It includes the user ID and the date when the report was made.
|
|
341
|
+
* It is also useful for analytics and reporting purposes.
|
|
342
|
+
*/
|
|
343
|
+
reports: (0, yup_extended_1.array)().of(common_1.UserIdAndCreatedAtSchema).optional().label("Reports"),
|
|
344
|
+
/*
|
|
345
|
+
* Indicates if the user has accepted the terms and conditions for posting a job.
|
|
346
|
+
* This is required and should be a boolean value.
|
|
347
|
+
* It is used to ensure that the user agrees to the terms before proceeding with the job post.
|
|
348
|
+
*/
|
|
349
|
+
termsAccepted: (0, yup_extended_1.boolean)()
|
|
350
|
+
.oneOf([true], "Accept terms before proceeding")
|
|
351
|
+
.required("Accept terms before proceeding")
|
|
352
|
+
.required()
|
|
353
|
+
.label("Terms accepted"),
|
|
324
354
|
})
|
|
325
355
|
.concat(common_1.DbDefaultSchema)
|
|
326
356
|
.noUnknown()
|
|
@@ -161,7 +161,7 @@ export declare const JobApplicationSchema: ObjectSchema<{
|
|
|
161
161
|
status: NonNullable<JobApplicationStatus | undefined>;
|
|
162
162
|
}[];
|
|
163
163
|
} & {
|
|
164
|
-
|
|
164
|
+
_id: string;
|
|
165
165
|
shortId: string;
|
|
166
166
|
createdBy: string;
|
|
167
167
|
createdAt: string;
|
|
@@ -190,22 +190,22 @@ export declare const JobApplicationSchema: ObjectSchema<{
|
|
|
190
190
|
status: import("../resume").ResumeStatus.Draft;
|
|
191
191
|
markdown: undefined;
|
|
192
192
|
markdownStyling: import("../resume").ResumeMarkdownStyle.Classic;
|
|
193
|
-
|
|
193
|
+
_id: undefined;
|
|
194
194
|
shortId: undefined;
|
|
195
195
|
createdBy: undefined;
|
|
196
|
-
createdAt:
|
|
196
|
+
createdAt: string;
|
|
197
197
|
updatedBy: undefined;
|
|
198
|
-
updatedAt:
|
|
198
|
+
updatedAt: string;
|
|
199
199
|
};
|
|
200
200
|
status: JobApplicationStatus.Open;
|
|
201
201
|
questionnaire: "";
|
|
202
202
|
history: never[];
|
|
203
|
-
|
|
203
|
+
_id: undefined;
|
|
204
204
|
shortId: undefined;
|
|
205
205
|
createdBy: undefined;
|
|
206
|
-
createdAt:
|
|
206
|
+
createdAt: string;
|
|
207
207
|
updatedBy: undefined;
|
|
208
|
-
updatedAt:
|
|
208
|
+
updatedAt: string;
|
|
209
209
|
}, "">;
|
|
210
210
|
export type TJobApplicationSchema = InferType<typeof JobApplicationSchema>;
|
|
211
211
|
//# sourceMappingURL=job-application.schema.d.ts.map
|
|
@@ -87,13 +87,17 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
|
|
|
87
87
|
currency: "USD";
|
|
88
88
|
min: undefined;
|
|
89
89
|
max: undefined;
|
|
90
|
+
compensationType: undefined;
|
|
91
|
+
isNegotiable: false;
|
|
90
92
|
};
|
|
91
|
-
|
|
93
|
+
reports: "";
|
|
94
|
+
termsAccepted: undefined;
|
|
95
|
+
_id: undefined;
|
|
92
96
|
shortId: undefined;
|
|
93
97
|
createdBy: undefined;
|
|
94
|
-
createdAt:
|
|
98
|
+
createdAt: string;
|
|
95
99
|
updatedBy: undefined;
|
|
96
|
-
updatedAt:
|
|
100
|
+
updatedAt: string;
|
|
97
101
|
}, "">;
|
|
98
102
|
export type TJobRoleTemplateSchema = InferType<typeof JobRoleTemplateSchema>;
|
|
99
103
|
//# sourceMappingURL=job-role-template.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-role-template.schema.d.ts","sourceRoot":"","sources":["../../../src/job-role-template/job-role-template.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"job-role-template.schema.d.ts","sourceRoot":"","sources":["../../../src/job-role-template/job-role-template.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQhC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-location.schema.d.ts","sourceRoot":"","sources":["../../../../src/page/page-location/page-location.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,SAAS,EAAW,MAAM,oBAAoB,CAAC;AAExE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"page-location.schema.d.ts","sourceRoot":"","sources":["../../../../src/page/page-location/page-location.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,SAAS,EAAW,MAAM,oBAAoB,CAAC;AAExE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;MAgBD,CAAC;AAE/B,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -10,6 +10,7 @@ exports.PageLocationSchema = (0, yup_extended_1.object)()
|
|
|
10
10
|
.label("Is Headquarters"),
|
|
11
11
|
coverImage: (0, yup_extended_1.string)().optional().label("Cover Image"),
|
|
12
12
|
name: (0, yup_extended_1.string)().required().label("Office Name"),
|
|
13
|
+
/* TODO: Add Location Schema to enable geo spacial search*/
|
|
13
14
|
// location: LocationSchema,
|
|
14
15
|
contact: (0, yup_extended_1.object)().shape({
|
|
15
16
|
email: (0, yup_extended_1.string)().email().optional().label("Email"),
|
|
@@ -5,4 +5,9 @@ export declare enum PageType {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const SupportedPageTypes: PageType[];
|
|
7
7
|
export declare const GeneraDetailFields: Array<keyof TPageSchema>;
|
|
8
|
+
export declare enum ContactTypes {
|
|
9
|
+
Email = "email",
|
|
10
|
+
Phone = "phone"
|
|
11
|
+
}
|
|
12
|
+
export declare const SupportedContactTypes: ContactTypes[];
|
|
8
13
|
//# sourceMappingURL=page.constant.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.constant.d.ts","sourceRoot":"","sources":["../../../src/page/page.constant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,oBAAY,QAAQ;IAClB,SAAS,cAAc;IACvB,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,kBAAkB,YAA0B,CAAC;AAE1D,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,MAAM,WAAW,CAQvD,CAAC"}
|
|
1
|
+
{"version":3,"file":"page.constant.d.ts","sourceRoot":"","sources":["../../../src/page/page.constant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,oBAAY,QAAQ;IAClB,SAAS,cAAc;IACvB,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,kBAAkB,YAA0B,CAAC;AAE1D,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,MAAM,WAAW,CAQvD,CAAC;AAEF,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,eAAO,MAAM,qBAAqB,gBAA8B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GeneraDetailFields = exports.SupportedPageTypes = exports.PageType = void 0;
|
|
3
|
+
exports.SupportedContactTypes = exports.ContactTypes = exports.GeneraDetailFields = exports.SupportedPageTypes = exports.PageType = void 0;
|
|
4
4
|
var PageType;
|
|
5
5
|
(function (PageType) {
|
|
6
6
|
PageType["Institute"] = "institute";
|
|
@@ -16,3 +16,9 @@ exports.GeneraDetailFields = [
|
|
|
16
16
|
"yearFounded",
|
|
17
17
|
"employeeCount",
|
|
18
18
|
];
|
|
19
|
+
var ContactTypes;
|
|
20
|
+
(function (ContactTypes) {
|
|
21
|
+
ContactTypes["Email"] = "email";
|
|
22
|
+
ContactTypes["Phone"] = "phone";
|
|
23
|
+
})(ContactTypes || (exports.ContactTypes = ContactTypes = {}));
|
|
24
|
+
exports.SupportedContactTypes = Object.values(ContactTypes);
|
|
@@ -20,6 +20,13 @@ export declare const PageSchema: import("yup").ObjectSchema<NonNullable<{
|
|
|
20
20
|
address: string;
|
|
21
21
|
};
|
|
22
22
|
}[] | undefined;
|
|
23
|
+
contacts: {
|
|
24
|
+
label?: string | undefined;
|
|
25
|
+
type: NonNullable<import("./page.constant").ContactTypes | undefined>;
|
|
26
|
+
value: string;
|
|
27
|
+
isPrimary: boolean;
|
|
28
|
+
isVerified: boolean;
|
|
29
|
+
}[] | undefined;
|
|
23
30
|
verified: Date | undefined;
|
|
24
31
|
logo: {
|
|
25
32
|
dark?: string | undefined;
|
|
@@ -36,7 +43,6 @@ export declare const PageSchema: import("yup").ObjectSchema<NonNullable<{
|
|
|
36
43
|
isNew: boolean;
|
|
37
44
|
}[] | undefined;
|
|
38
45
|
isOwner: boolean | undefined;
|
|
39
|
-
} & {
|
|
40
46
|
equalOpportunityEmployer: boolean | undefined;
|
|
41
47
|
perksAndBenefits: {
|
|
42
48
|
category?: {
|
|
@@ -47,6 +53,13 @@ export declare const PageSchema: import("yup").ObjectSchema<NonNullable<{
|
|
|
47
53
|
name: string;
|
|
48
54
|
description: string;
|
|
49
55
|
}[] | undefined;
|
|
56
|
+
} & {
|
|
57
|
+
_id: string;
|
|
58
|
+
shortId: string;
|
|
59
|
+
createdBy: string;
|
|
60
|
+
createdAt: string;
|
|
61
|
+
updatedBy: string | undefined;
|
|
62
|
+
updatedAt: string | undefined;
|
|
50
63
|
}>, import("yup").AnyObject, {
|
|
51
64
|
id: undefined;
|
|
52
65
|
shortId: undefined;
|
|
@@ -59,6 +72,7 @@ export declare const PageSchema: import("yup").ObjectSchema<NonNullable<{
|
|
|
59
72
|
yearFounded: undefined;
|
|
60
73
|
type: undefined;
|
|
61
74
|
locations: "";
|
|
75
|
+
contacts: "";
|
|
62
76
|
verified: undefined;
|
|
63
77
|
logo: null;
|
|
64
78
|
categories: "";
|
|
@@ -66,6 +80,11 @@ export declare const PageSchema: import("yup").ObjectSchema<NonNullable<{
|
|
|
66
80
|
isOwner: undefined;
|
|
67
81
|
equalOpportunityEmployer: undefined;
|
|
68
82
|
perksAndBenefits: "";
|
|
83
|
+
_id: undefined;
|
|
84
|
+
createdBy: undefined;
|
|
85
|
+
createdAt: string;
|
|
86
|
+
updatedBy: undefined;
|
|
87
|
+
updatedAt: string;
|
|
69
88
|
}, "">;
|
|
70
89
|
export type TPageSchema = InferType<typeof PageSchema>;
|
|
71
90
|
//# sourceMappingURL=page.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.schema.d.ts","sourceRoot":"","sources":["../../../src/page/page.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,SAAS,EAGV,MAAM,iBAAiB,CAAC;AAKzB,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"page.schema.d.ts","sourceRoot":"","sources":["../../../src/page/page.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,SAAS,EAGV,MAAM,iBAAiB,CAAC;AAKzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuEA,CAAC;AAExB,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -20,6 +20,20 @@ exports.PageSchema = (0, yup_extended_1.object)()
|
|
|
20
20
|
yearFounded: (0, yup_extended_1.string)().optional().label("Year Founded"),
|
|
21
21
|
type: (0, yup_extended_1.string)().oneOf(page_constant_1.SupportedPageTypes).required().label("Page Type"),
|
|
22
22
|
locations: (0, yup_extended_1.array)().of(page_location_1.PageLocationSchema).optional().label("Locations"),
|
|
23
|
+
/*
|
|
24
|
+
* @deprecated
|
|
25
|
+
* 'locations' prop already has contact information, so this can be removed
|
|
26
|
+
*/
|
|
27
|
+
contacts: (0, yup_extended_1.array)()
|
|
28
|
+
.of((0, yup_extended_1.object)().shape({
|
|
29
|
+
type: (0, yup_extended_1.string)().oneOf(page_constant_1.SupportedContactTypes).required().label("Type"),
|
|
30
|
+
value: (0, yup_extended_1.string)().required().label("Value"),
|
|
31
|
+
label: (0, yup_extended_1.string)().optional().label("Label"),
|
|
32
|
+
isPrimary: (0, yup_extended_1.boolean)().optional().default(false).label("Is Primary"),
|
|
33
|
+
isVerified: (0, yup_extended_1.boolean)().optional().default(false).label("Is Verified"),
|
|
34
|
+
}))
|
|
35
|
+
.optional()
|
|
36
|
+
.label("Contacts"),
|
|
23
37
|
verified: (0, yup_extended_1.date)().optional().label("Verified"),
|
|
24
38
|
// logoFile: object()
|
|
25
39
|
// .shape({
|
|
@@ -57,6 +71,7 @@ exports.PageSchema = (0, yup_extended_1.object)()
|
|
|
57
71
|
isOwner: (0, yup_extended_1.boolean)().optional().label("Is Owner"),
|
|
58
72
|
})
|
|
59
73
|
.concat(company_1.CompanySchema)
|
|
74
|
+
.concat(common_1.DbDefaultSchema)
|
|
60
75
|
.noUnknown(true)
|
|
61
76
|
.strict(true)
|
|
62
77
|
.required()
|
|
@@ -242,7 +242,7 @@ export declare const ResumeSchema: import("yup").ObjectSchema<{
|
|
|
242
242
|
markdown: string;
|
|
243
243
|
markdownStyling: ResumeMarkdownStyle;
|
|
244
244
|
} & {
|
|
245
|
-
|
|
245
|
+
_id: string;
|
|
246
246
|
shortId: string;
|
|
247
247
|
createdBy: string;
|
|
248
248
|
createdAt: string;
|
|
@@ -255,12 +255,12 @@ export declare const ResumeSchema: import("yup").ObjectSchema<{
|
|
|
255
255
|
status: ResumeStatus.Draft;
|
|
256
256
|
markdown: undefined;
|
|
257
257
|
markdownStyling: ResumeMarkdownStyle.Classic;
|
|
258
|
-
|
|
258
|
+
_id: undefined;
|
|
259
259
|
shortId: undefined;
|
|
260
260
|
createdBy: undefined;
|
|
261
|
-
createdAt:
|
|
261
|
+
createdAt: string;
|
|
262
262
|
updatedBy: undefined;
|
|
263
|
-
updatedAt:
|
|
263
|
+
updatedAt: string;
|
|
264
264
|
}, "">;
|
|
265
265
|
export type TResumeSchema = InferType<typeof ResumeSchema>;
|
|
266
266
|
export declare const NewResumePromptSchema: (host?: string) => import("yup").ObjectSchema<{
|
|
@@ -3,10 +3,23 @@ export declare const SkillSchema: import("yup").ObjectSchema<{
|
|
|
3
3
|
name: string;
|
|
4
4
|
logo: string | undefined;
|
|
5
5
|
tags: (string | undefined)[] | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
_id: string;
|
|
8
|
+
shortId: string;
|
|
9
|
+
createdBy: string;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
updatedBy: string | undefined;
|
|
12
|
+
updatedAt: string | undefined;
|
|
6
13
|
}, import("yup").AnyObject, {
|
|
7
14
|
name: undefined;
|
|
8
15
|
logo: undefined;
|
|
9
16
|
tags: "";
|
|
17
|
+
_id: undefined;
|
|
18
|
+
shortId: undefined;
|
|
19
|
+
createdBy: undefined;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedBy: undefined;
|
|
22
|
+
updatedAt: string;
|
|
10
23
|
}, "">;
|
|
11
24
|
export type TSkillSchema = InferType<typeof SkillSchema>;
|
|
12
25
|
//# sourceMappingURL=skill.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.schema.d.ts","sourceRoot":"","sources":["../../../src/skill/skill.schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skill.schema.d.ts","sourceRoot":"","sources":["../../../src/skill/skill.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAS,SAAS,EAAkB,MAAM,iBAAiB,CAAC;AAEnE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;MASP,CAAC;AAElB,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SkillSchema = void 0;
|
|
4
|
+
const common_1 = require("../common");
|
|
4
5
|
const yup_extended_1 = require("../yup-extended");
|
|
5
6
|
exports.SkillSchema = (0, yup_extended_1.object)()
|
|
6
7
|
.shape({
|
|
@@ -8,6 +9,7 @@ exports.SkillSchema = (0, yup_extended_1.object)()
|
|
|
8
9
|
logo: (0, yup_extended_1.string)().trim().optional().label("Logo"),
|
|
9
10
|
tags: (0, yup_extended_1.array)().of((0, yup_extended_1.string)().max(50)).max(20).optional().label("Tags"),
|
|
10
11
|
})
|
|
12
|
+
.concat(common_1.DbDefaultSchema)
|
|
11
13
|
.noUnknown()
|
|
12
14
|
.strict()
|
|
13
15
|
.label("Skill");
|
|
@@ -24,19 +24,19 @@ export declare const TermsAndConditionSchema: import("yup").ObjectSchema<{
|
|
|
24
24
|
}, "">;
|
|
25
25
|
export type TTermsAndConditionSchema = InferType<typeof TermsAndConditionSchema>;
|
|
26
26
|
export declare const DbDefaultSchema: import("yup").ObjectSchema<{
|
|
27
|
-
|
|
27
|
+
_id: string;
|
|
28
28
|
shortId: string;
|
|
29
29
|
createdBy: string;
|
|
30
30
|
createdAt: string;
|
|
31
31
|
updatedBy: string | undefined;
|
|
32
32
|
updatedAt: string | undefined;
|
|
33
33
|
}, import("yup").AnyObject, {
|
|
34
|
-
|
|
34
|
+
_id: undefined;
|
|
35
35
|
shortId: undefined;
|
|
36
36
|
createdBy: undefined;
|
|
37
|
-
createdAt:
|
|
37
|
+
createdAt: string;
|
|
38
38
|
updatedBy: undefined;
|
|
39
|
-
updatedAt:
|
|
39
|
+
updatedAt: string;
|
|
40
40
|
}, "">;
|
|
41
41
|
export type TDBDefaultSchema = InferType<typeof DbDefaultSchema>;
|
|
42
42
|
export declare const CompletenessScoreSchema: (minScore?: number) => import("yup").ObjectSchema<{
|
|
@@ -49,4 +49,12 @@ export declare const CompletenessScoreSchema: (minScore?: number) => import("yup
|
|
|
49
49
|
completedSteps: 0;
|
|
50
50
|
}, "">;
|
|
51
51
|
export type TCompletenessScoreSchema = InferType<ReturnType<typeof CompletenessScoreSchema>>;
|
|
52
|
+
export declare const UserIdAndCreatedAtSchema: import("yup").ObjectSchema<{
|
|
53
|
+
userId: string;
|
|
54
|
+
createdAt: string;
|
|
55
|
+
}, import("yup").AnyObject, {
|
|
56
|
+
userId: undefined;
|
|
57
|
+
createdAt: undefined;
|
|
58
|
+
}, "">;
|
|
59
|
+
export type TUserIdAndCreatedAtSchema = InferType<typeof UserIdAndCreatedAtSchema>;
|
|
52
60
|
//# sourceMappingURL=common.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.schema.d.ts","sourceRoot":"","sources":["../../../src/common/common.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"common.schema.d.ts","sourceRoot":"","sources":["../../../src/common/common.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAQV,MAAM,iBAAiB,CAAC;AAEzB,eAAO,MAAM,gBAAgB;;;;;;;;MAOlB,CAAC;AACZ,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,eAAO,MAAM,gBAAgB;;;;;;MAwBlB,CAAC;AACZ,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,eAAO,MAAM,uBAAuB;;;;MAIlC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAC9C,OAAO,uBAAuB,CAC/B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;MAiBjB,CAAC;AAEZ,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,OAAO,eAAe,CAAC,CAAC;AAEjE,eAAO,MAAM,uBAAuB,GAAI,WAAU,MAAW;;;;;;;;MAKzD,CAAC;AAEL,MAAM,MAAM,wBAAwB,GAAG,SAAS,CAC9C,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAC3C,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;MAGnC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAC/C,OAAO,wBAAwB,CAChC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { object, string, array, boolean, lazy, number, } from "../yup-extended";
|
|
1
|
+
import { object, string, array, boolean, lazy, number, dateString, } from "../yup-extended";
|
|
2
2
|
export const NameIdLogoSchema = object()
|
|
3
3
|
.shape({
|
|
4
4
|
id: string().objectId().required().label("Id"),
|
|
@@ -35,12 +35,18 @@ export const TermsAndConditionSchema = object().shape({
|
|
|
35
35
|
});
|
|
36
36
|
export const DbDefaultSchema = object()
|
|
37
37
|
.shape({
|
|
38
|
-
|
|
38
|
+
_id: string().objectId().required().label("Id"),
|
|
39
39
|
shortId: string().required().max(12).label("Short ID"),
|
|
40
40
|
createdBy: string().required().label("Created By"),
|
|
41
|
-
createdAt:
|
|
41
|
+
createdAt: dateString()
|
|
42
|
+
.required()
|
|
43
|
+
.typeError(`Create date must be a valid date`)
|
|
44
|
+
.label("Created At"),
|
|
42
45
|
updatedBy: string().label("Updated By"),
|
|
43
|
-
updatedAt:
|
|
46
|
+
updatedAt: dateString()
|
|
47
|
+
.optional()
|
|
48
|
+
.typeError(`Update date must be a valid date`)
|
|
49
|
+
.label("Updated At"),
|
|
44
50
|
})
|
|
45
51
|
.label("Db Default Schema")
|
|
46
52
|
.noUnknown()
|
|
@@ -50,3 +56,7 @@ export const CompletenessScoreSchema = (minScore = 50) => object().shape({
|
|
|
50
56
|
totalSteps: number().min(0).default(0).label("Total Steps"),
|
|
51
57
|
completedSteps: number().min(0).default(0).label("Completed Steps"),
|
|
52
58
|
});
|
|
59
|
+
export const UserIdAndCreatedAtSchema = object().shape({
|
|
60
|
+
userId: string().objectId().required().label("User Id"),
|
|
61
|
+
createdAt: string().required().label("Created At"),
|
|
62
|
+
});
|
|
@@ -185,4 +185,12 @@ export declare enum UserStatus {
|
|
|
185
185
|
}
|
|
186
186
|
export declare const SupportedUserStatuses: UserStatus[];
|
|
187
187
|
export declare const DefaultUserRoles: UserRole[];
|
|
188
|
+
export declare enum CompensationType {
|
|
189
|
+
Hourly = "hourly",
|
|
190
|
+
Monthly = "monthly",
|
|
191
|
+
Yearly = "yearly",
|
|
192
|
+
OneTime = "one-time",
|
|
193
|
+
Other = "other"
|
|
194
|
+
}
|
|
195
|
+
export declare const SupportedCompensationTypes: CompensationType[];
|
|
188
196
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/common/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,QAAQ,cAAc;IACtB,QAAQ,cAAc;IACtB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;CAChB;AAED,eAAO,MAAM,mBAAmB,aAM/B,CAAC;AAEF,eAAO,MAAM,WAAW,gBAAgB,CAAC;AACzC,eAAO,MAAM,gBAAgB,eAAe,CAAC;AAC7C,eAAO,MAAM,iBAAiB,OAAO,CAAC;AAEtC,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,GAAG,QAAQ;CACZ;AAED,oBAAY,QAAQ;IAClB,GAAG,oBAAoB;IACvB,qBAAqB,sCAAsC;IAC3D,mBAAmB,wBAAwB;IAC3C,IAAI,eAAe;IACnB,GAAG,cAAc;IACjB,GAAG,cAAc;IACjB,IAAI,eAAe;IACnB,GAAG,cAAc;IACjB,GAAG,oBAAoB;IACvB,IAAI,qBAAqB;IACzB,GAAG,uBAAuB;IAC1B,IAAI,4EAA4E;IAChF,IAAI,4EAA4E;IAChF,GAAG,aAAa;CACjB;AAED,oBAAY,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,eAAe;IACzB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,QAAQ,cAAc;IACtB,SAAS,eAAe;IACxB,GAAG,QAAQ;CACZ;AAED,eAAO,MAAM,yBAAyB,mBAAiC,CAAC;AAExE,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,kBAAkB,YAA0B,CAAC;AAE1D,oBAAY,UAAU;IACpB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,qBAAqB,cAA4B,CAAC;AAE/D,eAAO,MAAM,gBAAgB,YAAoB,CAAC;AAElD,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,aAAa;IACpB,KAAK,UAAU;CAChB;AAED,eAAO,MAAM,0BAA0B,oBAAkC,CAAC"}
|
|
@@ -256,3 +256,12 @@ export var UserStatus;
|
|
|
256
256
|
})(UserStatus || (UserStatus = {}));
|
|
257
257
|
export const SupportedUserStatuses = Object.values(UserStatus);
|
|
258
258
|
export const DefaultUserRoles = [UserRole.Normal];
|
|
259
|
+
export var CompensationType;
|
|
260
|
+
(function (CompensationType) {
|
|
261
|
+
CompensationType["Hourly"] = "hourly";
|
|
262
|
+
CompensationType["Monthly"] = "monthly";
|
|
263
|
+
CompensationType["Yearly"] = "yearly";
|
|
264
|
+
CompensationType["OneTime"] = "one-time";
|
|
265
|
+
CompensationType["Other"] = "other";
|
|
266
|
+
})(CompensationType || (CompensationType = {}));
|
|
267
|
+
export const SupportedCompensationTypes = Object.values(CompensationType);
|