Files
onspring-api-sdk-javascript/src/models/ReportData.ts
T

28 lines
666 B
TypeScript
Raw Normal View History

import { type Row } from './Row.js';
2023-02-09 18:23:49 -06:00
2023-02-10 23:29:56 -06:00
/**
* @class ReportData - Represents the data for a report.
*/
2023-02-09 18:23:49 -06:00
export class ReportData {
2023-02-10 23:29:56 -06:00
/**
* @property {string[]} columns - The columns in the report.
*/
2023-02-09 18:23:49 -06:00
public columns: string[];
2023-02-10 23:29:56 -06:00
/**
* @property {Row[]} rows - The rows in the report.
*/
2023-02-09 18:23:49 -06:00
public rows: Row[];
2023-02-10 23:29:56 -06:00
/**
* @constructor - Creates a new instance of ReportData.
* @param {string[]} columns - The columns in the report.
* @param {Row[]} rows - The rows in the report.
* @returns {ReportData} - A new instance of ReportData.
*/
2023-02-09 18:23:49 -06:00
constructor(columns: string[], rows: Row[]) {
this.columns = columns;
this.rows = rows;
}
}