bcgov/citz-imb-staff-purchasing-reimbursement

View on GitHub
app/src/interfaces/IFile.ts

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * @interface
 * @description Interface outlining the IFile object.
 * @property {string}   file - Optional: The base64 encoded version of a file.
 * @property {string}   name - The file name.
 * @property {string}   date - The date the file was uploaded.
 * @property {number}   size - The size of the file in bytes.
 * @property {boolean}  deleted - True if the file has been automatically deleted from database.
 * @property {boolean}  downloaded - True if the file has been previously downloaded.
 * @property {boolean}  removed - True if the file was removed by a user.
 * @property {string}   source - The type of record this belongs to. e.g. purchase
 */
export interface IFile {
  file?: string;
  name: string;
  date: string;
  size: number;
  deleted: boolean;
  downloaded: boolean;
  removed: boolean;
  source: string;
}