mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge branch 'events-compatibility' into update-exceptions
This commit is contained in:
commit
80915fc5e9
6 changed files with 10 additions and 10 deletions
|
|
@ -284,8 +284,8 @@ class Mapper
|
||||||
case 'Utopia\Database\Validator\Authorization':
|
case 'Utopia\Database\Validator\Authorization':
|
||||||
case 'Appwrite\Utopia\Database\Validator\Queries\Base':
|
case 'Appwrite\Utopia\Database\Validator\Queries\Base':
|
||||||
case 'Appwrite\Utopia\Database\Validator\Queries\Buckets':
|
case 'Appwrite\Utopia\Database\Validator\Queries\Buckets':
|
||||||
case 'Appwrite\Utopia\Database\Validator\Queries\Collections':
|
case 'Appwrite\Utopia\Database\Validator\Queries\Tables':
|
||||||
case 'Appwrite\Utopia\Database\Validator\Queries\Attributes':
|
case 'Appwrite\Utopia\Database\Validator\Queries\Columns':
|
||||||
case 'Appwrite\Utopia\Database\Validator\Queries\Indexes':
|
case 'Appwrite\Utopia\Database\Validator\Queries\Indexes':
|
||||||
case 'Appwrite\Utopia\Database\Validator\Queries\Databases':
|
case 'Appwrite\Utopia\Database\Validator\Queries\Databases':
|
||||||
case 'Appwrite\Utopia\Database\Validator\Queries\Deployments':
|
case 'Appwrite\Utopia\Database\Validator\Queries\Deployments':
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ use Appwrite\Extend\Exception;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
use Appwrite\SDK\Method;
|
use Appwrite\SDK\Method;
|
||||||
use Appwrite\SDK\Response as SDKResponse;
|
use Appwrite\SDK\Response as SDKResponse;
|
||||||
use Appwrite\Utopia\Database\Validator\Queries\Attributes;
|
use Appwrite\Utopia\Database\Validator\Queries\Columns;
|
||||||
use Appwrite\Utopia\Response as UtopiaResponse;
|
use Appwrite\Utopia\Response as UtopiaResponse;
|
||||||
use Utopia\Database\Database;
|
use Utopia\Database\Database;
|
||||||
use Utopia\Database\Document;
|
use Utopia\Database\Document;
|
||||||
|
|
@ -53,7 +53,7 @@ class XList extends Action
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
->param('tableId', '', new UID(), 'Table ID.')
|
->param('tableId', '', new UID(), 'Table ID.')
|
||||||
->param('queries', [], new Attributes(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Attributes::ALLOWED_ATTRIBUTES), true)
|
->param('queries', [], new Columns(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Columns::ALLOWED_ATTRIBUTES), true)
|
||||||
->inject('response')
|
->inject('response')
|
||||||
->inject('dbForProject')
|
->inject('dbForProject')
|
||||||
->callback([$this, 'action']);
|
->callback([$this, 'action']);
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ use Appwrite\SDK\AuthType;
|
||||||
use Appwrite\SDK\ContentType;
|
use Appwrite\SDK\ContentType;
|
||||||
use Appwrite\SDK\Method;
|
use Appwrite\SDK\Method;
|
||||||
use Appwrite\SDK\Response as SDKResponse;
|
use Appwrite\SDK\Response as SDKResponse;
|
||||||
use Appwrite\Utopia\Database\Validator\Queries\Collections;
|
use Appwrite\Utopia\Database\Validator\Queries\Tables;
|
||||||
use Appwrite\Utopia\Response as UtopiaResponse;
|
use Appwrite\Utopia\Response as UtopiaResponse;
|
||||||
use Utopia\Database\Database;
|
use Utopia\Database\Database;
|
||||||
use Utopia\Database\Document;
|
use Utopia\Database\Document;
|
||||||
|
|
@ -55,7 +55,7 @@ class XList extends Action
|
||||||
contentType: ContentType::JSON
|
contentType: ContentType::JSON
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
->param('queries', [], new Collections(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Collections::ALLOWED_ATTRIBUTES), true)
|
->param('queries', [], new Tables(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Tables::ALLOWED_ATTRIBUTES), true)
|
||||||
->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true)
|
->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true)
|
||||||
->inject('response')
|
->inject('response')
|
||||||
->inject('dbForProject')
|
->inject('dbForProject')
|
||||||
|
|
|
||||||
|
|
@ -407,9 +407,9 @@ class OpenAPI3 extends Format
|
||||||
'type' => $validator->getValidator()->getType(),
|
'type' => $validator->getValidator()->getType(),
|
||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
case 'Appwrite\Utopia\Database\Validator\Queries\Attributes':
|
case 'Appwrite\Utopia\Database\Validator\Queries\Columns':
|
||||||
case 'Appwrite\Utopia\Database\Validator\Queries\Buckets':
|
case 'Appwrite\Utopia\Database\Validator\Queries\Buckets':
|
||||||
case 'Appwrite\Utopia\Database\Validator\Queries\Collections':
|
case 'Appwrite\Utopia\Database\Validator\Queries\Tables':
|
||||||
case 'Appwrite\Utopia\Database\Validator\Queries\Databases':
|
case 'Appwrite\Utopia\Database\Validator\Queries\Databases':
|
||||||
case 'Appwrite\Utopia\Database\Validator\Queries\Deployments':
|
case 'Appwrite\Utopia\Database\Validator\Queries\Deployments':
|
||||||
case 'Appwrite\Utopia\Database\Validator\Queries\Executions':
|
case 'Appwrite\Utopia\Database\Validator\Queries\Executions':
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace Appwrite\Utopia\Database\Validator\Queries;
|
namespace Appwrite\Utopia\Database\Validator\Queries;
|
||||||
|
|
||||||
class Attributes extends Base
|
class Columns extends Base
|
||||||
{
|
{
|
||||||
public const ALLOWED_ATTRIBUTES = [
|
public const ALLOWED_ATTRIBUTES = [
|
||||||
'key',
|
'key',
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace Appwrite\Utopia\Database\Validator\Queries;
|
namespace Appwrite\Utopia\Database\Validator\Queries;
|
||||||
|
|
||||||
class Collections extends Base
|
class Tables extends Base
|
||||||
{
|
{
|
||||||
public const ALLOWED_ATTRIBUTES = [
|
public const ALLOWED_ATTRIBUTES = [
|
||||||
'name',
|
'name',
|
||||||
Loading…
Reference in a new issue