react-native-appwrite 0.7.3 → 0.9.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/CHANGELOG.md +6 -1
- package/README.md +2 -2
- package/dist/cjs/sdk.js +18 -12
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +18 -12
- package/dist/esm/sdk.js.map +1 -1
- package/docs/examples/account/create-anonymous-session.md +1 -1
- package/docs/examples/account/create-email-password-session.md +1 -1
- package/docs/examples/account/create-email-token.md +1 -1
- package/docs/examples/account/create-j-w-t.md +1 -1
- package/docs/examples/account/create-magic-u-r-l-token.md +1 -1
- package/docs/examples/account/create-mfa-authenticator.md +1 -1
- package/docs/examples/account/create-mfa-challenge.md +1 -1
- package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/create-o-auth2session.md +1 -1
- package/docs/examples/account/create-o-auth2token.md +1 -1
- package/docs/examples/account/create-phone-token.md +1 -1
- package/docs/examples/account/create-phone-verification.md +1 -1
- package/docs/examples/account/create-push-target.md +1 -1
- package/docs/examples/account/create-recovery.md +1 -1
- package/docs/examples/account/create-session.md +1 -1
- package/docs/examples/account/create-verification.md +1 -1
- package/docs/examples/account/create.md +1 -1
- package/docs/examples/account/delete-identity.md +1 -1
- package/docs/examples/account/delete-mfa-authenticator.md +1 -1
- package/docs/examples/account/delete-push-target.md +1 -1
- package/docs/examples/account/delete-session.md +1 -1
- package/docs/examples/account/delete-sessions.md +1 -1
- package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/get-prefs.md +1 -1
- package/docs/examples/account/get-session.md +1 -1
- package/docs/examples/account/get.md +1 -1
- package/docs/examples/account/list-identities.md +1 -1
- package/docs/examples/account/list-logs.md +1 -1
- package/docs/examples/account/list-mfa-factors.md +1 -1
- package/docs/examples/account/list-sessions.md +1 -1
- package/docs/examples/account/update-email.md +1 -1
- package/docs/examples/account/update-m-f-a.md +1 -1
- package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
- package/docs/examples/account/update-mfa-authenticator.md +1 -1
- package/docs/examples/account/update-mfa-challenge.md +1 -1
- package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/update-name.md +1 -1
- package/docs/examples/account/update-password.md +1 -1
- package/docs/examples/account/update-phone-session.md +1 -1
- package/docs/examples/account/update-phone-verification.md +1 -1
- package/docs/examples/account/update-phone.md +1 -1
- package/docs/examples/account/update-prefs.md +1 -1
- package/docs/examples/account/update-push-target.md +1 -1
- package/docs/examples/account/update-recovery.md +1 -1
- package/docs/examples/account/update-session.md +1 -1
- package/docs/examples/account/update-status.md +1 -1
- package/docs/examples/account/update-verification.md +1 -1
- package/docs/examples/avatars/get-browser.md +2 -2
- package/docs/examples/avatars/get-credit-card.md +2 -2
- package/docs/examples/avatars/get-favicon.md +1 -1
- package/docs/examples/avatars/get-flag.md +2 -2
- package/docs/examples/avatars/get-image.md +1 -1
- package/docs/examples/avatars/get-initials.md +1 -1
- package/docs/examples/avatars/get-q-r.md +1 -1
- package/docs/examples/databases/create-document.md +4 -2
- package/docs/examples/databases/delete-document.md +1 -1
- package/docs/examples/databases/get-document.md +1 -1
- package/docs/examples/databases/list-documents.md +1 -1
- package/docs/examples/databases/update-document.md +1 -1
- package/docs/examples/functions/create-execution.md +1 -1
- package/docs/examples/functions/get-execution.md +1 -1
- package/docs/examples/functions/list-executions.md +2 -3
- package/docs/examples/graphql/mutation.md +1 -1
- package/docs/examples/graphql/query.md +1 -1
- package/docs/examples/locale/get.md +1 -1
- package/docs/examples/locale/list-codes.md +1 -1
- package/docs/examples/locale/list-continents.md +1 -1
- package/docs/examples/locale/list-countries-e-u.md +1 -1
- package/docs/examples/locale/list-countries-phones.md +1 -1
- package/docs/examples/locale/list-countries.md +1 -1
- package/docs/examples/locale/list-currencies.md +1 -1
- package/docs/examples/locale/list-languages.md +1 -1
- package/docs/examples/messaging/create-subscriber.md +1 -1
- package/docs/examples/messaging/delete-subscriber.md +1 -1
- package/docs/examples/storage/create-file.md +1 -1
- package/docs/examples/storage/delete-file.md +1 -1
- package/docs/examples/storage/get-file-download.md +3 -2
- package/docs/examples/storage/get-file-preview.md +4 -3
- package/docs/examples/storage/get-file-view.md +3 -2
- package/docs/examples/storage/get-file.md +1 -1
- package/docs/examples/storage/list-files.md +1 -1
- package/docs/examples/storage/update-file.md +1 -1
- package/docs/examples/teams/create-membership.md +1 -1
- package/docs/examples/teams/create.md +1 -1
- package/docs/examples/teams/delete-membership.md +1 -1
- package/docs/examples/teams/delete.md +1 -1
- package/docs/examples/teams/get-membership.md +1 -1
- package/docs/examples/teams/get-prefs.md +1 -1
- package/docs/examples/teams/get.md +1 -1
- package/docs/examples/teams/list-memberships.md +1 -1
- package/docs/examples/teams/list.md +1 -1
- package/docs/examples/teams/update-membership-status.md +1 -1
- package/docs/examples/teams/update-membership.md +1 -1
- package/docs/examples/teams/update-name.md +1 -1
- package/docs/examples/teams/update-prefs.md +1 -1
- package/package.json +3 -3
- package/src/client.ts +2 -2
- package/src/enums/image-format.ts +0 -1
- package/src/models.ts +1 -1
- package/src/services/databases.ts +0 -1
- package/src/services/functions.ts +1 -6
- package/src/services/storage.ts +18 -3
- package/types/enums/image-format.d.ts +0 -1
- package/types/models.d.ts +1 -1
- package/types/services/databases.d.ts +0 -1
- package/types/services/functions.d.ts +1 -2
- package/types/services/storage.d.ts +6 -3
|
@@ -89,10 +89,11 @@ export declare class Storage extends Service {
|
|
|
89
89
|
*
|
|
90
90
|
* @param {string} bucketId
|
|
91
91
|
* @param {string} fileId
|
|
92
|
+
* @param {string} token
|
|
92
93
|
* @throws {AppwriteException}
|
|
93
94
|
* @returns {URL}
|
|
94
95
|
*/
|
|
95
|
-
getFileDownload(bucketId: string, fileId: string): URL;
|
|
96
|
+
getFileDownload(bucketId: string, fileId: string, token?: string): URL;
|
|
96
97
|
/**
|
|
97
98
|
* Get a file preview image. Currently, this method supports preview for image
|
|
98
99
|
* files (jpg, png, and gif), other supported formats, like pdf, docs, slides,
|
|
@@ -113,10 +114,11 @@ export declare class Storage extends Service {
|
|
|
113
114
|
* @param {number} rotation
|
|
114
115
|
* @param {string} background
|
|
115
116
|
* @param {ImageFormat} output
|
|
117
|
+
* @param {string} token
|
|
116
118
|
* @throws {AppwriteException}
|
|
117
119
|
* @returns {URL}
|
|
118
120
|
*/
|
|
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;
|
|
121
|
+
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, token?: string): URL;
|
|
120
122
|
/**
|
|
121
123
|
* Get a file content by its unique ID. This endpoint is similar to the
|
|
122
124
|
* download method but returns with no 'Content-Disposition: attachment'
|
|
@@ -124,8 +126,9 @@ export declare class Storage extends Service {
|
|
|
124
126
|
*
|
|
125
127
|
* @param {string} bucketId
|
|
126
128
|
* @param {string} fileId
|
|
129
|
+
* @param {string} token
|
|
127
130
|
* @throws {AppwriteException}
|
|
128
131
|
* @returns {URL}
|
|
129
132
|
*/
|
|
130
|
-
getFileView(bucketId: string, fileId: string): URL;
|
|
133
|
+
getFileView(bucketId: string, fileId: string, token?: string): URL;
|
|
131
134
|
}
|