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
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": "react-native-appwrite",
"homepage": "https://appwrite.io/support",
"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",
"version": "0.14.0",
"version": "0.15.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 @@ -115,7 +115,7 @@ class Client {
'x-sdk-name': 'React Native',
'x-sdk-platform': 'client',
'x-sdk-language': 'reactnative',
'x-sdk-version': '0.14.0',
'x-sdk-version': '0.15.0',
'X-Appwrite-Response-Format': '1.8.0',
};

Expand Down
6 changes: 6 additions & 0 deletions src/enums/execution-status.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export enum ExecutionStatus {
Waiting = 'waiting',
Processing = 'processing',
Completed = 'completed',
Failed = 'failed',
}
5 changes: 5 additions & 0 deletions src/enums/execution-trigger.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export enum ExecutionTrigger {
Http = 'http',
Schedule = 'schedule',
Event = 'event',
}
7 changes: 5 additions & 2 deletions src/models.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { ExecutionTrigger } from "./enums/execution-trigger"
import { ExecutionStatus } from "./enums/execution-status"

export namespace Models {

declare const __default: unique symbol;
Expand Down Expand Up @@ -1008,11 +1011,11 @@ export namespace Models {
/**
* The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
*/
trigger: string;
trigger: ExecutionTrigger;
/**
* The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.
*/
status: string;
status: ExecutionStatus;
/**
* HTTP request method type.
*/
Expand Down