@thejob/schema 1.0.23 → 1.0.25

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.
@@ -115,21 +115,21 @@ export const JobSchema = object()
115
115
  * This is optional and can be used to track the number of applicants.
116
116
  */
117
117
  applicantCount: number().optional().label("Applicant count"),
118
- /*
119
- * This field is optional and can be used to track the users who have applied for the job through an external website.
120
- * It includes the user ID and the date when the application was made.
121
- * It is also useful for analytics and reporting purposes.
122
- */
123
- externalApplicants: array()
124
- .of(UserIdAndCreatedAtSchema)
125
- .optional()
126
- .label("External Applicants"),
127
- /**
128
- * Number of external applicants for the job.
129
- */
130
- externalApplicantCount: number()
131
- .optional()
132
- .label("External applicant count"),
118
+ // /*
119
+ // * This field is optional and can be used to track the users who have applied for the job through an external website.
120
+ // * It includes the user ID and the date when the application was made.
121
+ // * It is also useful for analytics and reporting purposes.
122
+ // */
123
+ // externalApplicants: array()
124
+ // .of(UserIdAndCreatedAtSchema)
125
+ // .optional()
126
+ // .label("External Applicants"),
127
+ // /**
128
+ // * Number of external applicants for the job.
129
+ // */
130
+ // externalApplicantCount: number()
131
+ // .optional()
132
+ // .label("External applicant count"),
133
133
  externalApplicationLinkClickCount: number()
134
134
  .optional()
135
135
  .label("External application link click count"),
@@ -306,6 +306,33 @@ export declare const JobApplicationSchema: ObjectSchema<{
306
306
  status: import("../resume").ResumeStatus.Draft;
307
307
  markdown: undefined;
308
308
  markdownStyling: import("../resume").ResumeMarkdownStyle.Classic;
309
+ user: {
310
+ socialAccounts: never[];
311
+ workExperiences: never[];
312
+ educations: never[];
313
+ skills: never[];
314
+ projects: never[];
315
+ certifications: never[];
316
+ interests: never[];
317
+ languages: never[];
318
+ additionalInfo: never[];
319
+ status: undefined;
320
+ roles: import("../common").UserRole[];
321
+ id: undefined;
322
+ name: {
323
+ first: undefined;
324
+ last: undefined;
325
+ };
326
+ headline: undefined;
327
+ image: undefined;
328
+ aboutMe: undefined;
329
+ email: undefined;
330
+ mobile: undefined;
331
+ emailVerified: undefined;
332
+ experienceLevel: undefined;
333
+ location: any;
334
+ };
335
+ isOwner: undefined;
309
336
  id: undefined;
310
337
  shortId: undefined;
311
338
  createdBy: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"job-application.schema.d.ts","sourceRoot":"","sources":["../../../src/job-application/job-application.schema.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAmB,MAAM,aAAa,CAAC;AAQ9E,OAAO,EAIL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,oBAAoB,EAGrB,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgHN,CAAC;AAE5B,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"job-application.schema.d.ts","sourceRoot":"","sources":["../../../src/job-application/job-application.schema.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAmB,MAAM,aAAa,CAAC;AAQ9E,OAAO,EAIL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,oBAAoB,EAGrB,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgHN,CAAC;AAE5B,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -55,8 +55,6 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
55
55
  bookmarks: "";
56
56
  applicants: "";
57
57
  applicantCount: undefined;
58
- externalApplicants: "";
59
- externalApplicantCount: undefined;
60
58
  externalApplicationLinkClickCount: undefined;
61
59
  description: undefined;
62
60
  descriptionMarkdown: undefined;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQhC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
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"}
@@ -241,6 +241,13 @@ export declare const ResumeSchema: import("yup").ObjectSchema<{
241
241
  status: ResumeStatus;
242
242
  markdown: string;
243
243
  markdownStyling: ResumeMarkdownStyle;
244
+ user: {
245
+ name: {
246
+ last?: string | undefined;
247
+ first: string;
248
+ };
249
+ } | undefined;
250
+ isOwner: boolean | undefined;
244
251
  } & {
245
252
  id: string;
246
253
  shortId: string;
@@ -255,6 +262,33 @@ export declare const ResumeSchema: import("yup").ObjectSchema<{
255
262
  status: ResumeStatus.Draft;
256
263
  markdown: undefined;
257
264
  markdownStyling: ResumeMarkdownStyle.Classic;
265
+ user: {
266
+ socialAccounts: never[];
267
+ workExperiences: never[];
268
+ educations: never[];
269
+ skills: never[];
270
+ projects: never[];
271
+ certifications: never[];
272
+ interests: never[];
273
+ languages: never[];
274
+ additionalInfo: never[];
275
+ status: undefined;
276
+ roles: import("../common").UserRole[];
277
+ id: undefined;
278
+ name: {
279
+ first: undefined;
280
+ last: undefined;
281
+ };
282
+ headline: undefined;
283
+ image: undefined;
284
+ aboutMe: undefined;
285
+ email: undefined;
286
+ mobile: undefined;
287
+ emailVerified: undefined;
288
+ experienceLevel: undefined;
289
+ location: any;
290
+ };
291
+ isOwner: undefined;
258
292
  id: undefined;
259
293
  shortId: undefined;
260
294
  createdBy: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"resume.schema.d.ts","sourceRoot":"","sources":["../../../src/resume/resume.schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAc,MAAM,SAAS,CAAC;AAClD,OAAO,EAGL,SAAS,EAKV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAA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,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -214,6 +214,8 @@ export const ResumeSchema = object()
214
214
  .oneOf(SupportedResumeMarkdownStyles)
215
215
  .default(ResumeMarkdownStyle.Classic)
216
216
  .label("Markdown Styling"),
217
+ user: UserSchema.pick(["name"]).optional().label("User Info"),
218
+ isOwner: boolean().optional().label("Is Owner"),
217
219
  // TODO: Use a more specific schema for sections array as product matures,
218
220
  // right now it's difficult to do that because LLMs not able to generate JSON schema consistently.
219
221
  // sections: array()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thejob/schema",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",