react-native-appwrite 0.7.0 → 0.7.2

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.
@@ -7,8 +7,6 @@ import { ImageFormat } from '../enums/image-format';
7
7
  export declare class Storage extends Service {
8
8
  constructor(client: Client);
9
9
  /**
10
- * List files
11
- *
12
10
  * Get a list of all the user files. You can use the query params to filter
13
11
  * your results.
14
12
  *
@@ -20,8 +18,6 @@ export declare class Storage extends Service {
20
18
  */
21
19
  listFiles(bucketId: string, queries?: string[], search?: string): Promise<Models.FileList>;
22
20
  /**
23
- * Create file
24
- *
25
21
  * Create a new file. Before using this route, you should create a new bucket
26
22
  * resource using either a [server
27
23
  * integration](https://appwrite.io/docs/server/storage#storageCreateBucket)
@@ -55,8 +51,6 @@ export declare class Storage extends Service {
55
51
  uri: string;
56
52
  }, permissions?: string[], onProgress?: (progress: UploadProgress) => void): Promise<Models.File>;
57
53
  /**
58
- * Get file
59
- *
60
54
  * Get a file by its unique ID. This endpoint response returns a JSON object
61
55
  * with the file metadata.
62
56
  *
@@ -67,8 +61,6 @@ export declare class Storage extends Service {
67
61
  */
68
62
  getFile(bucketId: string, fileId: string): Promise<Models.File>;
69
63
  /**
70
- * Update file
71
- *
72
64
  * Update a file by its unique ID. Only users with write permissions have
73
65
  * access to update this resource.
74
66
  *
@@ -81,8 +73,6 @@ export declare class Storage extends Service {
81
73
  */
82
74
  updateFile(bucketId: string, fileId: string, name?: string, permissions?: string[]): Promise<Models.File>;
83
75
  /**
84
- * Delete file
85
- *
86
76
  * Delete a file by its unique ID. Only users with write permissions have
87
77
  * access to delete this resource.
88
78
  *
@@ -93,8 +83,6 @@ export declare class Storage extends Service {
93
83
  */
94
84
  deleteFile(bucketId: string, fileId: string): Promise<{}>;
95
85
  /**
96
- * Get file for download
97
- *
98
86
  * Get a file content by its unique ID. The endpoint response return with a
99
87
  * 'Content-Disposition: attachment' header that tells the browser to start
100
88
  * downloading the file to user downloads directory.
@@ -106,8 +94,6 @@ export declare class Storage extends Service {
106
94
  */
107
95
  getFileDownload(bucketId: string, fileId: string): URL;
108
96
  /**
109
- * Get file preview
110
- *
111
97
  * Get a file preview image. Currently, this method supports preview for image
112
98
  * files (jpg, png, and gif), other supported formats, like pdf, docs, slides,
113
99
  * and spreadsheets, will return the file icon image. You can also pass query
@@ -132,8 +118,6 @@ export declare class Storage extends Service {
132
118
  */
133
119
  getFilePreview(bucketId: string, fileId: string, width?: number, height?: number, gravity?: ImageGravity, quality?: number, borderWidth?: number, borderColor?: string, borderRadius?: number, opacity?: number, rotation?: number, background?: string, output?: ImageFormat): URL;
134
120
  /**
135
- * Get file for view
136
- *
137
121
  * Get a file content by its unique ID. This endpoint is similar to the
138
122
  * download method but returns with no 'Content-Disposition: attachment'
139
123
  * header.
@@ -4,8 +4,6 @@ import type { Models } from '../models';
4
4
  export declare class Teams extends Service {
5
5
  constructor(client: Client);
6
6
  /**
7
- * List teams
8
- *
9
7
  * Get a list of all the teams in which the current user is a member. You can
10
8
  * use the parameters to filter your results.
11
9
  *
@@ -16,8 +14,6 @@ export declare class Teams extends Service {
16
14
  */
17
15
  list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.TeamList<Preferences>>;
18
16
  /**
19
- * Create team
20
- *
21
17
  * Create a new team. The user who creates the team will automatically be
22
18
  * assigned as the owner of the team. Only the users with the owner role can
23
19
  * invite new members, add new owners and delete or update the team.
@@ -30,8 +26,6 @@ export declare class Teams extends Service {
30
26
  */
31
27
  create<Preferences extends Models.Preferences>(teamId: string, name: string, roles?: string[]): Promise<Models.Team<Preferences>>;
32
28
  /**
33
- * Get team
34
- *
35
29
  * Get a team by its ID. All team members have read access for this resource.
36
30
  *
37
31
  * @param {string} teamId
@@ -40,8 +34,6 @@ export declare class Teams extends Service {
40
34
  */
41
35
  get<Preferences extends Models.Preferences>(teamId: string): Promise<Models.Team<Preferences>>;
42
36
  /**
43
- * Update name
44
- *
45
37
  * Update the team's name by its unique ID.
46
38
  *
47
39
  * @param {string} teamId
@@ -51,8 +43,6 @@ export declare class Teams extends Service {
51
43
  */
52
44
  updateName<Preferences extends Models.Preferences>(teamId: string, name: string): Promise<Models.Team<Preferences>>;
53
45
  /**
54
- * Delete team
55
- *
56
46
  * Delete a team using its ID. Only team members with the owner role can
57
47
  * delete the team.
58
48
  *
@@ -62,8 +52,6 @@ export declare class Teams extends Service {
62
52
  */
63
53
  delete(teamId: string): Promise<{}>;
64
54
  /**
65
- * List team memberships
66
- *
67
55
  * Use this endpoint to list a team's members using the team's ID. All team
68
56
  * members have read access to this endpoint. Hide sensitive attributes from
69
57
  * the response by toggling membership privacy in the Console.
@@ -76,8 +64,6 @@ export declare class Teams extends Service {
76
64
  */
77
65
  listMemberships(teamId: string, queries?: string[], search?: string): Promise<Models.MembershipList>;
78
66
  /**
79
- * Create team membership
80
- *
81
67
  * Invite a new member to join your team. Provide an ID for existing users, or
82
68
  * invite unregistered users using an email or phone number. If initiated from
83
69
  * a Client SDK, Appwrite will send an email or sms with a link to join the
@@ -112,8 +98,6 @@ export declare class Teams extends Service {
112
98
  */
113
99
  createMembership(teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise<Models.Membership>;
114
100
  /**
115
- * Get team membership
116
- *
117
101
  * Get a team member by the membership unique id. All team members have read
118
102
  * access for this resource. Hide sensitive attributes from the response by
119
103
  * toggling membership privacy in the Console.
@@ -125,8 +109,6 @@ export declare class Teams extends Service {
125
109
  */
126
110
  getMembership(teamId: string, membershipId: string): Promise<Models.Membership>;
127
111
  /**
128
- * Update membership
129
- *
130
112
  * Modify the roles of a team member. Only team members with the owner role
131
113
  * have access to this endpoint. Learn more about [roles and
132
114
  * permissions](https://appwrite.io/docs/permissions).
@@ -140,8 +122,6 @@ export declare class Teams extends Service {
140
122
  */
141
123
  updateMembership(teamId: string, membershipId: string, roles: string[]): Promise<Models.Membership>;
142
124
  /**
143
- * Delete team membership
144
- *
145
125
  * This endpoint allows a user to leave a team or for a team owner to delete
146
126
  * the membership of any other team member. You can also use this endpoint to
147
127
  * delete a user membership even if it is not accepted.
@@ -153,8 +133,6 @@ export declare class Teams extends Service {
153
133
  */
154
134
  deleteMembership(teamId: string, membershipId: string): Promise<{}>;
155
135
  /**
156
- * Update team membership status
157
- *
158
136
  * Use this endpoint to allow a user to accept an invitation to join a team
159
137
  * after being redirected back to your app from the invitation email received
160
138
  * by the user.
@@ -172,8 +150,6 @@ export declare class Teams extends Service {
172
150
  */
173
151
  updateMembershipStatus(teamId: string, membershipId: string, userId: string, secret: string): Promise<Models.Membership>;
174
152
  /**
175
- * Get team preferences
176
- *
177
153
  * Get the team's shared preferences by its unique ID. If a preference doesn't
178
154
  * need to be shared by all team members, prefer storing them in [user
179
155
  * preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs).
@@ -184,8 +160,6 @@ export declare class Teams extends Service {
184
160
  */
185
161
  getPrefs<Preferences extends Models.Preferences>(teamId: string): Promise<Preferences>;
186
162
  /**
187
- * Update preferences
188
- *
189
163
  * Update the team's preferences by its unique ID. The object you pass is
190
164
  * stored as is and replaces any previous value. The maximum allowed prefs
191
165
  * size is 64kB and throws an error if exceeded.