mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chore: update ordering
This commit is contained in:
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
@@ -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.')
|
||||
|
||||
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -62,8 +62,8 @@ class Upsert extends Action
|
||||
],
|
||||
contentType: ContentType::JSON,
|
||||
deprecated: [
|
||||
'replaceWith' => 'tables.upsertRows',
|
||||
'version' => '1.8.0',
|
||||
'replaceWith' => 'tables.upsertRows',
|
||||
],
|
||||
)
|
||||
])
|
||||
|
||||
+1
-1
@@ -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(
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -69,8 +69,8 @@ class Upsert extends Action
|
||||
],
|
||||
contentType: ContentType::JSON,
|
||||
deprecated: [
|
||||
'replaceWith' => 'tables.upsertRow',
|
||||
'version' => '1.8.0',
|
||||
'replaceWith' => 'tables.upsertRow',
|
||||
],
|
||||
),
|
||||
])
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
@@ -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.')
|
||||
|
||||
+1
-1
@@ -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.')
|
||||
|
||||
@@ -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.')
|
||||
|
||||
@@ -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.')
|
||||
|
||||
@@ -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.')
|
||||
|
||||
@@ -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.')
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user