"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.Employee = void 0;
const core = __importStar(require("../../../../core"));
const serializers = __importStar(require("../../../index"));
const EmployeeCompany_1 = require("./EmployeeCompany");
const EmployeeEmploymentStatus_1 = require("./EmployeeEmploymentStatus");
const EmployeeEthnicity_1 = require("./EmployeeEthnicity");
const EmployeeGender_1 = require("./EmployeeGender");
const EmployeeGroupsItem_1 = require("./EmployeeGroupsItem");
const EmployeeHomeLocation_1 = require("./EmployeeHomeLocation");
const EmployeeMaritalStatus_1 = require("./EmployeeMaritalStatus");
const EmployeePayGroup_1 = require("./EmployeePayGroup");
const EmployeeTeam_1 = require("./EmployeeTeam");
const EmployeeWorkLocation_1 = require("./EmployeeWorkLocation");
const RemoteData_1 = require("./RemoteData");
exports.Employee = core.serialization.object({
    id: core.serialization.string().optional(),
    remoteId: core.serialization.property("remote_id", core.serialization.string().optional()),
    createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
    modifiedAt: core.serialization.property("modified_at", core.serialization.date().optional()),
    employeeNumber: core.serialization.property("employee_number", core.serialization.string().optional()),
    company: EmployeeCompany_1.EmployeeCompany.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(EmployeeGroupsItem_1.EmployeeGroupsItem.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(core.serialization.lazy(() => serializers.hris.EmployeeEmploymentsItem).optional())
        .optional(),
    homeLocation: core.serialization.property("home_location", EmployeeHomeLocation_1.EmployeeHomeLocation.optional()),
    workLocation: core.serialization.property("work_location", EmployeeWorkLocation_1.EmployeeWorkLocation.optional()),
    manager: core.serialization.lazy(() => serializers.hris.EmployeeManager).optional(),
    team: EmployeeTeam_1.EmployeeTeam.optional(),
    payGroup: core.serialization.property("pay_group", EmployeePayGroup_1.EmployeePayGroup.optional()),
    ssn: core.serialization.string().optional(),
    gender: EmployeeGender_1.EmployeeGender.optional(),
    ethnicity: EmployeeEthnicity_1.EmployeeEthnicity.optional(),
    maritalStatus: core.serialization.property("marital_status", EmployeeMaritalStatus_1.EmployeeMaritalStatus.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()),
    remoteCreatedAt: core.serialization.property("remote_created_at", core.serialization.date().optional()),
    employmentStatus: core.serialization.property("employment_status", EmployeeEmploymentStatus_1.EmployeeEmploymentStatus.optional()),
    terminationDate: core.serialization.property("termination_date", core.serialization.date().optional()),
    avatar: core.serialization.string().optional(),
    customFields: core.serialization.property("custom_fields", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
    remoteWasDeleted: core.serialization.property("remote_was_deleted", core.serialization.boolean().optional()),
    fieldMappings: core.serialization.property("field_mappings", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
    remoteData: core.serialization.property("remote_data", core.serialization.list(RemoteData_1.RemoteData).optional()),
});
