This repository was archived by the owner on May 28, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
55and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
66
7+ ## 2.0.1 - 2017-05-12
8+ ### Added
9+ - ` createdAt ` attribute to ` Account ` retrieval method
10+
711## 2.0.0 - 2017-05-12
812### Changed
913- Rename ` list ` method to ` retrieve ` in Events resource
Original file line number Diff line number Diff line change @@ -47,6 +47,6 @@ for (let workplace of workplaces) {
4747 * [ ` urgency(id, params) ` ] ( docs/workplaces.md#urgencyid-params )
4848* events
4949 * [ ` unread() ` ] ( docs/events.md#unread )
50- * [ ` retrieve(tabId, limit) ` ] ( docs/events.md## retrievetabid-limit )
51- * [ ` list(limit, offset, tags) ` ] ( docs/events.md##list )
52- * [ ` markAllAsRead(tags) ` ] ( docs/events.md## mark-all-as-read )
50+ * [ ` retrieve(tabId, limit) ` ] ( docs/events.md#retrievetabid-limit )
51+ * [ ` list(limit, offset, tags) ` ] ( docs/events.md#listlimit-offset-tags )
52+ * [ ` markAllAsRead(tags) ` ] ( docs/events.md#mark-all-as-read )
Original file line number Diff line number Diff line change 11{
22 "name" : " deskbookers" ,
3- "version" : " 2.0.0 " ,
3+ "version" : " 2.0.1 " ,
44 "description" : " Deskbookers API JavaScript SDK" ,
55 "main" : " dist/index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -114,7 +114,8 @@ export default class Account extends Resource {
114114 organisations,
115115 timezone,
116116 lang : language ,
117- balance
117+ balance,
118+ created : createdAt
118119 } = await this . request ( {
119120 method : 'GET' ,
120121 path : 'user'
@@ -130,7 +131,8 @@ export default class Account extends Resource {
130131 organisations,
131132 timezone,
132133 language,
133- balance
134+ balance,
135+ createdAt : new Date ( parseInt ( createdAt ) * 1e3 )
134136 }
135137 }
136138
You can’t perform that action at this time.
0 commit comments