"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.hrisInviteEmployeeResponseFromJSON = exports.hrisInviteEmployeeResponseToJSON = exports.HrisInviteEmployeeResponse$ = exports.HrisInviteEmployeeResponse$outboundSchema = exports.HrisInviteEmployeeResponse$inboundSchema = exports.hrisInviteEmployeeRequestFromJSON = exports.hrisInviteEmployeeRequestToJSON = exports.HrisInviteEmployeeRequest$ = exports.HrisInviteEmployeeRequest$outboundSchema = exports.HrisInviteEmployeeRequest$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.HrisInviteEmployeeRequest$inboundSchema = z.object({
    HrisInviteEmployeeRequestDto: shared.HrisInviteEmployeeRequestDto$inboundSchema,
    id: z.string(),
    "x-account-id": z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "HrisInviteEmployeeRequestDto": "hrisInviteEmployeeRequestDto",
        "x-account-id": "xAccountId",
    });
});
/** @internal */
exports.HrisInviteEmployeeRequest$outboundSchema = z.object({
    hrisInviteEmployeeRequestDto: shared.HrisInviteEmployeeRequestDto$outboundSchema,
    id: z.string(),
    xAccountId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        hrisInviteEmployeeRequestDto: "HrisInviteEmployeeRequestDto",
        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 HrisInviteEmployeeRequest$;
(function (HrisInviteEmployeeRequest$) {
    /** @deprecated use `HrisInviteEmployeeRequest$inboundSchema` instead. */
    HrisInviteEmployeeRequest$.inboundSchema = exports.HrisInviteEmployeeRequest$inboundSchema;
    /** @deprecated use `HrisInviteEmployeeRequest$outboundSchema` instead. */
    HrisInviteEmployeeRequest$.outboundSchema = exports.HrisInviteEmployeeRequest$outboundSchema;
})(HrisInviteEmployeeRequest$ || (exports.HrisInviteEmployeeRequest$ = HrisInviteEmployeeRequest$ = {}));
function hrisInviteEmployeeRequestToJSON(hrisInviteEmployeeRequest) {
    return JSON.stringify(exports.HrisInviteEmployeeRequest$outboundSchema.parse(hrisInviteEmployeeRequest));
}
exports.hrisInviteEmployeeRequestToJSON = hrisInviteEmployeeRequestToJSON;
function hrisInviteEmployeeRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisInviteEmployeeRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisInviteEmployeeRequest' from JSON`);
}
exports.hrisInviteEmployeeRequestFromJSON = hrisInviteEmployeeRequestFromJSON;
/** @internal */
exports.HrisInviteEmployeeResponse$inboundSchema = z.object({
    ContentType: z.string(),
    Headers: z.record(z.array(z.string())),
    InviteEmployeeResult: shared.InviteEmployeeResult$inboundSchema.optional(),
    StatusCode: z.number().int(),
    RawResponse: z.instanceof(Response),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "ContentType": "contentType",
        "Headers": "headers",
        "InviteEmployeeResult": "inviteEmployeeResult",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
    });
});
/** @internal */
exports.HrisInviteEmployeeResponse$outboundSchema = z.object({
    contentType: z.string(),
    headers: z.record(z.array(z.string())),
    inviteEmployeeResult: shared.InviteEmployeeResult$outboundSchema.optional(),
    statusCode: z.number().int(),
    rawResponse: z.instanceof(Response).transform(() => {
        throw new Error("Response cannot be serialized");
    }),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentType: "ContentType",
        headers: "Headers",
        inviteEmployeeResult: "InviteEmployeeResult",
        statusCode: "StatusCode",
        rawResponse: "RawResponse",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var HrisInviteEmployeeResponse$;
(function (HrisInviteEmployeeResponse$) {
    /** @deprecated use `HrisInviteEmployeeResponse$inboundSchema` instead. */
    HrisInviteEmployeeResponse$.inboundSchema = exports.HrisInviteEmployeeResponse$inboundSchema;
    /** @deprecated use `HrisInviteEmployeeResponse$outboundSchema` instead. */
    HrisInviteEmployeeResponse$.outboundSchema = exports.HrisInviteEmployeeResponse$outboundSchema;
})(HrisInviteEmployeeResponse$ || (exports.HrisInviteEmployeeResponse$ = HrisInviteEmployeeResponse$ = {}));
function hrisInviteEmployeeResponseToJSON(hrisInviteEmployeeResponse) {
    return JSON.stringify(exports.HrisInviteEmployeeResponse$outboundSchema.parse(hrisInviteEmployeeResponse));
}
exports.hrisInviteEmployeeResponseToJSON = hrisInviteEmployeeResponseToJSON;
function hrisInviteEmployeeResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HrisInviteEmployeeResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HrisInviteEmployeeResponse' from JSON`);
}
exports.hrisInviteEmployeeResponseFromJSON = hrisInviteEmployeeResponseFromJSON;
//# sourceMappingURL=hrisinviteemployee.js.map