Manual Reference Source Test
import GenericFileModel from 'clinical6/src/models/import/GenericFile.js'
public class | source

GenericFileModel

Direct Subclass:

GenericFile

Model representing a generic file.

Constructor Summary

Public Constructor
public

constructor(response: Object)

Member Summary

Public Members
public
public
public
public
public
public
public

Public Constructors

public constructor(response: Object) source

Params:

NameTypeAttributeDescription
response Object

JSON formatted response of a single generic file

response.id Number
  • nullable: false

The id of the generic file on the server

response.type String
  • nullable: false

The type of this object ('generic_files')

response.name String
  • nullable: false

Name for the generic file myfile.csv

response.public Boolean
  • nullable: false

Whether or not the file is public

response.visible_until Date
  • optional
  • nullable: false

Datetime until it's no longer visible 2018-10-17 00:58:56 UTC

response.created_at Date
  • optional
  • nullable: false

Time at which the generic file was created

response.updated_at Date
  • optional
  • nullable: false

Time at which the generic file was updated

Public Members

public createdAt: Date source

public email: String source

public id: Number source

public name: String source

public public: Boolean source

public updatedAt: Date source

public visibleUntil: Date source