@@ -662,8 +662,7 @@ export interface IFinishedUserData {
662
662
export interface IContentUserDataStorage {
663
663
/**
664
664
* Creates or updates the content user data.
665
- * @param contextId an arbitrary value that can be used to save multiple
666
- * states for one content - user tuple
665
+ * @param userData user data
667
666
*/
668
667
createOrUpdateContentUserData ( userData : IContentUserData ) : Promise < void > ;
669
668
@@ -694,7 +693,7 @@ export interface IContentUserDataStorage {
694
693
* @param contentId The id of the content to load user data from
695
694
* @param dataType Used by the h5p.js client
696
695
* @param subContentId The id provided by the h5p.js client call
697
- * @param user The user who owns this object
696
+ * @param userId The user who owns this object
698
697
* @param contextId an arbitrary value that can be used to save multiple
699
698
* states for one content - user tuple
700
699
* @returns the data
@@ -710,7 +709,7 @@ export interface IContentUserDataStorage {
710
709
/**
711
710
* Lists all associated contentUserData for a given contentId and user.
712
711
* @param contentId The id of the content to load user data from
713
- * @param user The id of the user to load user data from
712
+ * @param userId The id of the user to load user data from
714
713
* @param contextId an arbitrary value that can be used to save multiple
715
714
* states for one content - user tuple
716
715
* @returns An array of objects containing the dataType, subContentId and
@@ -812,7 +811,7 @@ export interface IContentStorage {
812
811
/**
813
812
* Deletes a content object and all its dependent files from the repository.
814
813
* Throws errors if something goes wrong.
815
- * @param id The content id to delete.
814
+ * @param contentId The content id to delete.
816
815
* @param user The user who wants to delete the content
817
816
*/
818
817
deleteContent ( contentId : ContentId , user ?: IUser ) : Promise < void > ;
@@ -841,8 +840,8 @@ export interface IContentStorage {
841
840
/**
842
841
* Returns information about a content file (e.g. image or video) inside a
843
842
* piece of content.
844
- * @param id the id of the content object that the file is attached to
845
- * @param filename the filename of the file to get information about
843
+ * @param contentId the id of the content object that the file is attached to
844
+ * @param file the filename of the file to get information about
846
845
* @param user the user who wants to retrieve the content file
847
846
* @returns
848
847
*/
@@ -855,8 +854,9 @@ export interface IContentStorage {
855
854
/**
856
855
* Returns a readable stream of a content file (e.g. image or video) inside
857
856
* a piece of content
858
- * @param id the id of the content object that the file is attached to
859
- * @param filename the filename of the file to get; can be a path including
857
+ * @param contentId the id of the content object that the file is attached
858
+ * to
859
+ * @param file the filename of the file to get; can be a path including
860
860
* subdirectories (e.g. 'images/xyz.png')
861
861
* @param user the user who wants to retrieve the content file
862
862
* @param rangeStart (optional) the position in bytes at which the stream
@@ -952,7 +952,7 @@ export interface ILibraryStorage {
952
952
* clean up the partly installed library.
953
953
* @param library The library that is being installed
954
954
* @param filename Filename of the file to add, relative to the library root
955
- * @param stream The stream containing the file content
955
+ * @param readStream The stream containing the file content
956
956
* @returns true if successful
957
957
*/
958
958
addFile (
@@ -965,7 +965,7 @@ export interface ILibraryStorage {
965
965
* Adds the metadata of the library to the repository and assigns a new id
966
966
* to the installed library. This dea is used later when the library must be
967
967
* referenced somewhere. Throws errors if something goes wrong.
968
- * @param libraryMetadata The library metadata object (= content of
968
+ * @param libraryData The library metadata object (= content of
969
969
* library.json)
970
970
* @param restricted True if the library can only be used be users allowed
971
971
* to install restricted libraries.
@@ -1035,7 +1035,7 @@ export interface ILibraryStorage {
1035
1035
* Returns a information about a library file.
1036
1036
* Throws an exception if the file does not exist.
1037
1037
* @param library library
1038
- * @param filename the relative path inside the library
1038
+ * @param file the relative path inside the library
1039
1039
* @returns the file stats
1040
1040
*/
1041
1041
getFileStats ( library : ILibraryName , file : string ) : Promise < IFileStats > ;
@@ -1044,7 +1044,7 @@ export interface ILibraryStorage {
1044
1044
* Returns a readable stream of a library file's contents.
1045
1045
* Throws an exception if the file does not exist.
1046
1046
* @param library library
1047
- * @param filename the relative path inside the library
1047
+ * @param file the relative path inside the library
1048
1048
* @returns a readable stream of the file's contents
1049
1049
*/
1050
1050
getFileStream ( library : ILibraryName , file : string ) : Promise < Readable > ;
@@ -2451,8 +2451,8 @@ export interface ILockProvider {
2451
2451
*
2452
2452
* @param key the key of the resource to lock
2453
2453
* @param callback the code which should run once the lock was acquired
2454
- * @param timeout how long to wait until the lock is acquired
2455
- * @param maxOccupationTime how long to wait until the code in callback is
2454
+ * @param options. timeout how long to wait until the lock is acquired
2455
+ * @param options. maxOccupationTime how long to wait until the code in callback is
2456
2456
* finished
2457
2457
* @throws 'timeout' or 'occupation-time-exceed' errors
2458
2458
*/
0 commit comments