react-native-appwrite 0.21.0 → 0.23.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "react-native-appwrite",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5
- "version": "0.21.0",
5
+ "version": "0.23.0",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
package/src/channel.ts CHANGED
@@ -110,21 +110,29 @@ export class Channel<T> {
110
110
  }
111
111
 
112
112
  // Global events
113
- static get documents(): string {
113
+ static documents(): string {
114
114
  return "documents";
115
115
  }
116
116
 
117
- static get rows(): string {
117
+ static rows(): string {
118
118
  return "rows";
119
119
  }
120
120
 
121
- static get files(): string {
121
+ static files(): string {
122
122
  return "files";
123
123
  }
124
124
 
125
- static get executions(): string {
125
+ static executions(): string {
126
126
  return "executions";
127
127
  }
128
+
129
+ static teams(): string {
130
+ return "teams";
131
+ }
132
+
133
+ static memberships(): string {
134
+ return "memberships";
135
+ }
128
136
  }
129
137
 
130
138
  // Export types for backward compatibility with realtime
package/src/client.ts CHANGED
@@ -145,7 +145,7 @@ class Client {
145
145
  'x-sdk-name': 'React Native',
146
146
  'x-sdk-platform': 'client',
147
147
  'x-sdk-language': 'reactnative',
148
- 'x-sdk-version': '0.21.0',
148
+ 'x-sdk-version': '0.23.0',
149
149
  'X-Appwrite-Response-Format': '1.8.0',
150
150
  };
151
151
 
@@ -61,10 +61,12 @@ export declare class Channel<T> {
61
61
  static team(id?: string): Channel<Team>;
62
62
  static membership(id?: string): Channel<Membership>;
63
63
  static account(): string;
64
- static get documents(): string;
65
- static get rows(): string;
66
- static get files(): string;
67
- static get executions(): string;
64
+ static documents(): string;
65
+ static rows(): string;
66
+ static files(): string;
67
+ static executions(): string;
68
+ static teams(): string;
69
+ static memberships(): string;
68
70
  }
69
71
  export type ActionableChannel = Channel<Document> | Channel<Row> | Channel<File> | Channel<Execution> | Channel<Team> | Channel<Membership>;
70
72
  export type ResolvedChannel = Channel<Resolved>;