Skip to content

Commit 96d04e8

Browse files
authored
Merge pull request #60 from appwrite/dev
feat: Console SDK update for version 2.3.1
2 parents 0da9f74 + 3fbb3d2 commit 96d04e8

22 files changed

+462
-80
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
3333
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:
3434

3535
```html
36-
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@2.3.0"></script>
36+
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@2.3.1"></script>
3737
```
3838

3939

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
```javascript
2+
import { Client, Activities } from "@appwrite.io/console";
3+
4+
const client = new Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
7+
8+
const activities = new Activities(client);
9+
10+
const result = await activities.getEvent({
11+
eventId: '<EVENT_ID>'
12+
});
13+
14+
console.log(result);
15+
```
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
```javascript
2+
import { Client, Activities } from "@appwrite.io/console";
3+
4+
const client = new Client()
5+
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
6+
.setProject('<YOUR_PROJECT_ID>'); // Your project ID
7+
8+
const activities = new Activities(client);
9+
10+
const result = await activities.listEvents({
11+
queries: '' // optional
12+
});
13+
14+
console.log(result);
15+
```

docs/examples/databases/create-longtext-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const result = await databases.createLongtextAttribute({
1313
key: '',
1414
required: false,
1515
default: '<DEFAULT>', // optional
16-
array: false // optional
16+
array: false, // optional
17+
encrypt: false // optional
1718
});
1819

1920
console.log(result);

docs/examples/databases/create-mediumtext-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const result = await databases.createMediumtextAttribute({
1313
key: '',
1414
required: false,
1515
default: '<DEFAULT>', // optional
16-
array: false // optional
16+
array: false, // optional
17+
encrypt: false // optional
1718
});
1819

1920
console.log(result);

docs/examples/databases/create-text-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const result = await databases.createTextAttribute({
1313
key: '',
1414
required: false,
1515
default: '<DEFAULT>', // optional
16-
array: false // optional
16+
array: false, // optional
17+
encrypt: false // optional
1718
});
1819

1920
console.log(result);

docs/examples/databases/create-varchar-attribute.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const result = await databases.createVarcharAttribute({
1414
size: 1,
1515
required: false,
1616
default: '<DEFAULT>', // optional
17-
array: false // optional
17+
array: false, // optional
18+
encrypt: false // optional
1819
});
1920

2021
console.log(result);

docs/examples/tablesdb/create-longtext-column.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const result = await tablesDB.createLongtextColumn({
1313
key: '',
1414
required: false,
1515
default: '<DEFAULT>', // optional
16-
array: false // optional
16+
array: false, // optional
17+
encrypt: false // optional
1718
});
1819

1920
console.log(result);

docs/examples/tablesdb/create-mediumtext-column.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const result = await tablesDB.createMediumtextColumn({
1313
key: '',
1414
required: false,
1515
default: '<DEFAULT>', // optional
16-
array: false // optional
16+
array: false, // optional
17+
encrypt: false // optional
1718
});
1819

1920
console.log(result);

docs/examples/tablesdb/create-text-column.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ const result = await tablesDB.createTextColumn({
1313
key: '',
1414
required: false,
1515
default: '<DEFAULT>', // optional
16-
array: false // optional
16+
array: false, // optional
17+
encrypt: false // optional
1718
});
1819

1920
console.log(result);

0 commit comments

Comments
 (0)