"use strict";
// This file was auto-generated by Fern from our API Definition.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.EmployeeRequest = void 0;
const core = __importStar(require("../../../../core"));
const EmployeeRequestCompany_1 = require("./EmployeeRequestCompany");
const EmployeeRequestEmploymentStatus_1 = require("./EmployeeRequestEmploymentStatus");
const EmployeeRequestEmploymentsItem_1 = require("./EmployeeRequestEmploymentsItem");
const EmployeeRequestEthnicity_1 = require("./EmployeeRequestEthnicity");
const EmployeeRequestGender_1 = require("./EmployeeRequestGender");
const EmployeeRequestGroupsItem_1 = require("./EmployeeRequestGroupsItem");
const EmployeeRequestHomeLocation_1 = require("./EmployeeRequestHomeLocation");
const EmployeeRequestManager_1 = require("./EmployeeRequestManager");
const EmployeeRequestMaritalStatus_1 = require("./EmployeeRequestMaritalStatus");
const EmployeeRequestPayGroup_1 = require("./EmployeeRequestPayGroup");
const EmployeeRequestTeam_1 = require("./EmployeeRequestTeam");
const EmployeeRequestWorkLocation_1 = require("./EmployeeRequestWorkLocation");
exports.EmployeeRequest = core.serialization.object({
    employeeNumber: core.serialization.property("employee_number", core.serialization.string().optional()),
    company: EmployeeRequestCompany_1.EmployeeRequestCompany.optional(),
    firstName: core.serialization.property("first_name", core.serialization.string().optional()),
    lastName: core.serialization.property("last_name", core.serialization.string().optional()),
    preferredName: core.serialization.property("preferred_name", core.serialization.string().optional()),
    displayFullName: core.serialization.property("display_full_name", core.serialization.string().optional()),
    username: core.serialization.string().optional(),
    groups: core.serialization.list(EmployeeRequestGroupsItem_1.EmployeeRequestGroupsItem.optional()).optional(),
    workEmail: core.serialization.property("work_email", core.serialization.string().optional()),
    personalEmail: core.serialization.property("personal_email", core.serialization.string().optional()),
    mobilePhoneNumber: core.serialization.property("mobile_phone_number", core.serialization.string().optional()),
    employments: core.serialization.list(EmployeeRequestEmploymentsItem_1.EmployeeRequestEmploymentsItem.optional()).optional(),
    homeLocation: core.serialization.property("home_location", EmployeeRequestHomeLocation_1.EmployeeRequestHomeLocation.optional()),
    workLocation: core.serialization.property("work_location", EmployeeRequestWorkLocation_1.EmployeeRequestWorkLocation.optional()),
    manager: EmployeeRequestManager_1.EmployeeRequestManager.optional(),
    team: EmployeeRequestTeam_1.EmployeeRequestTeam.optional(),
    payGroup: core.serialization.property("pay_group", EmployeeRequestPayGroup_1.EmployeeRequestPayGroup.optional()),
    ssn: core.serialization.string().optional(),
    gender: EmployeeRequestGender_1.EmployeeRequestGender.optional(),
    ethnicity: EmployeeRequestEthnicity_1.EmployeeRequestEthnicity.optional(),
    maritalStatus: core.serialization.property("marital_status", EmployeeRequestMaritalStatus_1.EmployeeRequestMaritalStatus.optional()),
    dateOfBirth: core.serialization.property("date_of_birth", core.serialization.date().optional()),
    hireDate: core.serialization.property("hire_date", core.serialization.date().optional()),
    startDate: core.serialization.property("start_date", core.serialization.date().optional()),
    employmentStatus: core.serialization.property("employment_status", EmployeeRequestEmploymentStatus_1.EmployeeRequestEmploymentStatus.optional()),
    terminationDate: core.serialization.property("termination_date", core.serialization.date().optional()),
    avatar: core.serialization.string().optional(),
    integrationParams: core.serialization.property("integration_params", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
    linkedAccountParams: core.serialization.property("linked_account_params", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
});
