import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Address, Address$Outbound } from "./address.js"; import { BankAccount, BankAccount$Outbound } from "./bankaccount.js"; import { Currency } from "./currency.js"; import { CustomField, CustomField$Outbound } from "./customfield.js"; import { Email, Email$Outbound } from "./email.js"; import { Gender } from "./gender.js"; import { LinkedDepartment } from "./linkeddepartment.js"; import { LinkedDepartmentInput, LinkedDepartmentInput$Outbound } from "./linkeddepartmentinput.js"; import { LinkedLocation } from "./linkedlocation.js"; import { LinkedLocationInput, LinkedLocationInput$Outbound } from "./linkedlocationinput.js"; import { LinkedSubsidiary } from "./linkedsubsidiary.js"; import { LinkedSubsidiaryInput, LinkedSubsidiaryInput$Outbound } from "./linkedsubsidiaryinput.js"; import { LinkedTrackingCategory, LinkedTrackingCategory$Outbound } from "./linkedtrackingcategory.js"; import { PassThroughBody, PassThroughBody$Outbound } from "./passthroughbody.js"; import { PhoneNumber, PhoneNumber$Outbound } from "./phonenumber.js"; /** * The status of the employee. */ export declare const EmployeeStatus: { readonly Active: "active"; readonly Inactive: "inactive"; readonly Terminated: "terminated"; }; /** * The status of the employee. */ export type EmployeeStatus = OpenEnum; /** * The manager of the employee. */ export type AccountingEmployeeManager = { /** * A unique identifier for the manager. */ id?: string | undefined; /** * The name of the manager. */ name?: string | null | undefined; }; export type AccountingEmployee = { /** * A unique identifier for an object. */ id?: string | undefined; /** * The third-party API ID of original entity */ downstreamId?: string | null | undefined; /** * Id to be displayed. */ displayId?: string | null | undefined; /** * The first name of the employee. */ firstName?: string | null | undefined; /** * The last name of the employee. */ lastName?: string | null | undefined; /** * The display name of the employee. */ displayName?: string | null | undefined; /** * Email addresses of the employee. */ emails?: Array | undefined; /** * The employee number or identifier. */ employeeNumber?: string | null | undefined; /** * The job title of the employee. */ jobTitle?: string | null | undefined; /** * The status of the employee. */ status?: EmployeeStatus | null | undefined; /** * Whether the employee is a contractor. */ isContractor?: boolean | null | undefined; department?: LinkedDepartment | null | undefined; location?: LinkedLocation | null | undefined; /** * The manager of the employee. */ manager?: AccountingEmployeeManager | undefined; /** * The date the employee was hired. */ hireDate?: Date | null | undefined; /** * The date the employee was terminated. */ terminationDate?: Date | null | undefined; /** * The gender represents the gender identity of a person. */ gender?: Gender | null | undefined; /** * The date of birth of the employee. */ birthDate?: Date | null | undefined; subsidiary?: LinkedSubsidiary | null | undefined; /** * A list of linked tracking categories. */ trackingCategories?: Array | null | undefined; /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ currency?: Currency | null | undefined; /** * Notes about the employee. */ notes?: string | null | undefined; /** * Addresses of the employee. */ addresses?: Array
| undefined; /** * Phone numbers of the employee. */ phoneNumbers?: Array | undefined; bankAccount?: BankAccount | undefined; customFields?: Array | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: { [k: string]: any; } | null | undefined; /** * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. */ rowVersion?: string | null | undefined; /** * The date and time when the object was last updated. */ updatedAt?: Date | null | undefined; /** * The date and time when the object was created. */ createdAt?: Date | null | undefined; /** * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. */ passThrough?: Array | undefined; }; export type AccountingEmployeeInput = { /** * Id to be displayed. */ displayId?: string | null | undefined; /** * The first name of the employee. */ firstName?: string | null | undefined; /** * The last name of the employee. */ lastName?: string | null | undefined; /** * The display name of the employee. */ displayName?: string | null | undefined; /** * Email addresses of the employee. */ emails?: Array | undefined; /** * The employee number or identifier. */ employeeNumber?: string | null | undefined; /** * The job title of the employee. */ jobTitle?: string | null | undefined; /** * The status of the employee. */ status?: EmployeeStatus | null | undefined; /** * Whether the employee is a contractor. */ isContractor?: boolean | null | undefined; department?: LinkedDepartmentInput | null | undefined; location?: LinkedLocationInput | null | undefined; /** * The manager of the employee. */ manager?: AccountingEmployeeManager | undefined; /** * The date the employee was hired. */ hireDate?: Date | null | undefined; /** * The date the employee was terminated. */ terminationDate?: Date | null | undefined; /** * The gender represents the gender identity of a person. */ gender?: Gender | null | undefined; /** * The date of birth of the employee. */ birthDate?: Date | null | undefined; subsidiary?: LinkedSubsidiaryInput | null | undefined; /** * A list of linked tracking categories. */ trackingCategories?: Array | null | undefined; /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ currency?: Currency | null | undefined; /** * Notes about the employee. */ notes?: string | null | undefined; /** * Addresses of the employee. */ addresses?: Array
| undefined; /** * Phone numbers of the employee. */ phoneNumbers?: Array | undefined; bankAccount?: BankAccount | undefined; customFields?: Array | undefined; /** * A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object. */ rowVersion?: string | null | undefined; /** * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. */ passThrough?: Array | undefined; }; /** @internal */ export declare const EmployeeStatus$inboundSchema: z.ZodType; /** @internal */ export declare const EmployeeStatus$outboundSchema: z.ZodType; /** @internal */ export declare const AccountingEmployeeManager$inboundSchema: z.ZodType; /** @internal */ export type AccountingEmployeeManager$Outbound = { id?: string | undefined; name?: string | null | undefined; }; /** @internal */ export declare const AccountingEmployeeManager$outboundSchema: z.ZodType; export declare function accountingEmployeeManagerToJSON(accountingEmployeeManager: AccountingEmployeeManager): string; export declare function accountingEmployeeManagerFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AccountingEmployee$inboundSchema: z.ZodType; export declare function accountingEmployeeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export type AccountingEmployeeInput$Outbound = { display_id?: string | null | undefined; first_name?: string | null | undefined; last_name?: string | null | undefined; display_name?: string | null | undefined; emails?: Array | undefined; employee_number?: string | null | undefined; job_title?: string | null | undefined; status?: string | null | undefined; is_contractor?: boolean | null | undefined; department?: LinkedDepartmentInput$Outbound | null | undefined; location?: LinkedLocationInput$Outbound | null | undefined; manager?: AccountingEmployeeManager$Outbound | undefined; hire_date?: string | null | undefined; termination_date?: string | null | undefined; gender?: string | null | undefined; birth_date?: string | null | undefined; subsidiary?: LinkedSubsidiaryInput$Outbound | null | undefined; tracking_categories?: Array | null | undefined; currency?: string | null | undefined; notes?: string | null | undefined; addresses?: Array | undefined; phone_numbers?: Array | undefined; bank_account?: BankAccount$Outbound | undefined; custom_fields?: Array | undefined; row_version?: string | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const AccountingEmployeeInput$outboundSchema: z.ZodType; export declare function accountingEmployeeInputToJSON(accountingEmployeeInput: AccountingEmployeeInput): string; //# sourceMappingURL=accountingemployee.d.ts.map