"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.FeedbackOrderBy$outboundSchema = exports.FeedbackOrderBy$inboundSchema = exports.FeedbackOrderByDirection$outboundSchema = exports.FeedbackOrderByDirection$inboundSchema = exports.FeedbackOrderByField$outboundSchema = exports.FeedbackOrderByField$inboundSchema = exports.FeedbackOrderByDirection = exports.FeedbackOrderByField = void 0;
exports.feedbackOrderByToJSON = feedbackOrderByToJSON;
exports.feedbackOrderByFromJSON = feedbackOrderByFromJSON;
const z = __importStar(require("zod/v3"));
const schemas_js_1 = require("../../lib/schemas.js");
exports.FeedbackOrderByField = {
    Id: "id",
    Type: "type",
    MessageId: "messageId",
    CreatedAt: "createdAt",
    UpdatedAt: "updatedAt",
    OrganizationId: "organizationId",
    Reasons: "reasons",
    Sources: "sources",
    Details: "details",
    Properties: "properties",
    UserProperties: "userProperties",
    ConversationId: "conversationId",
    ProjectId: "projectId",
    IntegrationId: "integrationId",
    IdHour: "id_hour",
    IdDay: "id_day",
    IdWeek: "id_week",
    IdMonth: "id_month",
    TypeHour: "type_hour",
    TypeDay: "type_day",
    TypeWeek: "type_week",
    TypeMonth: "type_month",
    MessageIdHour: "messageId_hour",
    MessageIdDay: "messageId_day",
    MessageIdWeek: "messageId_week",
    MessageIdMonth: "messageId_month",
    CreatedAtHour: "createdAt_hour",
    CreatedAtDay: "createdAt_day",
    CreatedAtWeek: "createdAt_week",
    CreatedAtMonth: "createdAt_month",
    UpdatedAtHour: "updatedAt_hour",
    UpdatedAtDay: "updatedAt_day",
    UpdatedAtWeek: "updatedAt_week",
    UpdatedAtMonth: "updatedAt_month",
    OrganizationIdHour: "organizationId_hour",
    OrganizationIdDay: "organizationId_day",
    OrganizationIdWeek: "organizationId_week",
    OrganizationIdMonth: "organizationId_month",
    ReasonsHour: "reasons_hour",
    ReasonsDay: "reasons_day",
    ReasonsWeek: "reasons_week",
    ReasonsMonth: "reasons_month",
    SourcesHour: "sources_hour",
    SourcesDay: "sources_day",
    SourcesWeek: "sources_week",
    SourcesMonth: "sources_month",
    DetailsHour: "details_hour",
    DetailsDay: "details_day",
    DetailsWeek: "details_week",
    DetailsMonth: "details_month",
    PropertiesHour: "properties_hour",
    PropertiesDay: "properties_day",
    PropertiesWeek: "properties_week",
    PropertiesMonth: "properties_month",
    UserPropertiesHour: "userProperties_hour",
    UserPropertiesDay: "userProperties_day",
    UserPropertiesWeek: "userProperties_week",
    UserPropertiesMonth: "userProperties_month",
    ConversationIdHour: "conversationId_hour",
    ConversationIdDay: "conversationId_day",
    ConversationIdWeek: "conversationId_week",
    ConversationIdMonth: "conversationId_month",
    ProjectIdHour: "projectId_hour",
    ProjectIdDay: "projectId_day",
    ProjectIdWeek: "projectId_week",
    ProjectIdMonth: "projectId_month",
    IntegrationIdHour: "integrationId_hour",
    IntegrationIdDay: "integrationId_day",
    IntegrationIdWeek: "integrationId_week",
    IntegrationIdMonth: "integrationId_month",
    SumId: "sum_id",
    SumType: "sum_type",
    SumMessageId: "sum_messageId",
    SumCreatedAt: "sum_createdAt",
    SumUpdatedAt: "sum_updatedAt",
    SumOrganizationId: "sum_organizationId",
    SumReasons: "sum_reasons",
    SumSources: "sum_sources",
    SumDetails: "sum_details",
    SumProperties: "sum_properties",
    SumUserProperties: "sum_userProperties",
    SumConversationId: "sum_conversationId",
    SumProjectId: "sum_projectId",
    SumIntegrationId: "sum_integrationId",
    CountId: "count_id",
    CountType: "count_type",
    CountMessageId: "count_messageId",
    CountCreatedAt: "count_createdAt",
    CountUpdatedAt: "count_updatedAt",
    CountOrganizationId: "count_organizationId",
    CountReasons: "count_reasons",
    CountSources: "count_sources",
    CountDetails: "count_details",
    CountProperties: "count_properties",
    CountUserProperties: "count_userProperties",
    CountConversationId: "count_conversationId",
    CountProjectId: "count_projectId",
    CountIntegrationId: "count_integrationId",
    AvgId: "avg_id",
    AvgType: "avg_type",
    AvgMessageId: "avg_messageId",
    AvgCreatedAt: "avg_createdAt",
    AvgUpdatedAt: "avg_updatedAt",
    AvgOrganizationId: "avg_organizationId",
    AvgReasons: "avg_reasons",
    AvgSources: "avg_sources",
    AvgDetails: "avg_details",
    AvgProperties: "avg_properties",
    AvgUserProperties: "avg_userProperties",
    AvgConversationId: "avg_conversationId",
    AvgProjectId: "avg_projectId",
    AvgIntegrationId: "avg_integrationId",
    MinId: "min_id",
    MinType: "min_type",
    MinMessageId: "min_messageId",
    MinCreatedAt: "min_createdAt",
    MinUpdatedAt: "min_updatedAt",
    MinOrganizationId: "min_organizationId",
    MinReasons: "min_reasons",
    MinSources: "min_sources",
    MinDetails: "min_details",
    MinProperties: "min_properties",
    MinUserProperties: "min_userProperties",
    MinConversationId: "min_conversationId",
    MinProjectId: "min_projectId",
    MinIntegrationId: "min_integrationId",
    MaxId: "max_id",
    MaxType: "max_type",
    MaxMessageId: "max_messageId",
    MaxCreatedAt: "max_createdAt",
    MaxUpdatedAt: "max_updatedAt",
    MaxOrganizationId: "max_organizationId",
    MaxReasons: "max_reasons",
    MaxSources: "max_sources",
    MaxDetails: "max_details",
    MaxProperties: "max_properties",
    MaxUserProperties: "max_userProperties",
    MaxConversationId: "max_conversationId",
    MaxProjectId: "max_projectId",
    MaxIntegrationId: "max_integrationId",
};
exports.FeedbackOrderByDirection = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.FeedbackOrderByField$inboundSchema = z.nativeEnum(exports.FeedbackOrderByField);
/** @internal */
exports.FeedbackOrderByField$outboundSchema = exports.FeedbackOrderByField$inboundSchema;
/** @internal */
exports.FeedbackOrderByDirection$inboundSchema = z.nativeEnum(exports.FeedbackOrderByDirection);
/** @internal */
exports.FeedbackOrderByDirection$outboundSchema = exports.FeedbackOrderByDirection$inboundSchema;
/** @internal */
exports.FeedbackOrderBy$inboundSchema = z.object({
    field: exports.FeedbackOrderByField$inboundSchema,
    direction: exports.FeedbackOrderByDirection$inboundSchema,
});
/** @internal */
exports.FeedbackOrderBy$outboundSchema = z.object({
    field: exports.FeedbackOrderByField$outboundSchema,
    direction: exports.FeedbackOrderByDirection$outboundSchema,
});
function feedbackOrderByToJSON(feedbackOrderBy) {
    return JSON.stringify(exports.FeedbackOrderBy$outboundSchema.parse(feedbackOrderBy));
}
function feedbackOrderByFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FeedbackOrderBy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FeedbackOrderBy' from JSON`);
}
//# sourceMappingURL=feedbackorderby.js.map