import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { EarningType } from "../components/earningtype.js"; import { HTTPMetadata } from "../components/httpmetadata.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */ export declare const PostV1CompaniesCompanyIdEarningTypesHeaderXGustoAPIVersion: { readonly TwoThousandAndTwentyFiveMinus06Minus15: "2025-06-15"; }; /** * Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */ export type PostV1CompaniesCompanyIdEarningTypesHeaderXGustoAPIVersion = ClosedEnum; export type PostV1CompaniesCompanyIdEarningTypesRequestBody = { /** * The name of the custom earning type. */ name?: string | undefined; }; export type PostV1CompaniesCompanyIdEarningTypesRequest = { /** * Determines the date-based API version associated with your API call. If none is provided, your application's [minimum API version](https://docs.gusto.com/embedded-payroll/docs/api-versioning#minimum-api-version) is used. */ xGustoAPIVersion?: PostV1CompaniesCompanyIdEarningTypesHeaderXGustoAPIVersion | undefined; /** * The UUID of the company */ companyId: string; requestBody: PostV1CompaniesCompanyIdEarningTypesRequestBody; }; export type PostV1CompaniesCompanyIdEarningTypesResponse = { httpMeta: HTTPMetadata; /** * Success */ earningType?: EarningType | undefined; }; /** @internal */ export declare const PostV1CompaniesCompanyIdEarningTypesHeaderXGustoAPIVersion$outboundSchema: z.ZodNativeEnum; /** @internal */ export type PostV1CompaniesCompanyIdEarningTypesRequestBody$Outbound = { name: string; }; /** @internal */ export declare const PostV1CompaniesCompanyIdEarningTypesRequestBody$outboundSchema: z.ZodType; export declare function postV1CompaniesCompanyIdEarningTypesRequestBodyToJSON(postV1CompaniesCompanyIdEarningTypesRequestBody: PostV1CompaniesCompanyIdEarningTypesRequestBody): string; /** @internal */ export type PostV1CompaniesCompanyIdEarningTypesRequest$Outbound = { "X-Gusto-API-Version": string; company_id: string; RequestBody: PostV1CompaniesCompanyIdEarningTypesRequestBody$Outbound; }; /** @internal */ export declare const PostV1CompaniesCompanyIdEarningTypesRequest$outboundSchema: z.ZodType; export declare function postV1CompaniesCompanyIdEarningTypesRequestToJSON(postV1CompaniesCompanyIdEarningTypesRequest: PostV1CompaniesCompanyIdEarningTypesRequest): string; /** @internal */ export declare const PostV1CompaniesCompanyIdEarningTypesResponse$inboundSchema: z.ZodType; export declare function postV1CompaniesCompanyIdEarningTypesResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=postv1companiescompanyidearningtypes.d.ts.map