diff --git a/.changeset/pre.json b/.changeset/pre.json index b4bc2c1..778fae4 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -12,6 +12,7 @@ "gold-socks-wink", "honest-ants-rest", "sixty-hotels-complain", + "tough-books-smoke", "young-apes-brush" ] } diff --git a/.changeset/tough-books-smoke.md b/.changeset/tough-books-smoke.md new file mode 100644 index 0000000..2933a82 --- /dev/null +++ b/.changeset/tough-books-smoke.md @@ -0,0 +1,5 @@ +--- +"typed-pocketbase": patch +--- + +make password and passwordConfirm optional on update diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ce116d..c5b41d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # typed-pocketbase +## 0.1.0-pre.6 + +### Patch Changes + +- make password and passwordConfirm optional on update + ## 0.1.0-pre.5 ### Patch Changes diff --git a/package.json b/package.json index 6d107b9..d5c38dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "typed-pocketbase", - "version": "0.1.0-pre.5", + "version": "0.1.0-pre.6", "description": "Add types to the PocketBase JavaScript SDK", "author": "David Plugge", "repository": { diff --git a/src/codegen/index.ts b/src/codegen/index.ts index e185101..576b10d 100644 --- a/src/codegen/index.ts +++ b/src/codegen/index.ts @@ -149,11 +149,11 @@ export interface AuthCollectionUpdate { /** * New auth record password. */ - password: string; + password?: string; /** * New auth record password confirmation. */ - passwordConfirm: string; + passwordConfirm?: string; /** * Indicates whether the auth record is verified or not. * This field can be set only by admins or auth records with "Manage" access.