-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add TE to the analytics constructor
- Loading branch information
1 parent
4a8a54a
commit 4cc5b30
Showing
3 changed files
with
41 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import AnalyticsBase from './AnalyticsBase.js' | ||
|
||
/** | ||
* @extends module:analytics.AnalyticsBase | ||
* | ||
* @description | ||
* Analytics tracked entities class used to request analytics tracked entities data from Web API. | ||
* | ||
* @memberof module:analytics | ||
*/ | ||
class AnalyticsTrackedEntities extends AnalyticsBase { | ||
/** | ||
* @param {!AnalyticsRequest} req Request object | ||
* | ||
* @returns {Promise} Promise that resolves with the analytics query data from the api. | ||
* | ||
* @example | ||
// TODO: provide working example | ||
*/ | ||
getQuery(req) { | ||
return this.fetch(req.withPath('trackedEntities/query')) | ||
} | ||
} | ||
|
||
export default AnalyticsTrackedEntities |