"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.hrisGetEmployeeTaskResponseFromJSON = exports.hrisGetEmployeeTaskResponseToJSON = exports.HrisGetEmployeeTaskResponse$ = exports.HrisGetEmployeeTaskResponse$outboundSchema = exports.HrisGetEmployeeTaskResponse$inboundSchema = exports.hrisGetEmployeeTaskRequestFromJSON = exports.hrisGetEmployeeTaskRequestToJSON = exports.HrisGetEmployeeTaskRequest$ = exports.HrisGetEmployeeTaskRequest$outboundSchema = exports.HrisGetEmployeeTaskRequest$inboundSchema = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const shared = __importStar(require("../shared/index.js"));
/** @internal */
exports.HrisGetEmployeeTaskRequest$inboundSchema = z.object({
    expand: z.nullable(z.string()).optional(),
    fields: z.nullable(z.string()).optional(),
    id: z.string(),
    proxy: z.nullable(z.record(z.any())).optional(),
    raw: z.nullable(z.boolean()).optional(),
    subResourceId: z.string(),
    "x-account-id": z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "x-account-id": "xAccountId",
    });
});
/** @internal */
exports.HrisGetEmployeeTaskRequest$outboundSchema = z.object({
    expand: z.nullable(z.string()).optional(),
    fields: z.nullable(z.string()).optional(),
    id: z.string(),
    proxy: z.nullable(z.record(z.any())).optional(),
    raw: z.nullable(z.boolean()).optional(),
    subResourceId: z.string(),
    xAccountId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        xAccountId: "x-account-id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisGetEmployeeTaskRequest$;
(function (HrisGetEmployeeTaskRequest$) {
    /** @deprecated use `HrisGetEmployeeTaskRequest$inboundSchema` instead. */
    HrisGetEmployeeTaskRequest$.inboundSchema = exports.HrisGetEmployeeTaskRequest$inboundSchema;
    /** @deprecated use `HrisGetEmployeeTaskRequest$outboundSchema` instead. */
    HrisGetEmployeeTaskRequest$.outboundSchema = exports.HrisGetEmployeeTaskRequest$outboundSchema;
})(HrisGetEmployeeTaskRequest$ || (exports.HrisGetEmployeeTaskRequest$ = HrisGetEmployeeTaskRequest$ = {}));
function hrisGetEmployeeTaskRequestToJSON(hrisGetEmployeeTaskRequest) {
    return JSON.stringify(exports.HrisGetEmployeeTaskRequest$outboundSchema.parse(hrisGetEmployeeTaskRequest));
}
exports.hrisGetEmployeeTaskRequestToJSON = hrisGetEmployeeTaskRequestToJSON;
function hrisGetEmployeeTaskRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisGetEmployeeTaskRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisGetEmployeeTaskRequest' from JSON`);
}
exports.hrisGetEmployeeTaskRequestFromJSON = hrisGetEmployeeTaskRequestFromJSON;
/** @internal */
exports.HrisGetEmployeeTaskResponse$inboundSchema = z.object({
    ContentType: z.string(),
    Headers: z.record(z.array(z.string())),
    StatusCode: z.number().int(),
    RawResponse: z.instanceof(Response),
    TaskResult: shared.TaskResult$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "ContentType": "contentType",
        "Headers": "headers",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
        "TaskResult": "taskResult",
    });
});
/** @internal */
exports.HrisGetEmployeeTaskResponse$outboundSchema = z.object({
    contentType: z.string(),
    headers: z.record(z.array(z.string())),
    statusCode: z.number().int(),
    rawResponse: z.instanceof(Response).transform(() => {
        throw new Error("Response cannot be serialized");
    }),
    taskResult: shared.TaskResult$outboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentType: "ContentType",
        headers: "Headers",
        statusCode: "StatusCode",
        rawResponse: "RawResponse",
        taskResult: "TaskResult",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisGetEmployeeTaskResponse$;
(function (HrisGetEmployeeTaskResponse$) {
    /** @deprecated use `HrisGetEmployeeTaskResponse$inboundSchema` instead. */
    HrisGetEmployeeTaskResponse$.inboundSchema = exports.HrisGetEmployeeTaskResponse$inboundSchema;
    /** @deprecated use `HrisGetEmployeeTaskResponse$outboundSchema` instead. */
    HrisGetEmployeeTaskResponse$.outboundSchema = exports.HrisGetEmployeeTaskResponse$outboundSchema;
})(HrisGetEmployeeTaskResponse$ || (exports.HrisGetEmployeeTaskResponse$ = HrisGetEmployeeTaskResponse$ = {}));
function hrisGetEmployeeTaskResponseToJSON(hrisGetEmployeeTaskResponse) {
    return JSON.stringify(exports.HrisGetEmployeeTaskResponse$outboundSchema.parse(hrisGetEmployeeTaskResponse));
}
exports.hrisGetEmployeeTaskResponseToJSON = hrisGetEmployeeTaskResponseToJSON;
function hrisGetEmployeeTaskResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisGetEmployeeTaskResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisGetEmployeeTaskResponse' from JSON`);
}
exports.hrisGetEmployeeTaskResponseFromJSON = hrisGetEmployeeTaskResponseFromJSON;
//# sourceMappingURL=hrisgetemployeetask.js.map