export interface QuoteStatus {
  id: number;
  name: string;
  wonFlag: boolean;
  lostFlag: boolean;
  closedFlag: boolean;
  inactiveFlag: boolean;
  defaultFlag: boolean;
  enteredBy: string;
  dateEntered: string;
  _info: {
    lastUpdated: string;
    updatedBy: string;
  };
  connectWiseId: string;
  optimaEquivalency: number[];
}

export const QUOTE_STATUSES: QuoteStatus[] = [
  //
  // FUTURE LEAD
  //
  {
    id: 51,
    name: "FutureLead",
    wonFlag: false,
    lostFlag: false,
    closedFlag: false,
    inactiveFlag: false,
    defaultFlag: false,
    enteredBy: "crobinso",
    dateEntered: "2023-07-11T23:13:19Z",
    _info: {
      lastUpdated: "2024-04-28T15:03:57Z",
      updatedBy: "crobinso",
    },
    connectWiseId: "070f72a3-70d0-ef11-b2e0-000c29c55070",
    optimaEquivalency: [
      35, // Z9. Later
      36, // Z0.  TT Identified Need
    ],
  },

  //
  // PENDING NEW
  //
  {
    id: 37,
    name: "Pending New",
    wonFlag: false,
    lostFlag: false,
    closedFlag: false,
    inactiveFlag: false,
    defaultFlag: false,
    enteredBy: "crobinso",
    dateEntered: "2022-04-28T21:04:53Z",
    _info: {
      lastUpdated: "2022-04-28T21:06:24Z",
      updatedBy: "crobinso",
    },
    connectWiseId: "f90e72a3-70d0-ef11-b2e0-000c29c55070",
    optimaEquivalency: [],
  },

  //
  // NEW
  //
  {
    id: 24,
    name: "New",
    wonFlag: false,
    lostFlag: false,
    closedFlag: false,
    inactiveFlag: false,
    defaultFlag: true,
    enteredBy: "CRobinso",
    dateEntered: "2021-01-03T15:06:59Z",
    _info: {
      lastUpdated: "2024-04-28T15:04:43Z",
      updatedBy: "crobinso",
    },
    connectWiseId: "ec0e72a3-70d0-ef11-b2e0-000c29c55070",
    optimaEquivalency: [
      1, // Pre2021-1) New
      13, // Pre2021-Initial Contact Made
    ],
  },

  //
  // INTERNAL REVIEW
  //
  {
    id: 56,
    name: "Internal Review",
    wonFlag: false,
    lostFlag: false,
    closedFlag: false,
    inactiveFlag: false,
    defaultFlag: false,
    enteredBy: "crobinso",
    dateEntered: "2024-04-28T15:05:09Z",
    _info: {
      lastUpdated: "2024-04-28T15:05:09Z",
      updatedBy: "crobinso",
    },
    connectWiseId: "0c0f72a3-70d0-ef11-b2e0-000c29c55070",
    optimaEquivalency: [
      10, // Pre2021-Order Approved
      26, // Z3.  ConfirmedQuote
      27, // Z4.  Waiting-VendorInfo
      28, // Z5.  Waiting-OtherTTStaff
      41, // PRE2405. Review Ready
    ],
  },

  //
  // QUOTE SENT
  //
  {
    id: 43,
    name: "Quote Sent",
    wonFlag: false,
    lostFlag: false,
    closedFlag: false,
    inactiveFlag: false,
    defaultFlag: false,
    enteredBy: "crobinso",
    dateEntered: "2022-04-28T21:06:02Z",
    _info: {
      lastUpdated: "2024-04-28T15:06:55Z",
      updatedBy: "crobinso",
    },
    connectWiseId: "ff0e72a3-70d0-ef11-b2e0-000c29c55070",
    optimaEquivalency: [
      17, // Pre2021-5) Quote Sent
      25, // ZOLD---Quote Sent
      55, // PRE24_70. Quote Sent - Sell
    ],
  },

  //
  // CONFIRMED QUOTE
  //
  {
    id: 57,
    name: "Confirmed Quote",
    wonFlag: false,
    lostFlag: false,
    closedFlag: false,
    inactiveFlag: false,
    defaultFlag: false,
    enteredBy: "crobinso",
    dateEntered: "2024-04-28T15:07:11Z",
    _info: {
      lastUpdated: "2024-04-28T15:07:11Z",
      updatedBy: "crobinso",
    },
    connectWiseId: "0d0f72a3-70d0-ef11-b2e0-000c29c55070",
    optimaEquivalency: [
      54, // PRE24_90.  Customer Approved
    ],
  },

  //
  // ACTIVE
  //
  {
    id: 58,
    name: "Active",
    wonFlag: false,
    lostFlag: false,
    closedFlag: false,
    inactiveFlag: false,
    defaultFlag: false,
    enteredBy: "crobinso",
    dateEntered: "2024-04-28T15:07:17Z",
    _info: {
      lastUpdated: "2024-04-28T15:07:17Z",
      updatedBy: "crobinso",
    },
    connectWiseId: "0e0f72a3-70d0-ef11-b2e0-000c29c55070",
    optimaEquivalency: [
      9, // Pre2021-Recommendation
      15, // Pre2021-3) Onsite Assess Sch'd
      16, // Pre2021-4) Quote Info Gathered
      18, // Pre2021-6) Follow-up #1 Made
      19, // Pre2021-7) Follow-up #2 Made
      20, // Pre2021-8) Follow-up #3 Made

      38, // PRE2402. On-Site Ready
      39, // PRE2403. On-Site Scheduled
      40, // PRE2404. On-Site Complete
      42, // PRE2407. Reviewed
      44, // PRE2409.  Follow-Up 1
      45, // PRE2410. Changes Needed
      46, // PRE2411. Follow-Up 2
      47, // PRE2412. Follow-Up3
      48, // PRE2413. Follow-Up Extended
      52, // PRE2489.  Overdue
    ],
  },

  //
  // READY TO SEND
  //
  {
    id: 63,
    name: "Ready to Send",
    wonFlag: false,
    lostFlag: false,
    closedFlag: false,
    inactiveFlag: false,
    defaultFlag: false,
    enteredBy: "jroberts",
    dateEntered: "2026-03-16T02:24:10Z",
    _info: {
      lastUpdated: "2026-03-16T02:24:10Z",
      updatedBy: "jroberts",
    },
    connectWiseId: "f10c4e36-df20-f111-b2ee-000c29c55070",
    optimaEquivalency: [],
  },

  //
  // PENDING SENT
  //
  {
    id: 60,
    name: "Pending Sent",
    wonFlag: false,
    lostFlag: false,
    closedFlag: false,
    inactiveFlag: false,
    defaultFlag: false,
    enteredBy: "crobinso",
    dateEntered: "2026-03-08T23:06:01Z",
    _info: {
      lastUpdated: "2026-03-08T23:06:01Z",
      updatedBy: "crobinso",
    },
    connectWiseId: "c900215f-431b-f111-b2ee-000c29c55070",
    optimaEquivalency: [],
  },

  //
  // PENDING REVISION
  //
  {
    id: 61,
    name: "Pending Revision",
    wonFlag: false,
    lostFlag: false,
    closedFlag: false,
    inactiveFlag: false,
    defaultFlag: false,
    enteredBy: "crobinso",
    dateEntered: "2026-03-08T23:06:06Z",
    _info: {
      lastUpdated: "2026-03-08T23:06:06Z",
      updatedBy: "crobinso",
    },
    connectWiseId: "ca00215f-431b-f111-b2ee-000c29c55070",
    optimaEquivalency: [],
  },

  //
  // PENDING WON
  //
  {
    id: 49,
    name: "Pending Won",
    wonFlag: false,
    lostFlag: false,
    closedFlag: false,
    inactiveFlag: false,
    defaultFlag: false,
    enteredBy: "crobinso",
    dateEntered: "2023-02-08T21:27:35Z",
    _info: {
      lastUpdated: "2024-01-21T20:39:47Z",
      updatedBy: "crobinso",
    },
    connectWiseId: "050f72a3-70d0-ef11-b2e0-000c29c55070",
    optimaEquivalency: [],
  },

  //
  // WON
  //
  {
    id: 29,
    name: "Won",
    wonFlag: true,
    lostFlag: false,
    closedFlag: true,
    inactiveFlag: false,
    defaultFlag: false,
    enteredBy: "CRobinso",
    dateEntered: "2021-01-03T15:07:44Z",
    _info: {
      lastUpdated: "2024-01-21T20:39:41Z",
      updatedBy: "crobinso",
    },
    connectWiseId: "f10e72a3-70d0-ef11-b2e0-000c29c55070",
    optimaEquivalency: [
      2, // Pre2021-8) Won
    ],
  },

  //
  // PENDING LOST
  //
  {
    id: 50,
    name: "Pending Lost",
    wonFlag: false,
    lostFlag: false,
    closedFlag: false,
    inactiveFlag: false,
    defaultFlag: false,
    enteredBy: "crobinso",
    dateEntered: "2023-02-08T21:32:10Z",
    _info: {
      lastUpdated: "2023-02-08T21:32:41Z",
      updatedBy: "crobinso",
    },
    connectWiseId: "060f72a3-70d0-ef11-b2e0-000c29c55070",
    optimaEquivalency: [],
  },

  //
  // LOST
  //
  {
    id: 53,
    name: "Lost",
    wonFlag: false,
    lostFlag: true,
    closedFlag: true,
    inactiveFlag: false,
    defaultFlag: false,
    enteredBy: "crobinso",
    dateEntered: "2024-01-20T20:51:35Z",
    _info: {
      lastUpdated: "2024-01-20T20:51:41Z",
      updatedBy: "crobinso",
    },
    connectWiseId: "090f72a3-70d0-ef11-b2e0-000c29c55070",
    optimaEquivalency: [
      3, // Pre2021-9) Lost
      4, // Pre2021-No Decision
      12, // Pre2021-OLD

      30, // Pre2024_99.  Lost-Competitor
      31, // Pre2024_99.  Lost-DIY
      32, // Pre2024_99.  Lost-NoDecision
      33, // Pre2024_99.  Lost-Pricing
      34, // Pre2024_99.  Lost-OtherTTQuote
    ],
  },

  //
  // CANCELED
  //
  {
    id: 59,
    name: "Canceled",
    wonFlag: false,
    lostFlag: true,
    closedFlag: true,
    inactiveFlag: false,
    defaultFlag: false,
    enteredBy: "crobinso",
    dateEntered: "2026-03-08T22:45:07Z",
    _info: {
      lastUpdated: "2026-03-08T22:45:07Z",
      updatedBy: "crobinso",
    },
    connectWiseId: "83ddc173-401b-f111-b2ee-000c29c55070",
    optimaEquivalency: [],
  },
];
