Commit Graph

53 Commits (master)
 

Author SHA1 Message Date
Tristan B. Velloza Kildaire aa77afccac - Added logo
5 months ago
Tristan B. Velloza Kildaire da22ae1c61 - Now using `jstruct` for serialization/deserialization (see Hax-io/jstruct for details)
5 months ago
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)
5 months ago
Tristan B. Velloza Kildaire c89d6bd8b6 Updated .gitignore
5 months ago
Tristan B. Velloza Kildaire 707a1b9373 - `fromJSON()` now throws `RemoteFieldMissing` exception if the input JSON does not have a field found in the input struct type `RecordType`
5 months ago
Tristan B. Velloza Kildaire 3d9b9a4976 - Attempt to mixin properly
5 months ago
Tristan B. Velloza Kildaire b10c7d928d Attempt at fixing enum type lookups (anything not implicitly in scope of mixin such as built-in types)
5 months ago
Tristan B. Velloza Kildaire 2f5710fafb - Removed uneeded public imports
5 months ago
Tristan B. Velloza Kildaire d89b7159dd - Ensure that `serializeRecord()` and `fromJSON()` are publically imported as part of the package import to fix user-defined types lookups (such as enums)
5 months ago
Tristan B. Velloza Kildaire 5c0dcfe15b Updated testing DB schema
5 months ago
Tristan B. Velloza Kildaire b9a2254a66 - Removed uneeded default arguments
5 months ago
Tristan B. Velloza Kildaire 1b3ef337a5 - Now `updateRecord()` is for base collections and `updateRecordAuth()` is for auth collections
5 months ago
Tristan B. Velloza Kildaire 571e8dea81 - Mixin template `MemberAndType` should be private (not user-accessibe)
5 months ago
Tristan B. Velloza Kildaire 199b1f0120 - Now `listRecords()` is for base collections and `listRecordsAuth()` is for auth collections
5 months ago
Tristan B. Velloza Kildaire 6da8696926 - Added documentation string to `NetworkException`
5 months ago
Tristan B. Velloza Kildaire 2c8141f5b6 Added all integral types
5 months ago
Tristan B. Velloza Kildaire 4a287864ee - Fixed API call in usage example
5 months ago
Tristan B. Velloza Kildaire 8483a60da8 - Added missing documentaion string for `authWithPassword()`
5 months ago
Tristan B. Velloza Kildaire 6b47078b89 - Fixed up API to have seperate `createRecord()` (for base collections) and `createRecordAuth()` (for auth collections)
5 months ago
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
5 months ago
Tristan B. Velloza Kildaire 6a5e1d60ee - Implemented `authWithPassword()` which provides a token back after providing authentication details
5 months ago
Tristan B. Velloza Kildaire cda2e6e54f - Fixed the use of `serializeRecord` and `fromJSON` in README.md serialization/deserialization examples
5 months ago
Tristan B. Velloza Kildaire 78100faaef - Privatized static method `isAbleCheck()` in PocketBase
5 months ago
Tristan B. Velloza Kildaire 2550e12496 - Privatised testing enum `EnumType` in serialization.d unit test
5 months ago
Tristan B. Velloza Kildaire 87b564f4e5 - Cleaned up serialization.d and deserialization.d imports
5 months ago
Tristan B. Velloza Kildaire eeabd9173e Merge branch 'master' of github.com:Hax-io/libpb
5 months ago
Tristan B. Velloza Kildaire 15fe95f532 Refactored various components into their own modules
5 months ago
Tristan B. Velloza Kildaire f88ea15f38
Added link to full API docs
5 months ago
Tristan B. Velloza Kildaire 3e853e7431 - Added authentication token support on a per-instance basis, this adds `setAuthToken(string)` and `string getAuthToken()`
5 months ago
Tristan B. Velloza Kildaire 4bb0c225af - Removed stray `writeln()` without a wrapping `debug(dbg)`
5 months ago
Tristan B. Velloza Kildaire f06dcaf8f5 - Fixed the filtering in `listRecords()`, now escaping is automatically done
5 months ago
Tristan B. Velloza Kildaire 889e07040e Added filtering support to \'listRecords()\'
5 months ago
Tristan B. Velloza Kildaire 960eef4934 Removed stray debug print
5 months ago
Tristan B. Velloza Kildaire 4db1d40759 Fixed creation of auth-type records in `createRecord()`
5 months ago
Tristan B. Velloza Kildaire e44fbf3189 Added more exception types for handling various error codes
5 months ago
Tristan B. Velloza Kildaire 1027e5580f - Improved error handling with more specific errors
5 months ago
Tristan B. Velloza Kildaire 0b0a8d2b31
Updated usage
5 months ago
Tristan B. Velloza Kildaire 98723c0772 SIlent when not using -ddbg
5 months ago
Tristan B. Velloza Kildaire c651b9d515 - `listRecords()` now returns an array of records
5 months ago
Tristan B. Velloza Kildaire 1594943561 Updated usage
5 months ago
Tristan B. Velloza Kildaire c2597788d7 - Implemented `viewRecord()`
5 months ago
Tristan B. Velloza Kildaire 9cfed9b33d - `updateRecord()` now returns the updated record
5 months ago
Tristan B. Velloza Kildaire 1eab9e19b3 - Fixed compilation error when using meta-programming techniques in `updateRecord()`
5 months ago
Tristan B. Velloza Kildaire b894b6e1c6 Updated usage examples with record management and updated assertions
5 months ago
Tristan B. Velloza Kildaire 0cd17f976e - Added test case for object de-serialization
5 months ago
Tristan B. Velloza Kildaire 8b2ce3bce2 Added schema for unit tests
5 months ago
Tristan B. Velloza Kildaire 626660216b - Ensure that any generic RecordType has an `id` field of type `string`
5 months ago
Tristan B. Velloza Kildaire e5e75f1712 Silent debug
5 months ago
Tristan B. Velloza Kildaire 4046f15230 Added enum support
5 months ago
Tristan B. Velloza Kildaire ccc2a5cf31 Make testing prints and pragmas only enabled under `-ddbg` flag
5 months ago