Skip to content

Commit b5fe2bd

Browse files
committed
Add 1.8.x support
1 parent 3470288 commit b5fe2bd

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

src/models.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2922,6 +2922,10 @@ export namespace Models {
29222922
* Function ID.
29232923
*/
29242924
functionId: string;
2925+
/**
2926+
* Function's deployment ID used to create the execution.
2927+
*/
2928+
deploymentId: string;
29252929
/**
29262930
* The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
29272931
*/

src/services/account.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,15 +1343,19 @@ export class Account extends Service {
13431343
}
13441344
/**
13451345
* Sends the user an email with a secret key for creating a session. If the
1346-
* provided user ID has not be registered, a new user will be created. Use the
1347-
* returned user ID and secret and submit a request to the [POST
1346+
* email address has never been used, a **new account is created** using the
1347+
* provided `userId`. Otherwise, if the email address is already attached to
1348+
* an account, the **user ID is ignored**. Then, the user will receive an
1349+
* email with the one-time password. Use the returned user ID and secret and
1350+
* submit a request to the [POST
13481351
* /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession)
13491352
* endpoint to complete the login process. The secret sent to the user's email
13501353
* is valid for 15 minutes.
13511354
*
13521355
* A user is limited to 10 active sessions at a time by default. [Learn more
13531356
* about session
13541357
* limits](https://appwrite.io/docs/authentication-security#limits).
1358+
*
13551359
*
13561360
* @param {string} userId
13571361
* @param {string} email

test/services/functions.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ describe('Functions service', () => {
572572
'\$updatedAt': '2020-10-15T06:38:00.000+00:00',
573573
'\$permissions': [],
574574
'functionId': '5e5ea6g16897e',
575+
'deploymentId': '5e5ea5c16897e',
575576
'trigger': 'http',
576577
'status': 'processing',
577578
'requestMethod': 'GET',
@@ -602,6 +603,7 @@ describe('Functions service', () => {
602603
'\$updatedAt': '2020-10-15T06:38:00.000+00:00',
603604
'\$permissions': [],
604605
'functionId': '5e5ea6g16897e',
606+
'deploymentId': '5e5ea5c16897e',
605607
'trigger': 'http',
606608
'status': 'processing',
607609
'requestMethod': 'GET',

test/services/sites.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ describe('Sites service', () => {
578578
'\$updatedAt': '2020-10-15T06:38:00.000+00:00',
579579
'\$permissions': [],
580580
'functionId': '5e5ea6g16897e',
581+
'deploymentId': '5e5ea5c16897e',
581582
'trigger': 'http',
582583
'status': 'processing',
583584
'requestMethod': 'GET',

0 commit comments

Comments
 (0)