pocketbase_helpers 0.3.0
pocketbase_helpers: ^0.3.0 copied to clipboard
Utilities for using typed data together with pocketbase.
0.3.0 #
- Changed implementation of
helper.getMultiplecall to use only one api call instead of a seperate call for each id. - Reworked the
baseHelper.updatemethod to take id and map instead of an object that implements thePocketbaseRecordinterface, this was done to improve consistency between the methods and allow the basehelper to be more flexible. ThecollectionHelper.updatemethod stays the same.
0.2.0 #
- added getMultiple method on helpers.
- removed file related methods from
BaseHelperandCollectionHelperand moved them toFileHelper. FileHelperis now available onBaseHelperandCollectionHelperthrough thefileFieldmethod- change fileUrl method be named
buildFileUrl
0.1.0 #
- made getSingleOrNull method take an expression and parameters instead of a single id.
0.0.11 #
- added
countmethod to theCollectionHelperandBaseHelper - add
getNameFromFileUrltoHelperUtils - changed the search method to take a list of keywords instead of a string where the words are seperated by commas. This gives more flexibility
0.0.10 #
- made clean map work recursively on maps inside other maps
0.0.9 #
- fixed breaking bug in getFileUrl method of collection helper
0.0.8 #
- fixed mistake in readme
- added
bodyfield to thedeletemethods
0.0.7 #
- Renamed
getSingletogetOneandgetMaybeSingletogetOneOrNull, this should be more in line with general naming conventions
0.0.6 #
- Renamed
baseExpansionsto justexpansionson theCollectionHelperclass - Added a getter for the raw
RecordServiceobject toCollectionHelper - added a new getMaybeSingle() method to
CollectionHelperandBaseHelper - renamed
otherFilterstoadditionalExpressionson search methods, - renamed
otherParamstoadditionalParamson search methods - removed
SearchParamsclass and put its fields directly into the search method. This was done to make the method more intuitive to use - added
fieldsparameter to all methods, takes a list of fields to be included in the returning record if not given all fields are returned - Fixed an issue where expansions would not propegate in
addFilesandremoveFilesmethods - added queryParameters optionalfields to the getFileUrl method
- renamed
creationHookandupdateHooktopreCreationHookandpreUpdateHook - updated readme and inline docs
0.0.5 #
- Fixed breaking bug with filtering in fullList fetch
0.0.4 #
- Fixed breaking bugs related to expansions when creating or updating a record
0.0.3 #
- added expansion merge utilities
- changed fileUrls to fileNames in the removeFiles methods
- changed filePaths to files in the addFiles methods, the expected input is now a map with filenames as keys and filedata as values. This change was done to add support for web.
- added buildExpansionString, mergeExpansions and getNamesFromUrls utilityMethods.
- added io_only method support, and added io only method: pathsToFiles
0.0.2 #
- Updated Readme
0.0.1 #
- Initial version.