@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
@@ -7,9 +7,6 @@ export declare const JobApplicationSchema: ObjectSchema<{
7
7
  };
8
8
  email: string;
9
9
  emailVerified: NonNullable<boolean | undefined>;
10
- mobile: {
11
- mobile?: string | null | undefined;
12
- };
13
10
  jobId: string;
14
11
  userId: string;
15
12
  applicationSummary: string | undefined;
@@ -144,6 +141,7 @@ export declare const JobApplicationSchema: ObjectSchema<{
144
141
  updatedBy: string;
145
142
  updatedAt: Date;
146
143
  }[];
144
+ mobile: string | null | undefined;
147
145
  } & {
148
146
  id: string;
149
147
  shortId: string;
@@ -158,33 +156,6 @@ export declare const JobApplicationSchema: ObjectSchema<{
158
156
  };
159
157
  email: undefined;
160
158
  emailVerified: undefined;
161
- mobile: {
162
- socialAccounts: never[];
163
- workExperiences: never[];
164
- educations: never[];
165
- skills: never[];
166
- projects: never[];
167
- certifications: never[];
168
- interests: never[];
169
- languages: never[];
170
- additionalInfo: never[];
171
- status: undefined;
172
- roles: import("../constants").UserRole[];
173
- id: undefined;
174
- name: {
175
- first: undefined;
176
- last: undefined;
177
- };
178
- headline: undefined;
179
- image: undefined;
180
- aboutMe: undefined;
181
- email: undefined;
182
- mobile: undefined;
183
- emailVerified: undefined;
184
- mobileVerified: undefined;
185
- experienceLevel: undefined;
186
- location: any;
187
- };
188
159
  jobId: undefined;
189
160
  userId: undefined;
190
161
  applicationSummary: undefined;
@@ -235,10 +206,25 @@ export declare const JobApplicationSchema: ObjectSchema<{
235
206
  updatedBy: undefined;
236
207
  updatedAt: undefined;
237
208
  };
238
- status: JobApplicationStatus.Open;
209
+ status: undefined;
239
210
  questionnaire: "";
240
211
  history: never[];
212
+ socialAccounts: never[];
213
+ workExperiences: never[];
214
+ educations: never[];
215
+ skills: never[];
216
+ projects: never[];
217
+ certifications: never[];
218
+ interests: never[];
219
+ languages: never[];
220
+ additionalInfo: never[];
221
+ roles: import("../constants").UserRole[];
241
222
  id: undefined;
223
+ headline: undefined;
224
+ image: undefined;
225
+ aboutMe: undefined;
226
+ mobile: undefined;
227
+ mobileVerified: undefined;
242
228
  shortId: undefined;
243
229
  createdBy: undefined;
244
230
  createdAt: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"job-application.schema.d.ts","sourceRoot":"","sources":["../../../src/job-application/job-application.schema.ts"],"names":[],"mappings":"AAcA,OAAO,EAIL,SAAS,EAIT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,oBAAoB,EAGrB,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiHN,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":"AAcA,OAAO,EAIL,SAAS,EAIT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,oBAAoB,EAGrB,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiHN,CAAC;AAE5B,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -14,7 +14,6 @@ export const JobApplicationSchema = object()
14
14
  }),
15
15
  email: string().email().required().label("Email"),
16
16
  emailVerified: boolean().required().label("Email Verified"),
17
- mobile: UserSchema.pick(["mobile"]),
18
17
  jobId: string().required().label("Job"),
19
18
  userId: string().required().label("User"),
20
19
  applicationSummary: string().optional().label("Application Summary"),
@@ -106,6 +105,7 @@ export const JobApplicationSchema = object()
106
105
  .default([])
107
106
  .label("History"),
108
107
  })
108
+ .concat(UserSchema.pick(["mobile"]))
109
109
  .concat(DbDefaultSchema)
110
110
  .noUnknown()
111
111
  .strict()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thejob/schema",
3
- "version": "1.0.85",
3
+ "version": "1.0.87",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",
@@ -1,2 +0,0 @@
1
- export * from "./recommendation.schema";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/recommendation/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./recommendation.schema"), exports);
@@ -1,55 +0,0 @@
1
- import { InferType } from "../yup-extended";
2
- export declare const RecommendationTranslationSchema: import("yup").ObjectSchema<{
3
- language: string;
4
- title: string;
5
- subTitle: 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
- title: undefined;
14
- subTitle: undefined;
15
- slug: undefined;
16
- seo: {
17
- description: undefined;
18
- keywords: "";
19
- };
20
- }, "">;
21
- export declare const RecommendationFormSchema: import("yup").ObjectSchema<{
22
- title: string;
23
- subTitle: string | undefined;
24
- slug: string | undefined;
25
- filter: string;
26
- countries: string[];
27
- seo: {
28
- description?: string | undefined;
29
- keywords?: string[] | undefined;
30
- };
31
- translation: {
32
- slug?: string | undefined;
33
- subTitle?: string | undefined;
34
- seo?: {
35
- description?: string | undefined;
36
- keywords?: string[] | undefined;
37
- } | undefined;
38
- title: string;
39
- language: string;
40
- }[] | undefined;
41
- }, import("yup").AnyObject, {
42
- title: undefined;
43
- subTitle: undefined;
44
- slug: undefined;
45
- filter: undefined;
46
- countries: "";
47
- seo: {
48
- description: undefined;
49
- keywords: "";
50
- };
51
- translation: "";
52
- }, "">;
53
- export type TRecommendationFormSchema = InferType<typeof RecommendationFormSchema>;
54
- export type TRecommendationTranslationSchema = InferType<typeof RecommendationTranslationSchema>;
55
- //# sourceMappingURL=recommendation.schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"recommendation.schema.d.ts","sourceRoot":"","sources":["../../../src/recommendation/recommendation.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,iBAAiB,CAAC;AAEnE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;MAS1C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAcnC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAC/C,OAAO,wBAAwB,CAChC,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,SAAS,CACtD,OAAO,+BAA+B,CACvC,CAAC"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RecommendationFormSchema = exports.RecommendationTranslationSchema = void 0;
4
- const yup_extended_1 = require("../yup-extended");
5
- exports.RecommendationTranslationSchema = (0, yup_extended_1.object)({
6
- language: (0, yup_extended_1.string)().required("Language is required"),
7
- title: (0, yup_extended_1.string)().required("Title is required"),
8
- subTitle: (0, yup_extended_1.string)().optional(),
9
- slug: (0, yup_extended_1.string)().optional(),
10
- seo: (0, yup_extended_1.object)({
11
- description: (0, yup_extended_1.string)().optional(),
12
- keywords: (0, yup_extended_1.array)().of((0, yup_extended_1.string)().required()).optional(),
13
- }).optional(),
14
- });
15
- exports.RecommendationFormSchema = (0, yup_extended_1.object)({
16
- title: (0, yup_extended_1.string)().required("Title is required"),
17
- subTitle: (0, yup_extended_1.string)().optional(),
18
- slug: (0, yup_extended_1.string)().optional(),
19
- filter: (0, yup_extended_1.string)().required("Filter (query string) is required"),
20
- countries: (0, yup_extended_1.array)()
21
- .of((0, yup_extended_1.string)().required())
22
- .min(1, "At least one country is required")
23
- .required(),
24
- seo: (0, yup_extended_1.object)({
25
- description: (0, yup_extended_1.string)().optional(),
26
- keywords: (0, yup_extended_1.array)().of((0, yup_extended_1.string)().required()).optional(),
27
- }),
28
- translation: (0, yup_extended_1.array)().of(exports.RecommendationTranslationSchema).optional(),
29
- });
@@ -1,2 +0,0 @@
1
- export * from "./recommendation.schema";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/recommendation/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
@@ -1 +0,0 @@
1
- export * from "./recommendation.schema";
@@ -1,55 +0,0 @@
1
- import { InferType } from "../yup-extended";
2
- export declare const RecommendationTranslationSchema: import("yup").ObjectSchema<{
3
- language: string;
4
- title: string;
5
- subTitle: 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
- title: undefined;
14
- subTitle: undefined;
15
- slug: undefined;
16
- seo: {
17
- description: undefined;
18
- keywords: "";
19
- };
20
- }, "">;
21
- export declare const RecommendationFormSchema: import("yup").ObjectSchema<{
22
- title: string;
23
- subTitle: string | undefined;
24
- slug: string | undefined;
25
- filter: string;
26
- countries: string[];
27
- seo: {
28
- description?: string | undefined;
29
- keywords?: string[] | undefined;
30
- };
31
- translation: {
32
- slug?: string | undefined;
33
- subTitle?: string | undefined;
34
- seo?: {
35
- description?: string | undefined;
36
- keywords?: string[] | undefined;
37
- } | undefined;
38
- title: string;
39
- language: string;
40
- }[] | undefined;
41
- }, import("yup").AnyObject, {
42
- title: undefined;
43
- subTitle: undefined;
44
- slug: undefined;
45
- filter: undefined;
46
- countries: "";
47
- seo: {
48
- description: undefined;
49
- keywords: "";
50
- };
51
- translation: "";
52
- }, "">;
53
- export type TRecommendationFormSchema = InferType<typeof RecommendationFormSchema>;
54
- export type TRecommendationTranslationSchema = InferType<typeof RecommendationTranslationSchema>;
55
- //# sourceMappingURL=recommendation.schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"recommendation.schema.d.ts","sourceRoot":"","sources":["../../../src/recommendation/recommendation.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,iBAAiB,CAAC;AAEnE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;MAS1C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAcnC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAC/C,OAAO,wBAAwB,CAChC,CAAC;AACF,MAAM,MAAM,gCAAgC,GAAG,SAAS,CACtD,OAAO,+BAA+B,CACvC,CAAC"}
@@ -1,26 +0,0 @@
1
- import { array, object, string } from "../yup-extended";
2
- export const RecommendationTranslationSchema = object({
3
- language: string().required("Language is required"),
4
- title: string().required("Title is required"),
5
- subTitle: string().optional(),
6
- slug: string().optional(),
7
- seo: object({
8
- description: string().optional(),
9
- keywords: array().of(string().required()).optional(),
10
- }).optional(),
11
- });
12
- export const RecommendationFormSchema = object({
13
- title: string().required("Title is required"),
14
- subTitle: string().optional(),
15
- slug: string().optional(),
16
- filter: string().required("Filter (query string) is required"),
17
- countries: array()
18
- .of(string().required())
19
- .min(1, "At least one country is required")
20
- .required(),
21
- seo: object({
22
- description: string().optional(),
23
- keywords: array().of(string().required()).optional(),
24
- }),
25
- translation: array().of(RecommendationTranslationSchema).optional(),
26
- });