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 CHANGED
@@ -1830,13 +1830,35 @@ declare module "node-appwrite" {
1830
1830
 
1831
1831
  static limit(value: number): string;
1832
1832
 
1833
- static offset = (value: number): string;
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
@@ -13,7 +13,7 @@ class Client {
13
13
  'x-sdk-name': 'Node.js',
14
14
  'x-sdk-platform': 'server',
15
15
  'x-sdk-language': 'nodejs',
16
- 'x-sdk-version': '8.0.0',
16
+ 'x-sdk-version': '8.1.0',
17
17
  'X-Appwrite-Response-Format' : '1.0.0',
18
18
  };
19
19
  this.selfSigned = false;
package/lib/role.js CHANGED
@@ -26,9 +26,6 @@ class Role {
26
26
  static member = (id) => {
27
27
  return 'member:' + id
28
28
  }
29
- static status = (status) => {
30
- return 'status:' + status
31
- }
32
29
  }
33
30
 
34
31
  module.exports = Role;
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.0.0",
5
+ "version": "8.1.0",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "./index.js",
8
8
  "types": "./index.d.ts",