-
Notifications
You must be signed in to change notification settings - Fork 8
feat: SDK update for version 12.2.0 #90
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4b9bd5c
chore: update Console SDK to 12.2.0
ArnabChatterjee20k 352d9a5
chore: update Console SDK to 12.2.0
ArnabChatterjee20k 06b709d
chore: update Console SDK to 12.2.0
ArnabChatterjee20k 4313b0e
chore: update Console SDK to 12.2.0
ArnabChatterjee20k 34da6f3
chore: refresh sdk for latest spec (sanitized oauth examples)
ArnabChatterjee20k dcfff2a
chore: refresh sdk for latest spec (sanitized oauth examples)
ArnabChatterjee20k b4d2c4e
chore: update Console SDK to 12.3.0
ArnabChatterjee20k d243ecb
chore: update Console SDK to 12.3.0
ArnabChatterjee20k 5e3505e
chore: update Console SDK to 12.2.0
ArnabChatterjee20k e2d9f4e
chore: remove presences API artifacts
ArnabChatterjee20k 29c9982
chore: update Console SDK to 12.2.0
ArnabChatterjee20k 233be9e
fix: rename duplicate QuerySuggestionResource enum member
ArnabChatterjee20k 5ea0642
fix: remove presencelogs query suggestion resource
ArnabChatterjee20k bd15c26
chore: update Console SDK to 12.2.0
ArnabChatterjee20k fcf1831
chore: update Console SDK to 12.2.0
ArnabChatterjee20k File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| ```javascript | ||
| import { Client, Databases } from "@appwrite.io/console"; | ||
|
|
||
| const client = new Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>'); // Your project ID | ||
|
|
||
| const databases = new Databases(client); | ||
|
|
||
| const result = await databases.createBigIntAttribute({ | ||
| databaseId: '<DATABASE_ID>', | ||
| collectionId: '<COLLECTION_ID>', | ||
| key: '', | ||
| required: false, | ||
| min: null, // optional | ||
| max: null, // optional | ||
| default: null, // optional | ||
| array: false // optional | ||
| }); | ||
|
|
||
| console.log(result); | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| ```javascript | ||
| import { Client, Databases } from "@appwrite.io/console"; | ||
|
|
||
| const client = new Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>'); // Your project ID | ||
|
|
||
| const databases = new Databases(client); | ||
|
|
||
| const result = await databases.updateBigIntAttribute({ | ||
| databaseId: '<DATABASE_ID>', | ||
| collectionId: '<COLLECTION_ID>', | ||
| key: '', | ||
| required: false, | ||
| default: null, | ||
| min: null, // optional | ||
| max: null, // optional | ||
| newKey: '' // optional | ||
| }); | ||
|
|
||
| console.log(result); | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| ```javascript | ||
| import { Client, TablesDB } from "@appwrite.io/console"; | ||
|
|
||
| const client = new Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>'); // Your project ID | ||
|
|
||
| const tablesDB = new TablesDB(client); | ||
|
|
||
| const result = await tablesDB.createBigIntColumn({ | ||
| databaseId: '<DATABASE_ID>', | ||
| tableId: '<TABLE_ID>', | ||
| key: '', | ||
| required: false, | ||
| min: null, // optional | ||
| max: null, // optional | ||
| default: null, // optional | ||
| array: false // optional | ||
| }); | ||
|
|
||
| console.log(result); | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| ```javascript | ||
| import { Client, TablesDB } from "@appwrite.io/console"; | ||
|
|
||
| const client = new Client() | ||
| .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint | ||
| .setProject('<YOUR_PROJECT_ID>'); // Your project ID | ||
|
|
||
| const tablesDB = new TablesDB(client); | ||
|
|
||
| const result = await tablesDB.updateBigIntColumn({ | ||
| databaseId: '<DATABASE_ID>', | ||
| tableId: '<TABLE_ID>', | ||
| key: '', | ||
| required: false, | ||
| default: null, | ||
| min: null, // optional | ||
| max: null, // optional | ||
| newKey: '' // optional | ||
| }); | ||
|
|
||
| console.log(result); | ||
| ``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| export enum ProviderId { | ||
| Amazon = 'amazon', | ||
| Apple = 'apple', | ||
| Auth0 = 'auth0', | ||
| Authentik = 'authentik', | ||
| Autodesk = 'autodesk', | ||
| Bitbucket = 'bitbucket', | ||
| Bitly = 'bitly', | ||
| Box = 'box', | ||
| Dailymotion = 'dailymotion', | ||
| Discord = 'discord', | ||
| Disqus = 'disqus', | ||
| Dropbox = 'dropbox', | ||
| Etsy = 'etsy', | ||
| Facebook = 'facebook', | ||
| Figma = 'figma', | ||
| Fusionauth = 'fusionauth', | ||
| Github = 'github', | ||
| Gitlab = 'gitlab', | ||
| Google = 'google', | ||
| Keycloak = 'keycloak', | ||
| Kick = 'kick', | ||
| Linkedin = 'linkedin', | ||
| Microsoft = 'microsoft', | ||
| Notion = 'notion', | ||
| Oidc = 'oidc', | ||
| Okta = 'okta', | ||
| Paypal = 'paypal', | ||
| PaypalSandbox = 'paypalSandbox', | ||
| Podio = 'podio', | ||
| Salesforce = 'salesforce', | ||
| Slack = 'slack', | ||
| Spotify = 'spotify', | ||
| Stripe = 'stripe', | ||
| Tradeshift = 'tradeshift', | ||
| TradeshiftBox = 'tradeshiftBox', | ||
| Twitch = 'twitch', | ||
| Wordpress = 'wordpress', | ||
| X = 'x', | ||
| Yahoo = 'yahoo', | ||
| Yammer = 'yammer', | ||
| Yandex = 'yandex', | ||
| Zoho = 'zoho', | ||
| Zoom = 'zoom', | ||
| Mock = 'mock', | ||
| Mockunverified = 'mock-unverified', | ||
| GithubImagine = 'githubImagine', | ||
| GoogleImagine = 'googleImagine', | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| export enum ProxyRuleStatus { | ||
| Created = 'created', | ||
| Unverified = 'unverified', | ||
| Verifying = 'verifying', | ||
| Verified = 'verified', | ||
| Unverified = 'unverified', | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 example uses
default: nullbut the TypeScript method signature expects the property to be namedxdefault. Callers who copy this snippet verbatim will get a TypeScript type error (sincedefaultis not in the params interface) and the default value will be silently dropped from the request. The same mismatch exists indocs/examples/databases/update-big-int-attribute.md,docs/examples/tablesdb/create-big-int-column.md, anddocs/examples/tablesdb/update-big-int-column.md.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.
this is also present in the main repo as well https://github.com/appwrite/sdk-for-console/blob/main/docs/examples/tablesdb/create-integer-column.md
default and not xdefault