Skip to content

Commit 2f195ce

Browse files
authored
Merge pull request #140 from appwrite/dev
feat: Web SDK update for version 21.0.0
2 parents 9a9d58e + 1c3e458 commit 2f195ce

File tree

6 files changed

+19
-5
lines changed

6 files changed

+19
-5
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";
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@20.1.0"></script>
36+
<script src="https://cdn.jsdelivr.net/npm/appwrite@21.0.0"></script>
3737
```
3838

3939

package.json

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

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ class Client {
316316
'x-sdk-name': 'Web',
317317
'x-sdk-platform': 'client',
318318
'x-sdk-language': 'web',
319-
'x-sdk-version': '20.1.0',
319+
'x-sdk-version': '21.0.0',
320320
'X-Appwrite-Response-Format': '1.8.0',
321321
};
322322

src/enums/execution-status.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export enum ExecutionStatus {
2+
Waiting = 'waiting',
3+
Processing = 'processing',
4+
Completed = 'completed',
5+
Failed = 'failed',
6+
}

src/enums/execution-trigger.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export enum ExecutionTrigger {
2+
Http = 'http',
3+
Schedule = 'schedule',
4+
Event = 'event',
5+
}

src/models.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import { ExecutionTrigger } from "./enums/execution-trigger"
2+
import { ExecutionStatus } from "./enums/execution-status"
3+
14
/**
25
* Appwrite Models
36
*/
@@ -1011,11 +1014,11 @@ export namespace Models {
10111014
/**
10121015
* The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
10131016
*/
1014-
trigger: string;
1017+
trigger: ExecutionTrigger;
10151018
/**
10161019
* The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.
10171020
*/
1018-
status: string;
1021+
status: ExecutionStatus;
10191022
/**
10201023
* HTTP request method type.
10211024
*/

0 commit comments

Comments
 (0)