"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.AssignResourceToClassResponse$ = exports.AssignResourceToClassResponse$outboundSchema = exports.AssignResourceToClassResponse$inboundSchema = exports.AssignResourceToClassSourcedIdPairs$ = exports.AssignResourceToClassSourcedIdPairs$outboundSchema = exports.AssignResourceToClassSourcedIdPairs$inboundSchema = exports.AssignResourceToClassRequest$ = exports.AssignResourceToClassRequest$outboundSchema = exports.AssignResourceToClassRequest$inboundSchema = exports.AssignResourceToClassRequestBody$ = exports.AssignResourceToClassRequestBody$outboundSchema = exports.AssignResourceToClassRequestBody$inboundSchema = exports.AssignResourceToClassResource$ = exports.AssignResourceToClassResource$outboundSchema = exports.AssignResourceToClassResource$inboundSchema = void 0;
exports.assignResourceToClassResourceToJSON = assignResourceToClassResourceToJSON;
exports.assignResourceToClassResourceFromJSON = assignResourceToClassResourceFromJSON;
exports.assignResourceToClassRequestBodyToJSON = assignResourceToClassRequestBodyToJSON;
exports.assignResourceToClassRequestBodyFromJSON = assignResourceToClassRequestBodyFromJSON;
exports.assignResourceToClassRequestToJSON = assignResourceToClassRequestToJSON;
exports.assignResourceToClassRequestFromJSON = assignResourceToClassRequestFromJSON;
exports.assignResourceToClassSourcedIdPairsToJSON = assignResourceToClassSourcedIdPairsToJSON;
exports.assignResourceToClassSourcedIdPairsFromJSON = assignResourceToClassSourcedIdPairsFromJSON;
exports.assignResourceToClassResponseToJSON = assignResourceToClassResponseToJSON;
exports.assignResourceToClassResponseFromJSON = assignResourceToClassResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/** @internal */
exports.AssignResourceToClassResource$inboundSchema = z.object({
    sourcedId: z.string(),
    dateAssigned: z.string().optional(),
});
/** @internal */
exports.AssignResourceToClassResource$outboundSchema = z.object({
    sourcedId: z.string(),
    dateAssigned: 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 AssignResourceToClassResource$;
(function (AssignResourceToClassResource$) {
    /** @deprecated use `AssignResourceToClassResource$inboundSchema` instead. */
    AssignResourceToClassResource$.inboundSchema = exports.AssignResourceToClassResource$inboundSchema;
    /** @deprecated use `AssignResourceToClassResource$outboundSchema` instead. */
    AssignResourceToClassResource$.outboundSchema = exports.AssignResourceToClassResource$outboundSchema;
})(AssignResourceToClassResource$ || (exports.AssignResourceToClassResource$ = AssignResourceToClassResource$ = {}));
function assignResourceToClassResourceToJSON(assignResourceToClassResource) {
    return JSON.stringify(exports.AssignResourceToClassResource$outboundSchema.parse(assignResourceToClassResource));
}
function assignResourceToClassResourceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignResourceToClassResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToClassResource' from JSON`);
}
/** @internal */
exports.AssignResourceToClassRequestBody$inboundSchema = z.object({
    resource: z.lazy(() => exports.AssignResourceToClassResource$inboundSchema),
});
/** @internal */
exports.AssignResourceToClassRequestBody$outboundSchema = z.object({
    resource: z.lazy(() => exports.AssignResourceToClassResource$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignResourceToClassRequestBody$;
(function (AssignResourceToClassRequestBody$) {
    /** @deprecated use `AssignResourceToClassRequestBody$inboundSchema` instead. */
    AssignResourceToClassRequestBody$.inboundSchema = exports.AssignResourceToClassRequestBody$inboundSchema;
    /** @deprecated use `AssignResourceToClassRequestBody$outboundSchema` instead. */
    AssignResourceToClassRequestBody$.outboundSchema = exports.AssignResourceToClassRequestBody$outboundSchema;
})(AssignResourceToClassRequestBody$ || (exports.AssignResourceToClassRequestBody$ = AssignResourceToClassRequestBody$ = {}));
function assignResourceToClassRequestBodyToJSON(assignResourceToClassRequestBody) {
    return JSON.stringify(exports.AssignResourceToClassRequestBody$outboundSchema.parse(assignResourceToClassRequestBody));
}
function assignResourceToClassRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignResourceToClassRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToClassRequestBody' from JSON`);
}
/** @internal */
exports.AssignResourceToClassRequest$inboundSchema = z.object({
    classSourcedId: z.string(),
    RequestBody: z.lazy(() => exports.AssignResourceToClassRequestBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.AssignResourceToClassRequest$outboundSchema = z.object({
    classSourcedId: z.string(),
    requestBody: z.lazy(() => exports.AssignResourceToClassRequestBody$outboundSchema),
}).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 AssignResourceToClassRequest$;
(function (AssignResourceToClassRequest$) {
    /** @deprecated use `AssignResourceToClassRequest$inboundSchema` instead. */
    AssignResourceToClassRequest$.inboundSchema = exports.AssignResourceToClassRequest$inboundSchema;
    /** @deprecated use `AssignResourceToClassRequest$outboundSchema` instead. */
    AssignResourceToClassRequest$.outboundSchema = exports.AssignResourceToClassRequest$outboundSchema;
})(AssignResourceToClassRequest$ || (exports.AssignResourceToClassRequest$ = AssignResourceToClassRequest$ = {}));
function assignResourceToClassRequestToJSON(assignResourceToClassRequest) {
    return JSON.stringify(exports.AssignResourceToClassRequest$outboundSchema.parse(assignResourceToClassRequest));
}
function assignResourceToClassRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignResourceToClassRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToClassRequest' from JSON`);
}
/** @internal */
exports.AssignResourceToClassSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
exports.AssignResourceToClassSourcedIdPairs$outboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignResourceToClassSourcedIdPairs$;
(function (AssignResourceToClassSourcedIdPairs$) {
    /** @deprecated use `AssignResourceToClassSourcedIdPairs$inboundSchema` instead. */
    AssignResourceToClassSourcedIdPairs$.inboundSchema = exports.AssignResourceToClassSourcedIdPairs$inboundSchema;
    /** @deprecated use `AssignResourceToClassSourcedIdPairs$outboundSchema` instead. */
    AssignResourceToClassSourcedIdPairs$.outboundSchema = exports.AssignResourceToClassSourcedIdPairs$outboundSchema;
})(AssignResourceToClassSourcedIdPairs$ || (exports.AssignResourceToClassSourcedIdPairs$ = AssignResourceToClassSourcedIdPairs$ = {}));
function assignResourceToClassSourcedIdPairsToJSON(assignResourceToClassSourcedIdPairs) {
    return JSON.stringify(exports.AssignResourceToClassSourcedIdPairs$outboundSchema.parse(assignResourceToClassSourcedIdPairs));
}
function assignResourceToClassSourcedIdPairsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignResourceToClassSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToClassSourcedIdPairs' from JSON`);
}
/** @internal */
exports.AssignResourceToClassResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.AssignResourceToClassSourcedIdPairs$inboundSchema),
});
/** @internal */
exports.AssignResourceToClassResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.AssignResourceToClassSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssignResourceToClassResponse$;
(function (AssignResourceToClassResponse$) {
    /** @deprecated use `AssignResourceToClassResponse$inboundSchema` instead. */
    AssignResourceToClassResponse$.inboundSchema = exports.AssignResourceToClassResponse$inboundSchema;
    /** @deprecated use `AssignResourceToClassResponse$outboundSchema` instead. */
    AssignResourceToClassResponse$.outboundSchema = exports.AssignResourceToClassResponse$outboundSchema;
})(AssignResourceToClassResponse$ || (exports.AssignResourceToClassResponse$ = AssignResourceToClassResponse$ = {}));
function assignResourceToClassResponseToJSON(assignResourceToClassResponse) {
    return JSON.stringify(exports.AssignResourceToClassResponse$outboundSchema.parse(assignResourceToClassResponse));
}
function assignResourceToClassResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssignResourceToClassResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssignResourceToClassResponse' from JSON`);
}
//# sourceMappingURL=assignresourcetoclass.js.map