{"action":"created","issue":{"url":"https://api.github.com/repos/timekit-io/js-sdk/issues/44","repository_url":"https://api.github.com/repos/timekit-io/js-sdk","labels_url":"https://api.github.com/repos/timekit-io/js-sdk/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/timekit-io/js-sdk/issues/44/comments","events_url":"https://api.github.com/repos/timekit-io/js-sdk/issues/44/events","html_url":"https://github.com/timekit-io/js-sdk/pull/44","id":321908526,"number":44,"title":"Projects v2","user":{"login":"laander","id":222419,"avatar_url":"https://avatars2.githubusercontent.com/u/222419?v=4","gravatar_id":"","url":"https://api.github.com/users/laander","html_url":"https://github.com/laander","followers_url":"https://api.github.com/users/laander/followers","following_url":"https://api.github.com/users/laander/following{/other_user}","gists_url":"https://api.github.com/users/laander/gists{/gist_id}","starred_url":"https://api.github.com/users/laander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laander/subscriptions","organizations_url":"https://api.github.com/users/laander/orgs","repos_url":"https://api.github.com/users/laander/repos","events_url":"https://api.github.com/users/laander/events{/privacy}","received_events_url":"https://api.github.com/users/laander/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-10T12:06:13Z","updated_at":"2018-05-17T07:58:48Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/timekit-io/js-sdk/pulls/44","html_url":"https://github.com/timekit-io/js-sdk/pull/44","diff_url":"https://github.com/timekit-io/js-sdk/pull/44.diff","patch_url":"https://github.com/timekit-io/js-sdk/pull/44.patch"},"body":"Motivation\r\n------------\r\nWe're working on a revised Projects model at Timekit that will be more native to the platform. With this also comes an update to our availability engine (successor to FindTime).\r\n\r\nAdded new endpoints:\r\n```\r\n// Availability\r\ntimekit.fetchAvailability({ ... })\r\n```\r\n```\r\n// Projects\r\ntimekit.getProjects()\r\ntimekit.getProject({ id })\r\ntimekit.getHostedProject({ slug })\r\ntimekit.getEmbedProject({ id })\r\ntimekit.createProject({ ... })\r\ntimekit.updateProject({ id, ... })\r\ntimekit.deleteProject({ id })\r\ntimekit.addProjectResource({ id, ... })\r\ntimekit.setProjectResources({ id, resources })\r\ntimekit.removeProjectResource({ id, resourceId })\r\n```\r\n\r\nSide-effects/other\r\n------------\r\nAlso improved the DX of the endpoints list in README so it includes a specification of which object properties you can send in the arguments to the methods.\r\n\r\nTests\r\n------------\r\nUpdated tests with new endpoints.\r\n\r\nRelease dependencies\r\n------------\r\nhttps://github.com/timekit-io/booking-js/pull/176\r\n\r\nWho should review it\r\n------------\r\n@Trolzie @vistik "},"comment":{"url":"https://api.github.com/repos/timekit-io/js-sdk/issues/comments/389779405","html_url":"https://github.com/timekit-io/js-sdk/pull/44#issuecomment-389779405","issue_url":"https://api.github.com/repos/timekit-io/js-sdk/issues/44","id":389779405,"user":{"login":"laander","id":222419,"avatar_url":"https://avatars2.githubusercontent.com/u/222419?v=4","gravatar_id":"","url":"https://api.github.com/users/laander","html_url":"https://github.com/laander","followers_url":"https://api.github.com/users/laander/followers","following_url":"https://api.github.com/users/laander/following{/other_user}","gists_url":"https://api.github.com/users/laander/gists{/gist_id}","starred_url":"https://api.github.com/users/laander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laander/subscriptions","organizations_url":"https://api.github.com/users/laander/orgs","repos_url":"https://api.github.com/users/laander/repos","events_url":"https://api.github.com/users/laander/events{/privacy}","received_events_url":"https://api.github.com/users/laander/received_events","type":"User","site_admin":false},"created_at":"2018-05-17T07:58:48Z","updated_at":"2018-05-17T07:58:48Z","author_association":"MEMBER","body":"@Trolzie I like that, good idea, all add some comments in the code 👍 "}}
{"actor":{"display_login":"laander"}}