-
Notifications
You must be signed in to change notification settings - Fork 45
feat: SDK update for version 20.2.0 #307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
9ae8c4f
fe081e2
1f49ed7
c5a44e3
c5047b5
47ee300
fa46fdc
6e397d0
11f70e3
37682f3
b3197fe
9959105
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| ```bash | ||
| appwrite databases create-big-int-attribute \ | ||
| --database-id <DATABASE_ID> \ | ||
| --collection-id <COLLECTION_ID> \ | ||
| --key '' \ | ||
| --required false | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ```bash | ||
| appwrite databases update-big-int-attribute \ | ||
| --database-id <DATABASE_ID> \ | ||
| --collection-id <COLLECTION_ID> \ | ||
| --key '' \ | ||
| --required false \ | ||
| --default null | ||
| ``` | ||
|
Comment on lines
+1
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The example uses |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| ```bash | ||
| appwrite functions create-variable \ | ||
| --function-id <FUNCTION_ID> \ | ||
| --variable-id <VARIABLE_ID> \ | ||
| --key <KEY> \ | ||
| --value <VALUE> | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| ```bash | ||
| appwrite functions list-variables \ | ||
| --function-id <FUNCTION_ID> | ||
| --function-id <FUNCTION_ID> \ | ||
| --limit 25 | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| ```bash | ||
| appwrite functions update-variable \ | ||
| --function-id <FUNCTION_ID> \ | ||
| --variable-id <VARIABLE_ID> \ | ||
| --key <KEY> | ||
| --variable-id <VARIABLE_ID> | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| ```bash | ||
| appwrite project create-ephemeral-key \ | ||
| --scopes one two three \ | ||
| --duration 1 | ||
| --duration 600 | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| ```bash | ||
| appwrite project get-o-auth-2-provider \ | ||
| --provider <PROVIDER> | ||
| --provider-id amazon | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| ```bash | ||
| appwrite project list-o-auth-2-providers | ||
| appwrite project list-o-auth-2-providers \ | ||
| --limit 25 | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| ```bash | ||
| appwrite proxy update-rule-status \ | ||
| --rule-id <RULE_ID> | ||
| ``` |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| ```bash | ||
| appwrite sites create-variable \ | ||
| --site-id <SITE_ID> \ | ||
| --variable-id <VARIABLE_ID> \ | ||
| --key <KEY> \ | ||
| --value <VALUE> | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| ```bash | ||
| appwrite sites list-variables \ | ||
| --site-id <SITE_ID> | ||
| --site-id <SITE_ID> \ | ||
| --limit 25 | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| ```bash | ||
| appwrite sites update-variable \ | ||
| --site-id <SITE_ID> \ | ||
| --variable-id <VARIABLE_ID> \ | ||
| --key <KEY> | ||
| --variable-id <VARIABLE_ID> | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| ```bash | ||
| appwrite tables-db create-big-int-column \ | ||
| --database-id <DATABASE_ID> \ | ||
| --table-id <TABLE_ID> \ | ||
| --key '' \ | ||
| --required false | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ```bash | ||
| appwrite tables-db update-big-int-column \ | ||
| --database-id <DATABASE_ID> \ | ||
| --table-id <TABLE_ID> \ | ||
| --key '' \ | ||
| --required false \ | ||
| --default null | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -367,6 +367,51 @@ | |
| ); | ||
|
|
||
|
|
||
| const databasesCreateBigIntAttributeCommand = databases | ||
| .command(`create-big-int-attribute`) | ||
| .description(`Create a bigint attribute. Optionally, minimum and maximum values can be provided. | ||
| `) | ||
| .requiredOption(`--database-id <database-id>`, `Database ID.`) | ||
| .requiredOption(`--collection-id <collection-id>`, `Collection ID.`) | ||
| .requiredOption(`--key <key>`, `Attribute Key.`) | ||
| .requiredOption(`--required <required>`, `Is attribute required?`, parseBool) | ||
| .option(`--min <min>`, `Minimum value`, parseInteger) | ||
| .option(`--max <max>`, `Maximum value`, parseInteger) | ||
| .option(`--xdefault <xdefault>`, `Default value. Cannot be set when attribute is required.`, parseInteger) | ||
|
Comment on lines
+378
to
+380
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| .option( | ||
| `--array [value]`, | ||
| `Is attribute an array?`, | ||
| (value: string | undefined) => | ||
| value === undefined ? true : parseBool(value), | ||
| ) | ||
| .action( | ||
| actionRunner( | ||
| async ({ databaseId, collectionId, key, required, min, max, xdefault, array }) => | ||
| parse(await (await getDatabasesClient()).createBigIntAttribute(databaseId, collectionId, key, required, min, max, xdefault, array)), | ||
| ), | ||
| ); | ||
|
|
||
|
|
||
| const databasesUpdateBigIntAttributeCommand = databases | ||
| .command(`update-big-int-attribute`) | ||
| .description(`Update a bigint attribute. Changing the \`default\` value will not update already existing documents. | ||
| `) | ||
| .requiredOption(`--database-id <database-id>`, `Database ID.`) | ||
| .requiredOption(`--collection-id <collection-id>`, `Collection ID.`) | ||
| .requiredOption(`--key <key>`, `Attribute Key.`) | ||
| .requiredOption(`--required <required>`, `Is attribute required?`, parseBool) | ||
| .requiredOption(`--xdefault <xdefault>`, `Default value. Cannot be set when attribute is required.`, parseInteger) | ||
| .option(`--min <min>`, `Minimum value`, parseInteger) | ||
| .option(`--max <max>`, `Maximum value`, parseInteger) | ||
| .option(`--new-key <new-key>`, `New Attribute Key.`) | ||
| .action( | ||
| actionRunner( | ||
| async ({ databaseId, collectionId, key, required, xdefault, min, max, newKey }) => | ||
| parse(await (await getDatabasesClient()).updateBigIntAttribute(databaseId, collectionId, key, required, xdefault, min, max, newKey)), | ||
| ), | ||
| ); | ||
|
|
||
|
|
||
| const databasesCreateBooleanAttributeCommand = databases | ||
| .command(`create-boolean-attribute`) | ||
| .description(`Create a boolean attribute. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new CHANGELOG entry is titled
## 20.2.0, but every other file in this PR (lib/constants.ts,package.json,package-lock.json,install.sh,install.ps1,scoop/appwrite.config.json) sets the version to20.3.0. The PR title itself also says "version 20.2.0". All install scripts and release artifact URLs point to20.3.0, so users running the install script will download a binary that was never released under the CHANGELOG's stated version, causing installation failures or confusion about which changelog entry describes the installed build.