Skip to content

Commit 817d06a

Browse files
fix for 0.13.0
1 parent 24954fe commit 817d06a

File tree

7 files changed

+34
-34
lines changed

7 files changed

+34
-34
lines changed

docs/functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ POST https://HOSTNAME/v1/functions
4646
GET https://HOSTNAME/v1/functions/runtimes
4747
```
4848

49-
** Get a list of all runtimes that are currently active in your project. **
49+
** Get a list of all runtimes that are currently active on your instance. **
5050

5151
## Get Function
5252

src/Appwrite/Services/Account.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ public function get(): array
3636
* be deleted separately.
3737
*
3838
* @throws AppwriteException
39-
* @return array
39+
* @return string
4040
*/
41-
public function delete(): array
41+
public function delete(): string
4242
{
4343
$path = str_replace([], [], '/account');
4444
$params = [];
@@ -359,9 +359,9 @@ public function getSessions(): array
359359
* from the end client.
360360
*
361361
* @throws AppwriteException
362-
* @return array
362+
* @return string
363363
*/
364-
public function deleteSessions(): array
364+
public function deleteSessions(): string
365365
{
366366
$path = str_replace([], [], '/account/sessions');
367367
$params = [];
@@ -426,9 +426,9 @@ public function updateSession(string $sessionId): array
426426
*
427427
* @param string $sessionId
428428
* @throws AppwriteException
429-
* @return array
429+
* @return string
430430
*/
431-
public function deleteSession(string $sessionId): array
431+
public function deleteSession(string $sessionId): string
432432
{
433433
if (!isset($sessionId)) {
434434
throw new AppwriteException('Missing required parameter: "sessionId"');

src/Appwrite/Services/Database.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ public function updateCollection(string $collectionId, string $name, string $per
210210
*
211211
* @param string $collectionId
212212
* @throws AppwriteException
213-
* @return array
213+
* @return string
214214
*/
215-
public function deleteCollection(string $collectionId): array
215+
public function deleteCollection(string $collectionId): string
216216
{
217217
if (!isset($collectionId)) {
218218
throw new AppwriteException('Missing required parameter: "collectionId"');
@@ -732,9 +732,9 @@ public function getAttribute(string $collectionId, string $key): array
732732
* @param string $collectionId
733733
* @param string $key
734734
* @throws AppwriteException
735-
* @return array
735+
* @return string
736736
*/
737-
public function deleteAttribute(string $collectionId, string $key): array
737+
public function deleteAttribute(string $collectionId, string $key): string
738738
{
739739
if (!isset($collectionId)) {
740740
throw new AppwriteException('Missing required parameter: "collectionId"');
@@ -954,9 +954,9 @@ public function updateDocument(string $collectionId, string $documentId, array $
954954
* @param string $collectionId
955955
* @param string $documentId
956956
* @throws AppwriteException
957-
* @return array
957+
* @return string
958958
*/
959-
public function deleteDocument(string $collectionId, string $documentId): array
959+
public function deleteDocument(string $collectionId, string $documentId): string
960960
{
961961
if (!isset($collectionId)) {
962962
throw new AppwriteException('Missing required parameter: "collectionId"');
@@ -1080,9 +1080,9 @@ public function getIndex(string $collectionId, string $key): array
10801080
* @param string $collectionId
10811081
* @param string $key
10821082
* @throws AppwriteException
1083-
* @return array
1083+
* @return string
10841084
*/
1085-
public function deleteIndex(string $collectionId, string $key): array
1085+
public function deleteIndex(string $collectionId, string $key): string
10861086
{
10871087
if (!isset($collectionId)) {
10881088
throw new AppwriteException('Missing required parameter: "collectionId"');

src/Appwrite/Services/Functions.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function create(string $functionId, string $name, array $execute, string
136136
/**
137137
* List the currently active function runtimes.
138138
*
139-
* Get a list of all runtimes that are currently active in your project.
139+
* Get a list of all runtimes that are currently active on your instance.
140140
*
141141
* @throws AppwriteException
142142
* @return array
@@ -242,9 +242,9 @@ public function update(string $functionId, string $name, array $execute, array $
242242
*
243243
* @param string $functionId
244244
* @throws AppwriteException
245-
* @return array
245+
* @return string
246246
*/
247-
public function delete(string $functionId): array
247+
public function delete(string $functionId): string
248248
{
249249
if (!isset($functionId)) {
250250
throw new AppwriteException('Missing required parameter: "functionId"');
@@ -473,9 +473,9 @@ public function updateDeployment(string $functionId, string $deploymentId): arra
473473
* @param string $functionId
474474
* @param string $deploymentId
475475
* @throws AppwriteException
476-
* @return array
476+
* @return string
477477
*/
478-
public function deleteDeployment(string $functionId, string $deploymentId): array
478+
public function deleteDeployment(string $functionId, string $deploymentId): string
479479
{
480480
if (!isset($functionId)) {
481481
throw new AppwriteException('Missing required parameter: "functionId"');

src/Appwrite/Services/Storage.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ public function updateBucket(string $bucketId, string $name, string $permission,
244244
*
245245
* @param string $bucketId
246246
* @throws AppwriteException
247-
* @return array
247+
* @return string
248248
*/
249-
public function deleteBucket(string $bucketId): array
249+
public function deleteBucket(string $bucketId): string
250250
{
251251
if (!isset($bucketId)) {
252252
throw new AppwriteException('Missing required parameter: "bucketId"');
@@ -496,9 +496,9 @@ public function updateFile(string $bucketId, string $fileId, array $read = null,
496496
* @param string $bucketId
497497
* @param string $fileId
498498
* @throws AppwriteException
499-
* @return array
499+
* @return string
500500
*/
501-
public function deleteFile(string $bucketId, string $fileId): array
501+
public function deleteFile(string $bucketId, string $fileId): string
502502
{
503503
if (!isset($bucketId)) {
504504
throw new AppwriteException('Missing required parameter: "bucketId"');

src/Appwrite/Services/Teams.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ public function update(string $teamId, string $name): array
167167
*
168168
* @param string $teamId
169169
* @throws AppwriteException
170-
* @return array
170+
* @return string
171171
*/
172-
public function delete(string $teamId): array
172+
public function delete(string $teamId): string
173173
{
174174
if (!isset($teamId)) {
175175
throw new AppwriteException('Missing required parameter: "teamId"');
@@ -384,9 +384,9 @@ public function updateMembershipRoles(string $teamId, string $membershipId, arra
384384
* @param string $teamId
385385
* @param string $membershipId
386386
* @throws AppwriteException
387-
* @return array
387+
* @return string
388388
*/
389-
public function deleteMembership(string $teamId, string $membershipId): array
389+
public function deleteMembership(string $teamId, string $membershipId): string
390390
{
391391
if (!isset($teamId)) {
392392
throw new AppwriteException('Missing required parameter: "teamId"');

src/Appwrite/Services/Users.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ public function get(string $userId): array
137137
*
138138
* @param string $userId
139139
* @throws AppwriteException
140-
* @return array
140+
* @return string
141141
*/
142-
public function delete(string $userId): array
142+
public function delete(string $userId): string
143143
{
144144
if (!isset($userId)) {
145145
throw new AppwriteException('Missing required parameter: "userId"');
@@ -369,9 +369,9 @@ public function getSessions(string $userId): array
369369
*
370370
* @param string $userId
371371
* @throws AppwriteException
372-
* @return array
372+
* @return string
373373
*/
374-
public function deleteSessions(string $userId): array
374+
public function deleteSessions(string $userId): string
375375
{
376376
if (!isset($userId)) {
377377
throw new AppwriteException('Missing required parameter: "userId"');
@@ -393,9 +393,9 @@ public function deleteSessions(string $userId): array
393393
* @param string $userId
394394
* @param string $sessionId
395395
* @throws AppwriteException
396-
* @return array
396+
* @return string
397397
*/
398-
public function deleteSession(string $userId, string $sessionId): array
398+
public function deleteSession(string $userId, string $sessionId): string
399399
{
400400
if (!isset($userId)) {
401401
throw new AppwriteException('Missing required parameter: "userId"');

0 commit comments

Comments
 (0)