Manual Reference Source Test

src/helpers/import/JobStatus.js

import JobStatusModel from '../../models/import/JobStatus';
import Helper from '../Helper';
import { aggregate } from '../../utilities/ClassUtility';

/**
 * Helper class representing a job status.
 *
 * @extends {JobStatusModel}
 * @extends {Helper}
 *
 * @example
 * import { JobStatus } from 'clinical6';
 *
 * const jobStatus = new JobStatus({
 *   data: {
 *     id: 1,
 *     type: "generic_files",
 *     attributes: {
 *       status: "pending",
 *       started_at: "2018-09-18T21:35:06Z",
 *       completed_at: "2018-09-18T21:35:06Z"
 *     }
 *   }
 * });
 */
class JobStatus extends aggregate(JobStatusModel, Helper) {
  /** @type {String}  - The type */
  static get type() {
    return 'job_status';
  }
}

export default JobStatus;