Skip to content

Commit 69e2f4c

Browse files
authored
Merge pull request #17 from appwrite/dev
Fix between query output
2 parents 0da6434 + 799a55b commit 69e2f4c

20 files changed

+509
-215
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Appwrite Deno SDK
22

33
![License](https://img.shields.io/github/license/appwrite/sdk-for-deno.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.4.2-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.4.12-blue.svg?style=flat-square)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
2+
3+
// Init SDK
4+
let client = new sdk.Client();
5+
6+
let health = new sdk.Health(client);
7+
8+
client
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
10+
.setProject('5df5acd0d48c2') // Your project ID
11+
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
12+
;
13+
14+
15+
let promise = health.getQueueBuilds();
16+
17+
promise.then(function (response) {
18+
console.log(response);
19+
}, function (error) {
20+
console.log(error);
21+
});
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
2+
3+
// Init SDK
4+
let client = new sdk.Client();
5+
6+
let health = new sdk.Health(client);
7+
8+
client
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
10+
.setProject('5df5acd0d48c2') // Your project ID
11+
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
12+
;
13+
14+
15+
let promise = health.getQueueDatabases();
16+
17+
promise.then(function (response) {
18+
console.log(response);
19+
}, function (error) {
20+
console.log(error);
21+
});
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
2+
3+
// Init SDK
4+
let client = new sdk.Client();
5+
6+
let health = new sdk.Health(client);
7+
8+
client
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
10+
.setProject('5df5acd0d48c2') // Your project ID
11+
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
12+
;
13+
14+
15+
let promise = health.getQueueDeletes();
16+
17+
promise.then(function (response) {
18+
console.log(response);
19+
}, function (error) {
20+
console.log(error);
21+
});
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
2+
3+
// Init SDK
4+
let client = new sdk.Client();
5+
6+
let health = new sdk.Health(client);
7+
8+
client
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
10+
.setProject('5df5acd0d48c2') // Your project ID
11+
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
12+
;
13+
14+
15+
let promise = health.getQueueMails();
16+
17+
promise.then(function (response) {
18+
console.log(response);
19+
}, function (error) {
20+
console.log(error);
21+
});
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
2+
3+
// Init SDK
4+
let client = new sdk.Client();
5+
6+
let health = new sdk.Health(client);
7+
8+
client
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
10+
.setProject('5df5acd0d48c2') // Your project ID
11+
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
12+
;
13+
14+
15+
let promise = health.getQueueMessaging();
16+
17+
promise.then(function (response) {
18+
console.log(response);
19+
}, function (error) {
20+
console.log(error);
21+
});
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import * as sdk from "https://deno.land/x/appwrite/mod.ts";
2+
3+
// Init SDK
4+
let client = new sdk.Client();
5+
6+
let health = new sdk.Health(client);
7+
8+
client
9+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
10+
.setProject('5df5acd0d48c2') // Your project ID
11+
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
12+
;
13+
14+
15+
let promise = health.getQueueMigrations();
16+
17+
promise.then(function (response) {
18+
console.log(response);
19+
}, function (error) {
20+
console.log(error);
21+
});

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export class Client {
1111
endpoint: string = 'https://HOSTNAME/v1';
1212
headers: Payload = {
1313
'content-type': '',
14-
'user-agent' : `AppwriteDenoSDK/9.0.0 (${Deno.build.os}; ${Deno.build.arch})`,
14+
'user-agent' : `AppwriteDenoSDK/9.1.0 (${Deno.build.os}; ${Deno.build.arch})`,
1515
'x-sdk-name': 'Deno',
1616
'x-sdk-platform': 'server',
1717
'x-sdk-language': 'deno',
18-
'x-sdk-version': '9.0.0',
18+
'x-sdk-version': '9.1.0',
1919
'X-Appwrite-Response-Format':'1.4.0',
2020
};
2121

src/models.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export namespace Models {
340340
*/
341341
$updatedAt: string;
342342
/**
343-
* Collection permissions. [Learn more about permissions](/docs/permissions).
343+
* Collection permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
344344
*/
345345
$permissions: string[];
346346
/**
@@ -356,7 +356,7 @@ export namespace Models {
356356
*/
357357
enabled: boolean;
358358
/**
359-
* Whether document-level permissions are enabled. [Learn more about permissions](/docs/permissions).
359+
* Whether document-level permissions are enabled. [Learn more about permissions](https://appwrite.io/docs/permissions).
360360
*/
361361
documentSecurity: boolean;
362362
/**
@@ -829,7 +829,7 @@ export namespace Models {
829829
*/
830830
$updatedAt: string;
831831
/**
832-
* Document permissions. [Learn more about permissions](/docs/permissions).
832+
* Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
833833
*/
834834
$permissions: string[];
835835
}
@@ -1345,7 +1345,7 @@ export namespace Models {
13451345
*/
13461346
$updatedAt: string;
13471347
/**
1348-
* File permissions. [Learn more about permissions](/docs/permissions).
1348+
* File permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
13491349
*/
13501350
$permissions: string[];
13511351
/**
@@ -1390,11 +1390,11 @@ export namespace Models {
13901390
*/
13911391
$updatedAt: string;
13921392
/**
1393-
* Bucket permissions. [Learn more about permissions](/docs/permissions).
1393+
* Bucket permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
13941394
*/
13951395
$permissions: string[];
13961396
/**
1397-
* Whether file-level security is enabled. [Learn more about permissions](/docs/permissions).
1397+
* Whether file-level security is enabled. [Learn more about permissions](https://appwrite.io/docs/permissions).
13981398
*/
13991399
fileSecurity: boolean;
14001400
/**

src/query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class Query {
3131
`isNotNull("${attribute}")`;
3232

3333
static between = (attribute: string, start: string|number, end: string|number): string =>
34-
`between("${attribute}", [${Query.parseValues(start)},${Query.parseValues(end)}])`;
34+
`between("${attribute}", ${Query.parseValues(start)}, ${Query.parseValues(end)})`;
3535

3636
static startsWith = (attribute: string, value: string): string =>
3737
Query.addQuery(attribute, "startsWith", value);

0 commit comments

Comments
 (0)