"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
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 (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.assessmentOrderFromJSON = exports.assessmentOrderToJSON = exports.AssessmentOrder$ = exports.AssessmentOrder$outboundSchema = exports.AssessmentOrder$inboundSchema = exports.requesterFromJSON = exports.requesterToJSON = exports.Requester$ = exports.Requester$outboundSchema = exports.Requester$inboundSchema = exports.assessmentOrderPackageFromJSON = exports.assessmentOrderPackageToJSON = exports.AssessmentOrderPackage$ = exports.AssessmentOrderPackage$outboundSchema = exports.AssessmentOrderPackage$inboundSchema = exports.assessmentOrderJobFromJSON = exports.assessmentOrderJobToJSON = exports.AssessmentOrderJob$ = exports.AssessmentOrderJob$outboundSchema = exports.AssessmentOrderJob$inboundSchema = exports.assessmentOrderCandidateFromJSON = exports.assessmentOrderCandidateToJSON = exports.AssessmentOrderCandidate$ = exports.AssessmentOrderCandidate$outboundSchema = exports.AssessmentOrderCandidate$inboundSchema = exports.assessmentOrderApplicationFromJSON = exports.assessmentOrderApplicationToJSON = exports.AssessmentOrderApplication$ = exports.AssessmentOrderApplication$outboundSchema = exports.AssessmentOrderApplication$inboundSchema = exports.assessmentOrderApplicationStatusFromJSON = exports.assessmentOrderApplicationStatusToJSON = exports.AssessmentOrderApplicationStatus$ = exports.AssessmentOrderApplicationStatus$outboundSchema = exports.AssessmentOrderApplicationStatus$inboundSchema = exports.AssessmentOrderValue$ = exports.AssessmentOrderValue$outboundSchema = exports.AssessmentOrderValue$inboundSchema = exports.assessmentOrderSourceValueFromJSON = exports.assessmentOrderSourceValueToJSON = exports.AssessmentOrderSourceValue$ = exports.AssessmentOrderSourceValue$outboundSchema = exports.AssessmentOrderSourceValue$inboundSchema = exports.assessmentOrder4FromJSON = exports.assessmentOrder4ToJSON = exports.AssessmentOrder4$ = exports.AssessmentOrder4$outboundSchema = exports.AssessmentOrder4$inboundSchema = exports.AssessmentOrderValue = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const enums_js_1 = require("../../types/enums.js");
const candidateemail_js_1 = require("./candidateemail.js");
const jobhiringteam_js_1 = require("./jobhiringteam.js");
/**
 * The status of the application.
 */
var AssessmentOrderValue;
(function (AssessmentOrderValue) {
    AssessmentOrderValue["Active"] = "active";
    AssessmentOrderValue["Assessment"] = "assessment";
    AssessmentOrderValue["BackgroundCheck"] = "background_check";
    AssessmentOrderValue["Converted"] = "converted";
    AssessmentOrderValue["DeclinedByCandidate"] = "declined_by_candidate";
    AssessmentOrderValue["Hired"] = "hired";
    AssessmentOrderValue["Interview"] = "interview";
    AssessmentOrderValue["Lead"] = "lead";
    AssessmentOrderValue["Offer"] = "offer";
    AssessmentOrderValue["ReferenceCheck"] = "reference_check";
    AssessmentOrderValue["Rejected"] = "rejected";
    AssessmentOrderValue["Review"] = "review";
    AssessmentOrderValue["Screen"] = "screen";
    AssessmentOrderValue["New"] = "new";
    AssessmentOrderValue["Onboarding"] = "onboarding";
    AssessmentOrderValue["Created"] = "created";
    AssessmentOrderValue["Accepted"] = "accepted";
    AssessmentOrderValue["ShortList"] = "short_list";
    AssessmentOrderValue["Approved"] = "approved";
    AssessmentOrderValue["UnmappedValue"] = "unmapped_value";
})(AssessmentOrderValue || (exports.AssessmentOrderValue = AssessmentOrderValue = {}));
/** @internal */
exports.AssessmentOrder4$inboundSchema = z.object({});
/** @internal */
exports.AssessmentOrder4$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentOrder4$;
(function (AssessmentOrder4$) {
    /** @deprecated use `AssessmentOrder4$inboundSchema` instead. */
    AssessmentOrder4$.inboundSchema = exports.AssessmentOrder4$inboundSchema;
    /** @deprecated use `AssessmentOrder4$outboundSchema` instead. */
    AssessmentOrder4$.outboundSchema = exports.AssessmentOrder4$outboundSchema;
})(AssessmentOrder4$ || (exports.AssessmentOrder4$ = AssessmentOrder4$ = {}));
function assessmentOrder4ToJSON(assessmentOrder4) {
    return JSON.stringify(exports.AssessmentOrder4$outboundSchema.parse(assessmentOrder4));
}
exports.assessmentOrder4ToJSON = assessmentOrder4ToJSON;
function assessmentOrder4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentOrder4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentOrder4' from JSON`);
}
exports.assessmentOrder4FromJSON = assessmentOrder4FromJSON;
/** @internal */
exports.AssessmentOrderSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.AssessmentOrder4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.AssessmentOrderSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.AssessmentOrder4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentOrderSourceValue$;
(function (AssessmentOrderSourceValue$) {
    /** @deprecated use `AssessmentOrderSourceValue$inboundSchema` instead. */
    AssessmentOrderSourceValue$.inboundSchema = exports.AssessmentOrderSourceValue$inboundSchema;
    /** @deprecated use `AssessmentOrderSourceValue$outboundSchema` instead. */
    AssessmentOrderSourceValue$.outboundSchema = exports.AssessmentOrderSourceValue$outboundSchema;
})(AssessmentOrderSourceValue$ || (exports.AssessmentOrderSourceValue$ = AssessmentOrderSourceValue$ = {}));
function assessmentOrderSourceValueToJSON(assessmentOrderSourceValue) {
    return JSON.stringify(exports.AssessmentOrderSourceValue$outboundSchema.parse(assessmentOrderSourceValue));
}
exports.assessmentOrderSourceValueToJSON = assessmentOrderSourceValueToJSON;
function assessmentOrderSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentOrderSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentOrderSourceValue' from JSON`);
}
exports.assessmentOrderSourceValueFromJSON = assessmentOrderSourceValueFromJSON;
/** @internal */
exports.AssessmentOrderValue$inboundSchema = z
    .union([
    z.nativeEnum(AssessmentOrderValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.AssessmentOrderValue$outboundSchema = z.union([
    z.nativeEnum(AssessmentOrderValue),
    z.string().and(z.custom()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentOrderValue$;
(function (AssessmentOrderValue$) {
    /** @deprecated use `AssessmentOrderValue$inboundSchema` instead. */
    AssessmentOrderValue$.inboundSchema = exports.AssessmentOrderValue$inboundSchema;
    /** @deprecated use `AssessmentOrderValue$outboundSchema` instead. */
    AssessmentOrderValue$.outboundSchema = exports.AssessmentOrderValue$outboundSchema;
})(AssessmentOrderValue$ || (exports.AssessmentOrderValue$ = AssessmentOrderValue$ = {}));
/** @internal */
exports.AssessmentOrderApplicationStatus$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.AssessmentOrder4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AssessmentOrderValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.AssessmentOrderApplicationStatus$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.AssessmentOrder4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AssessmentOrderValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentOrderApplicationStatus$;
(function (AssessmentOrderApplicationStatus$) {
    /** @deprecated use `AssessmentOrderApplicationStatus$inboundSchema` instead. */
    AssessmentOrderApplicationStatus$.inboundSchema = exports.AssessmentOrderApplicationStatus$inboundSchema;
    /** @deprecated use `AssessmentOrderApplicationStatus$outboundSchema` instead. */
    AssessmentOrderApplicationStatus$.outboundSchema = exports.AssessmentOrderApplicationStatus$outboundSchema;
})(AssessmentOrderApplicationStatus$ || (exports.AssessmentOrderApplicationStatus$ = AssessmentOrderApplicationStatus$ = {}));
function assessmentOrderApplicationStatusToJSON(assessmentOrderApplicationStatus) {
    return JSON.stringify(exports.AssessmentOrderApplicationStatus$outboundSchema.parse(assessmentOrderApplicationStatus));
}
exports.assessmentOrderApplicationStatusToJSON = assessmentOrderApplicationStatusToJSON;
function assessmentOrderApplicationStatusFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentOrderApplicationStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentOrderApplicationStatus' from JSON`);
}
exports.assessmentOrderApplicationStatusFromJSON = assessmentOrderApplicationStatusFromJSON;
/** @internal */
exports.AssessmentOrderApplication$inboundSchema = z.object({
    application_status: z.nullable(z.lazy(() => exports.AssessmentOrderApplicationStatus$inboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    remote_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "application_status": "applicationStatus",
        "remote_id": "remoteId",
    });
});
/** @internal */
exports.AssessmentOrderApplication$outboundSchema = z.object({
    applicationStatus: z.nullable(z.lazy(() => exports.AssessmentOrderApplicationStatus$outboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    remoteId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        applicationStatus: "application_status",
        remoteId: "remote_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentOrderApplication$;
(function (AssessmentOrderApplication$) {
    /** @deprecated use `AssessmentOrderApplication$inboundSchema` instead. */
    AssessmentOrderApplication$.inboundSchema = exports.AssessmentOrderApplication$inboundSchema;
    /** @deprecated use `AssessmentOrderApplication$outboundSchema` instead. */
    AssessmentOrderApplication$.outboundSchema = exports.AssessmentOrderApplication$outboundSchema;
})(AssessmentOrderApplication$ || (exports.AssessmentOrderApplication$ = AssessmentOrderApplication$ = {}));
function assessmentOrderApplicationToJSON(assessmentOrderApplication) {
    return JSON.stringify(exports.AssessmentOrderApplication$outboundSchema.parse(assessmentOrderApplication));
}
exports.assessmentOrderApplicationToJSON = assessmentOrderApplicationToJSON;
function assessmentOrderApplicationFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentOrderApplication$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentOrderApplication' from JSON`);
}
exports.assessmentOrderApplicationFromJSON = assessmentOrderApplicationFromJSON;
/** @internal */
exports.AssessmentOrderCandidate$inboundSchema = z.object({
    emails: z.nullable(z.array(candidateemail_js_1.CandidateEmail$inboundSchema)).optional(),
    first_name: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    last_name: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    profile_url: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "first_name": "firstName",
        "last_name": "lastName",
        "profile_url": "profileUrl",
        "remote_id": "remoteId",
    });
});
/** @internal */
exports.AssessmentOrderCandidate$outboundSchema = z.object({
    emails: z.nullable(z.array(candidateemail_js_1.CandidateEmail$outboundSchema)).optional(),
    firstName: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    lastName: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    profileUrl: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        firstName: "first_name",
        lastName: "last_name",
        profileUrl: "profile_url",
        remoteId: "remote_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentOrderCandidate$;
(function (AssessmentOrderCandidate$) {
    /** @deprecated use `AssessmentOrderCandidate$inboundSchema` instead. */
    AssessmentOrderCandidate$.inboundSchema = exports.AssessmentOrderCandidate$inboundSchema;
    /** @deprecated use `AssessmentOrderCandidate$outboundSchema` instead. */
    AssessmentOrderCandidate$.outboundSchema = exports.AssessmentOrderCandidate$outboundSchema;
})(AssessmentOrderCandidate$ || (exports.AssessmentOrderCandidate$ = AssessmentOrderCandidate$ = {}));
function assessmentOrderCandidateToJSON(assessmentOrderCandidate) {
    return JSON.stringify(exports.AssessmentOrderCandidate$outboundSchema.parse(assessmentOrderCandidate));
}
exports.assessmentOrderCandidateToJSON = assessmentOrderCandidateToJSON;
function assessmentOrderCandidateFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentOrderCandidate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentOrderCandidate' from JSON`);
}
exports.assessmentOrderCandidateFromJSON = assessmentOrderCandidateFromJSON;
/** @internal */
exports.AssessmentOrderJob$inboundSchema = z.object({
    hiring_team: z.nullable(z.array(jobhiringteam_js_1.JobHiringTeam$inboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    remote_id: z.nullable(z.string()).optional(),
    title: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "hiring_team": "hiringTeam",
        "remote_id": "remoteId",
    });
});
/** @internal */
exports.AssessmentOrderJob$outboundSchema = z.object({
    hiringTeam: z.nullable(z.array(jobhiringteam_js_1.JobHiringTeam$outboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    remoteId: z.nullable(z.string()).optional(),
    title: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        hiringTeam: "hiring_team",
        remoteId: "remote_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentOrderJob$;
(function (AssessmentOrderJob$) {
    /** @deprecated use `AssessmentOrderJob$inboundSchema` instead. */
    AssessmentOrderJob$.inboundSchema = exports.AssessmentOrderJob$inboundSchema;
    /** @deprecated use `AssessmentOrderJob$outboundSchema` instead. */
    AssessmentOrderJob$.outboundSchema = exports.AssessmentOrderJob$outboundSchema;
})(AssessmentOrderJob$ || (exports.AssessmentOrderJob$ = AssessmentOrderJob$ = {}));
function assessmentOrderJobToJSON(assessmentOrderJob) {
    return JSON.stringify(exports.AssessmentOrderJob$outboundSchema.parse(assessmentOrderJob));
}
exports.assessmentOrderJobToJSON = assessmentOrderJobToJSON;
function assessmentOrderJobFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentOrderJob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentOrderJob' from JSON`);
}
exports.assessmentOrderJobFromJSON = assessmentOrderJobFromJSON;
/** @internal */
exports.AssessmentOrderPackage$inboundSchema = z.object({
    description: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "remote_id": "remoteId",
    });
});
/** @internal */
exports.AssessmentOrderPackage$outboundSchema = z.object({
    description: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        remoteId: "remote_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentOrderPackage$;
(function (AssessmentOrderPackage$) {
    /** @deprecated use `AssessmentOrderPackage$inboundSchema` instead. */
    AssessmentOrderPackage$.inboundSchema = exports.AssessmentOrderPackage$inboundSchema;
    /** @deprecated use `AssessmentOrderPackage$outboundSchema` instead. */
    AssessmentOrderPackage$.outboundSchema = exports.AssessmentOrderPackage$outboundSchema;
})(AssessmentOrderPackage$ || (exports.AssessmentOrderPackage$ = AssessmentOrderPackage$ = {}));
function assessmentOrderPackageToJSON(assessmentOrderPackage) {
    return JSON.stringify(exports.AssessmentOrderPackage$outboundSchema.parse(assessmentOrderPackage));
}
exports.assessmentOrderPackageToJSON = assessmentOrderPackageToJSON;
function assessmentOrderPackageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentOrderPackage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentOrderPackage' from JSON`);
}
exports.assessmentOrderPackageFromJSON = assessmentOrderPackageFromJSON;
/** @internal */
exports.Requester$inboundSchema = z.object({
    email: z.nullable(z.string()).optional(),
    first_name: z.nullable(z.string()).optional(),
    last_name: z.nullable(z.string()).optional(),
    remote_user_id: z.nullable(z.string()).optional(),
    role: z.nullable(z.string()).optional(),
    user_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "first_name": "firstName",
        "last_name": "lastName",
        "remote_user_id": "remoteUserId",
        "user_id": "userId",
    });
});
/** @internal */
exports.Requester$outboundSchema = z.object({
    email: z.nullable(z.string()).optional(),
    firstName: z.nullable(z.string()).optional(),
    lastName: z.nullable(z.string()).optional(),
    remoteUserId: z.nullable(z.string()).optional(),
    role: z.nullable(z.string()).optional(),
    userId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        firstName: "first_name",
        lastName: "last_name",
        remoteUserId: "remote_user_id",
        userId: "user_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Requester$;
(function (Requester$) {
    /** @deprecated use `Requester$inboundSchema` instead. */
    Requester$.inboundSchema = exports.Requester$inboundSchema;
    /** @deprecated use `Requester$outboundSchema` instead. */
    Requester$.outboundSchema = exports.Requester$outboundSchema;
})(Requester$ || (exports.Requester$ = Requester$ = {}));
function requesterToJSON(requester) {
    return JSON.stringify(exports.Requester$outboundSchema.parse(requester));
}
exports.requesterToJSON = requesterToJSON;
function requesterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Requester$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Requester' from JSON`);
}
exports.requesterFromJSON = requesterFromJSON;
/** @internal */
exports.AssessmentOrder$inboundSchema = z.object({
    application: z.nullable(z.lazy(() => exports.AssessmentOrderApplication$inboundSchema)).optional(),
    candidate: z.nullable(z.lazy(() => exports.AssessmentOrderCandidate$inboundSchema))
        .optional(),
    id: z.nullable(z.string()).optional(),
    job: z.nullable(z.lazy(() => exports.AssessmentOrderJob$inboundSchema)).optional(),
    package: z.nullable(z.lazy(() => exports.AssessmentOrderPackage$inboundSchema))
        .optional(),
    remote_id: z.nullable(z.string()).optional(),
    requester: z.nullable(z.lazy(() => exports.Requester$inboundSchema)).optional(),
    results_update_url: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "remote_id": "remoteId",
        "results_update_url": "resultsUpdateUrl",
    });
});
/** @internal */
exports.AssessmentOrder$outboundSchema = z.object({
    application: z.nullable(z.lazy(() => exports.AssessmentOrderApplication$outboundSchema)).optional(),
    candidate: z.nullable(z.lazy(() => exports.AssessmentOrderCandidate$outboundSchema))
        .optional(),
    id: z.nullable(z.string()).optional(),
    job: z.nullable(z.lazy(() => exports.AssessmentOrderJob$outboundSchema)).optional(),
    package: z.nullable(z.lazy(() => exports.AssessmentOrderPackage$outboundSchema))
        .optional(),
    remoteId: z.nullable(z.string()).optional(),
    requester: z.nullable(z.lazy(() => exports.Requester$outboundSchema)).optional(),
    resultsUpdateUrl: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        remoteId: "remote_id",
        resultsUpdateUrl: "results_update_url",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentOrder$;
(function (AssessmentOrder$) {
    /** @deprecated use `AssessmentOrder$inboundSchema` instead. */
    AssessmentOrder$.inboundSchema = exports.AssessmentOrder$inboundSchema;
    /** @deprecated use `AssessmentOrder$outboundSchema` instead. */
    AssessmentOrder$.outboundSchema = exports.AssessmentOrder$outboundSchema;
})(AssessmentOrder$ || (exports.AssessmentOrder$ = AssessmentOrder$ = {}));
function assessmentOrderToJSON(assessmentOrder) {
    return JSON.stringify(exports.AssessmentOrder$outboundSchema.parse(assessmentOrder));
}
exports.assessmentOrderToJSON = assessmentOrderToJSON;
function assessmentOrderFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssessmentOrder$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssessmentOrder' from JSON`);
}
exports.assessmentOrderFromJSON = assessmentOrderFromJSON;
//# sourceMappingURL=assessmentorder.js.map