Skip to content

Commit

Permalink
chore: release rc
Browse files Browse the repository at this point in the history
  • Loading branch information
christyjacob4 committed Aug 17, 2024
1 parent 6a1c209 commit df4648f
Show file tree
Hide file tree
Showing 94 changed files with 378 additions and 108 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Appwrite Web SDK

![License](https://img.shields.io/github/license/appwrite/sdk-for-web.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.5.7-blue.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.6.0-blue.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
Expand Down Expand Up @@ -33,7 +33,7 @@ import { Client, Account } from "appwrite";
To install with a CDN (content delivery network) add the following scripts to the bottom of your <body> tag, but before you use any Appwrite services:

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].1"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].2"></script>
```


Expand Down
2 changes: 1 addition & 1 deletion docs/examples/account/create-anonymous-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const account = new Account(client);

const result = await account.createAnonymousSession();

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/create-email-password-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const result = await account.createEmailPasswordSession(
'password' // password
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/create-email-token.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const result = await account.createEmailToken(
false // phrase (optional)
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/create-j-w-t.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const account = new Account(client);

const result = await account.createJWT();

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/create-magic-u-r-l-token.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const result = await account.createMagicURLToken(
false // phrase (optional)
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/create-mfa-authenticator.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const result = await account.createMfaAuthenticator(
AuthenticatorType.Totp // type
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/create-mfa-challenge.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const result = await account.createMfaChallenge(
AuthenticationFactor.Email // factor
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/create-mfa-recovery-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const account = new Account(client);

const result = await account.createMfaRecoveryCodes();

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/create-phone-token.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const result = await account.createPhoneToken(
'+12065550100' // phone
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/create-phone-verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const account = new Account(client);

const result = await account.createPhoneVerification();

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/create-push-target.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const result = await account.createPushTarget(
'<PROVIDER_ID>' // providerId (optional)
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/create-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const result = await account.createRecovery(
'https://example.com' // url
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/create-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const result = await account.createSession(
'<SECRET>' // secret
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/create-verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const result = await account.createVerification(
'https://example.com' // url
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const result = await account.create(
'<NAME>' // name (optional)
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/delete-identity.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const result = await account.deleteIdentity(
'<IDENTITY_ID>' // identityId
);

console.log(response);
console.log(result);
5 changes: 2 additions & 3 deletions docs/examples/account/delete-mfa-authenticator.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ const client = new Client()
const account = new Account(client);

const result = await account.deleteMfaAuthenticator(
AuthenticatorType.Totp, // type
'<OTP>' // otp
AuthenticatorType.Totp // type
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/delete-push-target.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const result = await account.deletePushTarget(
'<TARGET_ID>' // targetId
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/delete-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const result = await account.deleteSession(
'<SESSION_ID>' // sessionId
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/delete-sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const account = new Account(client);

const result = await account.deleteSessions();

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/get-mfa-recovery-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const account = new Account(client);

const result = await account.getMfaRecoveryCodes();

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/get-prefs.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const account = new Account(client);

const result = await account.getPrefs();

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/get-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const result = await account.getSession(
'<SESSION_ID>' // sessionId
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/get.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const account = new Account(client);

const result = await account.get();

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/list-identities.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const result = await account.listIdentities(
[] // queries (optional)
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/list-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const result = await account.listLogs(
[] // queries (optional)
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/list-mfa-factors.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const account = new Account(client);

const result = await account.listMfaFactors();

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/list-sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const account = new Account(client);

const result = await account.listSessions();

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-email.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const result = await account.updateEmail(
'password' // password
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-m-f-a.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const result = await account.updateMFA(
false // mfa
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-magic-u-r-l-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const result = await account.updateMagicURLSession(
'<SECRET>' // secret
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-mfa-authenticator.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const result = await account.updateMfaAuthenticator(
'<OTP>' // otp
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-mfa-challenge.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const result = await account.updateMfaChallenge(
'<OTP>' // otp
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-mfa-recovery-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const account = new Account(client);

const result = await account.updateMfaRecoveryCodes();

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-name.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const result = await account.updateName(
'<NAME>' // name
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-password.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const result = await account.updatePassword(
'password' // oldPassword (optional)
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-phone-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const result = await account.updatePhoneSession(
'<SECRET>' // secret
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-phone-verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const result = await account.updatePhoneVerification(
'<SECRET>' // secret
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-phone.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const result = await account.updatePhone(
'password' // password
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-prefs.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const result = await account.updatePrefs(
{} // prefs
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-push-target.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const result = await account.updatePushTarget(
'<IDENTIFIER>' // identifier
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const result = await account.updateRecovery(
'' // password
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const result = await account.updateSession(
'<SESSION_ID>' // sessionId
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-status.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ const account = new Account(client);

const result = await account.updateStatus();

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/account/update-verification.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const result = await account.updateVerification(
'<SECRET>' // secret
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/databases/create-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ const result = await databases.createDocument(
["read("any")"] // permissions (optional)
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/databases/delete-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const result = await databases.deleteDocument(
'<DOCUMENT_ID>' // documentId
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/databases/get-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const result = await databases.getDocument(
[] // queries (optional)
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/databases/list-documents.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const result = await databases.listDocuments(
[] // queries (optional)
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/databases/update-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ const result = await databases.updateDocument(
["read("any")"] // permissions (optional)
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/functions/create-execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ const result = await functions.createExecution(
'' // scheduledAt (optional)
);

console.log(response);
console.log(result);
14 changes: 14 additions & 0 deletions docs/examples/functions/get-deployment-download.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Client, Functions } from "appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID

const functions = new Functions(client);

const result = functions.getDeploymentDownload(
'<FUNCTION_ID>', // functionId
'<DEPLOYMENT_ID>' // deploymentId
);

console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/functions/get-execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const result = await functions.getExecution(
'<EXECUTION_ID>' // executionId
);

console.log(response);
console.log(result);
13 changes: 13 additions & 0 deletions docs/examples/functions/get-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Client, Functions } from "appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID

const functions = new Functions(client);

const result = await functions.getTemplate(
'<TEMPLATE_ID>' // templateId
);

console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/functions/list-executions.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const result = await functions.listExecutions(
'<SEARCH>' // search (optional)
);

console.log(response);
console.log(result);
16 changes: 16 additions & 0 deletions docs/examples/functions/list-templates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Client, Functions } from "appwrite";

const client = new Client()
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('&lt;YOUR_PROJECT_ID&gt;'); // Your project ID

const functions = new Functions(client);

const result = await functions.listTemplates(
[], // runtimes (optional)
[], // useCases (optional)
1, // limit (optional)
0 // offset (optional)
);

console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/graphql/mutation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const result = await graphql.mutation(
{} // query
);

console.log(response);
console.log(result);
2 changes: 1 addition & 1 deletion docs/examples/graphql/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const result = await graphql.query(
{} // query
);

console.log(response);
console.log(result);
Loading

0 comments on commit df4648f

Please sign in to comment.