finance-mgn - v1.4.1
    Preparing search index...
    • Writes transaction data to a specified Google Sheet. This function performs the following operations:

      1. Validates the required configuration settings.
      2. Clears existing data from the target sheet.
      3. Writes the provided transaction data to the sheet.

      Parameters

      • transactions: Transaction[]

        Array of transaction rows to write to the sheet.

      • sheetName: string

        Name of the target Google Sheet (e.g., "expenses", "incomes").

      • sheetId: string

        Google Spreadsheet ID where the sheet is located.

      Returns Promise<void>

      Promise Resolves when data is successfully written.

      Error If configuration is invalid, sheet clearing fails, or writing data fails.