mirror of
https://github.com/appwrite/appwrite
synced 2026-05-15 21:19:19 +00:00
Merge branch '1.5.x' of github.com:appwrite/appwrite into create-array-index
This commit is contained in:
commit
2c57f9a44a
9 changed files with 18 additions and 12 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -3059,7 +3059,7 @@ App::patch('/v1/messaging/messages/email/:messageId')
|
|||
->param('targets', null, new ArrayList(new UID()), 'List of Targets IDs.', true)
|
||||
->param('subject', null, new Text(998), 'Email Subject.', true)
|
||||
->param('content', null, new Text(64230), 'Email Content.', true)
|
||||
->param('status', MessageStatus::DRAFT, new WhiteList([MessageStatus::DRAFT, MessageStatus::SCHEDULED, MessageStatus::PROCESSING]), 'Message Status. Value must be one of: ' . implode(', ', [MessageStatus::DRAFT, MessageStatus::SCHEDULED, MessageStatus::PROCESSING]) . '.', true)
|
||||
->param('status', null, new WhiteList([MessageStatus::DRAFT, MessageStatus::SCHEDULED, MessageStatus::PROCESSING]), 'Message Status. Value must be one of: ' . implode(', ', [MessageStatus::DRAFT, MessageStatus::SCHEDULED, MessageStatus::PROCESSING]) . '.', true)
|
||||
->param('html', null, new Boolean(), 'Is content of type HTML', true)
|
||||
->param('cc', null, new ArrayList(new UID()), 'Array of target IDs to be added as CC.', true)
|
||||
->param('bcc', null, new ArrayList(new UID()), 'Array of target IDs to be added as BCC.', true)
|
||||
|
|
@ -3192,7 +3192,7 @@ App::patch('/v1/messaging/messages/sms/:messageId')
|
|||
->param('users', null, new ArrayList(new UID()), 'List of User IDs.', true)
|
||||
->param('targets', null, new ArrayList(new UID()), 'List of Targets IDs.', true)
|
||||
->param('content', null, new Text(64230), 'Email Content.', true)
|
||||
->param('status', null, new WhiteList(['draft', 'cancelled', 'processing']), 'Message Status. Value must be either draft or cancelled or processing.', true)
|
||||
->param('status', null, new WhiteList([MessageStatus::DRAFT, MessageStatus::SCHEDULED, MessageStatus::PROCESSING]), 'Message Status. Value must be one of: ' . implode(', ', [MessageStatus::DRAFT, MessageStatus::SCHEDULED, MessageStatus::PROCESSING]) . '.', true)
|
||||
->param('scheduledAt', null, new DatetimeValidator(requireDateInFuture: true), 'Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.', true)
|
||||
->inject('queueForEvents')
|
||||
->inject('dbForProject')
|
||||
|
|
@ -3314,7 +3314,7 @@ App::patch('/v1/messaging/messages/push/:messageId')
|
|||
->param('color', null, new Text(256), 'Color for push notification. Available only for Android platforms.', true)
|
||||
->param('tag', null, new Text(256), 'Tag for push notification. Available only for Android platforms.', true)
|
||||
->param('badge', null, new Integer(), 'Badge for push notification. Available only for iOS platforms.', true)
|
||||
->param('status', null, new WhiteList(['draft', 'cancelled', 'processing']), 'Message Status. Value must be either draft, cancelled, or processing.', true)
|
||||
->param('status', null, new WhiteList([MessageStatus::DRAFT, MessageStatus::SCHEDULED, MessageStatus::PROCESSING]), 'Message Status. Value must be one of: ' . implode(', ', [MessageStatus::DRAFT, MessageStatus::SCHEDULED, MessageStatus::PROCESSING]) . '.', true)
|
||||
->param('scheduledAt', null, new DatetimeValidator(requireDateInFuture: true), 'Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.', true)
|
||||
->inject('queueForEvents')
|
||||
->inject('dbForProject')
|
||||
|
|
|
|||
|
|
@ -216,7 +216,7 @@ abstract class Format
|
|||
case 'updateEmail':
|
||||
switch ($param) {
|
||||
case 'status':
|
||||
return 'MessageType';
|
||||
return 'MessageStatus';
|
||||
}
|
||||
break;
|
||||
case 'createSMTPProvider':
|
||||
|
|
@ -327,6 +327,12 @@ abstract class Format
|
|||
return 'MessagingProviderType';
|
||||
}
|
||||
break;
|
||||
case 'createSHAUser':
|
||||
switch ($param) {
|
||||
case 'passwordVersion':
|
||||
return 'PasswordHash';
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ class AccountTest extends Scope
|
|||
|
||||
$this->assertArrayNotHasKey('errors', $session['body']);
|
||||
$this->assertIsArray($session['body']['data']);
|
||||
$this->assertIsArray($session['body']['data']['accountCreateEmailSession']);
|
||||
$this->assertIsArray($session['body']['data']['accountCreateEmailPasswordSession']);
|
||||
|
||||
$cookie = $session['cookies']['a_session_' . $this->getProject()['$id']];
|
||||
$this->assertNotEmpty($cookie);
|
||||
|
|
|
|||
|
|
@ -1186,7 +1186,7 @@ trait Base
|
|||
}';
|
||||
case self::$CREATE_ACCOUNT_SESSION:
|
||||
return 'mutation createAccountEmailSession($email: String!, $password: String!){
|
||||
accountCreateEmailSession(email: $email, password: $password) {
|
||||
accountCreateEmailPasswordSession(email: $email, password: $password) {
|
||||
_id
|
||||
userId
|
||||
expire
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ class BatchTest extends Scope
|
|||
accountCreate(userId: $userId, email: $email, password: $password, name: $name) {
|
||||
name
|
||||
}
|
||||
accountCreateEmailSession(email: $email, password: $password) {
|
||||
accountCreateEmailPasswordSession(email: $email, password: $password) {
|
||||
expire
|
||||
}
|
||||
}',
|
||||
|
|
@ -308,7 +308,7 @@ class BatchTest extends Scope
|
|||
$this->assertIsArray($response['body']['data']);
|
||||
$this->assertArrayNotHasKey('errors', $response['body']);
|
||||
$this->assertArrayHasKey('accountCreate', $response['body']['data']);
|
||||
$this->assertArrayHasKey('accountCreateEmailSession', $response['body']['data']);
|
||||
$this->assertArrayHasKey('accountCreateEmailPasswordSession', $response['body']['data']);
|
||||
$this->assertEquals('Tester', $response['body']['data']['accountCreate']['name']);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue