-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate and alias team reports to company reports
- Loading branch information
1 parent
db68e56
commit fc7c5f8
Showing
3 changed files
with
128 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,114 +1,129 @@ | ||
<?php | ||
|
||
return array( | ||
|
||
'getTeamReport' => array( | ||
'httpMethod' => 'GET', | ||
'uri' => 'reports/team.json', | ||
'parameters' => array( | ||
'start' => array( | ||
'location' => 'query', | ||
'required' => true | ||
), | ||
'end' => array( | ||
'location' => 'query', | ||
'required' => true | ||
), | ||
'previousStart' => array( | ||
'location' => 'query' | ||
), | ||
'previousEnd' => array( | ||
'location' => 'query' | ||
), | ||
'mailboxes' => array( | ||
'location' => 'query' | ||
), | ||
'tags' => array( | ||
'location' => 'query' | ||
), | ||
'types' => array( | ||
'location' => 'query' | ||
), | ||
'folders' => array( | ||
'location' => 'query' | ||
) | ||
$companyReport = array( | ||
'httpMethod' => 'GET', | ||
'uri' => 'reports/company.json', | ||
'parameters' => array( | ||
'start' => array( | ||
'location' => 'query', | ||
'required' => true | ||
), | ||
'end' => array( | ||
'location' => 'query', | ||
'required' => true | ||
), | ||
'previousStart' => array( | ||
'location' => 'query' | ||
), | ||
'previousEnd' => array( | ||
'location' => 'query' | ||
), | ||
'mailboxes' => array( | ||
'location' => 'query' | ||
), | ||
'tags' => array( | ||
'location' => 'query' | ||
), | ||
'types' => array( | ||
'location' => 'query' | ||
), | ||
'folders' => array( | ||
'location' => 'query' | ||
) | ||
), | ||
) | ||
); | ||
|
||
'getCustomersHelpedTeamReport' => array( | ||
'httpMethod' => 'GET', | ||
'uri' => 'reports/team/customers-helped.json', | ||
'parameters' => array( | ||
'start' => array( | ||
'location' => 'query', | ||
'required' => true | ||
), | ||
'end' => array( | ||
'location' => 'query', | ||
'required' => true | ||
), | ||
'previousStart' => array( | ||
'location' => 'query' | ||
), | ||
'previousEnd' => array( | ||
'location' => 'query' | ||
), | ||
'mailboxes' => array( | ||
'location' => 'query' | ||
), | ||
'tags' => array( | ||
'location' => 'query' | ||
), | ||
'types' => array( | ||
'location' => 'query' | ||
), | ||
'folders' => array( | ||
'location' => 'query' | ||
), | ||
'viewBy' => array( | ||
'location' => 'query' | ||
) | ||
$customersHelpedCompanyReport = array( | ||
'httpMethod' => 'GET', | ||
'uri' => 'reports/company/customers-helped.json', | ||
'parameters' => array( | ||
'start' => array( | ||
'location' => 'query', | ||
'required' => true | ||
), | ||
'end' => array( | ||
'location' => 'query', | ||
'required' => true | ||
), | ||
'previousStart' => array( | ||
'location' => 'query' | ||
), | ||
'previousEnd' => array( | ||
'location' => 'query' | ||
), | ||
'mailboxes' => array( | ||
'location' => 'query' | ||
), | ||
'tags' => array( | ||
'location' => 'query' | ||
), | ||
'types' => array( | ||
'location' => 'query' | ||
), | ||
'folders' => array( | ||
'location' => 'query' | ||
), | ||
'viewBy' => array( | ||
'location' => 'query' | ||
) | ||
), | ||
) | ||
); | ||
|
||
'getTeamDrillDownReport' => array( | ||
'httpMethod' => 'GET', | ||
'uri' => 'reports/team/drilldown.json', | ||
'parameters' => array( | ||
'start' => array( | ||
'location' => 'query', | ||
'required' => true | ||
), | ||
'end' => array( | ||
'location' => 'query', | ||
'required' => true | ||
), | ||
'mailboxes' => array( | ||
'location' => 'query' | ||
), | ||
'tags' => array( | ||
'location' => 'query' | ||
), | ||
'types' => array( | ||
'location' => 'query' | ||
), | ||
'folders' => array( | ||
'location' => 'query' | ||
), | ||
'page' => array( | ||
'location' => 'query' | ||
), | ||
'rows' => array( | ||
'location' => 'query' | ||
), | ||
'range' => array( | ||
'location' => 'query', | ||
'required' => true | ||
), | ||
'rangeId' => array( | ||
'location' => 'query' | ||
) | ||
$companyDrillDownReport = array( | ||
'httpMethod' => 'GET', | ||
'uri' => 'reports/company/drilldown.json', | ||
'parameters' => array( | ||
'start' => array( | ||
'location' => 'query', | ||
'required' => true | ||
), | ||
'end' => array( | ||
'location' => 'query', | ||
'required' => true | ||
), | ||
'mailboxes' => array( | ||
'location' => 'query' | ||
), | ||
'tags' => array( | ||
'location' => 'query' | ||
), | ||
'types' => array( | ||
'location' => 'query' | ||
), | ||
'folders' => array( | ||
'location' => 'query' | ||
), | ||
'page' => array( | ||
'location' => 'query' | ||
), | ||
'rows' => array( | ||
'location' => 'query' | ||
), | ||
'range' => array( | ||
'location' => 'query', | ||
'required' => true | ||
), | ||
'rangeId' => array( | ||
'location' => 'query' | ||
) | ||
) | ||
); | ||
|
||
return array( | ||
|
||
'getCompanyReport' => $companyReport, | ||
|
||
// Deprecated, use `getCompanyReport` | ||
'getTeamReport' => $companyReport, | ||
|
||
'getCustomersHelpedCompanyReport' => $customersHelpedCompanyReport, | ||
|
||
// Deprecated, use `getCustomersHelpedCompanyReport | ||
'getCustomersHelpedTeamReport' => $customersHelpedCompanyReport, | ||
|
||
'getCompanyDrillDownReport' => $companyDrillDownReport, | ||
|
||
// Deprecated, use `getCompanyDrillDownReport` | ||
'getTeamDrillDownReport' => $companyDrillDownReport | ||
|
||
); |