node-appwrite 8.0.0 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +23 -1
- package/lib/client.js +1 -1
- package/lib/role.js +0 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1830,13 +1830,35 @@ declare module "node-appwrite" {
|
|
|
1830
1830
|
|
|
1831
1831
|
static limit(value: number): string;
|
|
1832
1832
|
|
|
1833
|
-
static offset
|
|
1833
|
+
static offset(value: number): string;
|
|
1834
1834
|
|
|
1835
1835
|
private static addQuery(attribute: string, method: string, value: QueryTypes): string;
|
|
1836
1836
|
|
|
1837
1837
|
private static parseValues(value: QueryTypes): string;
|
|
1838
1838
|
}
|
|
1839
1839
|
|
|
1840
|
+
export class ID {
|
|
1841
|
+
static unique(): string;
|
|
1842
|
+
static custom(id: string): string;
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
export class Permission {
|
|
1846
|
+
static read(role: string): string;
|
|
1847
|
+
static write(role: string): string;
|
|
1848
|
+
static create(role: string): string;
|
|
1849
|
+
static update(role: string): string;
|
|
1850
|
+
static delete(role: string): string;
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
export class Role {
|
|
1854
|
+
static any(): string;
|
|
1855
|
+
static user(id: string, status?: string): string;
|
|
1856
|
+
static users(status?: string): string;
|
|
1857
|
+
static guests(): string;
|
|
1858
|
+
static team(id: string, role?: string): string;
|
|
1859
|
+
static member(id: string): string;
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1840
1862
|
export class Account extends Service {
|
|
1841
1863
|
constructor(client: Client);
|
|
1842
1864
|
|
package/lib/client.js
CHANGED
package/lib/role.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "node-appwrite",
|
|
3
3
|
"homepage": "https://appwrite.io/support",
|
|
4
4
|
"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": "8.
|
|
5
|
+
"version": "8.1.0",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"types": "./index.d.ts",
|