the name of the file
the hash identifier of the file, grab this from GitHub.
the buffered contents of the file. Recommended to use GZipped buffers here.
A factory method that creates a NextApiHandler
using the provided model and schema.
The model to be used in serialization.
The model's argument as a schema that will be passed during its initialization.
Deletes a file entry in the database. Useful if the file is deprecated on new versions of the file sets.
the name of the file to remove.
Denote a ShareCfgModel
depends on data that will be resolved and passed to it's load
method.
An array of dependency names as listed in ShareCfgResolver
Marks a property as private to be excluded from serialization.
Gets a file entry from the DB and returns the entry as a JavaScript object.
the name of the file.
the JavaScript object. This also contains the document id (_id). This is a instance of IFileModel as object.
Define what position this property wille be ordered in the schema.
The position of the property in the schema.
Updates a existing file entry in the database. Usually needed if the files has a new version somewhere.
the name of the file. This needs to be consistent as this is used as a search term to the DB.
the new hash identifier of the file. New versions of the file gets a new hash so you want to update this.
the new (GZipped) buffered contents of the files.
Generated using TypeDoc
Creates a new file entry in the database.