"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.lmsListUserAssignmentsResponseFromJSON = exports.lmsListUserAssignmentsResponseToJSON = exports.LmsListUserAssignmentsResponse$ = exports.LmsListUserAssignmentsResponse$outboundSchema = exports.LmsListUserAssignmentsResponse$inboundSchema = exports.lmsListUserAssignmentsRequestFromJSON = exports.lmsListUserAssignmentsRequestToJSON = exports.LmsListUserAssignmentsRequest$ = exports.LmsListUserAssignmentsRequest$outboundSchema = exports.LmsListUserAssignmentsRequest$inboundSchema = exports.lmsListUserAssignmentsQueryParamFilterFromJSON = exports.lmsListUserAssignmentsQueryParamFilterToJSON = exports.LmsListUserAssignmentsQueryParamFilter$ = exports.LmsListUserAssignmentsQueryParamFilter$outboundSchema = exports.LmsListUserAssignmentsQueryParamFilter$inboundSchema = exports.LmsListUserAssignmentsQueryParamStatus$ = exports.LmsListUserAssignmentsQueryParamStatus$outboundSchema = exports.LmsListUserAssignmentsQueryParamStatus$inboundSchema = exports.LmsListUserAssignmentsQueryParamStatus = 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"));
/**
 * Filter to select assignment by status
 */
var LmsListUserAssignmentsQueryParamStatus;
(function (LmsListUserAssignmentsQueryParamStatus) {
    LmsListUserAssignmentsQueryParamStatus["Pending"] = "pending";
    LmsListUserAssignmentsQueryParamStatus["InProgress"] = "in_progress";
    LmsListUserAssignmentsQueryParamStatus["Completed"] = "completed";
})(LmsListUserAssignmentsQueryParamStatus || (exports.LmsListUserAssignmentsQueryParamStatus = LmsListUserAssignmentsQueryParamStatus = {}));
/** @internal */
exports.LmsListUserAssignmentsQueryParamStatus$inboundSchema = z.nativeEnum(LmsListUserAssignmentsQueryParamStatus);
/** @internal */
exports.LmsListUserAssignmentsQueryParamStatus$outboundSchema = exports.LmsListUserAssignmentsQueryParamStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var LmsListUserAssignmentsQueryParamStatus$;
(function (LmsListUserAssignmentsQueryParamStatus$) {
    /** @deprecated use `LmsListUserAssignmentsQueryParamStatus$inboundSchema` instead. */
    LmsListUserAssignmentsQueryParamStatus$.inboundSchema = exports.LmsListUserAssignmentsQueryParamStatus$inboundSchema;
    /** @deprecated use `LmsListUserAssignmentsQueryParamStatus$outboundSchema` instead. */
    LmsListUserAssignmentsQueryParamStatus$.outboundSchema = exports.LmsListUserAssignmentsQueryParamStatus$outboundSchema;
})(LmsListUserAssignmentsQueryParamStatus$ || (exports.LmsListUserAssignmentsQueryParamStatus$ = LmsListUserAssignmentsQueryParamStatus$ = {}));
/** @internal */
exports.LmsListUserAssignmentsQueryParamFilter$inboundSchema = z.object({
    status: z.nullable(exports.LmsListUserAssignmentsQueryParamStatus$inboundSchema)
        .optional(),
    updated_after: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "updated_after": "updatedAfter",
    });
});
/** @internal */
exports.LmsListUserAssignmentsQueryParamFilter$outboundSchema = z.object({
    status: z.nullable(exports.LmsListUserAssignmentsQueryParamStatus$outboundSchema)
        .optional(),
    updatedAfter: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        updatedAfter: "updated_after",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var LmsListUserAssignmentsQueryParamFilter$;
(function (LmsListUserAssignmentsQueryParamFilter$) {
    /** @deprecated use `LmsListUserAssignmentsQueryParamFilter$inboundSchema` instead. */
    LmsListUserAssignmentsQueryParamFilter$.inboundSchema = exports.LmsListUserAssignmentsQueryParamFilter$inboundSchema;
    /** @deprecated use `LmsListUserAssignmentsQueryParamFilter$outboundSchema` instead. */
    LmsListUserAssignmentsQueryParamFilter$.outboundSchema = exports.LmsListUserAssignmentsQueryParamFilter$outboundSchema;
})(LmsListUserAssignmentsQueryParamFilter$ || (exports.LmsListUserAssignmentsQueryParamFilter$ = LmsListUserAssignmentsQueryParamFilter$ = {}));
function lmsListUserAssignmentsQueryParamFilterToJSON(lmsListUserAssignmentsQueryParamFilter) {
    return JSON.stringify(exports.LmsListUserAssignmentsQueryParamFilter$outboundSchema.parse(lmsListUserAssignmentsQueryParamFilter));
}
exports.lmsListUserAssignmentsQueryParamFilterToJSON = lmsListUserAssignmentsQueryParamFilterToJSON;
function lmsListUserAssignmentsQueryParamFilterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LmsListUserAssignmentsQueryParamFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LmsListUserAssignmentsQueryParamFilter' from JSON`);
}
exports.lmsListUserAssignmentsQueryParamFilterFromJSON = lmsListUserAssignmentsQueryParamFilterFromJSON;
/** @internal */
exports.LmsListUserAssignmentsRequest$inboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.LmsListUserAssignmentsQueryParamFilter$inboundSchema)).optional(),
    id: z.string(),
    next: z.nullable(z.string()).optional(),
    page: z.nullable(z.string()).optional(),
    page_size: z.nullable(z.string()).optional(),
    proxy: z.nullable(z.record(z.any())).optional(),
    raw: z.nullable(z.boolean()).optional(),
    remote_user_id: z.nullable(z.string()).optional(),
    updated_after: z.nullable(z.string()).optional(),
    user_id: z.nullable(z.string()).optional(),
    "x-account-id": z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "page_size": "pageSize",
        "remote_user_id": "remoteUserId",
        "updated_after": "updatedAfter",
        "user_id": "userId",
        "x-account-id": "xAccountId",
    });
});
/** @internal */
exports.LmsListUserAssignmentsRequest$outboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.LmsListUserAssignmentsQueryParamFilter$outboundSchema)).optional(),
    id: z.string(),
    next: z.nullable(z.string()).optional(),
    page: z.nullable(z.string()).optional(),
    pageSize: z.nullable(z.string()).optional(),
    proxy: z.nullable(z.record(z.any())).optional(),
    raw: z.nullable(z.boolean()).optional(),
    remoteUserId: z.nullable(z.string()).optional(),
    updatedAfter: z.nullable(z.string()).optional(),
    userId: z.nullable(z.string()).optional(),
    xAccountId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        pageSize: "page_size",
        remoteUserId: "remote_user_id",
        updatedAfter: "updated_after",
        userId: "user_id",
        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 LmsListUserAssignmentsRequest$;
(function (LmsListUserAssignmentsRequest$) {
    /** @deprecated use `LmsListUserAssignmentsRequest$inboundSchema` instead. */
    LmsListUserAssignmentsRequest$.inboundSchema = exports.LmsListUserAssignmentsRequest$inboundSchema;
    /** @deprecated use `LmsListUserAssignmentsRequest$outboundSchema` instead. */
    LmsListUserAssignmentsRequest$.outboundSchema = exports.LmsListUserAssignmentsRequest$outboundSchema;
})(LmsListUserAssignmentsRequest$ || (exports.LmsListUserAssignmentsRequest$ = LmsListUserAssignmentsRequest$ = {}));
function lmsListUserAssignmentsRequestToJSON(lmsListUserAssignmentsRequest) {
    return JSON.stringify(exports.LmsListUserAssignmentsRequest$outboundSchema.parse(lmsListUserAssignmentsRequest));
}
exports.lmsListUserAssignmentsRequestToJSON = lmsListUserAssignmentsRequestToJSON;
function lmsListUserAssignmentsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LmsListUserAssignmentsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LmsListUserAssignmentsRequest' from JSON`);
}
exports.lmsListUserAssignmentsRequestFromJSON = lmsListUserAssignmentsRequestFromJSON;
/** @internal */
exports.LmsListUserAssignmentsResponse$inboundSchema = z.object({
    AssignmentsPaginated: shared.AssignmentsPaginated$inboundSchema.optional(),
    ContentType: z.string(),
    Headers: z.record(z.array(z.string())),
    StatusCode: z.number().int(),
    RawResponse: z.instanceof(Response),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "AssignmentsPaginated": "assignmentsPaginated",
        "ContentType": "contentType",
        "Headers": "headers",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
    });
});
/** @internal */
exports.LmsListUserAssignmentsResponse$outboundSchema = z.object({
    assignmentsPaginated: shared.AssignmentsPaginated$outboundSchema.optional(),
    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");
    }),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        assignmentsPaginated: "AssignmentsPaginated",
        contentType: "ContentType",
        headers: "Headers",
        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 LmsListUserAssignmentsResponse$;
(function (LmsListUserAssignmentsResponse$) {
    /** @deprecated use `LmsListUserAssignmentsResponse$inboundSchema` instead. */
    LmsListUserAssignmentsResponse$.inboundSchema = exports.LmsListUserAssignmentsResponse$inboundSchema;
    /** @deprecated use `LmsListUserAssignmentsResponse$outboundSchema` instead. */
    LmsListUserAssignmentsResponse$.outboundSchema = exports.LmsListUserAssignmentsResponse$outboundSchema;
})(LmsListUserAssignmentsResponse$ || (exports.LmsListUserAssignmentsResponse$ = LmsListUserAssignmentsResponse$ = {}));
function lmsListUserAssignmentsResponseToJSON(lmsListUserAssignmentsResponse) {
    return JSON.stringify(exports.LmsListUserAssignmentsResponse$outboundSchema.parse(lmsListUserAssignmentsResponse));
}
exports.lmsListUserAssignmentsResponseToJSON = lmsListUserAssignmentsResponseToJSON;
function lmsListUserAssignmentsResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LmsListUserAssignmentsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LmsListUserAssignmentsResponse' from JSON`);
}
exports.lmsListUserAssignmentsResponseFromJSON = lmsListUserAssignmentsResponseFromJSON;
//# sourceMappingURL=lmslistuserassignments.js.map