@nativescript/appwrite
Advanced tools
Comparing version
@@ -173,1 +173,24 @@ export declare class Client { | ||
} | ||
export declare class Query { | ||
static between(attribute: string, start: number, end: number): string; | ||
static between(attribute: string, start: string, end: string): string; | ||
static contains(attribute: string, value: any): string; | ||
static cursorAfter(id: string): string; | ||
static cursorBefore(id: string): string; | ||
static endsWith(attribute: string, value: string): string; | ||
static equal(attribute: string, value: any): string; | ||
static greaterThanEqual(attribute: string, value: any): string; | ||
static greaterThan(attribute: string, value: any): string; | ||
static isNotNull(attribute: string): string; | ||
static isNull(attribute: string): string; | ||
static lessThanEqualWithAttribute(attribute: string, value: any): string; | ||
static lessThan(attribute: string, value: any): string; | ||
static limit(limit: number): string; | ||
static notEqual(attribute: string, value: any): string; | ||
static offset(offset: number): string; | ||
static orderAsc(attribute: string): string; | ||
static orderDesc(attribute: string): string; | ||
static search(attribute: string, value: string): string; | ||
static select(attributes: string[]): string; | ||
static startsWith(attribute: string, value: string): string; | ||
} |
@@ -507,2 +507,64 @@ import { Utils } from '@nativescript/core'; | ||
} | ||
export class Query { | ||
static between(attribute, start, end) { | ||
return org.nativescript.plugins.appwrite.Query.between(attribute, start, end); | ||
} | ||
static contains(attribute, value) { | ||
return org.nativescript.plugins.appwrite.Query.contains(attribute, value); | ||
} | ||
static cursorAfter(id) { | ||
return org.nativescript.plugins.appwrite.Query.cursorAfter(id); | ||
} | ||
static cursorBefore(id) { | ||
return org.nativescript.plugins.appwrite.Query.cursorBefore(id); | ||
} | ||
static endsWith(attribute, value) { | ||
return org.nativescript.plugins.appwrite.Query.endsWith(attribute, value); | ||
} | ||
static equal(attribute, value) { | ||
return org.nativescript.plugins.appwrite.Query.equal(attribute, value); | ||
} | ||
static greaterThanEqual(attribute, value) { | ||
return org.nativescript.plugins.appwrite.Query.greaterThanEqual(attribute, value); | ||
} | ||
static greaterThan(attribute, value) { | ||
return org.nativescript.plugins.appwrite.Query.greaterThan(attribute, value); | ||
} | ||
static isNotNull(attribute) { | ||
return org.nativescript.plugins.appwrite.Query.isNotNull(attribute); | ||
} | ||
static isNull(attribute) { | ||
return org.nativescript.plugins.appwrite.Query.isNull(attribute); | ||
} | ||
static lessThanEqualWithAttribute(attribute, value) { | ||
return org.nativescript.plugins.appwrite.Query.lessThanEqual(attribute, value); | ||
} | ||
static lessThan(attribute, value) { | ||
return org.nativescript.plugins.appwrite.Query.lessThan(attribute, value); | ||
} | ||
static limit(limit) { | ||
return org.nativescript.plugins.appwrite.Query.limit(limit); | ||
} | ||
static notEqual(attribute, value) { | ||
return org.nativescript.plugins.appwrite.Query.notEqual(attribute, value); | ||
} | ||
static offset(offset) { | ||
return org.nativescript.plugins.appwrite.Query.offset(offset); | ||
} | ||
static orderAsc(attribute) { | ||
return org.nativescript.plugins.appwrite.Query.orderAsc(attribute); | ||
} | ||
static orderDesc(attribute) { | ||
return org.nativescript.plugins.appwrite.Query.orderDesc(attribute); | ||
} | ||
static search(attribute, value) { | ||
return org.nativescript.plugins.appwrite.Query.search(attribute, value); | ||
} | ||
static select(attributes) { | ||
return org.nativescript.plugins.appwrite.Query.select(Utils.dataSerialize(attributes, true)); | ||
} | ||
static startsWith(attribute, value) { | ||
return org.nativescript.plugins.appwrite.Query.startsWith(attribute, value); | ||
} | ||
} | ||
//# sourceMappingURL=index.android.js.map |
@@ -553,3 +553,3 @@ import { Utils } from '@nativescript/core'; | ||
static select(attributes) { | ||
return NSCAppwriteQuery.select(attributes); | ||
return NSCAppwriteQuery.select(Utils.dataSerialize(attributes, true)); | ||
} | ||
@@ -556,0 +556,0 @@ static startsWith(attribute, value) { |
{ | ||
"name": "@nativescript/appwrite", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Appwrite SDK for NativeScript", | ||
@@ -5,0 +5,0 @@ "main": "index", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
132849
8.04%18
5.88%1679
5.33%