// @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
// @generated from file entities/ticket.proto (syntax proto3)
/* eslint-disable */

import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
import type { Timestamp } from "../common_pb";
import { file_common } from "../common_pb";
import type { Message } from "@bufbuild/protobuf";

/**
 * Describes the file entities/ticket.proto.
 */
export const file_entities_ticket: GenFile = /*@__PURE__*/
  fileDesc("ChVlbnRpdGllcy90aWNrZXQucHJvdG8ijQIKBlRpY2tldBIKCgJpZBgBIAEoCRIQCgNwbnIYAiABKAlIAIgBARIRCgRzZWF0GAMgASgJSAGIAQESFgoJc2VhdF90eXBlGAQgASgFSAKIAQESGAoLY2FiaW5fY2xhc3MYBSABKAVIA4gBARIPCgd1c2VyX2lkGAYgASgJEh4KCmNyZWF0ZWRfYXQYByABKAsyCi5UaW1lc3RhbXASIAoMbGFzdF91cGRhdGVkGAggASgLMgouVGltZXN0YW1wEhMKBnJlYXNvbhgKIAEoBUgEiAEBQgYKBF9wbnJCBwoFX3NlYXRCDAoKX3NlYXRfdHlwZUIOCgxfY2FiaW5fY2xhc3NCCQoHX3JlYXNvbmIGcHJvdG8z", [file_common]);

/**
 * @generated from message Ticket
 */
export type Ticket = Message<"Ticket"> & {
  /**
   * @generated from field: string id = 1;
   */
  id: string;

  /**
   * @generated from field: optional string pnr = 2;
   */
  pnr?: string | undefined;

  /**
   * @generated from field: optional string seat = 3;
   */
  seat?: string | undefined;

  /**
   * aisle, middle, window, pilot, captain, jumpseat
   *
   * @generated from field: optional int32 seat_type = 4;
   */
  seatType?: number | undefined;

  /**
   * @generated from field: optional int32 cabin_class = 5;
   */
  cabinClass?: number | undefined;

  /**
   * @generated from field: string user_id = 6;
   */
  userId: string;

  /**
   * @generated from field: Timestamp created_at = 7;
   */
  createdAt?: Timestamp | undefined;

  /**
   * @generated from field: Timestamp last_updated = 8;
   */
  lastUpdated?: Timestamp | undefined;

  /**
   * 0=personal, 1=business?, 2=crew?
   *
   * @generated from field: optional int32 reason = 10;
   */
  reason?: number | undefined;
};

/**
 * Describes the message Ticket.
 * Use `create(TicketSchema)` to create a new message.
 */
export const TicketSchema: GenMessage<Ticket> = /*@__PURE__*/
  messageDesc(file_entities_ticket, 0);

