{"action":"created","comment":{"url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/pulls/comments/243635451","pull_request_review_id":187240840,"id":243635451,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MzYzNTQ1MQ==","diff_hunk":"@@ -22,3 +22,9 @@\n \n // eslint-disable-next-line import/prefer-default-export\n \n+export const AW_SUB_URL = {\n+  ORG_GROUP: 'system/groups/',\n+  ORG_GROUP_CHILDREN: '/children',\n+};\n+\n+export const AW_ROOT_ORG_GROUP_ID = 574;","path":"src/constants.js","position":null,"original_position":9,"commit_id":"719587da9a4dbfd5ffd05c4dc6fbb7eaee814203","original_commit_id":"86c4043bf09b2d2037441797bbf14a891d3b7914","user":{"login":"jleach","id":390891,"node_id":"MDQ6VXNlcjM5MDg5MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/390891?v=4","gravatar_id":"","url":"https://api.github.com/users/jleach","html_url":"https://github.com/jleach","followers_url":"https://api.github.com/users/jleach/followers","following_url":"https://api.github.com/users/jleach/following{/other_user}","gists_url":"https://api.github.com/users/jleach/gists{/gist_id}","starred_url":"https://api.github.com/users/jleach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jleach/subscriptions","organizations_url":"https://api.github.com/users/jleach/orgs","repos_url":"https://api.github.com/users/jleach/repos","events_url":"https://api.github.com/users/jleach/events{/privacy}","received_events_url":"https://api.github.com/users/jleach/received_events","type":"User","site_admin":false},"body":"I wouldn't put this in as the default group because its specific to our usage. It might be different for anyone else who wants to use the package. It should be a constant in the API and/or Agent.","created_at":"2018-12-21T16:51:24Z","updated_at":"2018-12-21T16:51:49Z","html_url":"https://github.com/bcgov/mdms-nodejs-client/pull/2#discussion_r243635451","pull_request_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/pulls/2","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/bcgov/mdms-nodejs-client/pulls/comments/243635451"},"html":{"href":"https://github.com/bcgov/mdms-nodejs-client/pull/2#discussion_r243635451"},"pull_request":{"href":"https://api.github.com/repos/bcgov/mdms-nodejs-client/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/pulls/2","id":240263136,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMjYzMTM2","html_url":"https://github.com/bcgov/mdms-nodejs-client/pull/2","diff_url":"https://github.com/bcgov/mdms-nodejs-client/pull/2.diff","patch_url":"https://github.com/bcgov/mdms-nodejs-client/pull/2.patch","issue_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/issues/2","number":2,"state":"open","locked":false,"title":"Feature: create Airwatch client and fetch list of organization groups","user":{"login":"ShellyXueHan","id":36056216,"node_id":"MDQ6VXNlcjM2MDU2MjE2","avatar_url":"https://avatars3.githubusercontent.com/u/36056216?v=4","gravatar_id":"","url":"https://api.github.com/users/ShellyXueHan","html_url":"https://github.com/ShellyXueHan","followers_url":"https://api.github.com/users/ShellyXueHan/followers","following_url":"https://api.github.com/users/ShellyXueHan/following{/other_user}","gists_url":"https://api.github.com/users/ShellyXueHan/gists{/gist_id}","starred_url":"https://api.github.com/users/ShellyXueHan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShellyXueHan/subscriptions","organizations_url":"https://api.github.com/users/ShellyXueHan/orgs","repos_url":"https://api.github.com/users/ShellyXueHan/repos","events_url":"https://api.github.com/users/ShellyXueHan/events{/privacy}","received_events_url":"https://api.github.com/users/ShellyXueHan/received_events","type":"User","site_admin":false},"body":"AW organization groups functions:\r\n1. `getAllOrgGroups ` will return all the top level org groups under BCGov. The info is modified to include only basic fields\r\n2. `getOrgGroupDetail ` will return full info of that org group\r\n3. there is the option to specify if any child organization groups are needed, if yes, an array of the groups will be return as well\r\n\r\n\r\nGeneral helper functions:\r\n1. `setDefaultRequest` sets default request options for authentication\r\n2. `checkAWRequest ` checks the default request by getting system info from aw api\r\n\r\n\r\n/bot-ignore-length\r\n","created_at":"2018-12-20T18:30:44Z","updated_at":"2018-12-21T16:51:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b6bcb6a448716d2611c384a6eeb39d3963dcc062","assignee":{"login":"ShellyXueHan","id":36056216,"node_id":"MDQ6VXNlcjM2MDU2MjE2","avatar_url":"https://avatars3.githubusercontent.com/u/36056216?v=4","gravatar_id":"","url":"https://api.github.com/users/ShellyXueHan","html_url":"https://github.com/ShellyXueHan","followers_url":"https://api.github.com/users/ShellyXueHan/followers","following_url":"https://api.github.com/users/ShellyXueHan/following{/other_user}","gists_url":"https://api.github.com/users/ShellyXueHan/gists{/gist_id}","starred_url":"https://api.github.com/users/ShellyXueHan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShellyXueHan/subscriptions","organizations_url":"https://api.github.com/users/ShellyXueHan/orgs","repos_url":"https://api.github.com/users/ShellyXueHan/repos","events_url":"https://api.github.com/users/ShellyXueHan/events{/privacy}","received_events_url":"https://api.github.com/users/ShellyXueHan/received_events","type":"User","site_admin":false},"assignees":[{"login":"ShellyXueHan","id":36056216,"node_id":"MDQ6VXNlcjM2MDU2MjE2","avatar_url":"https://avatars3.githubusercontent.com/u/36056216?v=4","gravatar_id":"","url":"https://api.github.com/users/ShellyXueHan","html_url":"https://github.com/ShellyXueHan","followers_url":"https://api.github.com/users/ShellyXueHan/followers","following_url":"https://api.github.com/users/ShellyXueHan/following{/other_user}","gists_url":"https://api.github.com/users/ShellyXueHan/gists{/gist_id}","starred_url":"https://api.github.com/users/ShellyXueHan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShellyXueHan/subscriptions","organizations_url":"https://api.github.com/users/ShellyXueHan/orgs","repos_url":"https://api.github.com/users/ShellyXueHan/repos","events_url":"https://api.github.com/users/ShellyXueHan/events{/privacy}","received_events_url":"https://api.github.com/users/ShellyXueHan/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1165938646,"node_id":"MDU6TGFiZWwxMTY1OTM4NjQ2","url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/pulls/2/commits","review_comments_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/pulls/2/comments","review_comment_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/issues/2/comments","statuses_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/statuses/719587da9a4dbfd5ffd05c4dc6fbb7eaee814203","head":{"label":"bcgov:feat/get-aw-org-groups","ref":"feat/get-aw-org-groups","sha":"719587da9a4dbfd5ffd05c4dc6fbb7eaee814203","user":{"login":"bcgov","id":916280,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNjI4MA==","avatar_url":"https://avatars1.githubusercontent.com/u/916280?v=4","gravatar_id":"","url":"https://api.github.com/users/bcgov","html_url":"https://github.com/bcgov","followers_url":"https://api.github.com/users/bcgov/followers","following_url":"https://api.github.com/users/bcgov/following{/other_user}","gists_url":"https://api.github.com/users/bcgov/gists{/gist_id}","starred_url":"https://api.github.com/users/bcgov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcgov/subscriptions","organizations_url":"https://api.github.com/users/bcgov/orgs","repos_url":"https://api.github.com/users/bcgov/repos","events_url":"https://api.github.com/users/bcgov/events{/privacy}","received_events_url":"https://api.github.com/users/bcgov/received_events","type":"Organization","site_admin":false},"repo":{"id":162335850,"node_id":"MDEwOlJlcG9zaXRvcnkxNjIzMzU4NTA=","name":"mdms-nodejs-client","full_name":"bcgov/mdms-nodejs-client","private":false,"owner":{"login":"bcgov","id":916280,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNjI4MA==","avatar_url":"https://avatars1.githubusercontent.com/u/916280?v=4","gravatar_id":"","url":"https://api.github.com/users/bcgov","html_url":"https://github.com/bcgov","followers_url":"https://api.github.com/users/bcgov/followers","following_url":"https://api.github.com/users/bcgov/following{/other_user}","gists_url":"https://api.github.com/users/bcgov/gists{/gist_id}","starred_url":"https://api.github.com/users/bcgov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcgov/subscriptions","organizations_url":"https://api.github.com/users/bcgov/orgs","repos_url":"https://api.github.com/users/bcgov/repos","events_url":"https://api.github.com/users/bcgov/events{/privacy}","received_events_url":"https://api.github.com/users/bcgov/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bcgov/mdms-nodejs-client","description":"An NPM package to wrap the client API calls for the BCGov Mobile Device Management System (MDMS).","fork":false,"url":"https://api.github.com/repos/bcgov/mdms-nodejs-client","forks_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/forks","keys_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/teams","hooks_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/hooks","issue_events_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/issues/events{/number}","events_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/events","assignees_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/assignees{/user}","branches_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/branches{/branch}","tags_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/tags","blobs_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/statuses/{sha}","languages_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/languages","stargazers_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/stargazers","contributors_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/contributors","subscribers_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/subscribers","subscription_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/subscription","commits_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/contents/{+path}","compare_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/merges","archive_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/downloads","issues_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/issues{/number}","pulls_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/pulls{/number}","milestones_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/milestones{/number}","notifications_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/labels{/name}","releases_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/releases{/id}","deployments_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/deployments","created_at":"2018-12-18T19:26:44Z","updated_at":"2018-12-18T19:27:15Z","pushed_at":"2018-12-21T00:48:40Z","git_url":"git://github.com/bcgov/mdms-nodejs-client.git","ssh_url":"git@github.com:bcgov/mdms-nodejs-client.git","clone_url":"https://github.com/bcgov/mdms-nodejs-client.git","svn_url":"https://github.com/bcgov/mdms-nodejs-client","homepage":null,"size":98,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"bcgov:master","ref":"master","sha":"b4afec0786dae2d779e72ce2ceed6ce2e6b66af5","user":{"login":"bcgov","id":916280,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNjI4MA==","avatar_url":"https://avatars1.githubusercontent.com/u/916280?v=4","gravatar_id":"","url":"https://api.github.com/users/bcgov","html_url":"https://github.com/bcgov","followers_url":"https://api.github.com/users/bcgov/followers","following_url":"https://api.github.com/users/bcgov/following{/other_user}","gists_url":"https://api.github.com/users/bcgov/gists{/gist_id}","starred_url":"https://api.github.com/users/bcgov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcgov/subscriptions","organizations_url":"https://api.github.com/users/bcgov/orgs","repos_url":"https://api.github.com/users/bcgov/repos","events_url":"https://api.github.com/users/bcgov/events{/privacy}","received_events_url":"https://api.github.com/users/bcgov/received_events","type":"Organization","site_admin":false},"repo":{"id":162335850,"node_id":"MDEwOlJlcG9zaXRvcnkxNjIzMzU4NTA=","name":"mdms-nodejs-client","full_name":"bcgov/mdms-nodejs-client","private":false,"owner":{"login":"bcgov","id":916280,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxNjI4MA==","avatar_url":"https://avatars1.githubusercontent.com/u/916280?v=4","gravatar_id":"","url":"https://api.github.com/users/bcgov","html_url":"https://github.com/bcgov","followers_url":"https://api.github.com/users/bcgov/followers","following_url":"https://api.github.com/users/bcgov/following{/other_user}","gists_url":"https://api.github.com/users/bcgov/gists{/gist_id}","starred_url":"https://api.github.com/users/bcgov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcgov/subscriptions","organizations_url":"https://api.github.com/users/bcgov/orgs","repos_url":"https://api.github.com/users/bcgov/repos","events_url":"https://api.github.com/users/bcgov/events{/privacy}","received_events_url":"https://api.github.com/users/bcgov/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/bcgov/mdms-nodejs-client","description":"An NPM package to wrap the client API calls for the BCGov Mobile Device Management System (MDMS).","fork":false,"url":"https://api.github.com/repos/bcgov/mdms-nodejs-client","forks_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/forks","keys_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/teams","hooks_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/hooks","issue_events_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/issues/events{/number}","events_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/events","assignees_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/assignees{/user}","branches_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/branches{/branch}","tags_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/tags","blobs_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/statuses/{sha}","languages_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/languages","stargazers_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/stargazers","contributors_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/contributors","subscribers_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/subscribers","subscription_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/subscription","commits_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/contents/{+path}","compare_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/merges","archive_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/downloads","issues_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/issues{/number}","pulls_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/pulls{/number}","milestones_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/milestones{/number}","notifications_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/labels{/name}","releases_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/releases{/id}","deployments_url":"https://api.github.com/repos/bcgov/mdms-nodejs-client/deployments","created_at":"2018-12-18T19:26:44Z","updated_at":"2018-12-18T19:27:15Z","pushed_at":"2018-12-21T00:48:40Z","git_url":"git://github.com/bcgov/mdms-nodejs-client.git","ssh_url":"git@github.com:bcgov/mdms-nodejs-client.git","clone_url":"https://github.com/bcgov/mdms-nodejs-client.git","svn_url":"https://github.com/bcgov/mdms-nodejs-client","homepage":null,"size":98,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bcgov/mdms-nodejs-client/pulls/2"},"html":{"href":"https://github.com/bcgov/mdms-nodejs-client/pull/2"},"issue":{"href":"https://api.github.com/repos/bcgov/mdms-nodejs-client/issues/2"},"comments":{"href":"https://api.github.com/repos/bcgov/mdms-nodejs-client/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/bcgov/mdms-nodejs-client/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/bcgov/mdms-nodejs-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bcgov/mdms-nodejs-client/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/bcgov/mdms-nodejs-client/statuses/719587da9a4dbfd5ffd05c4dc6fbb7eaee814203"}},"author_association":"NONE"}}
{"actor":{"display_login":"jleach"}}