text: "use strict";
  var __assign = (this && this.__assign) || function () {
      __assign = Object.assign || function(t) {
          for (var s, i = 1, n = arguments.length; i < n; i++) {
              s = arguments[i];
              for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                  t[p] = s[p];
          }
          return t;
      };
      return __assign.apply(this, arguments);
  };
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.applyForJobSchema = exports.deletePostSchema = exports.updatePostSchema = exports.findPostSchema = exports.createPostSchema = void 0;
  var yup_1 = require("yup");
  exports.createPostSchema = (0, yup_1.object)({
      body: (0, yup_1.object)({
          title: (0, yup_1.string)().required('Title is required'),
          description: (0, yup_1.string)().required('Description is required'),
          location: (0, yup_1.string)().required('Location is required'),
          company: (0, yup_1.string)(),
          type: (0, yup_1.string)().required('Please select job type'),
          contract: (0, yup_1.string)().required('Please select contract type'),
          applicationUrl: (0, yup_1.string)().url('Please enter a valid url'),
          directApply: (0, yup_1.boolean)(),
      }),
  });
  var params = {
      params: (0, yup_1.object)({
          id: (0, yup_1.string)().required(':id param is required '),
      }),
  };
  exports.findPostSchema = (0, yup_1.object)(__assign({}, params));
  exports.updatePostSchema = (0, yup_1.object)(__assign(__assign({}, params), { body: (0, yup_1.object)({
          title: (0, yup_1.string)(),
          description: (0, yup_1.string)(),
          location: (0, yup_1.string)(),
          company: (0, yup_1.string)(),
          type: (0, yup_1.string)(),
          contract: (0, yup_1.string)(),
          applicationUrl: (0, yup_1.string)().url('Please enter a valid url'),
          directApply: (0, yup_1.boolean)(),
      }) }));
  exports.deletePostSchema = (0, yup_1.object)(__assign({}, params));
  exports.applyForJobSchema = (0, yup_1.object)(__assign({}, params));
  