@thejob/schema 1.0.13 → 1.0.14

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.
@@ -224,13 +224,7 @@ export declare const JobSchema: ObjectSchema<{
224
224
  ratePerHour: undefined;
225
225
  externalApplicantCount: undefined;
226
226
  isPromoted: undefined;
227
- salaryRange: {
228
- currency: "USD";
229
- min: undefined;
230
- max: undefined;
231
- compensationType: undefined;
232
- isNegotiable: false;
233
- };
227
+ salaryRange: undefined;
234
228
  reports: "";
235
229
  termsAccepted: undefined;
236
230
  id: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"job.schema.d.ts","sourceRoot":"","sources":["../../../src/job/job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAW7B,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAc,QAAQ,EAAmC,MAAM,SAAS,CAAC;AAEhF,OAAO,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwXP,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"job.schema.d.ts","sourceRoot":"","sources":["../../../src/job/job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAW7B,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAc,QAAQ,EAAmC,MAAM,SAAS,CAAC;AAEhF,OAAO,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwXP,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC"}
@@ -318,6 +318,7 @@ exports.JobSchema = (0, yup_extended_1.object)()
318
318
  .default(false)
319
319
  .label("Is Negotiable"),
320
320
  })
321
+ .default(undefined)
321
322
  .optional()
322
323
  .label("Salary Range"),
323
324
  /*
@@ -335,7 +336,6 @@ exports.JobSchema = (0, yup_extended_1.object)()
335
336
  termsAccepted: (0, yup_extended_1.boolean)()
336
337
  .oneOf([true], "Accept terms before proceeding")
337
338
  .required("Accept terms before proceeding")
338
- .required()
339
339
  .label("Terms accepted"),
340
340
  })
341
341
  .concat(common_1.DbDefaultSchema)
@@ -83,13 +83,7 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
83
83
  ratePerHour: undefined;
84
84
  externalApplicantCount: undefined;
85
85
  isPromoted: undefined;
86
- salaryRange: {
87
- currency: "USD";
88
- min: undefined;
89
- max: undefined;
90
- compensationType: undefined;
91
- isNegotiable: false;
92
- };
86
+ salaryRange: undefined;
93
87
  reports: "";
94
88
  termsAccepted: undefined;
95
89
  id: 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"}
@@ -0,0 +1,2 @@
1
+ export * from "./institute.schema";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/page/institute/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,17 @@
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("./institute.schema"), exports);
@@ -0,0 +1,2 @@
1
+ export declare const InstituteSchema: import("yup").ObjectSchema<{}, import("yup").AnyObject, {}, "">;
2
+ //# sourceMappingURL=institute.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"institute.schema.d.ts","sourceRoot":"","sources":["../../../../src/page/institute/institute.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,iEAA8C,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InstituteSchema = void 0;
4
+ const yup_extended_1 = require("../../yup-extended");
5
+ exports.InstituteSchema = (0, yup_extended_1.object)().shape({}).label("InstituteSchema");
@@ -1 +1 @@
1
- {"version":3,"file":"page.schema.d.ts","sourceRoot":"","sources":["../../../src/page/page.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,SAAS,EAGV,MAAM,iBAAiB,CAAC;AAKzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuEA,CAAC;AAExB,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"page.schema.d.ts","sourceRoot":"","sources":["../../../src/page/page.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,SAAS,EAGV,MAAM,iBAAiB,CAAC;AAMzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwEA,CAAC;AAExB,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -5,6 +5,7 @@ const common_1 = require("../common");
5
5
  const social_account_1 = require("../social-account");
6
6
  const yup_extended_1 = require("../yup-extended");
7
7
  const company_1 = require("./company");
8
+ const institute_1 = require("./institute");
8
9
  const page_location_1 = require("./page-location");
9
10
  const page_constant_1 = require("./page.constant");
10
11
  exports.PageSchema = (0, yup_extended_1.object)()
@@ -71,6 +72,7 @@ exports.PageSchema = (0, yup_extended_1.object)()
71
72
  isOwner: (0, yup_extended_1.boolean)().optional().label("Is Owner"),
72
73
  })
73
74
  .concat(company_1.CompanySchema)
75
+ .concat(institute_1.InstituteSchema)
74
76
  .concat(common_1.DbDefaultSchema)
75
77
  .noUnknown(true)
76
78
  .strict(true)
@@ -224,13 +224,7 @@ export declare const JobSchema: ObjectSchema<{
224
224
  ratePerHour: undefined;
225
225
  externalApplicantCount: undefined;
226
226
  isPromoted: undefined;
227
- salaryRange: {
228
- currency: "USD";
229
- min: undefined;
230
- max: undefined;
231
- compensationType: undefined;
232
- isNegotiable: false;
233
- };
227
+ salaryRange: undefined;
234
228
  reports: "";
235
229
  termsAccepted: undefined;
236
230
  id: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"job.schema.d.ts","sourceRoot":"","sources":["../../../src/job/job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAW7B,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAc,QAAQ,EAAmC,MAAM,SAAS,CAAC;AAEhF,OAAO,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwXP,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"job.schema.d.ts","sourceRoot":"","sources":["../../../src/job/job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAW7B,MAAM,WAAW,CAAC;AAGnB,OAAO,EAAc,QAAQ,EAAmC,MAAM,SAAS,CAAC;AAEhF,OAAO,EAGL,SAAS,EAKT,YAAY,EAEb,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAwB,MAAM,gBAAgB,CAAC;AAGjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwXP,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,SAAS,CAAC,CAAC"}
@@ -315,6 +315,7 @@ export const JobSchema = object()
315
315
  .default(false)
316
316
  .label("Is Negotiable"),
317
317
  })
318
+ .default(undefined)
318
319
  .optional()
319
320
  .label("Salary Range"),
320
321
  /*
@@ -332,7 +333,6 @@ export const JobSchema = object()
332
333
  termsAccepted: boolean()
333
334
  .oneOf([true], "Accept terms before proceeding")
334
335
  .required("Accept terms before proceeding")
335
- .required()
336
336
  .label("Terms accepted"),
337
337
  })
338
338
  .concat(DbDefaultSchema)
@@ -83,13 +83,7 @@ export declare const JobRoleTemplateSchema: import("yup").ObjectSchema<{
83
83
  ratePerHour: undefined;
84
84
  externalApplicantCount: undefined;
85
85
  isPromoted: undefined;
86
- salaryRange: {
87
- currency: "USD";
88
- min: undefined;
89
- max: undefined;
90
- compensationType: undefined;
91
- isNegotiable: false;
92
- };
86
+ salaryRange: undefined;
93
87
  reports: "";
94
88
  termsAccepted: undefined;
95
89
  id: 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"}
@@ -0,0 +1,2 @@
1
+ export * from "./institute.schema";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/page/institute/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./institute.schema";
@@ -0,0 +1,2 @@
1
+ export declare const InstituteSchema: import("yup").ObjectSchema<{}, import("yup").AnyObject, {}, "">;
2
+ //# sourceMappingURL=institute.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"institute.schema.d.ts","sourceRoot":"","sources":["../../../../src/page/institute/institute.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,iEAA8C,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { object } from "../../yup-extended";
2
+ export const InstituteSchema = object().shape({}).label("InstituteSchema");
@@ -1 +1 @@
1
- {"version":3,"file":"page.schema.d.ts","sourceRoot":"","sources":["../../../src/page/page.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,SAAS,EAGV,MAAM,iBAAiB,CAAC;AAKzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuEA,CAAC;AAExB,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"page.schema.d.ts","sourceRoot":"","sources":["../../../src/page/page.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,SAAS,EAGV,MAAM,iBAAiB,CAAC;AAMzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwEA,CAAC;AAExB,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -2,6 +2,7 @@ import { DbDefaultSchema, NameIdLogoSchema } from "../common";
2
2
  import { SocialAccountSchema } from "../social-account";
3
3
  import { array, boolean, date, object, string, } from "../yup-extended";
4
4
  import { CompanySchema } from "./company";
5
+ import { InstituteSchema } from "./institute";
5
6
  import { PageLocationSchema } from "./page-location";
6
7
  import { SupportedContactTypes, SupportedPageTypes } from "./page.constant";
7
8
  export const PageSchema = object()
@@ -68,6 +69,7 @@ export const PageSchema = object()
68
69
  isOwner: boolean().optional().label("Is Owner"),
69
70
  })
70
71
  .concat(CompanySchema)
72
+ .concat(InstituteSchema)
71
73
  .concat(DbDefaultSchema)
72
74
  .noUnknown(true)
73
75
  .strict(true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thejob/schema",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",