/**
 * Period type
 */
export const AccountingPeriodPeriodType = {
  "OPERATING": "OPERATING",
  "ADJUSTMENT": "ADJUSTMENT"
} as const;
export type AccountingPeriodPeriodType = (typeof AccountingPeriodPeriodType)[keyof typeof AccountingPeriodPeriodType];

/**
 * Accounting period lifecycle status
 */
export const AccountingPeriodStatus = {
  "NEVER_OPENED": "NEVER_OPENED",
  "FUTURE_ENTERABLE": "FUTURE_ENTERABLE",
  "OPEN": "OPEN",
  "CLOSED": "CLOSED",
  "PERMANENTLY_CLOSED": "PERMANENTLY_CLOSED"
} as const;
export type AccountingPeriodStatus = (typeof AccountingPeriodStatus)[keyof typeof AccountingPeriodStatus];

/**
 * Journal type categorizing the business origin (SALES, PURCHASE, CASH, BANK, MISCELLANEOUS, OPENING, CLOSING, INVENTORY, MANUFACTURING)
 */
export const JournalEntryJournalType = {
  "SALES": "SALES",
  "PURCHASE": "PURCHASE",
  "CASH": "CASH",
  "BANK": "BANK",
  "MISCELLANEOUS": "MISCELLANEOUS",
  "OPENING": "OPENING",
  "CLOSING": "CLOSING",
  "INVENTORY": "INVENTORY",
  "MANUFACTURING": "MANUFACTURING"
} as const;
export type JournalEntryJournalType = (typeof JournalEntryJournalType)[keyof typeof JournalEntryJournalType];

/**
 * Journal entry lifecycle status (DRAFT, POSTED, REVERSED)
 */
export const JournalEntryStatus = {
  "DRAFT": "DRAFT",
  "POSTED": "POSTED",
  "REVERSED": "REVERSED"
} as const;
export type JournalEntryStatus = (typeof JournalEntryStatus)[keyof typeof JournalEntryStatus];

/**
 * Optional adjusting entry type for period-end adjustments (ACCRUAL, DEFERRAL, RECLASSIFICATION)
 */
export const JournalEntryAdjustingEntryType = {
  "ACCRUAL": "ACCRUAL",
  "DEFERRAL": "DEFERRAL",
  "RECLASSIFICATION": "RECLASSIFICATION"
} as const;
export type JournalEntryAdjustingEntryType = (typeof JournalEntryAdjustingEntryType)[keyof typeof JournalEntryAdjustingEntryType];

/**
 * Period close lifecycle status
 */
export const PeriodCloseStatus = {
  "NOT_STARTED": "NOT_STARTED",
  "IN_PROGRESS": "IN_PROGRESS",
  "SUBLEDGERS_VERIFIED": "SUBLEDGERS_VERIFIED",
  "ADJUSTMENTS_POSTED": "ADJUSTMENTS_POSTED",
  "TRIAL_BALANCE_VERIFIED": "TRIAL_BALANCE_VERIFIED",
  "SOFT_LOCKED": "SOFT_LOCKED",
  "PERMANENTLY_CLOSED": "PERMANENTLY_CLOSED"
} as const;
export type PeriodCloseStatus = (typeof PeriodCloseStatus)[keyof typeof PeriodCloseStatus];

/**
 * Trial balance variant (PRE_CLOSE or POST_CLOSE)
 */
export const TrialBalanceVariant = {
  "PRE_CLOSE": "PRE_CLOSE",
  "POST_CLOSE": "POST_CLOSE"
} as const;
export type TrialBalanceVariant = (typeof TrialBalanceVariant)[keyof typeof TrialBalanceVariant];

export const CurrencyStatus = {
  "ACTIVE": "ACTIVE",
  "INACTIVE": "INACTIVE"
} as const;
export type CurrencyStatus = (typeof CurrencyStatus)[keyof typeof CurrencyStatus];
