Commit Graph

14 Commits

Author SHA1 Message Date
Tristan B. Velloza Kildaire da22ae1c61 - Now using `jstruct` for serialization/deserialization (see Hax-io/jstruct for details)
- Updated .gitignore to exclude dub.selections.json
2023-01-09 11:19:11 +02:00
Tristan B. Velloza Kildaire 4fc4242c1e - Moved back to more clean templating method (for now till a fix can be found for the type lookups for issue #7) 2023-01-09 10:28:56 +02:00
Tristan B. Velloza Kildaire 3d9b9a4976 - Attempt to mixin properly 2023-01-06 16:42:40 +02:00
Tristan B. Velloza Kildaire b10c7d928d Attempt at fixing enum type lookups (anything not implicitly in scope of mixin such as built-in types) 2023-01-06 16:38:34 +02:00
Tristan B. Velloza Kildaire b9a2254a66 - Removed uneeded default arguments 2023-01-05 13:01:13 +02:00
Tristan B. Velloza Kildaire 1b3ef337a5 - Now `updateRecord()` is for base collections and `updateRecordAuth()` is for auth collections 2023-01-05 12:58:51 +02:00
Tristan B. Velloza Kildaire 571e8dea81 - Mixin template `MemberAndType` should be private (not user-accessibe) 2023-01-05 12:50:36 +02:00
Tristan B. Velloza Kildaire 199b1f0120 - Now `listRecords()` is for base collections and `listRecordsAuth()` is for auth collections
- Now `viewRecord()` is for base collections and `viewRecordAuth()` is for auth collections
- Updated unittests accordingly
2023-01-05 12:36:36 +02:00
Tristan B. Velloza Kildaire 8483a60da8 - Added missing documentaion string for `authWithPassword()` 2023-01-05 11:28:12 +02:00
Tristan B. Velloza Kildaire 6b47078b89 - Fixed up API to have seperate `createRecord()` (for base collections) and `createRecordAuth()` (for auth collections)
- Privatized and renamed the old `createRecord()` -> `createRecord_internal()`
2023-01-05 11:25:24 +02:00
Tristan B. Velloza Kildaire f23a4c40bb - Implemented `createRecordAuth()` which is to be used for creating authentication records as it has compile-time guarantees about the fields required in a struct for such a procedure 2023-01-05 11:22:35 +02:00
Tristan B. Velloza Kildaire 6a5e1d60ee - Implemented `authWithPassword()` which provides a token back after providing authentication details
- Added unittest for `authWithPassword()`
2023-01-05 11:19:38 +02:00
Tristan B. Velloza Kildaire 78100faaef - Privatized static method `isAbleCheck()` in PocketBase 2023-01-02 16:32:08 +02:00
Tristan B. Velloza Kildaire 15fe95f532 Refactored various components into their own modules 2023-01-02 16:14:47 +02:00