@infrasoftbe/vnv-sdk
    Preparing search index...

    Function isValidExcel

    • Validates if the provided Excel file buffer contains valid project data

      Parameters

      • excel: Buffer

        Buffer containing the Excel file data

      • collect: false

        Optional boolean flag to collect validation details. If true, returns validation results object; if false, returns boolean

      Returns Promise<boolean>

      Promise that resolves to either:

      • If collect is true: validation result object containing success status and potential error details
      • If collect is false: boolean indicating if Excel is valid
    • Validates if the provided Excel file buffer contains valid project data

      Parameters

      • excel: Buffer

        Buffer containing the Excel file data

      • collect: true

        Optional boolean flag to collect validation details. If true, returns validation results object; if false, returns boolean

      Returns Promise<ValidationResult>

      Promise that resolves to either:

      • If collect is true: validation result object containing success status and potential error details
      • If collect is false: boolean indicating if Excel is valid