Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Change Log

## 6.0.0

* Breaking: Renamed `domains.confirmPurchase()` to `domains.updatePurchase()`
* Breaking: Renamed `domains.confirmTransferIn()` to `domains.updateTransferIn()`
* Breaking: Replaced `Projects` API with `Webhooks` for webhook usage
* Breaking: Renamed `updateWebhook()` to `update()` on `Webhooks`
* Breaking: Renamed `listWebhooks()` to `list()` on `Webhooks`
* Breaking: Replaced `DomainPurchasePaymentStatus` with `DomainPurchaseStatus`
* Breaking: Renamed `DomainTransferStatusStatus` to `DomainTransferStatus`
* Breaking: Removed `Deno121`, `Deno124`, `Deno135` from `BuildRuntime`/`Runtime` enums
* Updated README badge to API version `1.8.2`
* Added `queries` option to `webhooks.list()`

## 5.0.0

* Breaking: Functions and Sites now require `specification` parameter and support `deploymentRetention`
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Appwrite Console SDK

![License](https://img.shields.io/github/license/appwrite/sdk-for-console.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.8.1-blue.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.8.2-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.io/console";
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/@appwrite.io/console@5.0.0"></script>
<script src="https://cdn.jsdelivr.net/npm/@appwrite.io/console@6.0.0"></script>
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const client = new Client()

const domains = new Domains(client);

const result = await domains.confirmPurchase({
const result = await domains.updatePurchase({
domainId: '<DOMAIN_ID>',
organizationId: '<ORGANIZATION_ID>'
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const client = new Client()

const domains = new Domains(client);

const result = await domains.confirmTransferIn({
const result = await domains.updateTransferIn({
domainId: '<DOMAIN_ID>',
organizationId: '<ORGANIZATION_ID>'
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
```javascript
import { Client, Projects } from "@appwrite.io/console";
import { Client, Webhooks } 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 projects = new Projects(client);
const webhooks = new Webhooks(client);

const result = await projects.updateWebhook({
projectId: '<PROJECT_ID>',
const result = await webhooks.create({
webhookId: '<WEBHOOK_ID>',
url: '',
name: '<NAME>',
events: [],
url: '',
security: false,
enabled: false, // optional
security: false, // optional
httpUser: '<HTTP_USER>', // optional
httpPass: '<HTTP_PASS>' // optional
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
```javascript
import { Client, Projects } from "@appwrite.io/console";
import { Client, Webhooks } 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 projects = new Projects(client);
const webhooks = new Webhooks(client);

const result = await projects.getWebhook({
projectId: '<PROJECT_ID>',
const result = await webhooks.delete({
webhookId: '<WEBHOOK_ID>'
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
```javascript
import { Client, Projects } from "@appwrite.io/console";
import { Client, Webhooks } 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 projects = new Projects(client);
const webhooks = new Webhooks(client);

const result = await projects.deleteWebhook({
projectId: '<PROJECT_ID>',
const result = await webhooks.get({
webhookId: '<WEBHOOK_ID>'
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
```javascript
import { Client, Projects } from "@appwrite.io/console";
import { Client, Webhooks } 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 projects = new Projects(client);
const webhooks = new Webhooks(client);

const result = await projects.listWebhooks({
projectId: '<PROJECT_ID>',
const result = await webhooks.list({
queries: [], // optional
total: false // optional
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
```javascript
import { Client, Projects } from "@appwrite.io/console";
import { Client, Webhooks } 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 projects = new Projects(client);
const webhooks = new Webhooks(client);

const result = await projects.updateWebhookSignature({
projectId: '<PROJECT_ID>',
const result = await webhooks.updateSignature({
webhookId: '<WEBHOOK_ID>'
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
```javascript
import { Client, Projects } from "@appwrite.io/console";
import { Client, Webhooks } 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 projects = new Projects(client);
const webhooks = new Webhooks(client);

const result = await projects.createWebhook({
projectId: '<PROJECT_ID>',
const result = await webhooks.update({
webhookId: '<WEBHOOK_ID>',
name: '<NAME>',
events: [],
url: '',
security: false,
events: [],
enabled: false, // optional
security: false, // optional
httpUser: '<HTTP_USER>', // optional
httpPass: '<HTTP_PASS>' // optional
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@appwrite.io/console",
"homepage": "https://appwrite.io/support",
"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",
"version": "5.0.0",
"version": "6.0.0",
"license": "BSD-3-Clause",
"main": "dist/cjs/sdk.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ class Client {
'x-sdk-name': 'Console',
'x-sdk-platform': 'console',
'x-sdk-language': 'web',
'x-sdk-version': '5.0.0',
'x-sdk-version': '6.0.0',
'X-Appwrite-Response-Format': '1.8.0',
};

Expand Down
89 changes: 86 additions & 3 deletions src/enums/build-runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ export enum BuildRuntime {
Pythonml311 = 'python-ml-3.11',
Pythonml312 = 'python-ml-3.12',
Pythonml313 = 'python-ml-3.13',
Deno121 = 'deno-1.21',
Deno124 = 'deno-1.24',
Deno135 = 'deno-1.35',
Deno140 = 'deno-1.40',
Deno146 = 'deno-1.46',
Deno20 = 'deno-2.0',
Expand Down Expand Up @@ -88,4 +85,90 @@ export enum BuildRuntime {
Flutter332 = 'flutter-3.32',
Flutter335 = 'flutter-3.35',
Flutter338 = 'flutter-3.38',
Node145rc = 'node-14.5-rc',
Node160rc = 'node-16.0-rc',
Node180rc = 'node-18.0-rc',
Node190rc = 'node-19.0-rc',
Node200rc = 'node-20.0-rc',
Node210rc = 'node-21.0-rc',
Node22rc = 'node-22-rc',
Node23rc = 'node-23-rc',
Node24rc = 'node-24-rc',
Node25rc = 'node-25-rc',
Php80rc = 'php-8.0-rc',
Php81rc = 'php-8.1-rc',
Php82rc = 'php-8.2-rc',
Php83rc = 'php-8.3-rc',
Php84rc = 'php-8.4-rc',
Ruby30rc = 'ruby-3.0-rc',
Ruby31rc = 'ruby-3.1-rc',
Ruby32rc = 'ruby-3.2-rc',
Ruby33rc = 'ruby-3.3-rc',
Ruby34rc = 'ruby-3.4-rc',
Ruby40rc = 'ruby-4.0-rc',
Python38rc = 'python-3.8-rc',
Python39rc = 'python-3.9-rc',
Python310rc = 'python-3.10-rc',
Python311rc = 'python-3.11-rc',
Python312rc = 'python-3.12-rc',
Python313rc = 'python-3.13-rc',
Python314rc = 'python-3.14-rc',
Pythonml311rc = 'python-ml-3.11-rc',
Pythonml312rc = 'python-ml-3.12-rc',
Pythonml313rc = 'python-ml-3.13-rc',
Deno140rc = 'deno-1.40-rc',
Deno146rc = 'deno-1.46-rc',
Deno20rc = 'deno-2.0-rc',
Deno25rc = 'deno-2.5-rc',
Deno26rc = 'deno-2.6-rc',
Dart215rc = 'dart-2.15-rc',
Dart216rc = 'dart-2.16-rc',
Dart217rc = 'dart-2.17-rc',
Dart218rc = 'dart-2.18-rc',
Dart219rc = 'dart-2.19-rc',
Dart30rc = 'dart-3.0-rc',
Dart31rc = 'dart-3.1-rc',
Dart33rc = 'dart-3.3-rc',
Dart35rc = 'dart-3.5-rc',
Dart38rc = 'dart-3.8-rc',
Dart39rc = 'dart-3.9-rc',
Dart310rc = 'dart-3.10-rc',
Dotnet60rc = 'dotnet-6.0-rc',
Dotnet70rc = 'dotnet-7.0-rc',
Dotnet80rc = 'dotnet-8.0-rc',
Dotnet10rc = 'dotnet-10-rc',
Java80rc = 'java-8.0-rc',
Java110rc = 'java-11.0-rc',
Java170rc = 'java-17.0-rc',
Java180rc = 'java-18.0-rc',
Java210rc = 'java-21.0-rc',
Java22rc = 'java-22-rc',
Java25rc = 'java-25-rc',
Swift55rc = 'swift-5.5-rc',
Swift58rc = 'swift-5.8-rc',
Swift59rc = 'swift-5.9-rc',
Swift510rc = 'swift-5.10-rc',
Swift62rc = 'swift-6.2-rc',
Kotlin16rc = 'kotlin-1.6-rc',
Kotlin18rc = 'kotlin-1.8-rc',
Kotlin19rc = 'kotlin-1.9-rc',
Kotlin20rc = 'kotlin-2.0-rc',
Kotlin23rc = 'kotlin-2.3-rc',
Cpp17rc = 'cpp-17-rc',
Cpp20rc = 'cpp-20-rc',
Bun10rc = 'bun-1.0-rc',
Bun11rc = 'bun-1.1-rc',
Bun12rc = 'bun-1.2-rc',
Bun13rc = 'bun-1.3-rc',
Go123rc = 'go-1.23-rc',
Go124rc = 'go-1.24-rc',
Go125rc = 'go-1.25-rc',
Go126rc = 'go-1.26-rc',
Static1rc = 'static-1-rc',
Flutter324rc = 'flutter-3.24-rc',
Flutter327rc = 'flutter-3.27-rc',
Flutter329rc = 'flutter-3.29-rc',
Flutter332rc = 'flutter-3.32-rc',
Flutter335rc = 'flutter-3.35-rc',
Flutter338rc = 'flutter-3.38-rc',
}
10 changes: 0 additions & 10 deletions src/enums/domain-purchase-payment-status.ts

This file was deleted.

6 changes: 6 additions & 0 deletions src/enums/domain-purchase-status.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export enum DomainPurchaseStatus {
Pending = 'pending',
Succeeded = 'succeeded',
Failed = 'failed',
Cancelled = 'cancelled',
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export enum DomainTransferStatusStatus {
export enum DomainTransferStatusEnum {
Transferrable = 'transferrable',
NotTransferrable = 'not_transferrable',
PendingOwner = 'pending_owner',
Expand Down
Loading