Skip to content

Commit ccac9c6

Browse files
authored
feat: Console SDK update for version 8.3.0 (#81)
* chore: update Console SDK to 8.3.0 * chore: update Console SDK to 8.3.0
1 parent 7580c24 commit ccac9c6

16 files changed

Lines changed: 613 additions & 11 deletions

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Change Log
22

3+
## 8.3.0
4+
5+
* Added addon management methods to Organizations service: `listAddons`, `createBaaAddon`, `getAddon`, `deleteAddon`, `confirmAddonPayment`, `getAddonPrice`
6+
* Added `Addon` enum and `BillingPlanSupportedAddons` model
7+
* Added `templateRepository`, `templateOwner`, `templateRootDirectory`, `templateVersion` optional parameters to `functions.create`
8+
* Added `authDisposableEmails`, `authCanonicalEmails`, `authFreeEmails` fields to Project model
9+
* Added `supportForIntegerIds` field to database adapter model
10+
* Added descriptions to `createJSONExport` and `createJSONImport` migration methods
11+
* Updated `ProxyRule` field descriptions for clarity
12+
313
## 8.2.0
414

515
* Added: `createJSONExport()` and `createJSONImport()` methods to Migrations service

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@8.2.0"></script>
36+
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@8.3.0"></script>
3737
```
3838

3939

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
```javascript
2+
import { Client, Organizations } 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 organizations = new Organizations(client);
9+
10+
const result = await organizations.confirmAddonPayment({
11+
organizationId: '<ORGANIZATION_ID>',
12+
addonId: '<ADDON_ID>'
13+
});
14+
15+
console.log(result);
16+
```
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
```javascript
2+
import { Client, Organizations } 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 organizations = new Organizations(client);
9+
10+
const result = await organizations.createBaaAddon({
11+
organizationId: '<ORGANIZATION_ID>'
12+
});
13+
14+
console.log(result);
15+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
```javascript
2+
import { Client, Organizations } 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 organizations = new Organizations(client);
9+
10+
const result = await organizations.deleteAddon({
11+
organizationId: '<ORGANIZATION_ID>',
12+
addonId: '<ADDON_ID>'
13+
});
14+
15+
console.log(result);
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
```javascript
2+
import { Client, Organizations, Addon } 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 organizations = new Organizations(client);
9+
10+
const result = await organizations.getAddonPrice({
11+
organizationId: '<ORGANIZATION_ID>',
12+
addon: Addon.Baa
13+
});
14+
15+
console.log(result);
16+
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
```javascript
2+
import { Client, Organizations } 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 organizations = new Organizations(client);
9+
10+
const result = await organizations.getAddon({
11+
organizationId: '<ORGANIZATION_ID>',
12+
addonId: '<ADDON_ID>'
13+
});
14+
15+
console.log(result);
16+
```
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
```javascript
2+
import { Client, Organizations } 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 organizations = new Organizations(client);
9+
10+
const result = await organizations.listAddons({
11+
organizationId: '<ORGANIZATION_ID>'
12+
});
13+
14+
console.log(result);
15+
```

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@appwrite.io/console",
33
"homepage": "https://appwrite.io/support",
44
"description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5-
"version": "8.2.0",
5+
"version": "8.3.0",
66
"license": "BSD-3-Clause",
77
"main": "dist/cjs/sdk.js",
88
"exports": {

0 commit comments

Comments
 (0)