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/dist/cjs/sdk.js +11 -5
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +11 -5
- package/dist/esm/sdk.js.map +1 -1
- package/package.json +1 -1
- package/src/channel.ts +12 -4
- package/src/client.ts +1 -1
- package/types/channel.d.ts +6 -4
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.
|
|
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
|
|
113
|
+
static documents(): string {
|
|
114
114
|
return "documents";
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
static
|
|
117
|
+
static rows(): string {
|
|
118
118
|
return "rows";
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
static
|
|
121
|
+
static files(): string {
|
|
122
122
|
return "files";
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
static
|
|
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
package/types/channel.d.ts
CHANGED
|
@@ -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
|
|
65
|
-
static
|
|
66
|
-
static
|
|
67
|
-
static
|
|
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>;
|