Kyle Fang
0b1d9b5a1b
feat: omit and update
2025-06-02 14:14:46 +00:00
Ivan
d1760ac174
Improve Create and Update types
2025-05-06 19:27:11 +02:00
Ivan
3451e6a48a
Merge remote-tracking branch 'patmood/main'
2025-04-30 13:54:12 +02:00
Patrick Moody
6a77cd0b73
Add support for geoPoint field ( #128 )
...
* add geoPoint field
* refactor dockerfile
* update snapshots
* fix integration tests
* fix output directory
2025-04-28 09:07:26 +10:00
Ivan
b471503280
Merge remote-tracking branch 'patmood/main'
2025-04-14 12:24:11 +02:00
Ivan
3194dc7d58
Implement code review suggestions
2025-04-11 01:51:37 +02:00
Patrick Moody
9b0b580077
Improved Expand type ( #119 )
...
* refactor integration tests
* if expand type is provided, expand no longer optional
* test and build
* readme
* fix workflow
2025-04-06 21:26:41 +10:00
Ivan
755f310c93
Remove unused nullable type
2025-04-02 14:23:32 +02:00
Ivan
561cf2d702
Fix tests
...
And revert change unknown to never
2025-04-02 00:48:10 +02:00
Ivan
56d57327a9
Improve autodate required fields
2025-04-01 23:38:21 +02:00
Ivan
8bcc830ca7
Change Create and Update to be utility types
2025-04-01 22:24:11 +02:00
Ivan
679829114c
Improve type generation for autodate fields
2024-12-27 01:19:53 +01:00
Ivan
ec26ee2ab1
Fix BaseSystemUpdateFields type
2024-12-25 02:13:39 +01:00
Ivan
1c118b7fab
Improve type generation for file fields
...
For Update requests file fields can be nullable
2024-12-24 17:13:33 +01:00
Ivan
c1dd78e970
Add generic args to Create and Update types
...
Also updated tests snapshot
2024-12-24 16:13:42 +01:00
Patrick
cf28419cea
fix types
2024-11-27 20:57:49 +11:00
Maximilian Skowron
8744267b3e
Support PocketBase version 0.23.0-rc12 ( #103 )
...
* feat(*): upgrade to schema version 0.23.0 of pocketbase
* test(*): update all snapshots and test-db/schema
* test(Dockerfile): use pocketbase version 0.23.0-rc12 for integration tests
* refactor(constants): remove updated/created fields from baserecords
PocketBase no longer adds those fields by default.
* feat(*): use new _superusers collection for url generation
* refactor(test): remove auxiliary.db
* docs(readme): update target version and add npx command example with version
* test(Dockerfile): upgrade rc version to 0.23.0-rc13
* test(*): fix integration tests to be compatible with 0.23.0-rc14
* refactor(Dockerfile): upgrade to 0.23.1
2024-11-27 20:27:38 +11:00
Fernando Nogueira
b50cdb8413
Update RecordService import ( #87 )
...
* Update RecordService import
* bump: pkg
* revert: dep
* chore: update snapshots
2023-10-30 15:22:05 +10:30
Malcolm Nihlén
df1344f67b
Generate typed PocketBase type ( #82 )
...
* generate typed pocketbase
* update package-lock.json
* flag for toggling sdk generation
* fix typo
* update documentation
* add newline to end of output
* fix pr comments
2023-10-18 10:05:17 +10:30
Patrick Moody
3ab9ca6cf4
sort fields alphabetically ( #78 )
2023-09-01 13:30:07 +09:30
Patrick Moody
f049dcd446
prefix numeric enums ( #75 )
2023-08-07 20:50:11 +09:30
Wojciech Koperski
44b8350f1b
Add option to use environment variables as url, email and password ( #68 )
...
* feat: using env variables as url, email and pass
* feat: Update readme
* feat: Add built index.js
* fix: typo in readme
2023-06-27 22:18:47 -07:00
Patrick Moody
a74eac2e1f
always include generic argument for expand ( #67 )
...
* always include generic argument for expand
* update snapshots
2023-06-21 11:21:57 -07:00
Patrick Moody
edb4d7db2c
fix integration test ( #62 )
...
* fix exit code
* update test db and schema for new PB versions
2023-04-30 20:53:14 -07:00
Patrick Moody
d972596982
make all fields required in response types ( #59 )
2023-04-30 10:43:23 -07:00
Patrick Moody
45a1c1fc7d
fix system fields for view collection types ( #53 )
2023-03-02 11:18:12 -08:00
Patrick Moody
b0f1208194
generate and export CollectionResponses ( #51 )
...
* generate and export CollectionResponses
* add workflow badges to readme
* add new type to readme
2023-02-27 10:38:07 -08:00
Patrick Moody
08128645f9
Add support for view collection type ( #50 )
...
* add view collection type
2023-02-26 15:19:01 -08:00
Patrick Moody
b3f95a891b
Refactor fields ( #48 )
...
* separate out field handling into new file
* sort fields
* formatting
2023-02-17 20:15:17 -08:00
Patrick Moody
e33b0b2df0
0.12.2 updates ( #35 )
...
* run integration tests with 0.12.2
* add type alias for html string
* add rich editor field to test schema
* default to unknown type for unexpected schema fields
* bump version
2023-02-07 21:20:39 -08:00
Patrick Moody
1cdbec1f35
add sort-keys linting ( #34 )
2023-02-07 20:49:18 -08:00
Patrick Moody
883dc25137
Support generics for expand fields ( #30 )
...
* add generics for expand fields
* update naming
2023-01-22 08:46:44 -08:00
Duy Pham
fd61e687bf
handle relation fields with maxSelect = null ( #28 )
...
when maxSelect = null (left empty), it accepts unlimitted number of values
2023-01-02 13:54:14 -08:00
Patrick Moody
0cbcdaab5c
handle select fields with maxSelect > 1 ( #25 )
...
* handle select fields with maxSelect > 1
* build
2022-12-02 20:53:25 -08:00
Patrick Moody
00897a17e2
Handle special character in enums ( #22 )
...
* handle enums with spaces and special characters
* build and bump version
2022-11-20 08:49:31 -08:00
Patrick Moody
d04a445072
Support PocketBase v0.8 ( #19 )
...
* add v0.8 schema
* update system fields to handle base and auth collection types
* handle relation fields with multiple items
* create enums for select fields that have values
* additional typecheck
* add user field for backwards compatability
* refactor strings
* refactor system types
* readme
* Add lint and formatting (#17 )
* add linting and formatting
* lint codebase
* prettier
* update test workflow
* update test workflow again
* fix: url login for pocketbase 0.8.0-rc2 servers (#16 )
Co-authored-by: Ethan Olsen <ethan@crowdhubapps.com >
* e2e integration test (#18 )
* add dockerfile to run e2e tests
* add db typegen
* cleanup
* add test
* add github workflow
* remove interactive flag
* intentionally fail integration test
* save artifacts in case of failing tests
* fix output dir
* ignore files
Co-authored-by: Ethan Olsen <46045126+o2dependent@users.noreply.github.com >
Co-authored-by: Ethan Olsen <ethan@crowdhubapps.com >
2022-11-18 21:06:55 -08:00
Patrick
7856ea7cc1
response intersection types
2022-11-04 20:51:47 -07:00
Patrick
b39e041540
fix whitespace
2022-10-25 11:44:02 -07:00
Patrick
1f7b2649fb
add full example output
2022-10-25 11:42:20 -07:00
Patrick
5428554418
add integration test
2022-10-25 11:26:00 -07:00
Patrick
5675f5144e
add alias types
2022-10-24 10:14:26 -07:00
Patrick
51389469a0
add IsoDateString type as an alias
2022-10-23 20:18:13 -07:00
Patrick
3b0c902428
add json generics
2022-10-23 15:49:52 -07:00
Patrick
5a678f40bf
rename schema types
2022-10-23 13:51:49 -07:00
Patrick
54065f72c7
use select values
2022-10-23 11:56:41 -07:00
Patrick
1116331a14
sanitize fields that start with numbers
2022-10-23 11:01:51 -07:00
Patrick
88ff1c1cf1
refactor type map
2022-10-23 10:41:27 -07:00
Patrick
26012a03e5
sort output for linting and readability
2022-10-19 15:29:35 -07:00
Patrick
c1ad20d6ae
update tests
2022-10-19 14:26:32 -07:00
Patrick
fca998c7ab
add collection-record mapping
2022-10-19 13:49:47 -07:00