@thejob/schema 1.0.60 → 1.0.61

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 (37) hide show
  1. package/dist/cjs/interfaces.index.d.ts +117 -629
  2. package/dist/cjs/interfaces.index.d.ts.map +1 -1
  3. package/dist/cjs/job/job.schema.d.ts +1 -1
  4. package/dist/cjs/job-application/job-application.schema.d.ts +10 -74
  5. package/dist/cjs/job-application/job-application.schema.d.ts.map +1 -1
  6. package/dist/cjs/page/page.schema.d.ts +1 -1
  7. package/dist/cjs/page/page.schema.js +1 -1
  8. package/dist/cjs/resume/resume.schema.d.ts +20 -148
  9. package/dist/cjs/resume/resume.schema.d.ts.map +1 -1
  10. package/dist/cjs/user/education/education.schema.d.ts +1 -1
  11. package/dist/cjs/user/update-education.schema.d.ts +1 -1
  12. package/dist/cjs/user/update-work-experience.schema.d.ts +9 -73
  13. package/dist/cjs/user/update-work-experience.schema.d.ts.map +1 -1
  14. package/dist/cjs/user/user.schema.d.ts +10 -74
  15. package/dist/cjs/user/user.schema.d.ts.map +1 -1
  16. package/dist/cjs/user/work-experience/work-experience.schema.d.ts +34 -73
  17. package/dist/cjs/user/work-experience/work-experience.schema.d.ts.map +1 -1
  18. package/dist/cjs/user/work-experience/work-experience.schema.js +5 -11
  19. package/dist/esm/interfaces.index.d.ts +117 -629
  20. package/dist/esm/interfaces.index.d.ts.map +1 -1
  21. package/dist/esm/job/job.schema.d.ts +1 -1
  22. package/dist/esm/job-application/job-application.schema.d.ts +10 -74
  23. package/dist/esm/job-application/job-application.schema.d.ts.map +1 -1
  24. package/dist/esm/page/page.schema.d.ts +1 -1
  25. package/dist/esm/page/page.schema.js +1 -1
  26. package/dist/esm/resume/resume.schema.d.ts +20 -148
  27. package/dist/esm/resume/resume.schema.d.ts.map +1 -1
  28. package/dist/esm/user/education/education.schema.d.ts +1 -1
  29. package/dist/esm/user/update-education.schema.d.ts +1 -1
  30. package/dist/esm/user/update-work-experience.schema.d.ts +9 -73
  31. package/dist/esm/user/update-work-experience.schema.d.ts.map +1 -1
  32. package/dist/esm/user/user.schema.d.ts +10 -74
  33. package/dist/esm/user/user.schema.d.ts.map +1 -1
  34. package/dist/esm/user/work-experience/work-experience.schema.d.ts +34 -73
  35. package/dist/esm/user/work-experience/work-experience.schema.d.ts.map +1 -1
  36. package/dist/esm/user/work-experience/work-experience.schema.js +6 -12
  37. package/package.json +1 -1
@@ -53,7 +53,7 @@ exports.PageSchema = (0, yup_extended_1.object)()
53
53
  // .label("Logo File"),
54
54
  logo: (0, yup_extended_1.object)()
55
55
  .shape({
56
- dark: (0, yup_extended_1.string)().label("Dark Logo"),
56
+ dark: (0, yup_extended_1.string)().optional().nullable().label("Dark Logo"),
57
57
  light: (0, yup_extended_1.string)().required().label("Light Logo"),
58
58
  })
59
59
  .optional()
@@ -114,72 +114,15 @@ export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
114
114
  };
115
115
  } | {
116
116
  description?: string | undefined;
117
- company: NonNullable<{
118
- value: "others" | (string | undefined)[];
119
- otherValue: string | string[];
120
- } | Pick<{
121
- updatedBy?: string | undefined;
122
- updatedAt?: number | undefined;
123
- socialAccounts?: {
124
- type: NonNullable<import("../common").SocialAccount | undefined>;
125
- url: string;
126
- isNew: boolean;
127
- }[] | undefined;
128
- perksAndBenefits?: {
129
- category?: {
130
- logo?: string | undefined;
131
- name: string;
132
- id: string;
133
- } | {
134
- value: "others" | (string | undefined)[];
135
- otherValue: string | string[];
136
- } | undefined;
137
- name: string;
138
- description: string;
139
- }[] | undefined;
140
- locations?: {
141
- coverImage?: string | undefined;
142
- name: string;
143
- isHeadquarters: boolean;
144
- contact: {
145
- email?: string | undefined;
146
- phone?: string | undefined;
147
- address: string;
148
- };
149
- }[] | undefined;
150
- equalOpportunityEmployer?: boolean | undefined;
151
- headline?: string | undefined;
152
- employeeCount?: string | undefined;
153
- yearFounded?: string | undefined;
154
- contacts?: {
155
- label?: string | undefined;
156
- type: NonNullable<import("..").ContactTypes | undefined>;
157
- value: string;
158
- isPrimary: boolean;
159
- isVerified: boolean;
160
- }[] | undefined;
161
- verified?: Date | undefined;
162
- isOwner?: boolean | undefined;
163
- type: NonNullable<import("..").PageType | undefined>;
164
- name: string;
165
- id: string;
166
- logo: {
167
- dark?: string | undefined;
117
+ company: {
118
+ type?: NonNullable<import("..").PageType | undefined> | undefined;
119
+ logo?: {
120
+ dark?: string | null | undefined;
168
121
  light: string;
169
- } | null;
170
- shortId: string;
171
- createdBy: string;
172
- createdAt: number;
173
- about: string;
174
- website: string;
175
- slug: string;
176
- categories: {
177
- logo?: string | undefined;
178
- name: string;
179
- id: string;
180
- }[];
181
- status: NonNullable<import("..").PageStatus | undefined>;
182
- }, "type" | "name" | "logo" | "slug"> | undefined>;
122
+ } | null | undefined;
123
+ slug?: string | undefined;
124
+ name: string;
125
+ };
183
126
  duration: {
184
127
  startDate: string;
185
128
  endDate: string;
@@ -197,14 +140,7 @@ export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
197
140
  coordinates: number[];
198
141
  };
199
142
  };
200
- designation: NonNullable<{
201
- logo?: string | undefined;
202
- name: string;
203
- id: string;
204
- } | {
205
- value: "others" | (string | undefined)[];
206
- otherValue: string | string[];
207
- } | undefined>;
143
+ designation: string;
208
144
  isRemote: boolean;
209
145
  }[] | {
210
146
  description?: string | undefined;
@@ -258,7 +194,7 @@ export declare const ResumeSchemaV2: import("yup").ObjectSchema<{
258
194
  name: string;
259
195
  id: string;
260
196
  logo: {
261
- dark?: string | undefined;
197
+ dark?: string | null | undefined;
262
198
  light: string;
263
199
  } | null;
264
200
  shortId: string;
@@ -475,72 +411,15 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
475
411
  }[];
476
412
  workExperiences: {
477
413
  description?: string | undefined;
478
- company: NonNullable<{
479
- value: "others" | (string | undefined)[];
480
- otherValue: string | string[];
481
- } | Pick<{
482
- updatedBy?: string | undefined;
483
- updatedAt?: number | undefined;
484
- socialAccounts?: {
485
- type: NonNullable<import("../common").SocialAccount | undefined>;
486
- url: string;
487
- isNew: boolean;
488
- }[] | undefined;
489
- perksAndBenefits?: {
490
- category?: {
491
- logo?: string | undefined;
492
- name: string;
493
- id: string;
494
- } | {
495
- value: "others" | (string | undefined)[];
496
- otherValue: string | string[];
497
- } | undefined;
498
- name: string;
499
- description: string;
500
- }[] | undefined;
501
- locations?: {
502
- coverImage?: string | undefined;
503
- name: string;
504
- isHeadquarters: boolean;
505
- contact: {
506
- email?: string | undefined;
507
- phone?: string | undefined;
508
- address: string;
509
- };
510
- }[] | undefined;
511
- equalOpportunityEmployer?: boolean | undefined;
512
- headline?: string | undefined;
513
- employeeCount?: string | undefined;
514
- yearFounded?: string | undefined;
515
- contacts?: {
516
- label?: string | undefined;
517
- type: NonNullable<import("..").ContactTypes | undefined>;
518
- value: string;
519
- isPrimary: boolean;
520
- isVerified: boolean;
521
- }[] | undefined;
522
- verified?: Date | undefined;
523
- isOwner?: boolean | undefined;
524
- type: NonNullable<import("..").PageType | undefined>;
525
- name: string;
526
- id: string;
527
- logo: {
528
- dark?: string | undefined;
414
+ company: {
415
+ type?: NonNullable<import("..").PageType | undefined> | undefined;
416
+ logo?: {
417
+ dark?: string | null | undefined;
529
418
  light: string;
530
- } | null;
531
- shortId: string;
532
- createdBy: string;
533
- createdAt: number;
534
- about: string;
535
- website: string;
536
- slug: string;
537
- categories: {
538
- logo?: string | undefined;
539
- name: string;
540
- id: string;
541
- }[];
542
- status: NonNullable<import("..").PageStatus | undefined>;
543
- }, "type" | "name" | "logo" | "slug"> | undefined>;
419
+ } | null | undefined;
420
+ slug?: string | undefined;
421
+ name: string;
422
+ };
544
423
  duration: {
545
424
  startDate: string;
546
425
  endDate: string;
@@ -558,14 +437,7 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
558
437
  coordinates: number[];
559
438
  };
560
439
  };
561
- designation: NonNullable<{
562
- logo?: string | undefined;
563
- name: string;
564
- id: string;
565
- } | {
566
- value: "others" | (string | undefined)[];
567
- otherValue: string | string[];
568
- } | undefined>;
440
+ designation: string;
569
441
  isRemote: boolean;
570
442
  }[];
571
443
  educations: {
@@ -620,7 +492,7 @@ export declare const NewResumePromptSchema: (host?: string) => import("yup").Obj
620
492
  name: string;
621
493
  id: string;
622
494
  logo: {
623
- dark?: string | undefined;
495
+ dark?: string | null | undefined;
624
496
  light: string;
625
497
  } | null;
626
498
  shortId: string;
@@ -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,iCAAiC,CACzC,CAAC;AAOF,QAAA,MAAM,4BAA4B,EAChC,WAAW,CAAC,WAAW,CAAC,YAAY,CAAC,EAAE,MAAM,CACf,CAAC;AAEjC,MAAM,MAAM,6BAA6B,GAAG,SAAS,CACnD,OAAO,4BAA4B,CACpC,CAAC;AAOF,QAAA,MAAM,wBAAwB,EAAI,WAAW,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,MAAM,CAE1E,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAC/C,OAAO,wBAAwB,CAChC,CAAC;AAOF,QAAA,MAAM,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AC;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"}
@@ -50,7 +50,7 @@ export declare const EducationSchema: ObjectSchema<{
50
50
  name: string;
51
51
  id: string;
52
52
  logo: {
53
- dark?: string | undefined;
53
+ dark?: string | null | undefined;
54
54
  light: string;
55
55
  } | null;
56
56
  shortId: string;
@@ -55,7 +55,7 @@ export declare const UpdateEducationsSchema: import("yup").ObjectSchema<{
55
55
  name: string;
56
56
  id: string;
57
57
  logo: {
58
- dark?: string | undefined;
58
+ dark?: string | null | undefined;
59
59
  light: string;
60
60
  } | null;
61
61
  shortId: string;
@@ -2,72 +2,15 @@ import { InferType } from "../yup-extended";
2
2
  export declare const UpdateWorkExperiencesSchema: import("yup").ObjectSchema<{
3
3
  workExperiences: {
4
4
  description?: string | undefined;
5
- company: NonNullable<{
6
- value: "others" | (string | undefined)[];
7
- otherValue: string | string[];
8
- } | Pick<{
9
- updatedBy?: string | undefined;
10
- updatedAt?: number | undefined;
11
- socialAccounts?: {
12
- type: NonNullable<import("..").SocialAccount | undefined>;
13
- url: string;
14
- isNew: boolean;
15
- }[] | undefined;
16
- perksAndBenefits?: {
17
- category?: {
18
- logo?: string | undefined;
19
- name: string;
20
- id: string;
21
- } | {
22
- value: "others" | (string | undefined)[];
23
- otherValue: string | string[];
24
- } | undefined;
25
- name: string;
26
- description: string;
27
- }[] | undefined;
28
- locations?: {
29
- coverImage?: string | undefined;
30
- name: string;
31
- isHeadquarters: boolean;
32
- contact: {
33
- email?: string | undefined;
34
- phone?: string | undefined;
35
- address: string;
36
- };
37
- }[] | undefined;
38
- equalOpportunityEmployer?: boolean | undefined;
39
- headline?: string | undefined;
40
- employeeCount?: string | undefined;
41
- yearFounded?: string | undefined;
42
- contacts?: {
43
- label?: string | undefined;
44
- type: NonNullable<import("..").ContactTypes | undefined>;
45
- value: string;
46
- isPrimary: boolean;
47
- isVerified: boolean;
48
- }[] | undefined;
49
- verified?: Date | undefined;
50
- isOwner?: boolean | undefined;
51
- type: NonNullable<import("..").PageType | undefined>;
52
- name: string;
53
- id: string;
54
- logo: {
55
- dark?: string | undefined;
5
+ company: {
6
+ type?: NonNullable<import("..").PageType | undefined> | undefined;
7
+ logo?: {
8
+ dark?: string | null | undefined;
56
9
  light: string;
57
- } | null;
58
- shortId: string;
59
- createdBy: string;
60
- createdAt: number;
61
- about: string;
62
- website: string;
63
- slug: string;
64
- categories: {
65
- logo?: string | undefined;
66
- name: string;
67
- id: string;
68
- }[];
69
- status: NonNullable<import("..").PageStatus | undefined>;
70
- }, "type" | "name" | "logo" | "slug"> | undefined>;
10
+ } | null | undefined;
11
+ slug?: string | undefined;
12
+ name: string;
13
+ };
71
14
  duration: {
72
15
  startDate: string;
73
16
  endDate: string;
@@ -85,14 +28,7 @@ export declare const UpdateWorkExperiencesSchema: import("yup").ObjectSchema<{
85
28
  coordinates: number[];
86
29
  };
87
30
  };
88
- designation: NonNullable<{
89
- logo?: string | undefined;
90
- name: string;
91
- id: string;
92
- } | {
93
- value: "others" | (string | undefined)[];
94
- otherValue: string | string[];
95
- } | undefined>;
31
+ designation: string;
96
32
  isRemote: boolean;
97
33
  }[];
98
34
  }, import("yup").AnyObject, {
@@ -1 +1 @@
1
- {"version":3,"file":"update-work-experience.schema.d.ts","sourceRoot":"","sources":["../../../src/user/update-work-experience.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAU,MAAM,iBAAiB,CAAC;AAGjE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASO,CAAC;AAEhD,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAClD,OAAO,2BAA2B,CACnC,CAAC"}
1
+ {"version":3,"file":"update-work-experience.schema.d.ts","sourceRoot":"","sources":["../../../src/user/update-work-experience.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAU,MAAM,iBAAiB,CAAC;AAGjE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASO,CAAC;AAEhD,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAClD,OAAO,2BAA2B,CACnC,CAAC"}
@@ -7,72 +7,15 @@ export declare const UserSchema: import("yup").ObjectSchema<{
7
7
  }[];
8
8
  workExperiences: {
9
9
  description?: string | undefined;
10
- company: NonNullable<{
11
- value: "others" | (string | undefined)[];
12
- otherValue: string | string[];
13
- } | Pick<{
14
- updatedBy?: string | undefined;
15
- updatedAt?: number | undefined;
16
- socialAccounts?: {
17
- type: NonNullable<import("../common").SocialAccount | undefined>;
18
- url: string;
19
- isNew: boolean;
20
- }[] | undefined;
21
- perksAndBenefits?: {
22
- category?: {
23
- logo?: string | undefined;
24
- name: string;
25
- id: string;
26
- } | {
27
- value: "others" | (string | undefined)[];
28
- otherValue: string | string[];
29
- } | undefined;
30
- name: string;
31
- description: string;
32
- }[] | undefined;
33
- locations?: {
34
- coverImage?: string | undefined;
35
- name: string;
36
- isHeadquarters: boolean;
37
- contact: {
38
- email?: string | undefined;
39
- phone?: string | undefined;
40
- address: string;
41
- };
42
- }[] | undefined;
43
- equalOpportunityEmployer?: boolean | undefined;
44
- headline?: string | undefined;
45
- employeeCount?: string | undefined;
46
- yearFounded?: string | undefined;
47
- contacts?: {
48
- label?: string | undefined;
49
- type: NonNullable<import("..").ContactTypes | undefined>;
50
- value: string;
51
- isPrimary: boolean;
52
- isVerified: boolean;
53
- }[] | undefined;
54
- verified?: Date | undefined;
55
- isOwner?: boolean | undefined;
56
- type: NonNullable<import("..").PageType | undefined>;
57
- name: string;
58
- id: string;
59
- logo: {
60
- dark?: string | undefined;
10
+ company: {
11
+ type?: NonNullable<import("..").PageType | undefined> | undefined;
12
+ logo?: {
13
+ dark?: string | null | undefined;
61
14
  light: string;
62
- } | null;
63
- shortId: string;
64
- createdBy: string;
65
- createdAt: number;
66
- about: string;
67
- website: string;
68
- slug: string;
69
- categories: {
70
- logo?: string | undefined;
71
- name: string;
72
- id: string;
73
- }[];
74
- status: NonNullable<import("..").PageStatus | undefined>;
75
- }, "type" | "name" | "logo" | "slug"> | undefined>;
15
+ } | null | undefined;
16
+ slug?: string | undefined;
17
+ name: string;
18
+ };
76
19
  duration: {
77
20
  startDate: string;
78
21
  endDate: string;
@@ -90,14 +33,7 @@ export declare const UserSchema: import("yup").ObjectSchema<{
90
33
  coordinates: number[];
91
34
  };
92
35
  };
93
- designation: NonNullable<{
94
- logo?: string | undefined;
95
- name: string;
96
- id: string;
97
- } | {
98
- value: "others" | (string | undefined)[];
99
- otherValue: string | string[];
100
- } | undefined>;
36
+ designation: string;
101
37
  isRemote: boolean;
102
38
  }[];
103
39
  educations: {
@@ -152,7 +88,7 @@ export declare const UserSchema: import("yup").ObjectSchema<{
152
88
  name: string;
153
89
  id: string;
154
90
  logo: {
155
- dark?: string | undefined;
91
+ dark?: string | null | undefined;
156
92
  light: string;
157
93
  } | null;
158
94
  shortId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"user.schema.d.ts","sourceRoot":"","sources":["../../../src/user/user.schema.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAyB,MAAM,iBAAiB,CAAC;AAWnE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyFA,CAAC;AAExB,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"user.schema.d.ts","sourceRoot":"","sources":["../../../src/user/user.schema.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAyB,MAAM,iBAAiB,CAAC;AAWnE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyFA,CAAC;AAExB,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -1,79 +1,15 @@
1
1
  import { InferType, ObjectSchema } from "../../yup-extended";
2
2
  export declare const WorkExperienceSchema: ObjectSchema<{
3
- company: 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: {
53
- dark?: string | undefined;
3
+ company: {
4
+ type?: NonNullable<import("../../page").PageType | undefined> | undefined;
5
+ logo?: {
6
+ dark?: string | null | undefined;
54
7
  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
- designation: NonNullable<{
70
- logo?: string | undefined;
8
+ } | null | undefined;
9
+ slug?: string | undefined;
71
10
  name: string;
72
- id: string;
73
- } | {
74
- value: "others" | (string | undefined)[];
75
- otherValue: string | string[];
76
- } | undefined>;
11
+ };
12
+ designation: string;
77
13
  duration: {
78
14
  startDate: string;
79
15
  endDate: string;
@@ -94,7 +30,32 @@ export declare const WorkExperienceSchema: ObjectSchema<{
94
30
  };
95
31
  isRemote: boolean;
96
32
  }, import("yup").AnyObject, {
97
- company: undefined;
33
+ company: {
34
+ id: undefined;
35
+ shortId: undefined;
36
+ name: undefined;
37
+ headline: undefined;
38
+ about: undefined;
39
+ website: undefined;
40
+ slug: undefined;
41
+ employeeCount: undefined;
42
+ yearFounded: undefined;
43
+ type: undefined;
44
+ locations: "";
45
+ contacts: "";
46
+ verified: undefined;
47
+ logo: null;
48
+ categories: "";
49
+ socialAccounts: "";
50
+ isOwner: undefined;
51
+ status: undefined;
52
+ equalOpportunityEmployer: undefined;
53
+ perksAndBenefits: "";
54
+ createdBy: undefined;
55
+ createdAt: undefined;
56
+ updatedBy: undefined;
57
+ updatedAt: undefined;
58
+ };
98
59
  designation: undefined;
99
60
  duration: any;
100
61
  description: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"work-experience.schema.d.ts","sourceRoot":"","sources":["../../../../src/user/work-experience/work-experience.schema.ts"],"names":[],"mappings":"AASA,OAAO,EAEL,SAAS,EAGT,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8BN,CAAC;AAE5B,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"work-experience.schema.d.ts","sourceRoot":"","sources":["../../../../src/user/work-experience/work-experience.schema.ts"],"names":[],"mappings":"AASA,OAAO,EAEL,SAAS,EAGT,YAAY,EAEb,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuBN,CAAC;AAE5B,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,26 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WorkExperienceSchema = void 0;
4
- const common_1 = require("../../common");
5
4
  const duration_1 = require("../../duration");
6
5
  const location_1 = require("../../location");
7
6
  const page_1 = require("../../page");
8
7
  const yup_extended_1 = require("../../yup-extended");
9
8
  exports.WorkExperienceSchema = (0, yup_extended_1.object)()
10
9
  .shape({
11
- company: (0, yup_extended_1.mixed)()
12
- .oneOfSchema([
13
- page_1.PageSchema.pick(["name", "slug", "type", "logo"]),
14
- common_1.OtherValueSchema,
15
- ])
10
+ company: page_1.PageSchema.pick(["name", "slug", "type", "logo"])
11
+ .partial()
12
+ .concat(page_1.PageSchema.pick(["name"]))
16
13
  .required()
17
14
  .label("Company"),
18
- designation: (0, yup_extended_1.mixed)()
19
- .oneOfSchema([common_1.NameIdLogoSchema, common_1.OtherValueSchema])
20
- .required()
21
- .label("Designation"),
15
+ designation: (0, yup_extended_1.string)().trim().required().label("Designation"),
22
16
  duration: (0, duration_1.DurationSchema)({
23
- format: "YYYY-MM-DD",
17
+ format: "YYYY-MM",
24
18
  startLabel: "Start Date",
25
19
  endLabel: "End Date",
26
20
  })