@thejob/schema 1.0.61 → 1.0.63

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.
Files changed (51) hide show
  1. package/dist/cjs/interfaces.index.d.ts +189 -724
  2. package/dist/cjs/interfaces.index.d.ts.map +1 -1
  3. package/dist/cjs/job-application/job-application.schema.d.ts +17 -82
  4. package/dist/cjs/job-application/job-application.schema.d.ts.map +1 -1
  5. package/dist/cjs/page/page.schema.d.ts.map +1 -1
  6. package/dist/cjs/page/page.schema.js +0 -15
  7. package/dist/cjs/resume/resume.schema.d.ts +46 -182
  8. package/dist/cjs/resume/resume.schema.d.ts.map +1 -1
  9. package/dist/cjs/user/education/education.schema.d.ts +44 -82
  10. package/dist/cjs/user/education/education.schema.d.ts.map +1 -1
  11. package/dist/cjs/user/education/education.schema.js +40 -12
  12. package/dist/cjs/user/update-education.schema.d.ts +12 -79
  13. package/dist/cjs/user/update-education.schema.d.ts.map +1 -1
  14. package/dist/cjs/user/update-skill.schema.d.ts +6 -9
  15. package/dist/cjs/user/update-skill.schema.d.ts.map +1 -1
  16. package/dist/cjs/user/update-work-experience.schema.d.ts +5 -3
  17. package/dist/cjs/user/update-work-experience.schema.d.ts.map +1 -1
  18. package/dist/cjs/user/user-skill/user-skill.schema.d.ts +8 -10
  19. package/dist/cjs/user/user-skill/user-skill.schema.d.ts.map +1 -1
  20. package/dist/cjs/user/user-skill/user-skill.schema.js +12 -17
  21. package/dist/cjs/user/user.schema.d.ts +23 -91
  22. package/dist/cjs/user/user.schema.d.ts.map +1 -1
  23. package/dist/cjs/user/work-experience/work-experience.schema.d.ts +8 -4
  24. package/dist/cjs/user/work-experience/work-experience.schema.d.ts.map +1 -1
  25. package/dist/cjs/user/work-experience/work-experience.schema.js +9 -4
  26. package/dist/esm/interfaces.index.d.ts +189 -724
  27. package/dist/esm/interfaces.index.d.ts.map +1 -1
  28. package/dist/esm/job-application/job-application.schema.d.ts +17 -82
  29. package/dist/esm/job-application/job-application.schema.d.ts.map +1 -1
  30. package/dist/esm/page/page.schema.d.ts.map +1 -1
  31. package/dist/esm/page/page.schema.js +0 -15
  32. package/dist/esm/resume/resume.schema.d.ts +46 -182
  33. package/dist/esm/resume/resume.schema.d.ts.map +1 -1
  34. package/dist/esm/user/education/education.schema.d.ts +44 -82
  35. package/dist/esm/user/education/education.schema.d.ts.map +1 -1
  36. package/dist/esm/user/education/education.schema.js +42 -14
  37. package/dist/esm/user/update-education.schema.d.ts +12 -79
  38. package/dist/esm/user/update-education.schema.d.ts.map +1 -1
  39. package/dist/esm/user/update-skill.schema.d.ts +6 -9
  40. package/dist/esm/user/update-skill.schema.d.ts.map +1 -1
  41. package/dist/esm/user/update-work-experience.schema.d.ts +5 -3
  42. package/dist/esm/user/update-work-experience.schema.d.ts.map +1 -1
  43. package/dist/esm/user/user-skill/user-skill.schema.d.ts +8 -10
  44. package/dist/esm/user/user-skill/user-skill.schema.d.ts.map +1 -1
  45. package/dist/esm/user/user-skill/user-skill.schema.js +14 -16
  46. package/dist/esm/user/user.schema.d.ts +23 -91
  47. package/dist/esm/user/user.schema.d.ts.map +1 -1
  48. package/dist/esm/user/work-experience/work-experience.schema.d.ts +8 -4
  49. package/dist/esm/user/work-experience/work-experience.schema.d.ts.map +1 -1
  50. package/dist/esm/user/work-experience/work-experience.schema.js +9 -4
  51. package/package.json +1 -1
@@ -115,12 +115,12 @@ export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
115
115
  } | {
116
116
  description?: string | undefined;
117
117
  company: {
118
- type?: NonNullable<import("..").PageType | undefined> | undefined;
119
118
  logo?: {
120
119
  dark?: string | null | undefined;
121
- light: string;
120
+ light?: string | undefined;
122
121
  } | null | undefined;
123
122
  slug?: string | undefined;
123
+ type: import("..").PageType;
124
124
  name: string;
125
125
  };
126
126
  duration: {
@@ -140,92 +140,27 @@ export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
140
140
  coordinates: number[];
141
141
  };
142
142
  };
143
- designation: string;
143
+ designation: {
144
+ name: string;
145
+ };
144
146
  isRemote: boolean;
145
147
  }[] | {
146
148
  description?: string | undefined;
147
- institute: NonNullable<{
148
- value: "others" | (string | undefined)[];
149
- otherValue: string | string[];
150
- } | Pick<{
151
- updatedBy?: string | undefined;
152
- updatedAt?: number | undefined;
153
- socialAccounts?: {
154
- type: NonNullable<import("../common").SocialAccount | undefined>;
155
- url: string;
156
- isNew: boolean;
157
- }[] | undefined;
158
- perksAndBenefits?: {
159
- category?: {
160
- logo?: string | undefined;
161
- name: string;
162
- id: string;
163
- } | {
164
- value: "others" | (string | undefined)[];
165
- otherValue: string | string[];
166
- } | undefined;
167
- name: string;
168
- description: string;
169
- }[] | undefined;
170
- locations?: {
171
- coverImage?: string | undefined;
172
- name: string;
173
- isHeadquarters: boolean;
174
- contact: {
175
- email?: string | undefined;
176
- phone?: string | undefined;
177
- address: string;
178
- };
179
- }[] | undefined;
180
- equalOpportunityEmployer?: boolean | undefined;
181
- headline?: string | undefined;
182
- employeeCount?: string | undefined;
183
- yearFounded?: string | undefined;
184
- contacts?: {
185
- label?: string | undefined;
186
- type: NonNullable<import("..").ContactTypes | undefined>;
187
- value: string;
188
- isPrimary: boolean;
189
- isVerified: boolean;
190
- }[] | undefined;
191
- verified?: Date | undefined;
192
- isOwner?: boolean | undefined;
193
- type: NonNullable<import("..").PageType | undefined>;
194
- name: string;
195
- id: string;
196
- logo: {
149
+ institute: {
150
+ logo?: {
197
151
  dark?: string | null | undefined;
198
- light: string;
199
- } | null;
200
- shortId: string;
201
- createdBy: string;
202
- createdAt: number;
203
- about: string;
204
- website: string;
205
- slug: string;
206
- categories: {
207
- logo?: string | undefined;
208
- name: string;
209
- id: string;
210
- }[];
211
- status: NonNullable<import("..").PageStatus | undefined>;
212
- }, "type" | "name" | "logo" | "slug"> | undefined>;
213
- course: NonNullable<{
214
- logo?: string | undefined;
152
+ light?: string | undefined;
153
+ } | null | undefined;
154
+ slug?: string | undefined;
155
+ type: import("..").PageType;
215
156
  name: string;
216
- id: string;
217
- } | {
218
- value: "others" | (string | undefined)[];
219
- otherValue: string | string[];
220
- } | undefined>;
221
- fieldOfStudy: NonNullable<NonNullable<{
222
- logo?: string | undefined;
157
+ };
158
+ course: {
223
159
  name: string;
224
- id: string;
225
- } | {
226
- value: "others" | (string | undefined)[];
227
- otherValue: string | string[];
228
- } | undefined>>;
160
+ };
161
+ fieldOfStudy: {
162
+ name: string;
163
+ };
229
164
  isDistanceLearning: boolean;
230
165
  studyType: NonNullable<import("../common").StudyType | undefined>;
231
166
  duration: {
@@ -246,16 +181,13 @@ export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
246
181
  };
247
182
  };
248
183
  }[] | {
249
- skill: NonNullable<{
250
- logo?: string | undefined;
251
- name: string;
252
- id: string;
253
- } | {
254
- value: "others" | (string | undefined)[];
255
- otherValue: string | string[];
256
- } | undefined>;
184
+ lastUsed?: string | undefined;
185
+ name: string;
186
+ logo: {
187
+ dark?: string | null | undefined;
188
+ light: string;
189
+ } | null;
257
190
  proficiencyLevel: NonNullable<import("../common").ProficiencyLevel | undefined>;
258
- lastUsed: string;
259
191
  }[] | {
260
192
  url?: string | undefined;
261
193
  name: string;
@@ -412,12 +344,12 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
412
344
  workExperiences: {
413
345
  description?: string | undefined;
414
346
  company: {
415
- type?: NonNullable<import("..").PageType | undefined> | undefined;
416
347
  logo?: {
417
348
  dark?: string | null | undefined;
418
- light: string;
349
+ light?: string | undefined;
419
350
  } | null | undefined;
420
351
  slug?: string | undefined;
352
+ type: import("..").PageType;
421
353
  name: string;
422
354
  };
423
355
  duration: {
@@ -437,93 +369,28 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
437
369
  coordinates: number[];
438
370
  };
439
371
  };
440
- designation: string;
372
+ designation: {
373
+ name: string;
374
+ };
441
375
  isRemote: boolean;
442
376
  }[];
443
377
  educations: {
444
378
  description?: string | undefined;
445
- institute: NonNullable<{
446
- value: "others" | (string | undefined)[];
447
- otherValue: string | string[];
448
- } | Pick<{
449
- updatedBy?: string | undefined;
450
- updatedAt?: number | undefined;
451
- socialAccounts?: {
452
- type: NonNullable<import("../common").SocialAccount | undefined>;
453
- url: string;
454
- isNew: boolean;
455
- }[] | undefined;
456
- perksAndBenefits?: {
457
- category?: {
458
- logo?: string | undefined;
459
- name: string;
460
- id: string;
461
- } | {
462
- value: "others" | (string | undefined)[];
463
- otherValue: string | string[];
464
- } | undefined;
465
- name: string;
466
- description: string;
467
- }[] | undefined;
468
- locations?: {
469
- coverImage?: string | undefined;
470
- name: string;
471
- isHeadquarters: boolean;
472
- contact: {
473
- email?: string | undefined;
474
- phone?: string | undefined;
475
- address: string;
476
- };
477
- }[] | undefined;
478
- equalOpportunityEmployer?: boolean | undefined;
479
- headline?: string | undefined;
480
- employeeCount?: string | undefined;
481
- yearFounded?: string | undefined;
482
- contacts?: {
483
- label?: string | undefined;
484
- type: NonNullable<import("..").ContactTypes | undefined>;
485
- value: string;
486
- isPrimary: boolean;
487
- isVerified: boolean;
488
- }[] | undefined;
489
- verified?: Date | undefined;
490
- isOwner?: boolean | undefined;
491
- type: NonNullable<import("..").PageType | undefined>;
492
- name: string;
493
- id: string;
494
- logo: {
379
+ institute: {
380
+ logo?: {
495
381
  dark?: string | null | undefined;
496
- light: string;
497
- } | null;
498
- shortId: string;
499
- createdBy: string;
500
- createdAt: number;
501
- about: string;
502
- website: string;
503
- slug: string;
504
- categories: {
505
- logo?: string | undefined;
506
- name: string;
507
- id: string;
508
- }[];
509
- status: NonNullable<import("..").PageStatus | undefined>;
510
- }, "type" | "name" | "logo" | "slug"> | undefined>;
511
- course: NonNullable<{
512
- logo?: string | undefined;
382
+ light?: string | undefined;
383
+ } | null | undefined;
384
+ slug?: string | undefined;
385
+ type: import("..").PageType;
513
386
  name: string;
514
- id: string;
515
- } | {
516
- value: "others" | (string | undefined)[];
517
- otherValue: string | string[];
518
- } | undefined>;
519
- fieldOfStudy: NonNullable<NonNullable<{
520
- logo?: string | undefined;
387
+ };
388
+ course: {
521
389
  name: string;
522
- id: string;
523
- } | {
524
- value: "others" | (string | undefined)[];
525
- otherValue: string | string[];
526
- } | undefined>>;
390
+ };
391
+ fieldOfStudy: {
392
+ name: string;
393
+ };
527
394
  isDistanceLearning: boolean;
528
395
  studyType: NonNullable<import("../common").StudyType | undefined>;
529
396
  duration: {
@@ -545,16 +412,13 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
545
412
  };
546
413
  }[];
547
414
  skills: {
548
- skill: NonNullable<{
549
- logo?: string | undefined;
550
- name: string;
551
- id: string;
552
- } | {
553
- value: "others" | (string | undefined)[];
554
- otherValue: string | string[];
555
- } | undefined>;
415
+ lastUsed?: string | undefined;
416
+ name: string;
417
+ logo: {
418
+ dark?: string | null | undefined;
419
+ light: string;
420
+ } | null;
556
421
  proficiencyLevel: NonNullable<import("../common").ProficiencyLevel | undefined>;
557
- lastUsed: string;
558
422
  }[];
559
423
  languages: {
560
424
  language: NonNullable<{
@@ -1 +1 @@
1
- {"version":3,"file":"resume.schema.d.ts","sourceRoot":"","sources":["../../../src/resume/resume.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAuC,MAAM,SAAS,CAAC;AAC3E,OAAO,EAEL,WAAW,EAEX,SAAS,EAMV,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EAIb,MAAM,mBAAmB,CAAC;AAO3B,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA0B,CAAC;AAE/D,MAAM,MAAM,+BAA+B,GAAG,SAAS,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAOF,QAAA,MAAM,iCAAiC,EACrC,WAAW,CAAC,WAAW,CAAC,iBAAiB,CAAC,EAAE,MAAM,CACf,CAAC;AAEtC,MAAM,MAAM,kCAAkC,GAAG,SAAS,CACxD,OAAO,iCAAi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AAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -1,87 +1,20 @@
1
1
  import { InferType, ObjectSchema } from "../../yup-extended";
2
2
  export declare const EducationSchema: ObjectSchema<{
3
- institute: NonNullable<{
4
- value: "others" | (string | undefined)[];
5
- otherValue: string | string[];
6
- } | Pick<{
7
- updatedBy?: string | undefined;
8
- updatedAt?: number | undefined;
9
- socialAccounts?: {
10
- type: NonNullable<import("../../common").SocialAccount | undefined>;
11
- url: string;
12
- isNew: boolean;
13
- }[] | undefined;
14
- perksAndBenefits?: {
15
- category?: {
16
- logo?: string | undefined;
17
- name: string;
18
- id: string;
19
- } | {
20
- value: "others" | (string | undefined)[];
21
- otherValue: string | string[];
22
- } | undefined;
23
- name: string;
24
- description: string;
25
- }[] | undefined;
26
- locations?: {
27
- coverImage?: string | undefined;
28
- name: string;
29
- isHeadquarters: boolean;
30
- contact: {
31
- email?: string | undefined;
32
- phone?: string | undefined;
33
- address: string;
34
- };
35
- }[] | undefined;
36
- equalOpportunityEmployer?: boolean | undefined;
37
- headline?: string | undefined;
38
- employeeCount?: string | undefined;
39
- yearFounded?: string | undefined;
40
- contacts?: {
41
- label?: string | undefined;
42
- type: NonNullable<import("../../page").ContactTypes | undefined>;
43
- value: string;
44
- isPrimary: boolean;
45
- isVerified: boolean;
46
- }[] | undefined;
47
- verified?: Date | undefined;
48
- isOwner?: boolean | undefined;
49
- type: NonNullable<import("../../page").PageType | undefined>;
50
- name: string;
51
- id: string;
52
- logo: {
3
+ institute: {
4
+ logo?: {
53
5
  dark?: string | null | undefined;
54
- light: string;
55
- } | null;
56
- shortId: string;
57
- createdBy: string;
58
- createdAt: number;
59
- about: string;
60
- website: string;
61
- slug: string;
62
- categories: {
63
- logo?: string | undefined;
64
- name: string;
65
- id: string;
66
- }[];
67
- status: NonNullable<import("../../page").PageStatus | undefined>;
68
- }, "type" | "name" | "logo" | "slug"> | undefined>;
69
- course: NonNullable<{
70
- logo?: string | undefined;
6
+ light?: string | undefined;
7
+ } | null | undefined;
8
+ slug?: string | undefined;
9
+ type: import("../../page").PageType;
10
+ name: string;
11
+ };
12
+ course: {
71
13
  name: string;
72
- id: string;
73
- } | {
74
- value: "others" | (string | undefined)[];
75
- otherValue: string | string[];
76
- } | undefined>;
77
- fieldOfStudy: NonNullable<NonNullable<{
78
- logo?: string | undefined;
14
+ };
15
+ fieldOfStudy: {
79
16
  name: string;
80
- id: string;
81
- } | {
82
- value: "others" | (string | undefined)[];
83
- otherValue: string | string[];
84
- } | undefined>>;
17
+ };
85
18
  duration: {
86
19
  startDate: string;
87
20
  endDate: string;
@@ -103,9 +36,38 @@ export declare const EducationSchema: ObjectSchema<{
103
36
  };
104
37
  studyType: NonNullable<import("../../common").StudyType | undefined>;
105
38
  }, import("yup").AnyObject, {
106
- institute: undefined;
107
- course: undefined;
108
- fieldOfStudy: undefined;
39
+ institute: {
40
+ id: undefined;
41
+ shortId: undefined;
42
+ name: undefined;
43
+ headline: undefined;
44
+ about: undefined;
45
+ website: undefined;
46
+ slug: undefined;
47
+ employeeCount: undefined;
48
+ yearFounded: undefined;
49
+ type: undefined;
50
+ locations: "";
51
+ contacts: "";
52
+ verified: undefined;
53
+ logo: null;
54
+ categories: "";
55
+ socialAccounts: "";
56
+ isOwner: undefined;
57
+ status: undefined;
58
+ equalOpportunityEmployer: undefined;
59
+ perksAndBenefits: "";
60
+ createdBy: undefined;
61
+ createdAt: undefined;
62
+ updatedBy: undefined;
63
+ updatedAt: undefined;
64
+ };
65
+ course: {
66
+ name: undefined;
67
+ };
68
+ fieldOfStudy: {
69
+ name: undefined;
70
+ };
109
71
  duration: any;
110
72
  description: undefined;
111
73
  isDistanceLearning: false;
@@ -1 +1 @@
1
- {"version":3,"file":"education.schema.d.ts","sourceRoot":"","sources":["../../../../src/user/education/education.schema.ts"],"names":[],"mappings":"AAUA,OAAO,EAEL,SAAS,EAGT,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyCP,CAAC;AAEtB,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,OAAO,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"education.schema.d.ts","sourceRoot":"","sources":["../../../../src/user/education/education.schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,SAAS,EAET,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwCP,CAAC;AAEtB,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -8,30 +8,31 @@ const page_1 = require("../../page");
8
8
  const yup_extended_1 = require("../../yup-extended");
9
9
  exports.EducationSchema = (0, yup_extended_1.object)()
10
10
  .shape({
11
- institute: (0, yup_extended_1.mixed)()
12
- .oneOfSchema([
13
- page_1.PageSchema.pick(["name", "slug", "type", "logo"]),
14
- common_1.OtherValueSchema,
15
- ])
11
+ institute: page_1.PageSchema.pick(["name", "slug", "type", "logo"])
12
+ .deepPartial()
13
+ .concat(page_1.PageSchema.pick(["name", "type"]))
16
14
  .required()
17
15
  .label("Institute"),
18
- course: (0, yup_extended_1.mixed)()
19
- .oneOfSchema([common_1.NameIdLogoSchema, common_1.OtherValueSchema])
16
+ course: (0, yup_extended_1.object)()
17
+ .shape({
18
+ name: (0, yup_extended_1.string)().trim().required().label("Course Name"),
19
+ })
20
20
  .required()
21
21
  .label("Course"),
22
- fieldOfStudy: (0, yup_extended_1.mixed)()
23
- .oneOfSchema([common_1.NameIdLogoSchema, common_1.OtherValueSchema])
24
- .required()
22
+ fieldOfStudy: (0, yup_extended_1.object)()
23
+ .shape({
24
+ name: (0, yup_extended_1.string)().trim().required().label("Field of Study Name"),
25
+ })
25
26
  .required()
26
27
  .label("Field of Study"),
27
28
  duration: (0, duration_1.DurationSchema)({
28
- format: "YYYY-MM-DD",
29
+ format: "YYYY-MM",
29
30
  startLabel: "Start Date",
30
31
  endLabel: "End Date",
31
32
  })
32
33
  .required()
33
34
  .label("Duration"),
34
- description: (0, yup_extended_1.string)().trim().max(1000).optional().label("Description"),
35
+ description: (0, yup_extended_1.string)().trim().max(3000).optional().label("Description"),
35
36
  isDistanceLearning: (0, yup_extended_1.boolean)().default(false).label("Is Distance Learning"),
36
37
  location: (location_1.LocationSchema.required().label("Location")),
37
38
  studyType: (0, yup_extended_1.string)()
@@ -44,3 +45,30 @@ exports.EducationSchema = (0, yup_extended_1.object)()
44
45
  .noUnknown()
45
46
  .strict()
46
47
  .label("Education");
48
+ // (() => {
49
+ // try {
50
+ // const data = {
51
+ // institute: {
52
+ // name: "Sherwood College of Engineering Research & Technology",
53
+ // type: "institute",
54
+ // },
55
+ // course: {
56
+ // name: "Bachelor of Technology",
57
+ // },
58
+ // fieldOfStudy: {
59
+ // name: "Computer Science",
60
+ // },
61
+ // description: "",
62
+ // isDistanceLearning: false,
63
+ // duration: {
64
+ // startDate: "2007-08",
65
+ // endDate: "2011-06",
66
+ // isActive: false,
67
+ // },
68
+ // };
69
+ // const validatedData = EducationSchema.validateSync(data);
70
+ // console.log("validatedData", validatedData);
71
+ // } catch (e) {
72
+ // console.log(e);
73
+ // }
74
+ // })();
@@ -5,88 +5,21 @@ import { InferType } from "../yup-extended";
5
5
  export declare const UpdateEducationsSchema: import("yup").ObjectSchema<{
6
6
  educations: {
7
7
  description?: string | undefined;
8
- institute: NonNullable<{
9
- value: "others" | (string | undefined)[];
10
- otherValue: string | string[];
11
- } | Pick<{
12
- updatedBy?: string | undefined;
13
- updatedAt?: number | undefined;
14
- socialAccounts?: {
15
- type: NonNullable<import("..").SocialAccount | undefined>;
16
- url: string;
17
- isNew: boolean;
18
- }[] | undefined;
19
- perksAndBenefits?: {
20
- category?: {
21
- logo?: string | undefined;
22
- name: string;
23
- id: string;
24
- } | {
25
- value: "others" | (string | undefined)[];
26
- otherValue: string | string[];
27
- } | undefined;
28
- name: string;
29
- description: string;
30
- }[] | undefined;
31
- locations?: {
32
- coverImage?: string | undefined;
33
- name: string;
34
- isHeadquarters: boolean;
35
- contact: {
36
- email?: string | undefined;
37
- phone?: string | undefined;
38
- address: string;
39
- };
40
- }[] | undefined;
41
- equalOpportunityEmployer?: boolean | undefined;
42
- headline?: string | undefined;
43
- employeeCount?: string | undefined;
44
- yearFounded?: string | undefined;
45
- contacts?: {
46
- label?: string | undefined;
47
- type: NonNullable<import("..").ContactTypes | undefined>;
48
- value: string;
49
- isPrimary: boolean;
50
- isVerified: boolean;
51
- }[] | undefined;
52
- verified?: Date | undefined;
53
- isOwner?: boolean | undefined;
54
- type: NonNullable<import("..").PageType | undefined>;
55
- name: string;
56
- id: string;
57
- logo: {
8
+ institute: {
9
+ logo?: {
58
10
  dark?: string | null | undefined;
59
- light: string;
60
- } | null;
61
- shortId: string;
62
- createdBy: string;
63
- createdAt: number;
64
- about: string;
65
- website: string;
66
- slug: string;
67
- categories: {
68
- logo?: string | undefined;
69
- name: string;
70
- id: string;
71
- }[];
72
- status: NonNullable<import("..").PageStatus | undefined>;
73
- }, "type" | "name" | "logo" | "slug"> | undefined>;
74
- course: NonNullable<{
75
- logo?: string | undefined;
11
+ light?: string | undefined;
12
+ } | null | undefined;
13
+ slug?: string | undefined;
14
+ type: import("..").PageType;
76
15
  name: string;
77
- id: string;
78
- } | {
79
- value: "others" | (string | undefined)[];
80
- otherValue: string | string[];
81
- } | undefined>;
82
- fieldOfStudy: NonNullable<NonNullable<{
83
- logo?: string | undefined;
16
+ };
17
+ course: {
84
18
  name: string;
85
- id: string;
86
- } | {
87
- value: "others" | (string | undefined)[];
88
- otherValue: string | string[];
89
- } | undefined>>;
19
+ };
20
+ fieldOfStudy: {
21
+ name: string;
22
+ };
90
23
  isDistanceLearning: boolean;
91
24
  studyType: NonNullable<import("..").StudyType | undefined>;
92
25
  duration: {
@@ -1 +1 @@
1
- {"version":3,"file":"update-education.schema.d.ts","sourceRoot":"","sources":["../../../src/user/update-education.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAU,MAAM,iBAAiB,CAAC;AAGjE;;GAEG;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASM,CAAC;AAE1C,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"update-education.schema.d.ts","sourceRoot":"","sources":["../../../src/user/update-education.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAU,MAAM,iBAAiB,CAAC;AAGjE;;GAEG;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASM,CAAC;AAE1C,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -1,16 +1,13 @@
1
1
  import { InferType } from "../yup-extended";
2
2
  export declare const UpdateUserSkillsSchema: import("yup").ObjectSchema<{
3
3
  skills: {
4
- skill: NonNullable<{
5
- logo?: string | undefined;
6
- name: string;
7
- id: string;
8
- } | {
9
- value: "others" | (string | undefined)[];
10
- otherValue: string | string[];
11
- } | undefined>;
4
+ lastUsed?: string | undefined;
5
+ name: string;
6
+ logo: {
7
+ dark?: string | null | undefined;
8
+ light: string;
9
+ } | null;
12
10
  proficiencyLevel: NonNullable<import("..").ProficiencyLevel | undefined>;
13
- lastUsed: string;
14
11
  }[];
15
12
  }, import("yup").AnyObject, {
16
13
  skills: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"update-skill.schema.d.ts","sourceRoot":"","sources":["../../../src/user/update-skill.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAU,MAAM,iBAAiB,CAAC;AAGjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;MASH,CAAC;AAEjC,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"update-skill.schema.d.ts","sourceRoot":"","sources":["../../../src/user/update-skill.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAU,MAAM,iBAAiB,CAAC;AAGjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;MASH,CAAC;AAEjC,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,OAAO,sBAAsB,CAAC,CAAC"}