"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 () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.PutDemographicsRequest$ = exports.PutDemographicsRequest$outboundSchema = exports.PutDemographicsRequest$inboundSchema = exports.PutDemographicsRequestBody$ = exports.PutDemographicsRequestBody$outboundSchema = exports.PutDemographicsRequestBody$inboundSchema = exports.PutDemographicsDemographics$ = exports.PutDemographicsDemographics$outboundSchema = exports.PutDemographicsDemographics$inboundSchema = exports.PutDemographicsHispanicOrLatinoEthnicity$ = exports.PutDemographicsHispanicOrLatinoEthnicity$outboundSchema = exports.PutDemographicsHispanicOrLatinoEthnicity$inboundSchema = exports.PutDemographicsDemographicRaceTwoOrMoreRaces$ = exports.PutDemographicsDemographicRaceTwoOrMoreRaces$outboundSchema = exports.PutDemographicsDemographicRaceTwoOrMoreRaces$inboundSchema = exports.PutDemographicsWhite$ = exports.PutDemographicsWhite$outboundSchema = exports.PutDemographicsWhite$inboundSchema = exports.PutDemographicsNativeHawaiianOrOtherPacificIslander$ = exports.PutDemographicsNativeHawaiianOrOtherPacificIslander$outboundSchema = exports.PutDemographicsNativeHawaiianOrOtherPacificIslander$inboundSchema = exports.PutDemographicsBlackOrAfricanAmerican$ = exports.PutDemographicsBlackOrAfricanAmerican$outboundSchema = exports.PutDemographicsBlackOrAfricanAmerican$inboundSchema = exports.PutDemographicsAsian$ = exports.PutDemographicsAsian$outboundSchema = exports.PutDemographicsAsian$inboundSchema = exports.PutDemographicsAmericanIndianOrAlaskaNative$ = exports.PutDemographicsAmericanIndianOrAlaskaNative$outboundSchema = exports.PutDemographicsAmericanIndianOrAlaskaNative$inboundSchema = exports.PutDemographicsSex$ = exports.PutDemographicsSex$outboundSchema = exports.PutDemographicsSex$inboundSchema = exports.PutDemographicsStatus$ = exports.PutDemographicsStatus$outboundSchema = exports.PutDemographicsStatus$inboundSchema = exports.PutDemographicsHispanicOrLatinoEthnicity = exports.PutDemographicsDemographicRaceTwoOrMoreRaces = exports.PutDemographicsWhite = exports.PutDemographicsNativeHawaiianOrOtherPacificIslander = exports.PutDemographicsBlackOrAfricanAmerican = exports.PutDemographicsAsian = exports.PutDemographicsAmericanIndianOrAlaskaNative = exports.PutDemographicsSex = exports.PutDemographicsStatus = void 0;
exports.putDemographicsDemographicsToJSON = putDemographicsDemographicsToJSON;
exports.putDemographicsDemographicsFromJSON = putDemographicsDemographicsFromJSON;
exports.putDemographicsRequestBodyToJSON = putDemographicsRequestBodyToJSON;
exports.putDemographicsRequestBodyFromJSON = putDemographicsRequestBodyFromJSON;
exports.putDemographicsRequestToJSON = putDemographicsRequestToJSON;
exports.putDemographicsRequestFromJSON = putDemographicsRequestFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.PutDemographicsStatus = {
    Active: "active",
    Tobedeleted: "tobedeleted",
};
exports.PutDemographicsSex = {
    Male: "male",
    Female: "female",
};
exports.PutDemographicsAmericanIndianOrAlaskaNative = {
    True: "true",
    False: "false",
};
exports.PutDemographicsAsian = {
    True: "true",
    False: "false",
};
exports.PutDemographicsBlackOrAfricanAmerican = {
    True: "true",
    False: "false",
};
exports.PutDemographicsNativeHawaiianOrOtherPacificIslander = {
    True: "true",
    False: "false",
};
exports.PutDemographicsWhite = {
    True: "true",
    False: "false",
};
exports.PutDemographicsDemographicRaceTwoOrMoreRaces = {
    True: "true",
    False: "false",
};
exports.PutDemographicsHispanicOrLatinoEthnicity = {
    True: "true",
    False: "false",
};
/** @internal */
exports.PutDemographicsStatus$inboundSchema = z.nativeEnum(exports.PutDemographicsStatus);
/** @internal */
exports.PutDemographicsStatus$outboundSchema = exports.PutDemographicsStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PutDemographicsStatus$;
(function (PutDemographicsStatus$) {
    /** @deprecated use `PutDemographicsStatus$inboundSchema` instead. */
    PutDemographicsStatus$.inboundSchema = exports.PutDemographicsStatus$inboundSchema;
    /** @deprecated use `PutDemographicsStatus$outboundSchema` instead. */
    PutDemographicsStatus$.outboundSchema = exports.PutDemographicsStatus$outboundSchema;
})(PutDemographicsStatus$ || (exports.PutDemographicsStatus$ = PutDemographicsStatus$ = {}));
/** @internal */
exports.PutDemographicsSex$inboundSchema = z.nativeEnum(exports.PutDemographicsSex);
/** @internal */
exports.PutDemographicsSex$outboundSchema = exports.PutDemographicsSex$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PutDemographicsSex$;
(function (PutDemographicsSex$) {
    /** @deprecated use `PutDemographicsSex$inboundSchema` instead. */
    PutDemographicsSex$.inboundSchema = exports.PutDemographicsSex$inboundSchema;
    /** @deprecated use `PutDemographicsSex$outboundSchema` instead. */
    PutDemographicsSex$.outboundSchema = exports.PutDemographicsSex$outboundSchema;
})(PutDemographicsSex$ || (exports.PutDemographicsSex$ = PutDemographicsSex$ = {}));
/** @internal */
exports.PutDemographicsAmericanIndianOrAlaskaNative$inboundSchema = z
    .nativeEnum(exports.PutDemographicsAmericanIndianOrAlaskaNative);
/** @internal */
exports.PutDemographicsAmericanIndianOrAlaskaNative$outboundSchema = exports.PutDemographicsAmericanIndianOrAlaskaNative$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PutDemographicsAmericanIndianOrAlaskaNative$;
(function (PutDemographicsAmericanIndianOrAlaskaNative$) {
    /** @deprecated use `PutDemographicsAmericanIndianOrAlaskaNative$inboundSchema` instead. */
    PutDemographicsAmericanIndianOrAlaskaNative$.inboundSchema = exports.PutDemographicsAmericanIndianOrAlaskaNative$inboundSchema;
    /** @deprecated use `PutDemographicsAmericanIndianOrAlaskaNative$outboundSchema` instead. */
    PutDemographicsAmericanIndianOrAlaskaNative$.outboundSchema = exports.PutDemographicsAmericanIndianOrAlaskaNative$outboundSchema;
})(PutDemographicsAmericanIndianOrAlaskaNative$ || (exports.PutDemographicsAmericanIndianOrAlaskaNative$ = PutDemographicsAmericanIndianOrAlaskaNative$ = {}));
/** @internal */
exports.PutDemographicsAsian$inboundSchema = z.nativeEnum(exports.PutDemographicsAsian);
/** @internal */
exports.PutDemographicsAsian$outboundSchema = exports.PutDemographicsAsian$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PutDemographicsAsian$;
(function (PutDemographicsAsian$) {
    /** @deprecated use `PutDemographicsAsian$inboundSchema` instead. */
    PutDemographicsAsian$.inboundSchema = exports.PutDemographicsAsian$inboundSchema;
    /** @deprecated use `PutDemographicsAsian$outboundSchema` instead. */
    PutDemographicsAsian$.outboundSchema = exports.PutDemographicsAsian$outboundSchema;
})(PutDemographicsAsian$ || (exports.PutDemographicsAsian$ = PutDemographicsAsian$ = {}));
/** @internal */
exports.PutDemographicsBlackOrAfricanAmerican$inboundSchema = z.nativeEnum(exports.PutDemographicsBlackOrAfricanAmerican);
/** @internal */
exports.PutDemographicsBlackOrAfricanAmerican$outboundSchema = exports.PutDemographicsBlackOrAfricanAmerican$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PutDemographicsBlackOrAfricanAmerican$;
(function (PutDemographicsBlackOrAfricanAmerican$) {
    /** @deprecated use `PutDemographicsBlackOrAfricanAmerican$inboundSchema` instead. */
    PutDemographicsBlackOrAfricanAmerican$.inboundSchema = exports.PutDemographicsBlackOrAfricanAmerican$inboundSchema;
    /** @deprecated use `PutDemographicsBlackOrAfricanAmerican$outboundSchema` instead. */
    PutDemographicsBlackOrAfricanAmerican$.outboundSchema = exports.PutDemographicsBlackOrAfricanAmerican$outboundSchema;
})(PutDemographicsBlackOrAfricanAmerican$ || (exports.PutDemographicsBlackOrAfricanAmerican$ = PutDemographicsBlackOrAfricanAmerican$ = {}));
/** @internal */
exports.PutDemographicsNativeHawaiianOrOtherPacificIslander$inboundSchema = z.nativeEnum(exports.PutDemographicsNativeHawaiianOrOtherPacificIslander);
/** @internal */
exports.PutDemographicsNativeHawaiianOrOtherPacificIslander$outboundSchema = exports.PutDemographicsNativeHawaiianOrOtherPacificIslander$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PutDemographicsNativeHawaiianOrOtherPacificIslander$;
(function (PutDemographicsNativeHawaiianOrOtherPacificIslander$) {
    /** @deprecated use `PutDemographicsNativeHawaiianOrOtherPacificIslander$inboundSchema` instead. */
    PutDemographicsNativeHawaiianOrOtherPacificIslander$.inboundSchema = exports.PutDemographicsNativeHawaiianOrOtherPacificIslander$inboundSchema;
    /** @deprecated use `PutDemographicsNativeHawaiianOrOtherPacificIslander$outboundSchema` instead. */
    PutDemographicsNativeHawaiianOrOtherPacificIslander$.outboundSchema = exports.PutDemographicsNativeHawaiianOrOtherPacificIslander$outboundSchema;
})(PutDemographicsNativeHawaiianOrOtherPacificIslander$ || (exports.PutDemographicsNativeHawaiianOrOtherPacificIslander$ = PutDemographicsNativeHawaiianOrOtherPacificIslander$ = {}));
/** @internal */
exports.PutDemographicsWhite$inboundSchema = z.nativeEnum(exports.PutDemographicsWhite);
/** @internal */
exports.PutDemographicsWhite$outboundSchema = exports.PutDemographicsWhite$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PutDemographicsWhite$;
(function (PutDemographicsWhite$) {
    /** @deprecated use `PutDemographicsWhite$inboundSchema` instead. */
    PutDemographicsWhite$.inboundSchema = exports.PutDemographicsWhite$inboundSchema;
    /** @deprecated use `PutDemographicsWhite$outboundSchema` instead. */
    PutDemographicsWhite$.outboundSchema = exports.PutDemographicsWhite$outboundSchema;
})(PutDemographicsWhite$ || (exports.PutDemographicsWhite$ = PutDemographicsWhite$ = {}));
/** @internal */
exports.PutDemographicsDemographicRaceTwoOrMoreRaces$inboundSchema = z
    .nativeEnum(exports.PutDemographicsDemographicRaceTwoOrMoreRaces);
/** @internal */
exports.PutDemographicsDemographicRaceTwoOrMoreRaces$outboundSchema = exports.PutDemographicsDemographicRaceTwoOrMoreRaces$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PutDemographicsDemographicRaceTwoOrMoreRaces$;
(function (PutDemographicsDemographicRaceTwoOrMoreRaces$) {
    /** @deprecated use `PutDemographicsDemographicRaceTwoOrMoreRaces$inboundSchema` instead. */
    PutDemographicsDemographicRaceTwoOrMoreRaces$.inboundSchema = exports.PutDemographicsDemographicRaceTwoOrMoreRaces$inboundSchema;
    /** @deprecated use `PutDemographicsDemographicRaceTwoOrMoreRaces$outboundSchema` instead. */
    PutDemographicsDemographicRaceTwoOrMoreRaces$.outboundSchema = exports.PutDemographicsDemographicRaceTwoOrMoreRaces$outboundSchema;
})(PutDemographicsDemographicRaceTwoOrMoreRaces$ || (exports.PutDemographicsDemographicRaceTwoOrMoreRaces$ = PutDemographicsDemographicRaceTwoOrMoreRaces$ = {}));
/** @internal */
exports.PutDemographicsHispanicOrLatinoEthnicity$inboundSchema = z
    .nativeEnum(exports.PutDemographicsHispanicOrLatinoEthnicity);
/** @internal */
exports.PutDemographicsHispanicOrLatinoEthnicity$outboundSchema = exports.PutDemographicsHispanicOrLatinoEthnicity$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PutDemographicsHispanicOrLatinoEthnicity$;
(function (PutDemographicsHispanicOrLatinoEthnicity$) {
    /** @deprecated use `PutDemographicsHispanicOrLatinoEthnicity$inboundSchema` instead. */
    PutDemographicsHispanicOrLatinoEthnicity$.inboundSchema = exports.PutDemographicsHispanicOrLatinoEthnicity$inboundSchema;
    /** @deprecated use `PutDemographicsHispanicOrLatinoEthnicity$outboundSchema` instead. */
    PutDemographicsHispanicOrLatinoEthnicity$.outboundSchema = exports.PutDemographicsHispanicOrLatinoEthnicity$outboundSchema;
})(PutDemographicsHispanicOrLatinoEthnicity$ || (exports.PutDemographicsHispanicOrLatinoEthnicity$ = PutDemographicsHispanicOrLatinoEthnicity$ = {}));
/** @internal */
exports.PutDemographicsDemographics$inboundSchema = z.object({
    sourcedId: z.string(),
    status: exports.PutDemographicsStatus$inboundSchema.default("active"),
    metadata: z.record(z.any()).optional(),
    birthDate: z.nullable(z.string()).optional(),
    sex: z.nullable(exports.PutDemographicsSex$inboundSchema).optional(),
    americanIndianOrAlaskaNative: z.nullable(exports.PutDemographicsAmericanIndianOrAlaskaNative$inboundSchema).optional(),
    asian: z.nullable(exports.PutDemographicsAsian$inboundSchema).optional(),
    blackOrAfricanAmerican: z.nullable(exports.PutDemographicsBlackOrAfricanAmerican$inboundSchema).optional(),
    nativeHawaiianOrOtherPacificIslander: z.nullable(exports.PutDemographicsNativeHawaiianOrOtherPacificIslander$inboundSchema).optional(),
    white: z.nullable(exports.PutDemographicsWhite$inboundSchema).optional(),
    demographicRaceTwoOrMoreRaces: z.nullable(exports.PutDemographicsDemographicRaceTwoOrMoreRaces$inboundSchema).optional(),
    hispanicOrLatinoEthnicity: z.nullable(exports.PutDemographicsHispanicOrLatinoEthnicity$inboundSchema).optional(),
    countryOfBirthCode: z.nullable(z.string()).optional(),
    stateOfBirthAbbreviation: z.nullable(z.string()).optional(),
    cityOfBirth: z.nullable(z.string()).optional(),
    publicSchoolResidenceStatus: z.nullable(z.string()).optional(),
});
/** @internal */
exports.PutDemographicsDemographics$outboundSchema = z.object({
    sourcedId: z.string(),
    status: exports.PutDemographicsStatus$outboundSchema.default("active"),
    metadata: z.record(z.any()).optional(),
    birthDate: z.nullable(z.string()).optional(),
    sex: z.nullable(exports.PutDemographicsSex$outboundSchema).optional(),
    americanIndianOrAlaskaNative: z.nullable(exports.PutDemographicsAmericanIndianOrAlaskaNative$outboundSchema).optional(),
    asian: z.nullable(exports.PutDemographicsAsian$outboundSchema).optional(),
    blackOrAfricanAmerican: z.nullable(exports.PutDemographicsBlackOrAfricanAmerican$outboundSchema).optional(),
    nativeHawaiianOrOtherPacificIslander: z.nullable(exports.PutDemographicsNativeHawaiianOrOtherPacificIslander$outboundSchema).optional(),
    white: z.nullable(exports.PutDemographicsWhite$outboundSchema).optional(),
    demographicRaceTwoOrMoreRaces: z.nullable(exports.PutDemographicsDemographicRaceTwoOrMoreRaces$outboundSchema).optional(),
    hispanicOrLatinoEthnicity: z.nullable(exports.PutDemographicsHispanicOrLatinoEthnicity$outboundSchema).optional(),
    countryOfBirthCode: z.nullable(z.string()).optional(),
    stateOfBirthAbbreviation: z.nullable(z.string()).optional(),
    cityOfBirth: z.nullable(z.string()).optional(),
    publicSchoolResidenceStatus: z.nullable(z.string()).optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PutDemographicsDemographics$;
(function (PutDemographicsDemographics$) {
    /** @deprecated use `PutDemographicsDemographics$inboundSchema` instead. */
    PutDemographicsDemographics$.inboundSchema = exports.PutDemographicsDemographics$inboundSchema;
    /** @deprecated use `PutDemographicsDemographics$outboundSchema` instead. */
    PutDemographicsDemographics$.outboundSchema = exports.PutDemographicsDemographics$outboundSchema;
})(PutDemographicsDemographics$ || (exports.PutDemographicsDemographics$ = PutDemographicsDemographics$ = {}));
function putDemographicsDemographicsToJSON(putDemographicsDemographics) {
    return JSON.stringify(exports.PutDemographicsDemographics$outboundSchema.parse(putDemographicsDemographics));
}
function putDemographicsDemographicsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PutDemographicsDemographics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutDemographicsDemographics' from JSON`);
}
/** @internal */
exports.PutDemographicsRequestBody$inboundSchema = z.object({
    demographics: z.lazy(() => exports.PutDemographicsDemographics$inboundSchema),
});
/** @internal */
exports.PutDemographicsRequestBody$outboundSchema = z.object({
    demographics: z.lazy(() => exports.PutDemographicsDemographics$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PutDemographicsRequestBody$;
(function (PutDemographicsRequestBody$) {
    /** @deprecated use `PutDemographicsRequestBody$inboundSchema` instead. */
    PutDemographicsRequestBody$.inboundSchema = exports.PutDemographicsRequestBody$inboundSchema;
    /** @deprecated use `PutDemographicsRequestBody$outboundSchema` instead. */
    PutDemographicsRequestBody$.outboundSchema = exports.PutDemographicsRequestBody$outboundSchema;
})(PutDemographicsRequestBody$ || (exports.PutDemographicsRequestBody$ = PutDemographicsRequestBody$ = {}));
function putDemographicsRequestBodyToJSON(putDemographicsRequestBody) {
    return JSON.stringify(exports.PutDemographicsRequestBody$outboundSchema.parse(putDemographicsRequestBody));
}
function putDemographicsRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PutDemographicsRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutDemographicsRequestBody' from JSON`);
}
/** @internal */
exports.PutDemographicsRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    RequestBody: z.lazy(() => exports.PutDemographicsRequestBody$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.PutDemographicsRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    requestBody: z.lazy(() => exports.PutDemographicsRequestBody$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        requestBody: "RequestBody",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PutDemographicsRequest$;
(function (PutDemographicsRequest$) {
    /** @deprecated use `PutDemographicsRequest$inboundSchema` instead. */
    PutDemographicsRequest$.inboundSchema = exports.PutDemographicsRequest$inboundSchema;
    /** @deprecated use `PutDemographicsRequest$outboundSchema` instead. */
    PutDemographicsRequest$.outboundSchema = exports.PutDemographicsRequest$outboundSchema;
})(PutDemographicsRequest$ || (exports.PutDemographicsRequest$ = PutDemographicsRequest$ = {}));
function putDemographicsRequestToJSON(putDemographicsRequest) {
    return JSON.stringify(exports.PutDemographicsRequest$outboundSchema.parse(putDemographicsRequest));
}
function putDemographicsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PutDemographicsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutDemographicsRequest' from JSON`);
}
//# sourceMappingURL=putdemographics.js.map