diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Create.php index f6322a8a67..7a66df3724 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Create.php @@ -53,8 +53,8 @@ class Create extends Action ) ], deprecated: [ - 'replaceWith' => 'tables.createBooleanColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.createBooleanColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Update.php index dc766d1001..c96e52c8bb 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Boolean/Update.php @@ -54,8 +54,8 @@ class Update extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.updateBooleanColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.updateBooleanColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Create.php index 48b3970147..e8949935ea 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Create.php @@ -54,8 +54,8 @@ class Create extends Action ) ], deprecated: [ - 'replaceWith' => 'tables.createDatetimeColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.createDatetimeColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Update.php index 87d91b8feb..48d77f3a25 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Datetime/Update.php @@ -55,8 +55,8 @@ class Update extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.updateDatetimeColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.updateDatetimeColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Delete.php index 8290e65692..0d39ab21e6 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Delete.php @@ -55,8 +55,8 @@ class Delete extends Action ], contentType: ContentType::NONE, deprecated: [ - 'replaceWith' => 'tables.deleteColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.deleteColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Create.php index 5de30e7389..18387acff9 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Create.php @@ -54,8 +54,8 @@ class Create extends Action ) ], deprecated: [ - 'replaceWith' => 'tables.createEmailColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.createEmailColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Update.php index 4e6d2fc015..cd3579c817 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Email/Update.php @@ -55,8 +55,8 @@ class Update extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.updateEmailColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.updateEmailColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php index d2aa375574..c6c37b7cf9 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Create.php @@ -56,8 +56,8 @@ class Create extends Action ) ], deprecated: [ - 'replaceWith' => 'tables.createEnumColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.createEnumColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Update.php index 2d8d181d82..6369a5fd67 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Enum/Update.php @@ -56,8 +56,8 @@ class Update extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.updateEnumColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.updateEnumColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Create.php index 9ede351b20..b330ae7248 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Create.php @@ -56,8 +56,8 @@ class Create extends Action ) ], deprecated: [ - 'replaceWith' => 'tables.createFloatColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.createFloatColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php index 84122b93be..bb48978ec3 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Float/Update.php @@ -55,8 +55,8 @@ class Update extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.updateFloatColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.updateFloatColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Get.php index 8e4e0842e1..93351eccd1 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Get.php @@ -58,8 +58,8 @@ class Get extends Action ) ], deprecated: [ - 'replaceWith' => 'tables.getColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.getColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Create.php index 3eff6defa6..0c0fc25474 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Create.php @@ -54,8 +54,8 @@ class Create extends Action ) ], deprecated: [ - 'replaceWith' => 'tables.createIpColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.createIpColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Update.php index 7aee4c9d92..32a7e79be6 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/IP/Update.php @@ -55,8 +55,8 @@ class Update extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.updateIpColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.updateIpColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Create.php index 6c94ca8644..d733f5958b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Create.php @@ -56,8 +56,8 @@ class Create extends Action ) ], deprecated: [ - 'replaceWith' => 'tables.createIntegerColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.createIntegerColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php index 258f4bd25e..35467e656b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Integer/Update.php @@ -55,8 +55,8 @@ class Update extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.updateIntegerColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.updateIntegerColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Create.php index b300c7d04c..68f871bc40 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Create.php @@ -56,8 +56,8 @@ class Create extends Action ) ], deprecated: [ - 'replaceWith' => 'tables.createRelationshipColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.createRelationshipColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Update.php index 4bfb3b58d9..017c2b3df6 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/Relationship/Update.php @@ -53,8 +53,8 @@ class Update extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.updateRelationshipColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.updateRelationshipColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Create.php index 16aa7d1a7c..11f4a41bc8 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Create.php @@ -57,8 +57,8 @@ class Create extends Action ) ], deprecated: [ - 'replaceWith' => 'tables.createStringColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.createStringColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Update.php index 85519cb216..9903555499 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/String/Update.php @@ -57,8 +57,8 @@ class Update extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.updateStringColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.updateStringColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Create.php index d88ffff2e2..10f0a4a63b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Create.php @@ -54,8 +54,8 @@ class Create extends Action ) ], deprecated: [ - 'replaceWith' => 'tables.createUrlColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.createUrlColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Update.php index c9add5e099..9fbdb8453a 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/URL/Update.php @@ -55,8 +55,8 @@ class Update extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.updateUrlColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.updateUrlColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/XList.php index 71a0fe2853..f350e59aa4 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Attributes/XList.php @@ -52,8 +52,8 @@ class XList extends Action ) ], deprecated: [ - 'replaceWith' => 'tables.listColumns', 'version' => '1.8.0', + 'replaceWith' => 'tables.listColumns', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php index 5e159e19c1..330b23e64e 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Create.php @@ -63,8 +63,8 @@ class Create extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.create', 'version' => '1.8.0', + 'replaceWith' => 'tables.createTable', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php index 99320a0c8e..346f31a57d 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Delete.php @@ -53,8 +53,8 @@ class Delete extends Action ], contentType: ContentType::NONE, deprecated: [ - 'replaceWith' => 'tables.delete', 'version' => '1.8.0', + 'replaceWith' => 'tables.deleteTable', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Decrement.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Decrement.php index 57c327d9ff..17cfd56614 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Decrement.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Decrement.php @@ -63,8 +63,8 @@ class Decrement extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.decrementColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.decrementColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Increment.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Increment.php index 64792cc1d5..b5e1a63e83 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Increment.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Attribute/Increment.php @@ -63,8 +63,8 @@ class Increment extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.incrementColumn', 'version' => '1.8.0', + 'replaceWith' => 'tables.incrementColumn', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Delete.php index e37593e887..20b9763f1b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Delete.php @@ -61,8 +61,8 @@ class Delete extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.deleteRows', 'version' => '1.8.0', + 'replaceWith' => 'tables.deleteRows', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php index 22ad7a45ad..7cdce0a4bd 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Update.php @@ -64,8 +64,8 @@ class Update extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.updateRows', 'version' => '1.8.0', + 'replaceWith' => 'tables.updateRows', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php index b2c5814c4c..2de8c927b6 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Bulk/Upsert.php @@ -62,8 +62,8 @@ class Upsert extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.upsertRows', 'version' => '1.8.0', + 'replaceWith' => 'tables.upsertRows', ], ) ]) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php index 84354bc103..eb9c8d5de8 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Create.php @@ -82,8 +82,8 @@ class Create extends Action new Parameter('permissions', optional: true), ], deprecated: [ - 'replaceWith' => 'tables.createRow', 'version' => '1.8.0', + 'replaceWith' => 'tables.createRow', ], ), new Method( diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Delete.php index c5c4344466..9d0b87ba5c 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Delete.php @@ -63,8 +63,8 @@ class Delete extends Action ], contentType: ContentType::NONE, deprecated: [ - 'replaceWith' => 'tables.deleteRow', 'version' => '1.8.0', + 'replaceWith' => 'tables.deleteRow', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Get.php index 12462c121e..5783f6945c 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Get.php @@ -54,8 +54,8 @@ class Get extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.getRow', 'version' => '1.8.0', + 'replaceWith' => 'tables.getRow', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Logs/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Logs/XList.php index c614d7bab0..1affc21210 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Logs/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Logs/XList.php @@ -60,8 +60,8 @@ class XList extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.listLogs', 'version' => '1.8.0', + 'replaceWith' => 'tables.listLogs', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php index 6f7feb3983..2f3b0916ab 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Update.php @@ -67,8 +67,8 @@ class Update extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.updateRow', 'version' => '1.8.0', + 'replaceWith' => 'tables.updateRow', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php index f7432c19cc..3da639c90d 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/Upsert.php @@ -69,8 +69,8 @@ class Upsert extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.upsertRow', 'version' => '1.8.0', + 'replaceWith' => 'tables.upsertRow', ], ), ]) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php index d95e013c0d..9c9bcc706b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Documents/XList.php @@ -57,8 +57,8 @@ class XList extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.listRows', 'version' => '1.8.0', + 'replaceWith' => 'tables.listRows', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php index 4e5b6f7ab8..db42a823ac 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Get.php @@ -48,8 +48,8 @@ class Get extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.get', 'version' => '1.8.0', + 'replaceWith' => 'tables.getTable', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php index 48633de2f8..414ebb9c2e 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Create.php @@ -63,8 +63,8 @@ class Create extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.createColumnIndex', 'version' => '1.8.0', + 'replaceWith' => 'tables.createColumnIndex', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Delete.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Delete.php index 3fee780733..bb3242876b 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Delete.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Delete.php @@ -58,8 +58,8 @@ class Delete extends Action ], contentType: ContentType::NONE, deprecated: [ - 'replaceWith' => 'tables.deleteColumnIndex', 'version' => '1.8.0', + 'replaceWith' => 'tables.deleteColumnIndex', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Get.php index 01d17366f4..4019353f11 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/Get.php @@ -49,8 +49,8 @@ class Get extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.getColumnIndex', 'version' => '1.8.0', + 'replaceWith' => 'tables.getColumnIndex', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/XList.php index 2183266ec9..5aeb106ed5 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Indexes/XList.php @@ -54,8 +54,8 @@ class XList extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.listColumnIndexes', 'version' => '1.8.0', + 'replaceWith' => 'tables.listColumnIndexes', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Logs/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Logs/XList.php index 9d59e02092..fb880d0e85 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Logs/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Logs/XList.php @@ -60,8 +60,8 @@ class XList extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.listTableLogs', 'version' => '1.8.0', + 'replaceWith' => 'tables.listTableLogs', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php index c8f50a533c..ee7fd04f0d 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Update.php @@ -56,8 +56,8 @@ class Update extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.update', 'version' => '1.8.0', + 'replaceWith' => 'tables.updateTable', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Usage/Get.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Usage/Get.php index 782d1a5bd4..d48b4a1e36 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Usage/Get.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/Usage/Get.php @@ -53,8 +53,8 @@ class Get extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.getTableUsage', 'version' => '1.8.0', + 'replaceWith' => 'tables.getTableUsage', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/XList.php index fb9d2530df..271bc9f1dd 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Collections/XList.php @@ -55,8 +55,8 @@ class XList extends Action ], contentType: ContentType::JSON, deprecated: [ - 'replaceWith' => 'tables.list', 'version' => '1.8.0', + 'replaceWith' => 'tables.list', ], )) ->param('databaseId', '', new UID(), 'Database ID.') diff --git a/src/Appwrite/SDK/Method.php b/src/Appwrite/SDK/Method.php index 9f53c36986..1600cd2693 100644 --- a/src/Appwrite/SDK/Method.php +++ b/src/Appwrite/SDK/Method.php @@ -177,12 +177,7 @@ class Method public function isDeprecated(): bool { - return $this->deprecated !== null; - } - - public function getDeprecationInfo(): array - { - return $this->deprecated ?? []; + return $this->deprecated !== null && \is_array($this->deprecated); } public function getDeprecationMessage(): ?string @@ -190,16 +185,16 @@ class Method return $this->deprecated['message'] ?? ''; } - public function getDeprecationReplacement(): ?string - { - return $this->deprecated['replaceWith'] ?? ''; - } - public function getDeprecationVersion(): ?string { return $this->deprecated['version'] ?? ''; } + public function getDeprecationReplacement(): ?string + { + return $this->deprecated['replaceWith'] ?? ''; + } + public function isHidden(): bool|array { return $this->hide ?? false;