{"action":"created","issue":{"url":"https://api.github.com/repos/gregswindle/cordova-contacts-swagger-api/issues/9","repository_url":"https://api.github.com/repos/gregswindle/cordova-contacts-swagger-api","labels_url":"https://api.github.com/repos/gregswindle/cordova-contacts-swagger-api/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/gregswindle/cordova-contacts-swagger-api/issues/9/comments","events_url":"https://api.github.com/repos/gregswindle/cordova-contacts-swagger-api/issues/9/events","html_url":"https://github.com/gregswindle/cordova-contacts-swagger-api/pull/9","id":240700637,"number":9,"title":"refactor(contact type enum): allow number <-> string","user":{"login":"gregswindle","id":2849690,"avatar_url":"https://avatars0.githubusercontent.com/u/2849690?v=3","gravatar_id":"","url":"https://api.github.com/users/gregswindle","html_url":"https://github.com/gregswindle","followers_url":"https://api.github.com/users/gregswindle/followers","following_url":"https://api.github.com/users/gregswindle/following{/other_user}","gists_url":"https://api.github.com/users/gregswindle/gists{/gist_id}","starred_url":"https://api.github.com/users/gregswindle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregswindle/subscriptions","organizations_url":"https://api.github.com/users/gregswindle/orgs","repos_url":"https://api.github.com/users/gregswindle/repos","events_url":"https://api.github.com/users/gregswindle/events{/privacy}","received_events_url":"https://api.github.com/users/gregswindle/received_events","type":"User","site_admin":false},"labels":[{"id":633011855,"url":"https://api.github.com/repos/gregswindle/cordova-contacts-swagger-api/labels/Priority:%20Medium","name":"Priority: Medium","color":"fbca04","default":false},{"id":633011866,"url":"https://api.github.com/repos/gregswindle/cordova-contacts-swagger-api/labels/Status:%20In%20Progress","name":"Status: In Progress","color":"0052cc","default":false},{"id":633011840,"url":"https://api.github.com/repos/gregswindle/cordova-contacts-swagger-api/labels/Type:%20Refactor","name":"Type: Refactor","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":{"login":"gregswindle","id":2849690,"avatar_url":"https://avatars0.githubusercontent.com/u/2849690?v=3","gravatar_id":"","url":"https://api.github.com/users/gregswindle","html_url":"https://github.com/gregswindle","followers_url":"https://api.github.com/users/gregswindle/followers","following_url":"https://api.github.com/users/gregswindle/following{/other_user}","gists_url":"https://api.github.com/users/gregswindle/gists{/gist_id}","starred_url":"https://api.github.com/users/gregswindle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregswindle/subscriptions","organizations_url":"https://api.github.com/users/gregswindle/orgs","repos_url":"https://api.github.com/users/gregswindle/repos","events_url":"https://api.github.com/users/gregswindle/events{/privacy}","received_events_url":"https://api.github.com/users/gregswindle/received_events","type":"User","site_admin":false},"assignees":[{"login":"gregswindle","id":2849690,"avatar_url":"https://avatars0.githubusercontent.com/u/2849690?v=3","gravatar_id":"","url":"https://api.github.com/users/gregswindle","html_url":"https://github.com/gregswindle","followers_url":"https://api.github.com/users/gregswindle/followers","following_url":"https://api.github.com/users/gregswindle/following{/other_user}","gists_url":"https://api.github.com/users/gregswindle/gists{/gist_id}","starred_url":"https://api.github.com/users/gregswindle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregswindle/subscriptions","organizations_url":"https://api.github.com/users/gregswindle/orgs","repos_url":"https://api.github.com/users/gregswindle/repos","events_url":"https://api.github.com/users/gregswindle/events{/privacy}","received_events_url":"https://api.github.com/users/gregswindle/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/gregswindle/cordova-contacts-swagger-api/milestones/1","html_url":"https://github.com/gregswindle/cordova-contacts-swagger-api/milestone/1","labels_url":"https://api.github.com/repos/gregswindle/cordova-contacts-swagger-api/milestones/1/labels","id":2623674,"number":1,"title":"DP: Sprint 0: Jun22 - Jul6","description":"See Verizon's OneJIRA [Agile Board for DP: Sprint 0: Jun22 - Jul6](https://onejira.verizon.com/secure/RapidBoard.jspa?rapidView=46863&projectKey=ONEAPI&view=detail&selectedIssue=ONEAPI-190&sprint=37177) for details.","creator":{"login":"gregswindle","id":2849690,"avatar_url":"https://avatars0.githubusercontent.com/u/2849690?v=3","gravatar_id":"","url":"https://api.github.com/users/gregswindle","html_url":"https://github.com/gregswindle","followers_url":"https://api.github.com/users/gregswindle/followers","following_url":"https://api.github.com/users/gregswindle/following{/other_user}","gists_url":"https://api.github.com/users/gregswindle/gists{/gist_id}","starred_url":"https://api.github.com/users/gregswindle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregswindle/subscriptions","organizations_url":"https://api.github.com/users/gregswindle/orgs","repos_url":"https://api.github.com/users/gregswindle/repos","events_url":"https://api.github.com/users/gregswindle/events{/privacy}","received_events_url":"https://api.github.com/users/gregswindle/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":8,"state":"open","created_at":"2017-07-05T18:44:58Z","updated_at":"2017-07-05T18:46:30Z","due_on":"2017-07-06T07:00:00Z","closed_at":null},"comments":2,"created_at":"2017-07-05T16:06:18Z","updated_at":"2017-07-05T18:48:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gregswindle/cordova-contacts-swagger-api/pulls/9","html_url":"https://github.com/gregswindle/cordova-contacts-swagger-api/pull/9","diff_url":"https://github.com/gregswindle/cordova-contacts-swagger-api/pull/9.diff","patch_url":"https://github.com/gregswindle/cordova-contacts-swagger-api/pull/9.patch"},"body":"## Description of change\r\n\r\nJavascript's dynamic typing allows us to define `enums` with `string` and `number` types:\r\n\r\n```js\r\n// 1. Get a contact's JIRA Profile URL\r\nconsole.log(cordovaContactType.url.ONE_JIRA_PROFILE);\r\n// => 2\r\n// 2. Get the human readable string for the enum ONE_JIRA_PROFILE\r\nconsole.log(cordovaContactType.url[cordovaContactType.url.ONE_JIRA_PROFILE]);\r\n// => 'ONE_JIRA_PROFILE'\r\n// 3. Example (2) above is equivalent to\r\nconsole.log(cordovaContactType.url[2]);\r\n// => 'ONE_JIRA_PROFILE'\r\n\r\n```\r\n\r\nThis change modifies the `cordovaContactType`'s interface, too: please see the [Javascript callout API docs](https://github.com/gregswindle/cordova-contacts-swagger-api/tree/refactor/contact-type-enum/docs#cordova-contactscordovacontacttype--enum) for details.\r\n\r\n### Associated issue\r\n\r\nN/A.\r\n\r\n### Pull request (PR) check-list\r\n\r\n> **:white_check_mark: Please review and check the appropriate items.**\r\n\r\n#### 1. **Code standards compliance**\r\n\r\n- [x] `ESLint` passes.\r\n\r\n#### 2. **Code quality**. Do the quality gateways pass with an \"A\" grade?\r\n\r\n- [x] `Complexity`\r\n- [x] `Duplications` (0.00%)\r\n- [x] `Issues` (0 issues or documentation for \"won't fix\" cases)\r\n- [x] `Maintainability`/`Technical Debt`\r\n- [x] `Reliability`\r\n- [x] `Security`\r\n\r\n#### 3. **Test coverage**\r\n\r\n- [x] The source code is 100% covered with passing specs.\r\n\r\n> **:information_source: These tasks are not required to open a PR and can be done afterwards, or while the PR is open.**\r\n"},"comment":{"url":"https://api.github.com/repos/gregswindle/cordova-contacts-swagger-api/issues/comments/313192603","html_url":"https://github.com/gregswindle/cordova-contacts-swagger-api/pull/9#issuecomment-313192603","issue_url":"https://api.github.com/repos/gregswindle/cordova-contacts-swagger-api/issues/9","id":313192603,"user":{"login":"gregswindle","id":2849690,"avatar_url":"https://avatars0.githubusercontent.com/u/2849690?v=3","gravatar_id":"","url":"https://api.github.com/users/gregswindle","html_url":"https://github.com/gregswindle","followers_url":"https://api.github.com/users/gregswindle/followers","following_url":"https://api.github.com/users/gregswindle/following{/other_user}","gists_url":"https://api.github.com/users/gregswindle/gists{/gist_id}","starred_url":"https://api.github.com/users/gregswindle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregswindle/subscriptions","organizations_url":"https://api.github.com/users/gregswindle/orgs","repos_url":"https://api.github.com/users/gregswindle/repos","events_url":"https://api.github.com/users/gregswindle/events{/privacy}","received_events_url":"https://api.github.com/users/gregswindle/received_events","type":"User","site_admin":false},"created_at":"2017-07-05T18:48:46Z","updated_at":"2017-07-05T18:48:46Z","body":"I'm gonna merge this due to time constraints :anguished:. "}}
{"actor":{"display_login":"gregswindle"}}