/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
export const 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",
};
export const FeedbackOrderByDirection = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const FeedbackOrderByField$inboundSchema = z.nativeEnum(FeedbackOrderByField);
/** @internal */
export const FeedbackOrderByField$outboundSchema = FeedbackOrderByField$inboundSchema;
/** @internal */
export const FeedbackOrderByDirection$inboundSchema = z.nativeEnum(FeedbackOrderByDirection);
/** @internal */
export const FeedbackOrderByDirection$outboundSchema = FeedbackOrderByDirection$inboundSchema;
/** @internal */
export const FeedbackOrderBy$inboundSchema = z.object({
    field: FeedbackOrderByField$inboundSchema,
    direction: FeedbackOrderByDirection$inboundSchema,
});
/** @internal */
export const FeedbackOrderBy$outboundSchema = z.object({
    field: FeedbackOrderByField$outboundSchema,
    direction: FeedbackOrderByDirection$outboundSchema,
});
export function feedbackOrderByToJSON(feedbackOrderBy) {
    return JSON.stringify(FeedbackOrderBy$outboundSchema.parse(feedbackOrderBy));
}
export function feedbackOrderByFromJSON(jsonString) {
    return safeParse(jsonString, (x) => FeedbackOrderBy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FeedbackOrderBy' from JSON`);
}
//# sourceMappingURL=feedbackorderby.js.map