@thejob/schema 1.0.85 → 1.0.87

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 (35) hide show
  1. package/dist/cjs/group/group.schema.d.ts +90 -12
  2. package/dist/cjs/group/group.schema.d.ts.map +1 -1
  3. package/dist/cjs/group/group.schema.js +46 -10
  4. package/dist/cjs/index.d.ts +0 -1
  5. package/dist/cjs/index.d.ts.map +1 -1
  6. package/dist/cjs/index.js +0 -1
  7. package/dist/cjs/interfaces.index.d.ts +57 -43
  8. package/dist/cjs/interfaces.index.d.ts.map +1 -1
  9. package/dist/cjs/job-application/job-application.schema.d.ts +17 -31
  10. package/dist/cjs/job-application/job-application.schema.d.ts.map +1 -1
  11. package/dist/cjs/job-application/job-application.schema.js +1 -1
  12. package/dist/esm/group/group.schema.d.ts +90 -12
  13. package/dist/esm/group/group.schema.d.ts.map +1 -1
  14. package/dist/esm/group/group.schema.js +46 -10
  15. package/dist/esm/index.d.ts +0 -1
  16. package/dist/esm/index.d.ts.map +1 -1
  17. package/dist/esm/index.js +0 -1
  18. package/dist/esm/interfaces.index.d.ts +57 -43
  19. package/dist/esm/interfaces.index.d.ts.map +1 -1
  20. package/dist/esm/job-application/job-application.schema.d.ts +17 -31
  21. package/dist/esm/job-application/job-application.schema.d.ts.map +1 -1
  22. package/dist/esm/job-application/job-application.schema.js +1 -1
  23. package/package.json +1 -1
  24. package/dist/cjs/recommendation/index.d.ts +0 -2
  25. package/dist/cjs/recommendation/index.d.ts.map +0 -1
  26. package/dist/cjs/recommendation/index.js +0 -17
  27. package/dist/cjs/recommendation/recommendation.schema.d.ts +0 -55
  28. package/dist/cjs/recommendation/recommendation.schema.d.ts.map +0 -1
  29. package/dist/cjs/recommendation/recommendation.schema.js +0 -29
  30. package/dist/esm/recommendation/index.d.ts +0 -2
  31. package/dist/esm/recommendation/index.d.ts.map +0 -1
  32. package/dist/esm/recommendation/index.js +0 -1
  33. package/dist/esm/recommendation/recommendation.schema.d.ts +0 -55
  34. package/dist/esm/recommendation/recommendation.schema.d.ts.map +0 -1
  35. package/dist/esm/recommendation/recommendation.schema.js +0 -26
@@ -1,4 +1,71 @@
1
1
  import { InferType } from "../yup-extended";
2
+ export declare const GroupTranslationSchema: import("yup").ObjectSchema<{
3
+ language: string;
4
+ name: string;
5
+ description: string | undefined;
6
+ slug: string | undefined;
7
+ seo: {
8
+ description?: string | undefined;
9
+ keywords?: string[] | undefined;
10
+ } | undefined;
11
+ }, import("yup").AnyObject, {
12
+ language: undefined;
13
+ name: undefined;
14
+ description: undefined;
15
+ slug: undefined;
16
+ seo: {
17
+ description: undefined;
18
+ keywords: "";
19
+ };
20
+ }, "">;
21
+ export type TGroupTranslationSchema = InferType<typeof GroupTranslationSchema>;
22
+ export declare const GroupFormSchema: import("yup").ObjectSchema<{
23
+ name: string;
24
+ description: string | undefined;
25
+ slug: string | undefined;
26
+ filterQuery: {
27
+ courses?: string | undefined;
28
+ jobs?: string | undefined;
29
+ discussions?: string | undefined;
30
+ };
31
+ countries: string[];
32
+ logo: string | undefined;
33
+ banner: string | undefined;
34
+ isFeatured: boolean | undefined;
35
+ seo: {
36
+ description?: string | undefined;
37
+ keywords?: string[] | undefined;
38
+ };
39
+ translation: {
40
+ description?: string | undefined;
41
+ slug?: string | undefined;
42
+ seo?: {
43
+ description?: string | undefined;
44
+ keywords?: string[] | undefined;
45
+ } | undefined;
46
+ language: string;
47
+ name: string;
48
+ }[] | undefined;
49
+ }, import("yup").AnyObject, {
50
+ name: undefined;
51
+ description: undefined;
52
+ slug: undefined;
53
+ filterQuery: {
54
+ jobs: undefined;
55
+ courses: undefined;
56
+ discussions: undefined;
57
+ };
58
+ countries: "";
59
+ logo: undefined;
60
+ banner: undefined;
61
+ isFeatured: undefined;
62
+ seo: {
63
+ description: undefined;
64
+ keywords: "";
65
+ };
66
+ translation: "";
67
+ }, "">;
68
+ export type TGroupFormSchema = InferType<typeof GroupFormSchema>;
2
69
  export declare const GroupSchema: import("yup").ObjectSchema<{
3
70
  id: string;
4
71
  shortId: string;
@@ -7,18 +74,28 @@ export declare const GroupSchema: import("yup").ObjectSchema<{
7
74
  slug: string;
8
75
  banner: string | undefined;
9
76
  logo: string | undefined;
77
+ isFeatured: boolean | undefined;
10
78
  followersCount: number | undefined;
11
- seoTags: {
12
- meta: {
13
- description?: string | undefined;
14
- keywords?: (string | undefined)[] | undefined;
15
- };
16
- } | undefined;
79
+ countries: (string | undefined)[] | undefined;
17
80
  filterQuery: {
18
81
  courses?: string | undefined;
19
82
  jobs?: string | undefined;
20
83
  discussions?: string | undefined;
21
84
  };
85
+ seo: {
86
+ description?: string | undefined;
87
+ keywords?: (string | undefined)[] | undefined;
88
+ } | undefined;
89
+ translation: {
90
+ description?: string | undefined;
91
+ slug?: string | undefined;
92
+ seo?: {
93
+ description?: string | undefined;
94
+ keywords?: string[] | undefined;
95
+ } | undefined;
96
+ language: string;
97
+ name: string;
98
+ }[] | undefined;
22
99
  }, import("yup").AnyObject, {
23
100
  id: undefined;
24
101
  shortId: undefined;
@@ -27,18 +104,19 @@ export declare const GroupSchema: import("yup").ObjectSchema<{
27
104
  slug: undefined;
28
105
  banner: undefined;
29
106
  logo: undefined;
107
+ isFeatured: undefined;
30
108
  followersCount: undefined;
31
- seoTags: {
32
- meta: {
33
- description: undefined;
34
- keywords: "";
35
- };
36
- };
109
+ countries: "";
37
110
  filterQuery: {
38
111
  jobs: undefined;
39
112
  courses: undefined;
40
113
  discussions: undefined;
41
114
  };
115
+ seo: {
116
+ description: undefined;
117
+ keywords: "";
118
+ };
119
+ translation: "";
42
120
  }, "">;
43
121
  export type TGroupSchema = InferType<typeof GroupSchema>;
44
122
  //# sourceMappingURL=group.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"group.schema.d.ts","sourceRoot":"","sources":["../../../src/group/group.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,SAAS,EAA0B,MAAM,iBAAiB,CAAC;AAE3E,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BA,CAAC;AAEzB,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC,OAAO,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"group.schema.d.ts","sourceRoot":"","sources":["../../../src/group/group.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,SAAS,EAIV,MAAM,iBAAiB,CAAC;AAIzB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;MASjC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,SAAS,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAI/E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqB1B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,OAAO,eAAe,CAAC,CAAC;AAIjE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4BA,CAAC;AAEzB,MAAM,MAAM,YAAY,GAAG,SAAS,CAAC,OAAO,WAAW,CAAC,CAAC"}
@@ -1,7 +1,42 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GroupSchema = void 0;
3
+ exports.GroupSchema = exports.GroupFormSchema = exports.GroupTranslationSchema = void 0;
4
4
  const yup_extended_1 = require("../yup-extended");
5
+ // ─── Translation Schema ─────────────────────────────────────────────────────
6
+ exports.GroupTranslationSchema = (0, yup_extended_1.object)({
7
+ language: (0, yup_extended_1.string)().required("Language is required"),
8
+ name: (0, yup_extended_1.string)().required("Name is required"),
9
+ description: (0, yup_extended_1.string)().optional(),
10
+ slug: (0, yup_extended_1.string)().optional(),
11
+ seo: (0, yup_extended_1.object)({
12
+ description: (0, yup_extended_1.string)().optional(),
13
+ keywords: (0, yup_extended_1.array)().of((0, yup_extended_1.string)().required()).optional(),
14
+ }).optional(),
15
+ });
16
+ // ─── Form Schema (admin create / edit) ───────────────────────────────────────
17
+ exports.GroupFormSchema = (0, yup_extended_1.object)({
18
+ name: (0, yup_extended_1.string)().required("Name is required"),
19
+ description: (0, yup_extended_1.string)().optional(),
20
+ slug: (0, yup_extended_1.string)().optional(),
21
+ filterQuery: (0, yup_extended_1.object)({
22
+ jobs: (0, yup_extended_1.string)().optional(),
23
+ courses: (0, yup_extended_1.string)().optional(),
24
+ discussions: (0, yup_extended_1.string)().optional(),
25
+ }).required("Filter query is required"),
26
+ countries: (0, yup_extended_1.array)()
27
+ .of((0, yup_extended_1.string)().required())
28
+ .min(1, "At least one country is required")
29
+ .required(),
30
+ logo: (0, yup_extended_1.string)().optional(),
31
+ banner: (0, yup_extended_1.string)().optional(),
32
+ isFeatured: (0, yup_extended_1.boolean)().optional(),
33
+ seo: (0, yup_extended_1.object)({
34
+ description: (0, yup_extended_1.string)().optional(),
35
+ keywords: (0, yup_extended_1.array)().of((0, yup_extended_1.string)().required()).optional(),
36
+ }),
37
+ translation: (0, yup_extended_1.array)().of(exports.GroupTranslationSchema).optional(),
38
+ });
39
+ // ─── Full Document Schema ────────────────────────────────────────────────────
5
40
  exports.GroupSchema = (0, yup_extended_1.object)()
6
41
  .shape({
7
42
  id: (0, yup_extended_1.string)().objectId().required().label("ID"),
@@ -11,16 +46,9 @@ exports.GroupSchema = (0, yup_extended_1.object)()
11
46
  slug: (0, yup_extended_1.string)().required().label("Slug"),
12
47
  banner: (0, yup_extended_1.string)().label("Banner"),
13
48
  logo: (0, yup_extended_1.string)().label("Logo"),
49
+ isFeatured: (0, yup_extended_1.boolean)().label("Is Featured"),
14
50
  followersCount: (0, yup_extended_1.number)().min(0).label("Followers Count"),
15
- seoTags: (0, yup_extended_1.object)()
16
- .shape({
17
- meta: (0, yup_extended_1.object)().shape({
18
- description: (0, yup_extended_1.string)().optional().label("Description"),
19
- keywords: (0, yup_extended_1.array)().of((0, yup_extended_1.string)()).optional().label("Keywords"),
20
- }),
21
- })
22
- .optional()
23
- .label("SEO Tags"),
51
+ countries: (0, yup_extended_1.array)().of((0, yup_extended_1.string)()).optional().label("Countries"),
24
52
  filterQuery: (0, yup_extended_1.object)()
25
53
  .shape({
26
54
  jobs: (0, yup_extended_1.string)().label("Job"),
@@ -28,5 +56,13 @@ exports.GroupSchema = (0, yup_extended_1.object)()
28
56
  discussions: (0, yup_extended_1.string)().label("Discussion"),
29
57
  })
30
58
  .label("Filter Query"),
59
+ seo: (0, yup_extended_1.object)()
60
+ .shape({
61
+ description: (0, yup_extended_1.string)().optional().label("Description"),
62
+ keywords: (0, yup_extended_1.array)().of((0, yup_extended_1.string)()).optional().label("Keywords"),
63
+ })
64
+ .optional()
65
+ .label("SEO"),
66
+ translation: (0, yup_extended_1.array)().of(exports.GroupTranslationSchema).optional().label("Translations"),
31
67
  })
32
68
  .label("Group Schema");
@@ -24,6 +24,5 @@ export * from "./social-account";
24
24
  export * from "./design-and-font";
25
25
  export * from "./yup-extended";
26
26
  export * from "./constants";
27
- export * from "./recommendation";
28
27
  export * from './interfaces.index';
29
28
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,MAAM,CAAC;AACrB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -40,5 +40,4 @@ __exportStar(require("./social-account"), exports);
40
40
  __exportStar(require("./design-and-font"), exports);
41
41
  __exportStar(require("./yup-extended"), exports);
42
42
  __exportStar(require("./constants"), exports);
43
- __exportStar(require("./recommendation"), exports);
44
43
  __exportStar(require("./interfaces.index"), exports);
@@ -367,6 +367,7 @@ export interface IAiPromptJobApplicationSummary {
367
367
  })[] | undefined;
368
368
  applicationSummary?: string | undefined;
369
369
  score?: number | undefined;
370
+ mobile?: string | null | undefined;
370
371
  id: string;
371
372
  shortId: string;
372
373
  name: {
@@ -380,6 +381,7 @@ export interface IAiPromptJobApplicationSummary {
380
381
  userId: string;
381
382
  experienceLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/constants/job/job").ExperienceLevel | undefined>;
382
383
  emailVerified: NonNullable<boolean | undefined>;
384
+ jobId: string;
383
385
  location: {
384
386
  address?: string | null | undefined;
385
387
  state?: string | null | undefined;
@@ -392,10 +394,6 @@ export interface IAiPromptJobApplicationSummary {
392
394
  coordinates: number[];
393
395
  };
394
396
  };
395
- mobile: {
396
- mobile?: string | null | undefined;
397
- };
398
- jobId: string;
399
397
  resume: {
400
398
  markdown: string;
401
399
  markdownStyling: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/resume/resume.constant").ResumeMarkdownStyle;
@@ -597,15 +595,63 @@ export interface IDurationSchema {
597
595
  export interface IFieldOfStudySchema {
598
596
  name: string;
599
597
  }
600
- export interface IGroupSchema {
598
+ export interface IGroupTranslationSchema {
599
+ slug?: string | undefined;
600
+ description?: string | undefined;
601
+ seo?: {
602
+ description?: string | undefined;
603
+ keywords?: string[] | undefined;
604
+ } | undefined;
605
+ name: string;
606
+ language: string;
607
+ }
608
+ export interface IGroupFormSchema {
609
+ slug?: string | undefined;
601
610
  logo?: string | undefined;
602
- seoTags?: {
603
- meta: {
611
+ description?: string | undefined;
612
+ banner?: string | undefined;
613
+ isFeatured?: boolean | undefined;
614
+ translation?: {
615
+ slug?: string | undefined;
616
+ description?: string | undefined;
617
+ seo?: {
604
618
  description?: string | undefined;
605
- keywords?: (string | undefined)[] | undefined;
606
- };
619
+ keywords?: string[] | undefined;
620
+ } | undefined;
621
+ name: string;
622
+ language: string;
623
+ }[] | undefined;
624
+ name: string;
625
+ seo: {
626
+ description?: string | undefined;
627
+ keywords?: string[] | undefined;
628
+ };
629
+ filterQuery: {
630
+ jobs?: string | undefined;
631
+ courses?: string | undefined;
632
+ discussions?: string | undefined;
633
+ };
634
+ countries: string[];
635
+ }
636
+ export interface IGroupSchema {
637
+ logo?: string | undefined;
638
+ seo?: {
639
+ description?: string | undefined;
640
+ keywords?: (string | undefined)[] | undefined;
607
641
  } | undefined;
642
+ countries?: (string | undefined)[] | undefined;
608
643
  banner?: string | undefined;
644
+ isFeatured?: boolean | undefined;
645
+ translation?: {
646
+ slug?: string | undefined;
647
+ description?: string | undefined;
648
+ seo?: {
649
+ description?: string | undefined;
650
+ keywords?: string[] | undefined;
651
+ } | undefined;
652
+ name: string;
653
+ language: string;
654
+ }[] | undefined;
609
655
  followersCount?: number | undefined;
610
656
  slug: string;
611
657
  id: string;
@@ -897,6 +943,7 @@ export interface IJobApplicationSchema {
897
943
  })[] | undefined;
898
944
  applicationSummary?: string | undefined;
899
945
  score?: number | undefined;
946
+ mobile?: string | null | undefined;
900
947
  id: string;
901
948
  shortId: string;
902
949
  name: {
@@ -910,6 +957,7 @@ export interface IJobApplicationSchema {
910
957
  userId: string;
911
958
  experienceLevel: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/constants/job/job").ExperienceLevel | undefined>;
912
959
  emailVerified: NonNullable<boolean | undefined>;
960
+ jobId: string;
913
961
  location: {
914
962
  address?: string | null | undefined;
915
963
  state?: string | null | undefined;
@@ -922,10 +970,6 @@ export interface IJobApplicationSchema {
922
970
  coordinates: number[];
923
971
  };
924
972
  };
925
- mobile: {
926
- mobile?: string | null | undefined;
927
- };
928
- jobId: string;
929
973
  resume: {
930
974
  markdown: string;
931
975
  markdownStyling: import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/resume/resume.constant").ResumeMarkdownStyle;
@@ -1268,36 +1312,6 @@ export interface IReadAndAcknowledgeQuestionSchema {
1268
1312
  preferredAnswer: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/constants/common/common").Common.Yes | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/constants/common/common").Common.No | undefined>;
1269
1313
  answers: NonNullable<import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/constants/common/common").Common.Yes | import("/Users/nadeem.ahmad/Documents/GitHub/thejob-yup-schema/src/constants/common/common").Common.No | undefined>;
1270
1314
  }
1271
- export interface IRecommendationFormSchema {
1272
- slug?: string | undefined;
1273
- subTitle?: string | undefined;
1274
- translation?: {
1275
- slug?: string | undefined;
1276
- subTitle?: string | undefined;
1277
- seo?: {
1278
- description?: string | undefined;
1279
- keywords?: string[] | undefined;
1280
- } | undefined;
1281
- title: string;
1282
- language: string;
1283
- }[] | undefined;
1284
- title: string;
1285
- countries: string[];
1286
- seo: {
1287
- description?: string | undefined;
1288
- keywords?: string[] | undefined;
1289
- };
1290
- }
1291
- export interface IRecommendationTranslationSchema {
1292
- slug?: string | undefined;
1293
- subTitle?: string | undefined;
1294
- seo?: {
1295
- description?: string | undefined;
1296
- keywords?: string[] | undefined;
1297
- } | undefined;
1298
- title: string;
1299
- language: string;
1300
- }
1301
1315
  export interface IResumeGeneralInfoSectionSchema {
1302
1316
  headline?: string | undefined;
1303
1317
  id?: string | undefined;