Skip to content

Commit

Permalink
merge release/0.24.5 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-scherzinger committed Sep 2, 2022
2 parents 7a98193 + afd19a2 commit 64795f4
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 9 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## <small>0.24.5 (2022-09-02)</small>

* APPSITE-4227 adds lastLogin to AccountResource ([52cc0b2](https://github.com/entrecode/ec.sdk/commit/52cc0b2))
* release version 0.24.5 ([afd19a2](https://github.com/entrecode/ec.sdk/commit/afd19a2))
* release version v0.24.4 ([64655ce](https://github.com/entrecode/ec.sdk/commit/64655ce))
* feat: change dmAccount email via api ([70fd2c1](https://github.com/entrecode/ec.sdk/commit/70fd2c1))
* feat: configurableSignupEdit with validationTokenType ([62ea441](https://github.com/entrecode/ec.sdk/commit/62ea441))



## <small>0.24.4 (2022-08-24)</small>

* release version v0.24.4 ([64655ce](https://github.com/entrecode/ec.sdk/commit/64655ce))
Expand Down
23 changes: 20 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset='utf-8'>
<title>ec.sdk 0.24.4 | Documentation</title>
<title>ec.sdk 0.24.5 | Documentation</title>
<meta name='description' content='SDK for ec.api'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' rel='stylesheet'>
Expand All @@ -15,7 +15,7 @@
<div id='split-left' class='overflow-auto fs0 height-viewport-100'>
<div class='py1 px2'>
<h3 class='mb0 no-anchor'>ec.sdk</h3>
<div class='mb1'><code>0.24.4</code></div>
<div class='mb1'><code>0.24.5</code></div>
<input
placeholder='Filter'
id='filter-input'
Expand Down Expand Up @@ -17672,6 +17672,15 @@ <h3 class='fl m0' id='accountresource'>

</div>

<div class='space-bottom0'>
<span class='code bold'>lastLogin</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date">Date</a>)</code>
: The
<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date">Date</a>
on which this account was last logged in


</div>

</div>


Expand Down Expand Up @@ -35905,7 +35914,15 @@ <h2 id='changelog' class='mt0'>
</h2>


<h2>0.24.4 (2022-08-24)</h2>
<h2>0.24.5 (2022-09-02)</h2>
<ul>
<li>APPSITE-4227 adds lastLogin to AccountResource (<a href="https://github.com/entrecode/ec.sdk/commit/52cc0b2">52cc0b2</a>)</li>
<li>release version 0.24.5 (<a href="https://github.com/entrecode/ec.sdk/commit/afd19a2">afd19a2</a>)</li>
<li>release version v0.24.4 (<a href="https://github.com/entrecode/ec.sdk/commit/64655ce">64655ce</a>)</li>
<li>feat: change dmAccount email via api (<a href="https://github.com/entrecode/ec.sdk/commit/70fd2c1">70fd2c1</a>)</li>
<li>feat: configurableSignupEdit with validationTokenType (<a href="https://github.com/entrecode/ec.sdk/commit/62ea441">62ea441</a>)</li>
</ul>
<h2>0.24.4 (2022-08-24)</h2>
<ul>
<li>release version v0.24.4 (<a href="https://github.com/entrecode/ec.sdk/commit/64655ce">64655ce</a>)</li>
<li>feat: change dmAccount email via api (<a href="https://github.com/entrecode/ec.sdk/commit/70fd2c1">70fd2c1</a>)</li>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ec.sdk",
"version": "0.24.4",
"version": "0.24.5",
"description": "SDK for ec.api",
"repository": "entrecode/ec.sdk",
"author": "Simon Scherzinger <scherzinger@entrecode.de>",
Expand Down
12 changes: 9 additions & 3 deletions src/resources/accounts/AccountResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ interface AccountResource {
openID: Array<any>;
permissions: Array<string>;
state: string;
lastLogin: Date;
}

/**
Expand All @@ -41,6 +42,7 @@ interface AccountResource {
* openID - Array of connected openID accounts
* @prop {Array<string>} permissions - Array of permissions
* @prop {string} state - State of the account.
* @prop {Date} lastLogin - The {@link Date} on which this account was last logged in
*/
class AccountResource extends Resource {
/**
Expand Down Expand Up @@ -133,6 +135,10 @@ class AccountResource extends Resource {
return value;
},
},
lastLogin: {
enumerable: true,
get: () => new Date(this.getProperty('lastLogin')),
},
});
this.countProperties();
}
Expand Down Expand Up @@ -229,13 +235,13 @@ class AccountResource extends Resource {
/**
* Create an additional access token {@link tokenResponse} for this account.
* Only supported for API Keys.
*
*
* @example
* return account.createToken()
* .then(({ jwt, accountID, iat, exp}) => {
* .then(({ jwt, accountID, iat, exp}) => {
* // do something with `jwt` because it is not accessable later
* });
*
*
* @returns {Promise<{jwt: string, accountID: string, iat: number, exp: number}>} the created api
* token response.
* @throws {Error} if the account is not an API Key
Expand Down

0 comments on commit 64795f4

Please sign in to comment.