import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Assignee, Assignee$Outbound } from "./assignee.js"; import { AssigneeInput, AssigneeInput$Outbound } from "./assigneeinput.js"; import { CollectionTag, CollectionTag$Outbound } from "./collectiontag.js"; import { CollectionTagInput, CollectionTagInput$Outbound } from "./collectiontaginput.js"; import { CustomMappings, CustomMappings$Outbound } from "./custommappings.js"; import { PassThroughBody, PassThroughBody$Outbound } from "./passthroughbody.js"; /** * Priority of the ticket */ export declare const Priority: { readonly Low: "low"; readonly Normal: "normal"; readonly High: "high"; readonly Urgent: "urgent"; }; /** * Priority of the ticket */ export type Priority = ClosedEnum; export type Ticket = { /** * A unique identifier for an object. */ id: string; /** * The ticket's parent ID */ parentId?: string | null | undefined; /** * The ticket's collection ID */ collectionId?: string | null | undefined; /** * The ticket's type */ type?: string | null | undefined; /** * Subject of the ticket */ subject?: string | null | undefined; /** * The ticket's description. HTML version of description is mapped if supported by the third-party platform */ description?: string | null | undefined; /** * The current status of the ticket. Possible values include: open, in_progress, closed, or - in cases where there is no clear mapping - the original value passed through. */ status?: string | null | undefined; /** * Priority of the ticket */ priority?: Priority | null | undefined; assignees?: Array | undefined; /** * The date and time when the object was last updated. */ updatedAt?: Date | null | undefined; /** * The date and time when the object was created. */ createdAt?: Date | null | undefined; /** * The user who created the object. */ createdBy?: string | null | undefined; /** * Due date of the ticket */ dueDate?: Date | null | undefined; /** * When the ticket was completed */ completedAt?: Date | null | undefined; tags?: Array | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: CustomMappings | null | undefined; /** * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. */ passThrough?: Array | undefined; }; export type TicketInput = { /** * The ticket's parent ID */ parentId?: string | null | undefined; /** * The ticket's type */ type?: string | null | undefined; /** * Subject of the ticket */ subject?: string | null | undefined; /** * The ticket's description. HTML version of description is mapped if supported by the third-party platform */ description?: string | null | undefined; /** * The current status of the ticket. Possible values include: open, in_progress, closed, or - in cases where there is no clear mapping - the original value passed through. */ status?: string | null | undefined; /** * Priority of the ticket */ priority?: Priority | null | undefined; assignees?: Array | undefined; /** * Due date of the ticket */ dueDate?: Date | null | undefined; tags?: Array | undefined; /** * The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources. */ passThrough?: Array | undefined; }; /** @internal */ export declare const Priority$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Priority$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Priority$ { /** @deprecated use `Priority$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Low: "low"; readonly Normal: "normal"; readonly High: "high"; readonly Urgent: "urgent"; }>; /** @deprecated use `Priority$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Low: "low"; readonly Normal: "normal"; readonly High: "high"; readonly Urgent: "urgent"; }>; } /** @internal */ export declare const Ticket$inboundSchema: z.ZodType; /** @internal */ export type Ticket$Outbound = { id: string; parent_id?: string | null | undefined; collection_id?: string | null | undefined; type?: string | null | undefined; subject?: string | null | undefined; description?: string | null | undefined; status?: string | null | undefined; priority?: string | null | undefined; assignees?: Array | undefined; updated_at?: string | null | undefined; created_at?: string | null | undefined; created_by?: string | null | undefined; due_date?: string | null | undefined; completed_at?: string | null | undefined; tags?: Array | undefined; custom_mappings?: CustomMappings$Outbound | null | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const Ticket$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Ticket$ { /** @deprecated use `Ticket$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Ticket$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Ticket$Outbound` instead. */ type Outbound = Ticket$Outbound; } export declare function ticketToJSON(ticket: Ticket): string; export declare function ticketFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const TicketInput$inboundSchema: z.ZodType; /** @internal */ export type TicketInput$Outbound = { parent_id?: string | null | undefined; type?: string | null | undefined; subject?: string | null | undefined; description?: string | null | undefined; status?: string | null | undefined; priority?: string | null | undefined; assignees?: Array | undefined; due_date?: string | null | undefined; tags?: Array | undefined; pass_through?: Array | undefined; }; /** @internal */ export declare const TicketInput$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace TicketInput$ { /** @deprecated use `TicketInput$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `TicketInput$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `TicketInput$Outbound` instead. */ type Outbound = TicketInput$Outbound; } export declare function ticketInputToJSON(ticketInput: TicketInput): string; export declare function ticketInputFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=ticket.d.ts.map